在eclipse IDE中运行servlet程序时获得异常

时间:2013-11-16 11:20:57

标签: java eclipse servlets

at java.net.URLClassLoader$1.run(URLClassLoader.java:299)
at java.net.URLClassLoader$1.run(URLClassLoader.java:288)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:287)
at java.lang.ClassLoader.loadClass(ClassLoader.java:422)
at java.lang.ClassLoader.loadClass(ClassLoader.java:355)
at org.apache.tomcat.websocket.server.UpgradeUtil.<clinit>(UpgradeUtil.java:52)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)

//这些异常是什么意思? ?? ? ? //我该怎么办才能解决这些异常? ? ? ?

2 个答案:

答案 0 :(得分:0)

看起来您需要重做指向JDK所在位置的环境PATH变量。

The link will show you how to reset it.

答案 1 :(得分:0)

设置classpath servlet-api.jar  你会在tomcat lib文件夹中找到

 Tomcat 7.0\lib\servlet-api.jar