2015-11-24 13:29:34 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\java_was\jre\bin\compressedrefs;D:\java_was\jre\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.6.0_39/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_39/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_39/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.6.0_39\bin; C:\Program Files\Java\jdk1.6.0_39\jre\bin;;D:\电脑软件\eclipse\eclipse;;.
2015-11-24 13:29:35 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ASMP' did not find a matching property.
2015-11-24 13:29:35 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
2015-11-24 13:29:35 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1197 ms
2015-11-24 13:29:35 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2015-11-24 13:29:35 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
2015-11-24 13:29:36 org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter FilterDispatcher
Throwable occurred: java.lang.Error: Unresolved compilation problems:
The type javax.servlet.FilterChain cannot be resolved. It is indirectly referenced from required .class files
The type javax.servlet.ServletRequest cannot be resolved. It is indirectly referenced from required .class files
The type javax.servlet.ServletResponse cannot be resolved. It is indirectly referenced from required .class files
The import javax.servlet.FilterChain cannot be resolved
The import javax.servlet.ServletException cannot be resolved
The import javax.servlet.ServletRequest cannot be resolved
The import javax.servlet.ServletResponse cannot be resolved
The import javax.servlet.http.HttpServletRequest cannot be resolved
The hierarchy of the type MyFilterDispatcher is inconsistent
The type javax.servlet.Filter cannot be resolved. It is indirectly referenced from required .class files
ServletRequest cannot be resolved to a type
ServletResponse cannot be resolved to a type
FilterChain cannot be resolved to a type
ServletException cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
at com.infoservice.asmp.app.action.materiallibrary.MyFilterDispatcher.<init>(MyFilterDispatcher.java:1)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1564)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4071)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4725)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2015-11-24 13:29:36 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
2015-11-24 13:29:36 org.apache.catalina.core.StandardContext start
SEVERE: Context [/ASMP] startup failed due to previous errors
2015-11-24 13:29:36 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2015-11-24 13:29:36 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2015-11-24 13:29:36 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/69 config=null
2015-11-24 13:29:36 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1115 ms
重装JDK后JDK的环境变量可能忘记配置或者路径有改变。解决方式:
1、如果没有配置环境变量,就需要配置一下环境变量,再重新试一下。
2、如果配置了环境变量还是出现这个问题,那么手动改一下Tomcat的指定JDK路径。
我也遇到过,不过这是个警告而已,你可以按下面的方法试试,我的这样成功了
下载 http://tomcat.heanet.ie/native/1.1.2/binaries/win32/tcnative-1.dll
然后复制到C:\windows\system32下面。重起tomcat。
试一下关闭tomcat,双击eclipse下tomcat服务器,在出来的Tomcat server at localhost页面中找到server options选项,选中其中的选项”Publish modual contexts to separat XML files“,保存后,启动tomcat
有可能是环境变量设置错误了。要配置四个环境变量
1、path:java的安装路径下的bin目录,注意,如果你安装了Oracle请把前面的java路径放在最前面
2、java_home:java的安装目录
3、tomcat_home:tomcat的安装目录
4、classpath:C:\java\lib\dt.jar;.;
可能JDK的环境配置出来问题,需要从新配置环境