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.
0) Mount a WAR file as an archive file system in the IDE 1) Select the run time tab in the explorer 2) Go to the Server Registry node > Installed Servers 3) To deploy on the internal server, expand the node to where it says localhost:port and then choose "add context" . 4) The drop down menu shows the war file as an option 5) The declaration into the server.xml is incorrect and omits the path to the WAR file, so it cannot be executed. eg <Context path="/mondemo" docBase="mondemo.war"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_mondemo_log." suffix=".txt" timestamp="true"/> </Context> It should use the full path to the war file. Also, why does it not declare the monitor valve to run? Workaround: select "Configure (edit server.xml)" on the server node and modify the declaration by hand.
It's really a bug.Adding war file as a new context results in a wrong docBase string.The war file should be identified by the full path in the <Context> element.
Adding war file should be resolved differently than adding "in-place" context.
Fixed in trunk. See the diff : http://web.netbeans.org/source/browse/tomcatint/tomcat40/src/org/netbeans/modules/tomcat/tomcat40/actions/AddContextPanel.java.diff?r1=1.4&r2=1.5
VERIFIED