tomcat配置数据源报错

orphen_lee 2009-09-29 01:52:55
部署项目上去 配置的数据源出错 麻烦大家帮忙看看什么问题 错误信息如下

2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/name'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter/value'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams/parameter'.
2009-9-29 8:54:55 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourceParams'.
2009-9-29 8:54:55 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.6.0_02\jre;d:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;D:\Program Files\VistaMaster;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Java\jdk1.6.0_02\jre;C:\Program Files\Java\jdk1.6.0_02\bin;D:\Program Files\StormII\Codec;D:\Program Files\StormII;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\
2009-9-29 8:54:56 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8088
2009-9-29 8:54:56 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3406 ms
2009-9-29 8:54:57 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-9-29 8:54:57 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18



server.xml如下
     <Host name="localhost"  appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/DBTest" docBase="D:\Tomcat 6.0\webapps\LBBOSS"
reloadable="true" crossContext="true">

<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_LBBOSS_log." suffix=".txt"
timestamp="true"/>

<Resource name="dbofweb"
auth="Container"
type="javax.sql.DataSource"/>

<ResourceParams name="dbofweb">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
-->
<parameter>
<name>maxActive</name>
<value>100</value>
</parameter>

<!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
-->
<parameter>
<name>maxIdle</name>
<value>30</value>
</parameter>

<!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded. Set to -1 to wait indefinitely.
-->
<parameter>
<name>maxWait</name>
<value>10000</value>
</parameter>

<!-- MySQL dB username and password for dB connections -->
<parameter>
<name>username</name>
<value>usr_game</value>
</parameter>
<parameter>
<name>password</name>
<value>password025</value>
</parameter>

<!-- Class name for the old mm.mysql JDBC driver - uncomment this entry and comment next
if you want to use this driver - we recommend using Connector/J though
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
-->

<!-- Class name for the official MySQL Connector/J driver -->
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>

<!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection. mysqld by default closes idle connections after 8 hours.
-->
<parameter>
<name>url</name>
<value>jdbc:oracle:thin:@218.94.158.227:6688:dbofweb</value>
</parameter>
</ResourceParams>
</Context>



web.xml如下

<resource-ref>
<description>DB Connection</description>
<res-ref-name>dbofweb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>



希望大家能帮忙指出问题和解决方法 谢谢
...全文
273 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
gwpJava 2012-10-29
  • 打赏
  • 举报
回复
LZ 我也遇到了相同的 问题 请问您是怎么解决的???
orphen_lee 2009-09-29
  • 打赏
  • 举报
回复
谢谢各位帮忙 已经解决
orphen_lee 2009-09-29
  • 打赏
  • 举报
回复
郁闷了 楼上几位的方法都尝试了 没效果 现在恢复到初始错误的配置干脆tomcat启动不了了。。。
狼里格东 2009-09-29
  • 打赏
  • 举报
回复
楼主你配置有问题...看报错找相应的配置项
zhao_tk 2009-09-29
  • 打赏
  • 举报
回复
http://topic.csdn.net/u/20080318/13/2454d7bf-af82-4f3b-9b03-8f9086030ef7.html
orphen_lee 2009-09-29
  • 打赏
  • 举报
回复
谢谢推荐 去试试看
yuxinglian 2009-09-29
  • 打赏
  • 举报
回复
orphen_lee 2009-09-29
  • 打赏
  • 举报
回复
没人帮忙看看么= =!

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧