Issue Details (XML | Word | Printable)

Key: GLASSFISH-752
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: vijaysr
Reporter: mkuchtiak
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Cannot deploy WS created from WSDL that imports another WSDL

Created: 21/Jun/06 02:37 AM   Updated: 30/Nov/10 05:34 PM   Resolved: 19/Jul/06 10:29 AM
Component/s: web_services
Affects Version/s: 9.0pe
Fix Version/s: 9.0peur1_dev

Time Tracking:
Not Specified

File Attachments: 1. File EJBModule1.tar (140 kB) 21/Jun/06 02:54 AM - mkuchtiak
2. Zip Archive EJBModule1.zip (39 kB) 21/Jun/06 02:58 AM - mkuchtiak
3. XML File Foo.wsdl (2 kB) 21/Jun/06 02:40 AM - mkuchtiak
4. Java Source File FooImpl.java (0.8 kB) 21/Jun/06 02:44 AM - mkuchtiak
5. XML File FooWrapper.wsdl (0.7 kB) 21/Jun/06 02:39 AM - mkuchtiak
6. XML File schema2.xsd (1.0 kB) 21/Jun/06 02:42 AM - mkuchtiak

Environment:

Operating System: All
Platform: Linux


Issuezilla Id: 752
Status Whiteboard:

needfix-9.0peur1

Tags:
Participants: gfbugbridge, mkuchtiak and vijaysr


 Description  « Hide

This is possible when WS is generated before deployment (using wsgen).

Seems that GlassFish container is not able to retrieve imported wsdl file.



mkuchtiak added a comment - 21/Jun/06 02:39 AM

Created an attachment (id=295)
Wrapper WSDL file


mkuchtiak added a comment - 21/Jun/06 02:40 AM

Created an attachment (id=296)
imported wsdl file


mkuchtiak added a comment - 21/Jun/06 02:42 AM

Created an attachment (id=297)
imported schema file


mkuchtiak added a comment - 21/Jun/06 02:44 AM

Created an attachment (id=298)
WS Implementation class


mkuchtiak added a comment - 21/Jun/06 02:48 AM

Server log message :
error: failed to parse document at "http://localhost:8080/FooService/Foo.wsdl":
java.io.FileNotFoundException: http://localhost:8080/FooService/Foo.wsdl|#]
Invoking wsimport with http://localhost:8080/FooService/FooImpl?WSDL
wsimport successful

Tester Page (http://localhost:8080/FooService/FooImpl?Tester) output :

Exceptions details : java.lang.RuntimeException: Service Class not generated as
expected
javax.servlet.ServletException: java.lang.RuntimeException: Service Class not
generated as expected at
com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:545)
at
com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doGet(WebServiceTesterServlet.java:157)
at
com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:103)
at
com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at
com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231) at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: java.lang.RuntimeException: Service Class not generated as expected
at
com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.initializePort(WebServiceTesterServlet.java:520)
... 24 more


mkuchtiak added a comment - 21/Jun/06 02:54 AM

Created an attachment (id=299)
Entire Netbeans project


mkuchtiak added a comment - 21/Jun/06 02:58 AM

Created an attachment (id=300)
Netbeans project as zip file


mkuchtiak added a comment - 21/Jun/06 06:04 AM

This is an important feature.
In WS books, there is a recommedation to use wsdl:import and to keep wsdl
elements in different files to obtain more flexibility.

This is also a blocker for Netbeans WS Support.


gfbugbridge added a comment - 26/Jun/06 09:39 AM

<BT6443445>


vijaysr added a comment - 18/Jul/06 04:30 PM

reassigned owner


vijaysr added a comment - 19/Jul/06 10:29 AM

Fix checked in GFv2 and UR1b04