Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] webservices13 test failure

On 9/1/20 7:04 PM, Steve Millidge (Payara) wrote:
All,

I am debugging the final class of failure for webservices13 and webservices12 . Basically I have tracked down that the WebService instance when created is looking for the WSDL file in the wrong place within the exploded deployment in the GlassFish domain.

e.g. applications/WSWSRefLookupClnt2/WEB-INF/wsdl/EchoService.wsdl

however as the webservice is packaged in a war in an ear the actual location is applications/WSWSRefLookupClnt2/WSWSRefLookupClnt2_web_war/WEB-INF/wsdl/EchoService.wsdl

Does anybody know what change could have introduced this?

removal of jaxrpc


Alternatively
does anybody know where the path is generated?

Don't remember from the top of my head but I'd start by putting breakpoints into WebServicesDeployer[1]. Alternatively, probably wrong guess but just in case, into processAnnotation method of WebServiceHandler[2]/WebServiceRefHandler[3] and *wsdl* methods in ServiceReferenceDescriptor[4]

thanks,
--lukas

[1]: https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/WebServicesDeployer.java
[2]:https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/webservices/connector/src/main/java/org/glassfish/webservices/connector/annotation/handlers/WebServiceHandler.java
[3]:https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/webservices/connector/src/main/java/org/glassfish/webservices/connector/annotation/handlers/WebServiceRefHandler.java
[4]: https://github.com/eclipse-ee4j/glassfish/blob/master/appserver/deployment/dol/src/main/java/com/sun/enterprise/deployment/ServiceReferenceDescriptor.java


I will continue debugging!

Full Exception below for reference

Caused by: jakarta.xml.ws.WebServiceException: Failed to access the WSDL at: file:/opt/PayaraDev/EE4J/tck-bundle/jakartaeetck/vi/glassfish6/glassfish/domains/domain1/applications/WSWSRefLookupClnt2/WEB-INF/wsdl/EchoService.wsdl. It failed with:

/opt/PayaraDev/EE4J/tck-bundle/jakartaeetck/vi/glassfish6/glassfish/domains/domain1/applications/WSWSRefLookupClnt2/WEB-INF/wsdl/EchoService.wsdl (No such file or directory).

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:235)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:216)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:179)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:148)

                at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:334)

                at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:292)

                at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:201)

                at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:182)

                at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:178)

                at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:89)

                 at jakarta.xml.ws.Service.<init>(Service.java:82)

                at com.sun.ts.tests.webservices13.servlet.WSWebServiceRefLookup.client.EchoService.<init>(EchoService.java:54)

                 ... 50 more

Caused by: java.io.FileNotFoundException: /opt/PayaraDev/EE4J/tck-bundle/jakartaeetck/vi/glassfish6/glassfish/domains/domain1/applications/WSWSRefLookupClnt2/WEB-INF/wsdl/EchoService.wsdl (No such file or directory)

                 at java.io.FileInputStream.open0(Native Method)

                 at java.io.FileInputStream.open(FileInputStream.java:195)

                 at java.io.FileInputStream.<init>(FileInputStream.java:138)

                 at java.io.FileInputStream.<init>(FileInputStream.java:93)

                at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)

                at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)

                 at java.net.URL.openStream(URL.java:1068)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.createReader(RuntimeWSDLParser.java:969)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(RuntimeWSDLParser.java:370)

                at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:201)

                 ... 60 more


_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/glassfish-dev__;!!GqivPVa7Brio!LzoOFfH7mkIOtVOyanvPtq3dY6WYZc_Ync9b3N2iuY7rgXQByxBgJML2urfgqiWpA0Q$



Back to the top