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 143672 - V2:Sample WebService Caculator does not work with GF V2 server
Summary: V2:Sample WebService Caculator does not work with GF V2 server
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: Sun All
: P4 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 21:34 UTC by davisn
Modified: 2009-02-19 23:28 UTC (History)
1 user (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 davisn 2008-08-12 21:34:30 UTC
-This is a regression bug for Netbean 6.5 since the sample was verified as working with Netbean 6.1 for Glassfish V2 server
-I have opened another the bug about this Caculator sample but against Glassfish V3 prelude server. If the problem is
caused from the same root, please close this bug. Bug is opened for the record.

Steps to Reproduce:
1. Install Netbean 6.5 Trunk (08/12/2008) build
2. Create a new project by selecting Sample > Web Services > Caculator
3. Select to run CaculatorApp 
Note:
    Status 404 when select http://localhost:8080/CalculatorWSService?wsdl link
4. Select to run CaculatorClientApp > click "Get Result" button at the Caculator Service page
BUG:
    HTTP Status 404 - Servlet ClientServlet is not available
Comment 1 Roderico Cruz 2008-09-22 03:02:46 UTC
When you run the web service it displays the endpoint page from JAXWS/Glassfish. Item 3 is a bug in JAXWS. I have opened
the bug https://jax-ws.dev.java.net/issues/show_bug.cgi?id=623 to cover this. Item 4 cannot be reproduced. I tried this
using the Test Web Service menu on the web service node.
The test web service menu works so I am downgrading this to P4.
Comment 2 Milan Kuchtiak 2008-11-28 17:09:35 UTC
I am not really sure what this issue is about.

Calculator Sample works fine with GlassFish V2.
When you change server to GlassFish V3 prelude, JAx-WS 2.1 library must be added to project classpath :

When I did that, server complains on dummy.txt file located under WEB-INF/wsdl :

SEVERE: WSSERVLET11: failed to parse runtime descriptor: exception during WSDL parsing:
jndi:/server/CalculatorApp/WEB-INF/wsdl/dummy.txt
com.sun.xml.ws.server.ServerRtException: exception during WSDL parsing: jndi:/server/CalculatorApp/WEB-INF/wsdl/dummy.txt
        at com.sun.xml.ws.server.SDDocumentImpl.create(SDDocumentImpl.java:162)
        at com.sun.xml.ws.server.EndpointFactory.categoriseMetadata(EndpointFactory.java:439)
        at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:164)
        at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
        at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
        at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
        at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4798)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5498)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:456)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:922)

Martin, why dummy.txt file is there ?
It prevents WSServletContextListener to register WS on GlassFish V3 prelude (without Metro)
Comment 3 Martin Grebac 2008-12-03 15:54:33 UTC
I removed the dummy.txt files - that's a relict from times when we had it stored in cvs and had to preserve the empty
directory. Calc. sample works fine for me on v2 as well.