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.
1. Start IDE with App Server plug-in and new userdir. By default App Server is default web server. 2. Convert sampledir to webmodule. 3. Execute webmodule. 4. Stop App Server (via Runtime -> Server Registry -> Sun App Server -> localhost -> Start/Stop popup menu). 5. Set Tomcat as default web server. Now Context Path is empty. 6. Execute webmodule. Webmodule isn't deployed and exception is thrown. java.net.MalformedURLException: For input string: "8080null" at java.net.URL.<init>(URL.java:571) at java.net.URL.<init>(URL.java:434) at java.net.URL.<init>(URL.java:383) at org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl.startWebClient(DeploymentTargetImpl.java:172) at org.netbeans.modules.j2ee.deployment.impl.projects.DeploymentTargetImpl.startClient(DeploymentTargetImpl.java:112) at org.netbeans.modules.j2ee.deployment.execution.ServerExecutor$2.run(ServerExecutor.java:90) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Addigning to Pavel.
The fix is to copy the value of this property when switching the server. This should be copied in J2eeDeploymentProvider @202-213. ConfigSupportImpl we need to be adjusted to get the value from the previously selected server, I suggest to add another method for that that will not be visible via ConfigSupport interface.
*** Issue 39675 has been marked as a duplicate of this issue. ***
the values of context path is copied into the new server specific files created for the new server
verified