呼叫Java高手,牛人请帮忙回答。
Tomcat启动错误日志:
########################################
信息: Starting Servlet Engine: Apache Tomcat/6.0.9
2009-11-11 15:23:03 org.apache.catalina.core.NamingContextListener addResource
警告: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ExceptionInInitializerError]
2009-11-11 15:23:03 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2009-11-11 15:23:03 org.apache.catalina.core.StandardContext start
严重: Context [/web] startup failed due to previous errors
########################################
在Tomcat中conf下context.xml中数据源配置如下
#####################################
<Resource name="jdbc/DefaultDS" auth="Container" type="javax.sql.DataSource"
factory="org.objectweb.jndi.DataSourceFactory"
defaultAutoCommit="false"
maxActive="100" maxIdle="30" maxWait="1000"
username="srmdba" password="srm_321" driverClassName="com.p6spy.engine.spy.P6SpyDriver"
url="jdbc:oracle:thin:@192.168.1.58:1521:srmora" removeAbandoned="true"
removeAbandonedTimeout="20" logAbandoned="true" />
#####################################
项目web下web.xml中配置信息如下:
##################################
<resource-ref>
<res-ref-name>jdbc/srmdba</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
################
在线等待中。。。。。