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 27969 - Can't user Tomcat plugin with Java WSDP
Summary: Can't user Tomcat plugin with Java WSDP
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-11 23:10 UTC by sbodoff
Modified: 2006-06-05 00:51 UTC (History)
2 users (show)

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 sbodoff 2002-10-11 23:10:14 UTC
I have been experimenting with using Sun One
Studio and the Tomcat plugin. I have been able to
add and execute Tomcat 4.1.7. However, when I try
to do the same with JWSDP,
I'm not able to run the server.  Here's the error
returned when I try to run JWSDP:

Fri Jul 26 11:51:22 PDT 2002:
java.net.UnknownHostException:
jwsdp-services
java.net.UnknownHostException: jwsdp-services
     at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:143)
       at java.net.Socket.connect(Socket.java:425)
       at java.net.Socket.connect(Socket.java:375)
       at java.net.Socket.<init>(Socket.java:290)
       at java.net.Socket.<init>(Socket.java:118)

It appears that that the plugin is interpreting
host entries in server.xml as a real hosts. JWSDP
has two "hosts": jwsdp-services:8081 and under
that the jaxm webapps and localhost:8080 and under
that all the example webapps. When a server is
started up, a web page is opened to the first
"host". Since the jwsdp-services host doesn't
exist, the error is returned. Since a vanilla
Tomcat installation doesn't have multiple host
entries in server.xml. the problem doesn't occur.
Comment 1 akemr 2003-02-04 09:47:09 UTC
I was able to reproduce it on current Nevada build and JWSDP 1_0_01
Comment 2 Milan Kuchtiak 2003-03-03 12:06:31 UTC
I tried to reproduce the bug on the latest development 
build.

The scenario 1 :
- mount the JWSDP101 as an external installation (minimum 
ide configuration)
- on the installation node invoke the "Start Server" option

The server is being started and if I try to invoke 
http://localhost:8080 - index.html is loded into browser.

The scenario 2 :
- mount the JWSDP101 as an external installation (minimum 
ide configuration)
- set either the jwsdp-services:8081 or the localhost:8080 
host/port as the default server instance
- execute a web module with the default web server instance

Both scenarios run without dificulties. I tried to use 
both - the nevada internal JWSDP and the JWSDP1.0.1 
external installations. 
Comment 3 sbodoff 2003-03-05 21:56:40 UTC
Using the NetBeans 3.5 development build, I found a problem when
trying to use the latest release of Java WSDP 1.1:

http://webwork.sfbay.sun.com/webservices/download.html

First, the plugin requires there to be a /temp subdirectory, which
Java WSDP 1.1 does not create. After I manually create the
subdirectory I am able to install the server, but when I try to start
it, I get the error:

C:\j2sdk1.4.0_03\jre\bin\java -classpath
"C:\sbodoff\jwsdp-1.1\bin\bootstrap.jar";"C:\j2sdk1.4.0_03\lib\tools.jar"
-Dcatalina.home="C:\sbodoff\jwsdp-1.1"
-Dcatalina.base="C:\sbodoff\jwsdp-1.1"
org.apache.catalina.startup.Bootstrap "start" 
Exception during startup processing
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
        at org.apache.commons.digester.Digester.<init>(Digester.java:310)
        at
org.apache.catalina.startup.Catalina.createStartDigester(Catalina.java:279)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:440)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:399)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        ... 5 more
Comment 4 Milan Kuchtiak 2003-03-10 14:06:33 UTC
Thank You for additional information.

Yes, the JWSDP1.1 uses the different start-up than JWSDP1.0.
Comment 5 Milan Kuchtiak 2004-02-06 10:55:37 UTC
This issue is not relevant for 3.6.
Comment 6 Milan Kuchtiak 2004-08-11 13:07:58 UTC
In 3.6 - the Tommcat plugin was working with JWSDP.
Comment 7 Jaroslav Pospisil 2006-02-28 11:25:07 UTC
VERIFIED