Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to read wsit-client.xml #437

Open
gronblom opened this issue Sep 5, 2023 · 0 comments
Open

Failure to read wsit-client.xml #437

gronblom opened this issue Sep 5, 2023 · 0 comments

Comments

@gronblom
Copy link

gronblom commented Sep 5, 2023

After updating a project from Java 7 to 11 (and all libraries to newest versions) the reading of wsit-client.xml does not work anymore.

Seemingly, the path gotten from the Tomcat 10 container contains hash chars that are escaped, which causes the path to be cut.

file:/C:/opt/apache-tomcat-10.1.10/webapps/myapp%23%23001.003.0460/WEB-INF/classes/META-INF/wsit-client.xml
=>
Caused by: java.io.FileNotFoundException: C:\opt\apache-tomcat-10.1.10\webapps\myapp

Caused by: com.sun.xml.ws.policy.PolicyException: WSP5001: Failed to process WSIT config file located at URI "file:/C:/opt/apache-tomcat-10.1.10/webapps/myapp%23%23001.003.0460/WEB-INF/classes/META-INF/wsit-client.xml" due to an exception.
	at com.sun.xml.ws.policy.parser.PolicyConfigParser.parseModel(PolicyConfigParser.java:204)
	at com.sun.xml.ws.policy.parser.PolicyConfigParser.parseModel(PolicyConfigParser.java:160)
	at com.sun.xml.ws.policy.parser.PolicyConfigParser.parse(PolicyConfigParser.java:78)
	at com.sun.xml.ws.policy.parser.WsitPolicyResolver.resolve(WsitPolicyResolver.java:95)
	... 65 common frames omitted
Caused by: java.io.FileNotFoundException: C:\opt\apache-tomcat-10.1.10\webapps\myapp (The system cannot find the file specified)
	at java.base/java.io.FileInputStream.open0(Native Method)
	at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
	at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111)
	at java.base/sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:86)
	at java.base/sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:189)
	at java.base/java.net.URL.openStream(URL.java:1161)
	at com.sun.xml.ws.policy.parser.PolicyResourceLoader$PolicyEntityResolver.resolveEntity(PolicyResourceLoader.java:102)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:395)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseImport(RuntimeWSDLParser.java:807)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:436)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:300)
	at com.sun.xml.ws.api.model.wsdl.WSDLModel$WSDLParser.parse(WSDLModel.java:170)
	at com.sun.xml.ws.policy.parser.PolicyResourceLoader.getWsdlModel(PolicyResourceLoader.java:57)
	at com.sun.xml.ws.policy.parser.PolicyConfigParser.parseModel(PolicyConfigParser.java:198)
	... 68 common frames omitted
13:47:36.961 [http-nio-8080-exec-114] WARN  f.g.h.HibernateSessionRequestFilter - rgr0100 [1_39] - Trying to rollback database transaction after exception - WSP5004: Unexpected error occured while processing client configuration file.
13:47:36.979 [http-nio-8080-exec-114] WARN  f.g.w.f.JsonErrorReportingOutputFormat -  [_] - WSP5004: Unexpected error occured while processing client configuration file.
jakarta.xml.ws.WebServiceException: WSP5004: Unexpected error occured while processing client configuration file.
	at com.sun.xml.ws.policy.parser.WsitPolicyResolver.resolve(WsitPolicyResolver.java:106)
	at com.sun.xml.ws.policy.jaxws.PolicyWSDLParserExtension.postFinished(PolicyWSDLParserExtension.java:935)
	at com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.postFinished(DelegatingParserExtension.java:194)
	at com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.postFinished(WSDLParserExtensionFacade.java:339)
	at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:222)
	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:336)
	at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:293)
	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)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant