-
netbeans运行项目有异常,myeclipse tomcat配置虚拟目录 同样的项目没异常5
大家有有没有遇到过同样的项目 用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)
2013年12月13日 17:52
目前还没有答案
相关推荐
本篇文章将详细讲解如何在NetBeans中配置Tomcat服务器,以帮助开发者高效地进行Java Web项目开发。 首先,我们需要了解NetBeans和Tomcat的基本概念。NetBeans是一款开源的、跨平台的Java IDE,它提供了编写、调试和...
2. **运行Web项目**:配置完成后,可以直接在NetBeans中运行项目,通过浏览器访问预设的URL。 3. **新建Servlet**:在项目中添加Servlet,用于处理HTTP请求。 - 编写Servlet代码,实现业务逻辑。 - 修改`web.xml`...
1:在netbeans 左上角右击服务器,添加服务器。 2:选择要添加的服务器的版本(这里选择Tomcat5.5) 3:准备Tomcat 的服务器文件(一般要选择解压宿的,免安装版本) 4:这一步很简单,就不说了, 5:看看下面...
【Java开发环境搭建】 在Java开发中,一个完整...以上就是搭建基于JDK、Tomcat、MyEclipse、NetBeans和SVN的Java开发环境的详细步骤,确保每个组件正确配置并协同工作,从而高效地进行Java Web应用的开发和版本控制。
在IT领域,NetBeans与Tomcat的结合是Java开发者中非常流行的一种开发环境配置方式,尤其是在Web应用开发中。本文将基于给定的文件信息,深入解析如何在NetBeans 7下配置Tomcat服务器,这一过程不仅对于初学者来说至...
netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体配置文件netbeans字体配置文件.netbeans字体...
netbeans配置Tomcat方法,配置 部署 启动
本文将详细讲解如何在NetBeans中配置Tomcat服务器,以便于开发、测试和部署Java Web项目。 首先,打开NetBeans IDE。在IDE的左侧工具栏中,你会看到"服务"面板。在这个面板中,你可以管理数据库、服务器和其他服务...
点击“Finish”后,NetBeans将自动导入项目依赖库,并生成相应的配置文件,使项目能够在NetBeans环境中运行。 #### NetBeans项目转换至Eclipse 虽然本文主要关注Eclipse项目转换至NetBeans,但反向操作的过程类似...
配置 GlassFish 的 Axis2 选项与配置 Tomcat 的 Axis2 选项类似,我们需要将 Axis2 WAR 文件解压缩到 GlassFish 服务器的 webapps 目录中,然后更改 Axis2 选项。 创建 Axis2 Web 服务 创建 Axis2 Web 服务需要...
5. **文件结构**:压缩包中的"NetBeansProjects"很可能包含了整个项目的所有文件和目录,包括源代码文件(如`.java`)、编译后的字节码文件(`.class`)、项目配置文件(`.project`、`.nbattrs`等)、资源文件(如...
在NetBeans中配置Tomcat数据源是开发Java Web应用程序时必不可少的步骤,特别是当你需要连接到数据库进行数据操作时。NetBeans是一个强大的集成开发环境(IDE),它支持多种服务器,包括Tomcat。以下是一个详细的...
标题 "Netbeans Jetty Maven项目调试配置" 涉及的是在Java开发环境中,如何使用Netbeans IDE结合Jetty服务器和Maven构建工具进行项目的调试配置。这是一个关键的知识点,对于那些经常处理Web应用程序的开发者来说...
【标题】"用Netbeans开发Hibernate项目"是一个关于利用Netbeans IDE进行Hibernate应用程序开发的教程。这个主题旨在帮助Java初学者掌握如何在Netbeans环境中设置和操作Hibernate框架,以便更高效地进行数据库交互。 ...
Ubuntu 配置 Netbeans 8.2 是指在 Ubuntu 操作系统上安装和配置 Netbeans 8.2,以便使用该 IDE 开发各种项目。在这个过程中,我们将学习如何下载和安装 Netbeans 8.2,以及如何配置 Java 环境和环境变量,以便顺利地...
在开始之前,确保你的开发环境已经配置了Java(JDK)、IDE(例如Eclipse或NetBeans)、Tomcat服务器、以及版本控制工具如SVN(本文使用的是TortoiseSVN和VisualSVN)。 **4. Jenkins安装** Jenkins可以通过两种方式在...
同时,也可以在项目中配置服务器,选择要使用的服务器版本,以便更好地管理 web 程序的运行环境。 添加 Tomcat 服务器是 Java web 开发的重要步骤,本文详细介绍了在 Netbeans 和 Eclipse 中添加 Tomcat 服务器的...
配置项目的类路径和其他设置是非常重要的,这直接影响到项目的构建和运行。NetBeans IDE提供了一系列工具来帮助用户进行这些配置: 1. **设置主项目**: 当项目之间存在依赖关系时,可以通过设置主项目来管理这些...
- 设置项目运行环境,并使用NetBeans的运行功能来运行项目。 ### 5. Navicat安装与使用 - Navicat是一款用于数据库的数据管理工具,支持MySQL、PostgreSQL、SQLite等。 - 在本例中,主要是针对MySQL数据库进行操作...