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 199102

Summary: Tomcat installed by installer cannot be registered
Product: serverplugins Reporter: Jiri Skrivanek <jskrivanek>
Component: TomcatAssignee: Petr Hejl <phejl>
Status: VERIFIED FIXED    
Severity: normal CC: mmirilovic, pjiricka
Priority: P1 Keywords: SPACE_IN_PATH
Version: 7.0.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Stack trace from add server instance wizard.
sample test

Description Jiri Skrivanek 2011-06-02 09:46:20 UTC
Created attachment 108668 [details]
Stack trace from add server instance wizard.

If Tomcat 7.0.14 is installed by installer (either NetBeans installer or installer downloaded from http://mirror.atlanticmetro.net/apache/tomcat/tomcat-7/v7.0.14/bin/apache-tomcat-7.0.14.exe), it is not possible register its instance to IDE and attached exception is always thrown. If I download zip distribution of Tomcat 7.0.14, it works.
Comment 1 Petr Hejl 2011-06-02 12:10:00 UTC
Created attachment 108674 [details]
sample test

For some reason code inside tomcat is throwing exception. The code is simple so it might be something in Windows preventing access. Please try to run the test:

java -cp TestTomcat.jar;C:\path\to\tomcat\lib\catalina.jar;C:\path\to\tomcat\lib\tomcat-coyote.jar testtomcat.TestTomcat

I know how to resolve CNFE, but there might be something wrong anyway.

I'm not able to reproduce in XP.
Comment 2 Petr Hejl 2011-06-02 13:47:25 UTC
Fixed in web-main 8af5cd163906.

The root cause was usage of File.toURL().
Comment 3 Petr Hejl 2011-06-02 13:59:21 UTC
Transplanted to 701 25578f30e02a.
Comment 4 Quality Engineering 2011-06-03 18:16:51 UTC
Integrated into 'main-golden', will be available in build *201106031000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8af5cd163906
User: phejl@netbeans.org
Log: #199102 Tomcat installed by installer cannot be registered
Comment 5 Jiri Skrivanek 2011-06-06 08:17:58 UTC
Verified.
Product Version: NetBeans IDE 7.0.1 Dev (Build 201106052101)
Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b14
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)