添加一个项目后没有错误,启动Tomcat后报错!

a3622041 2013-01-22 10:29:58
com.yangxh.project.servlet.SystemInit
Servlet /NetMonitor threw load() exception
com.yangxh.util.log.LogInit
SEVERE: Servlet /NetMonitor threw load() exception
...全文
281 10 点赞 打赏 收藏 举报
写回复
10 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
告白气球 2013-01-24
你确定是conf里server.xml里面的东西吗 ??? 为什么这么多 不就配置个连接池吗?? 还有就是仔细检查web.xml中的servlet配置
  • 打赏
  • 举报
回复
a3622041 2013-01-24
引用 8 楼 InMyWay_ 的回复:
server.xml里配置错了吧 贴出来嘛
<?xml version='1.0' encoding='utf-8'?>
<Server>
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
 
  <GlobalNamingResources>
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" type="org.apache.catalina.UserDatabase"/>
    <Resource name="jdbc/mysql" type="javax.sql.DataSource"/>
    <Resource name="jdbc/sqlserver" type="javax.sql.DataSource"/>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/mysql">
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>15</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>123456</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:mysql://localhost:3306/frame?useUnicode=true&characterEncoding=GBK</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>com.mysql.jdbc.Driver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>2</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>root</value>
      </parameter>
    </ResourceParams>
    <ResourceParams name="jdbc/sqlserver">
      <parameter>
        <name>maxWait</name>
        <value>5000</value>
      </parameter>
      <parameter>
        <name>maxActive</name>
        <value>15</value>
      </parameter>
      <parameter>
        <name>password</name>
        <value>801228PANJINFUCT</value>
      </parameter>
      <parameter>
        <name>url</name>
        <value>jdbc:microsoft:sqlserver://localhost:1433; DatabaseName=NetBank</value>
      </parameter>
      <parameter>
        <name>driverClassName</name>
        <value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
      </parameter>
      <parameter>
        <name>maxIdle</name>
        <value>4</value>
      </parameter>
      <parameter>
        <name>username</name>
        <value>sa</value>
      </parameter>
    </ResourceParams>
  </GlobalNamingResources>
  <Service name="Catalina">
    <Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" port="8083" redirectPort="8443" maxSpareThreads="75" maxThreads="150" minSpareThreads="25">
    </Connector>
    <Connector port="8009" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" redirectPort="8443">
    </Connector>
    <Engine defaultHost="localhost" name="Catalina">
      <Host appBase="webapps" name="localhost">
        <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
      </Host>
      <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"/>
    </Engine>
  </Service>
</Server>
  • 打赏
  • 举报
回复
告白气球 2013-01-23
server.xml里配置错了吧 贴出来嘛
  • 打赏
  • 举报
回复
zxhcloth 2013-01-22
没看懂你的问题!
  • 打赏
  • 举报
回复
a3622041 2013-01-22
2013-1-22 16:23:03 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8083
2013-1-22 16:23:03 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2266 ms
2013-1-22 16:23:03 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-1-22 16:23:03 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.28
2013-1-22 16:23:03 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2013-1-22 16:23:03 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx ) 
2013-1-22 16:23:03 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\tomcat5\conf\Catalina\localhost\admin.xml
2013-1-22 16:23:05 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2013-1-22 16:23:05 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2013-1-22 16:23:06 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2013-1-22 16:23:09 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\tomcat5\conf\Catalina\localhost\manager.xml
2013-1-22 16:23:09 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /NetMonitor from URL file:D:\tomcat5\webapps\NetMonitor
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
2013-1-22 16:23:11 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2013-1-22 16:23:11 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-1-22 16:23:11 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
2013-1-22 16:23:11 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8083
2013-1-22 16:23:11 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2013-1-22 16:23:12 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/63  config=D:\tomcat5\conf\jk2.properties
2013-1-22 16:23:12 org.apache.catalina.startup.Catalina start
信息: Server startup in 8625 ms
百度后 现在提示这些错误
  • 打赏
  • 举报
回复
a3622041 2013-01-22
2013-1-22 15:37:36 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8083
2013-1-22 15:37:36 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2344 ms
2013-1-22 15:37:37 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-1-22 15:37:37 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.28
2013-1-22 15:37:37 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2013-1-22 15:37:37 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx ) 
2013-1-22 15:37:37 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\QQ2012\Users\xxxx\FileRecv\tomcat5\conf\Catalina\localhost\admin.xml
2013-1-22 15:37:39 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
2013-1-22 15:37:39 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
2013-1-22 15:37:40 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2013-1-22 15:37:43 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\QQ2012\Users\xxxx\FileRecv\tomcat5\conf\Catalina\localhost\manager.xml
2013-1-22 15:37:43 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /NetMonitor from URL file:D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor
2013-1-22 15:37:44 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:44 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:44 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:45 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2013-1-22 15:37:45 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-1-22 15:37:45 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2013-1-22 15:37:46 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /NetMonitor.myeclipse.bak from URL file:D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor.myeclipse.bak
2013-1-22 15:37:46 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor.myeclipse.bak\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:46 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor.myeclipse.bak\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:46 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor.myeclipse.bak\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:48 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2013-1-22 15:37:48 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-1-22 15:37:48 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2013-1-22 15:37:48 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /NetMonitor11 from URL file:D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor11
2013-1-22 15:37:48 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor11\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:48 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor11\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:48 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(D:\QQ2012\Users\xxxx\FileRecv\tomcat5\webapps\NetMonitor11\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2013-1-22 15:37:49 org.apache.catalina.core.StandardContext listenerStart
严重: Skipped installing application listeners due to previous error(s)
2013-1-22 15:37:49 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-1-22 15:37:49 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2013-1-22 15:37:50 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8083
2013-1-22 15:37:50 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2013-1-22 15:37:50 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62  config=D:\QQ2012\Users\xxxx\FileRecv\tomcat5\conf\jk2.properties
2013-1-22 15:37:50 org.apache.catalina.startup.Catalina start
信息: Server startup in 14188 ms
换了tomcat 5后
  • 打赏
  • 举报
回复
a3622041 2013-01-22
在web.xml下的servlet-class 大部分都有黄色破浪提示The word 'xxxxxxx' is not correctly spelled
  • 打赏
  • 举报
回复
zhang527 2013-01-22
额,没看懂......
  • 打赏
  • 举报
回复
a3622041 2013-01-22
其他人用MyEcipes 8.6 没什么问题 我用的6.5就这样。。
  • 打赏
  • 举报
回复
a3622041 2013-01-22
引用 1 楼 zxhcloth 的回复:
没看懂你的问题!
我用MyEclipes导入了一个项目,项目没有提示什么错误,启动tomcat就提示上述错误
  • 打赏
  • 举报
回复
相关推荐
发帖
Eclipse
加入

5.8w+

社区成员

Java Eclipse
申请成为版主
帖子事件
创建了帖子
2013-01-22 10:29
社区公告
暂无公告