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.

Bug 126169 - Tomcat 6 deployment fail under Windows Vista
Summary: Tomcat 6 deployment fail under Windows Vista
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-29 08:42 UTC by netbeans2008
Modified: 2008-03-23 00:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description netbeans2008 2008-01-29 08:42:52 UTC
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
Comment 1 Petr Hejl 2008-01-29 09:28:11 UTC
Jardo, can you try to reproduce this?
Comment 2 Jaroslav Pospisil 2008-01-29 09:49:35 UTC
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.  
Comment 3 netbeans2008 2008-01-30 03:27:16 UTC
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?
Comment 4 netbeans2008 2008-01-30 04:48:58 UTC
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)
Comment 5 Jaroslav Pospisil 2008-01-30 08:49:11 UTC
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. 
Comment 6 netbeans2008 2008-01-31 02:29:40 UTC
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)
Comment 7 Jaroslav Pospisil 2008-01-31 08:55:56 UTC
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? 
Comment 8 netbeans2008 2008-02-01 08:01:51 UTC
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)
Comment 9 Petr Hejl 2008-02-01 09:36:43 UTC
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.
Comment 10 netbeans2008 2008-02-02 07:01:35 UTC
       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.
Comment 11 netbeans2008 2008-03-23 00:28:11 UTC
Hi all,

This issue was fixed after I installed Windows Vista Service Pack 1. I set the issue status as FIXED.