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 39652 - Empty Context Path and exception after switching default web server
Summary: Empty Context Path and exception after switching default web server
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
: 39675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-05 15:17 UTC by L Martinek
Modified: 2004-02-26 10:34 UTC (History)
0 users

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 L Martinek 2004-02-05 15:17:37 UTC
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)
Comment 1 Petr Jiricka 2004-02-09 09:59:30 UTC
Addigning to Pavel.
Comment 2 Pavel Buzek 2004-02-13 23:33:39 UTC
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.
Comment 3 Pavel Buzek 2004-02-17 20:47:56 UTC
*** Issue 39675 has been marked as a duplicate of this issue. ***
Comment 4 Pavel Buzek 2004-02-24 21:49:51 UTC
the values of context path is copied into the new server specific
files created for the new server
Comment 5 L Martinek 2004-02-26 10:34:44 UTC
verified