当前位置: 代码迷 >> Web前端 >> this web application instance has been stopped already
  详细解决方案

this web application instance has been stopped already

热度:1074   发布时间:2013-09-11 17:25:07.0
this web application instance has been stopped already.
这是我启动不报错,但是启动之后再发部时报的错:
信息: Illegal access: this web application instance has been stopped already.  Could not load java.net.BindException.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1241)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.mysql.jdbc.CommunicationsException.<init>(CommunicationsException.java:135)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2634)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2547)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1300)
at com.mysql.jdbc.Connection.realClose(Connection.java:2101)
at com.mysql.jdbc.Connection.cleanup(Connection.java:2850)
at com.mysql.jdbc.Connection.finalize(Connection.java:2016)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
2008-12-22 3:02:17 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already.  Could not load com.mysql.jdbc.Messages.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1241)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.mysql.jdbc.CommunicationsException.<init>(CommunicationsException.java:148)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2634)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2547)
at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1300)
at com.mysql.jdbc.Connection.realClose(Connection.java:2101)
at com.mysql.jdbc.Connection.cleanup(Connection.java:2850)
at com.mysql.jdbc.Connection.finalize(Connection.java:2016)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

这种错误真正原因不是JDK 6和Struts 冲突, 而是 MyEclipse Hibernate 类库中多了两个包: xml-apis.jar和xerces-2.6.2.jar, 这两个包的功能和JDK的冲突了. 解决办法: 1. 删除发布后目录的 WEB-INF/lib/ 下的这两个文件其中的xerces-2.6.2.jar
我的异常网推荐解决方案:org.apache.catalina.loader.WebappClassLoader.loadClass,http://www.myexception.cn/java-web/org.apache.catalina.loader.WebappClassLoader.loadClass.html
  相关解决方案