netbeans运行项目有异常,myeclipse tomcat配置虚拟目录 同样的项目没异常

xuxiangpan 发布于 2013/12/13 17:36
阅读 539
收藏 0

大家有有没有遇到过同样的项目 用myeclipse 加tomat配置虚拟目录 启动tomcat时候没有异常,把war直接放到tomcat webapps 也没有问题,但是用netbeans同样的源码用nebeans启动时候就报异常


在tomcat启动的时候我是写了点监听器,线程,有间隔查询mysql数据库的代码,纳闷了?

如下是netbeans 运行项目时候的异常,说 this web application instance has been stopped 

我运行了什么也没有做,有没有修改代码,我这都郁闷了好多天了,大牛给指点下

这个问题搞的我又想放弃使用nb,是不是我的代码本身写的也有问题呢?但是为什么 


Using CATALINA_BASE:   "D:\apache-tomcat-6.0.35"
Using CATALINA_HOME:   "D:\apache-tomcat-6.0.35"
Using CATALINA_TMPDIR: "D:\apache-tomcat-6.0.35\temp"
Using JRE_HOME:        "D:\Program Files\Java\jdk1.7.0_25"
Using CLASSPATH:       "D:\apache-tomcat-6.0.35\bin\bootstrap.jar"
Listening for transport dt_shmem at address: tomcat_shared_memory_id
十二月 13, 2013 5:43:11 下午 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:\Program Files\Java\jdk1.7.0_25\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;D:\Program Files\adt-bundle-windows-x86-20131030\sdk\tools;D:\Program Files\adt-bundle-windows-x86-20131030\sdk\platform-tools;D:\oracle\product\10.2.0\db_1\bin;d:\Program Files\Java\jdk1.6.0_43\bin;d:\Program Files\CollabNet\Subversion Client;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;D:\PROGRA~1\IBM\DB2_SQ~1\BIN;D:\PROGRA~1\IBM\DB2_SQ~1\FUNCTION;D:\PROGRA~1\IBM\DB2_SQ~1\SAMPLES\REPL;D:\Program Files\TortoiseSVN\bin;D:\Program Files\TortoiseGit\bin;.
十二月 13, 2013 5:43:11 下午 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
十二月 13, 2013 5:43:11 下午 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 756 ms
十二月 13, 2013 5:43:11 下午 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
十二月 13, 2013 5:43:11 下午 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
十二月 13, 2013 5:43:11 下午 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
十二月 13, 2013 5:43:12 下午 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
十二月 13, 2013 5:43:12 下午 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor webtalk.xml
十二月 13, 2013 5:43:12 下午 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor yggc.xml
十二月 13, 2013 5:43:12 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
十二月 13, 2013 5:43:12 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
十二月 13, 2013 5:43:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory iWebOffice2000
十二月 13, 2013 5:43:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory iWebOffice2003
十二月 13, 2013 5:43:13 下午 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
十二月 13, 2013 5:43:13 下午 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
十二月 13, 2013 5:43:13 下午 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/29  config=null
十二月 13, 2013 5:43:13 下午 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1552 ms
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/webtalk] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/webtalk] registered the JDBC driver [org.gjt.mm.mysql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [Thread-2] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [0] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [1] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [2] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [3] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [4] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [5] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [6] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [7] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [8] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [9] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [Thread-13] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:13 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/webtalk] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak.
十二月 13, 2013 5:43:14 下午 org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/webtalk]
十二月 13, 2013 5:43:14 下午 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor webtalk.xml
十二月 13, 2013 5:43:14 下午 org.apache.catalina.core.StandardContext start
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/webtalk] has already been started
十二月 13, 2013 5:43:22 下午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load dbpool/.  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.
十二月 13, 2013 5:43:22 下午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load dbpool1/db.properties.  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.
十二月 13, 2013 5:43:22 下午 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load java.io.PrintStream.  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:1566)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	at dbpool1.DBConnectionManager1.init(DBConnectionManager1.java:181)
	at dbpool1.DBConnectionManager1.<init>(DBConnectionManager1.java:60)
	at dbpool1.DBConnectionManager1.getInstance(DBConnectionManager1.java:29)
	at msg.DbConn.<init>(DbConn.java:28)
	at msg.UserMonitor.checkVisitorOnlineAndSendMsg(UserMonitor.java:51)
	at msg.UserMonitor.run(UserMonitor.java:35)
	at java.lang.Thread.run(Thread.java:724)

十二月 13, 2013 5:43:22 下午 org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already.  Could not load dbpool/.  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.
十二月 13, 2013 5:43:22 下午 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  Could not load msg.Log.  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:1566)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	at msg.UserMonitor.checkVisitorOnlineAndSendMsg(UserMonitor.java:75)
	at msg.UserMonitor.run(UserMonitor.java:35)
	at java.lang.Thread.run(Thread.java:724)



加载中
返回顶部
顶部