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.
The first start is OK. The second deployment after stopping Tomcat fails. The web module stays in the "stopped" status.
The exception from output window : 19.2.2004 14:13:44 org.apache.catalina.core.StandardContext start SEVERE: Exception during cleanup after start failed LifecycleException: Container StandardContext[/test9] has not been started at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4402) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4300) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
This is most likely caused by the missing docBase attribute in the context.xml. Since the last Pavel's fix the file context.xml is used during the deployment directly. The tomcat saves the file into $CB/conf/Catalina/host/ directory without doing any change. The file does contain only the path attribute but does NOT contain the docBase. The next tomcat server start causes that these webmodules cannot be started since tomcat has no idea where the docBases are (it only unsuccessfully tries to find them in the default 'webmodules' directory) The fix could be to put the docBase attribute into the META-INF/context.xml file during deployment from the IDE.
This is a regression caused my fix of 40128, thanks for catching this - I did not test start/stop, only deploy/redeploy. Tomcat does not add the docBase into module xml file in conf/Catalina/localhost if deployed using context.xml (as it does when deploying with path). So I had to add docBase into context.xml file which by itself is good. The only problem is that j2eeserver api does not allow me to do it during creation of web module (or creation of context.xml) and I have to add docBase before first deployment (see $40304). The consequence of this is that the META-INF/context.xml file is changed and saved when you first deploy the web module if it doed not have the correct docBase in it. BTW: The manager application page in Tomcat5 documentation describes an example of deploying with just context.xml file, the path and docBase being specified in the file: http://localhost:8080/manager/deploy?config=file:/path/context.xml This does not work for me so I have to put the war parameter into URL even though it is already specified in context.xml.
verified - now the context.xml form the META-INF dir, which is used to deploy the wm, contains docBase attribute.
reopen to fix status and resolution
fix status and resolution