netbeans中tomcat無法啟動(急)
我用的是NetBeans 6.1自帶Apache Tomcat 6.0.16;JDK采用jdk-6u7-windows-i586-p.exe
最近在netBeans中run project老是無法啟動tomcat;
以前一直都沒有問題,最近才出的問題,把系統重新裝了,他就好了幾次,又不能啟動,
如果禁止netbean自動更新就可以用,上次我不小心更新了一次,導致tomcat又不能啟動了,現在從新安裝還是不能啟動,
如果不能啟動,創建一個新的系統用戶,再用新用戶登錄,在新用戶中又能啟動,不過也用不了幾次,又無法啟動,
到tomcat安裝目錄下啟動startUp.bat,tomcat是可以啟動的,說明tomcat應該沒有問題,
就是在netbeans中無法調用,但是又不知道為什么在新用戶中又可以用那么几次;
netbeans重新安裝是一點用處都沒有,
當run project報的信息如下,
tomcat 信息
Using CATALINA_BASE: C:\Documents and Settings\cqq\.netbeans\6.1\apache-tomcat-6.0.16_base
Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.16
Using CATALINA_TMPDIR: C:\Documents and Settings\cqq\.netbeans\6.1\apache-tomcat-6.0.16_base\temp
Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_07
java.lang.NoClassDefFoundError: Files\Apache
Caused by: java.lang.ClassNotFoundException: Files\Apache
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
project信息
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Checking data source definitions for missing JDBC drivers...
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
Deployment error:
Starting of Tomcat failed.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:166)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of Tomcat failed.
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1297)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1251)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1062)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:939)
at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:428)
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:143)
... 16 more
BUILD FAILED (total time: 1 second)
不知道大家有沒有預見過這個問題,如果能幫忙解決,本人非常感謝!