This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I was able to startup tomcat 6.0.14 service using startup and shutdown commands (This tomcat is NOT installed version, it is copied from zip distribution). However, in NetBeans IDE, it always tried to start and wait quite long time. Finally ended up with following error (On Google I also noticed that same issue encountered by many users): org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of Tomcat failed. at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140) ... 16 more
Jardo, can you try to reproduce this?
I just downloaded the same version of Tomcat, installed and successfully started from Netbeans. There could be couple of reasons for zour problem. Could you please try to download TC6.0.14 again? (it happened to me sometimes that unzipped version was corrupted,even if successfully unziped). Another reason could be, that you haven't added manager role record into tomcat-users.xml config file, first time you start it in NB6 - known TC issue,that it deletes all comments from,including all template user roles.
Thank you for your quick response. I am sorry forgetting to mention my operating system. I am using Windows Vista. Yes,NetBeans and Tomcat are very smoothly running under Windows XP and Linux; however, I have been unable to integrate them under Windows Vista. Could you tell me if you tested NetBeans & Tomcat under Windows Vista?
Hi, I found a workaround for this issue. If "Base Filtering Engine" service is disabled in Windows Vista, Netbeans and Tomcat will work well. Is there any official fix or workaround for this? (Because disabling that service will reduce the security of system according to Microsoft)
Yes, I've got Windows Vista Bussiness and I'm afraid I've also BFE running,so this workaround of yours doesn't work in my case. I've got fully updated system, along with some non-automatic updates (mostly graphics memory related), so maybe one of the updates could solve your problem. Check please Microsoft Update. What's your JDK version? I use JDK 1.6.0_04.
Hi, I am running Windows Vista ultimate and installed all automatic updates. My JDK version is 1.6.0_03 (I also tried 1.6.0_04 yesterday. no difference..) To try that workaround, you have to disable BFE service manually first. (Control Panel->Administrator Tools->Services- >Base Filtering Engine)
In previous I tried to say,that I can't reproduce the issue and I've never disabled BFE in first place, so it's working for me even without workaround. Could you please write here if this is reproducible only in NB6.0 or also in NB6.0.1 or NB6.1 M1?
Hi, Today I tried it with NB 6.0.1 and still got same result. I attached the information from Tomcat Console and WebApp Console. Could you please review it at your convenience? It seemed that NB successfully started Tomcat, but failed on recognizing that Tomcat is running; therefore deployment failed. =================================Tomcat Console========================= Using CATALINA_BASE: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14-archive Using CATALINA_HOME: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14-archive Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14-archive\temp Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_03 Jan 31, 2008 11:47:41 PM org.apache.catalina.core.AprLifecycleListener init INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_03 \bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32 \Wbem;C:\Program Files\Subversion\bin;C:\Program Files\Java\jdk1.6.0_03\bin; Jan 31, 2008 11:47:41 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8081 Jan 31, 2008 11:47:41 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 301 ms Jan 31, 2008 11:47:41 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jan 31, 2008 11:47:41 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.14 Jan 31, 2008 11:47:41 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8081 Jan 31, 2008 11:47:41 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jan 31, 2008 11:47:41 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/47 config=null Jan 31, 2008 11:47:41 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 615 ms ===========================Application Console================================================= init: deps-module-jar: deps-ear-jar: deps-jar: Created dir: E:\Test1\WebApplication1\build\web\WEB-INF\classes Created dir: E:\Test1\WebApplication1\build\web\META-INF Copying 1 file to E:\Test1\WebApplication1\build\web\META-INF Copying 3 files to E:\Test1\WebApplication1\build\web library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: 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:163) at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.GeneratedMethodAccessor58.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:1270) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912) at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417) at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140) ... 16 more BUILD FAILED (total time: 3 minutes 5 seconds)
Then it is almost sure that there is a problem in your os configuration as netbeans can't access the tomcat port. Check firewall and security settings.
Hi I did everything with my OS, shut down Windows Firewall and Anti Virus software, logon with Administrator privilege, reinstall and run NetBean as admin privilge...everything.But same issue persists. Finally I tried Eclipse and it works smoothly with Tomcat even with general local user account. That means there is no privilege or firewall issue with the OS. Probably Vista Ultimate and Business (on which you tested this issue) are different. Whatever.. I had to set my way to Eclipse for Web Applications before an official workaround is found (or until my computer gets better someday mysteriously). I still suggest you to test it under Vista Ultimate edition if you get the chance, also I am ready to give my hands if I can do something for you. Thank you for your time, advise and free support.
Hi all, This issue was fixed after I installed Windows Vista Service Pack 1. I set the issue status as FIXED.