[GLASSFISH-752] Cannot deploy WS created from WSDL that imports another WSDL Created: 21/Jun/06  Updated: 30/Nov/10  Resolved: 19/Jul/06

Status: Resolved
Project: glassfish
Component/s: web_services
Affects Version/s: 9.0pe
Fix Version/s: 9.0peur1_dev

Type: Bug Priority: Blocker
Reporter: mkuchtiak Assignee: vijaysr
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: Linux


Attachments: File EJBModule1.tar     Zip Archive EJBModule1.zip     XML File Foo.wsdl     Java Source File FooImpl.java     XML File FooWrapper.wsdl     XML File schema2.xsd    
Issuezilla Id: 752
Status Whiteboard:

needfix-9.0peur1


 Description   

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

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



 Comments   
Comment by mkuchtiak [ 21/Jun/06 ]

Created an attachment (id=295)
Wrapper WSDL file

Comment by mkuchtiak [ 21/Jun/06 ]

Created an attachment (id=296)
imported wsdl file

Comment by mkuchtiak [ 21/Jun/06 ]

Created an attachment (id=297)
imported schema file

Comment by mkuchtiak [ 21/Jun/06 ]

Created an attachment (id=298)
WS Implementation class

Comment by mkuchtiak [ 21/Jun/06 ]

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

Comment by mkuchtiak [ 21/Jun/06 ]

Created an attachment (id=299)
Entire Netbeans project

Comment by mkuchtiak [ 21/Jun/06 ]

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

Comment by mkuchtiak [ 21/Jun/06 ]

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.

Comment by gfbugbridge [ 26/Jun/06 ]

<BT6443445>

Comment by vijaysr [ 18/Jul/06 ]

reassigned owner

Comment by vijaysr [ 19/Jul/06 ]

Fix checked in GFv2 and UR1b04

Generated at Sun May 03 12:01:23 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.