You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
Trying to run maven plugin I get a FileNotFoundException -When reading parameter from file txt on temp path(-pathfile) on Windows
`
cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_45\jre\bin\java.exe" -Djavax.xml.accessExternalDTD=all -Djavax.xml.accessExternalSchema=all "-Xbootclasspath/p:C:\Users\Tester User.m2\repository\javax\annotation\javax.annotation-api\1.2-b03\javax.annotation-api-1.2-b03.jar;C:\Users\Tester User.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar;C:\Users\Tester User.m2\repository\javax\xml\ws\jaxws-api\2.2.9\jaxws-api-2.2.9.jar;C:\Users\Tester User.m2\repository\javax\xml\soap\saaj-api\1.3.4\saaj-api-1.3.4.jar;C:\Users\Tester User.m2\repository\javax\xml\bind\jaxb-api\2.2.7\jaxb-api-2.2.7.jar;C:\Users\Tester User.m2\repository\javax\xml\webservices-api\1.4\webservices-api-1.4.jar" -cp "/C:/Users/Tester User/.m2/repository/org/jvnet/jax-ws-commons/jaxws-maven-plugin/2.3/jaxws-maven-plugin-2.3.jar" org.jvnet.jax_ws_commons.jaxws.Invoker com.sun.tools.ws.wscompile.WsimportTool -pathfile C:\Users\Tester User\AppData\Local\Temp\jax-ws-mvn-plugin-cp5226347961693906680.txt -keep -s C:\workspace\Accounting_Integration\testingsrv-gp\target\generated-sources\jaxws-wsimport -d C:\workspace\Accounting_Integration\testingsrv-gp\target\classes -verbose -encoding UTF-8 -extension -Xnocompile -p com.tester.eai.testingsrv -catalog C:\workspace\Accounting_Integration\testingsrv-gp\src\jax-ws-catalog.xml -wsdllocation C:\workspace\Accounting_Integration\testingsrv-gp/src/wsdl -target 2.0 -XadditionalHeaders -b C:\workspace\Accounting_Integration\testingsrv-gp\src\bindings-default.xml file:/C:/workspace/Accounting_Integration/testingsrv-gp/src/wsdl/sqltest01_20443/DLCWS/GPConnect.svc.wsdl"
Exception in thread "main" java.io.FileNotFoundException: C:\Users\Tester (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:48)
`
Note the space in the User path "C:\Users\Tester User"
Please scape the path of the temp folder on the Invoker class.
if ("-pathfile".equals(args[1])) {
Properties p = new Properties();
File pathFile = new File(args[2]);
pathFile.deleteOnExit();
p.load(new FileInputStream(pathFile));
c = p.getProperty("cp");
idx = 3;
}
Note: Is working on Linux.
The text was updated successfully, but these errors were encountered:
chnavarro
changed the title
Maven Plugin error - FileNotFoundException - When reading file txt file from '-pathfile' parameter on Windows
Maven Plugin error - FileNotFoundException - When reading parameter from file txt on temp path(-pathfile) on Windows
Oct 15, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Trying to run maven plugin I get a FileNotFoundException -When reading parameter from file txt on temp path(-pathfile) on Windows
`
cmd.exe /X /C ""C:\Program Files\Java\jdk1.6.0_45\jre\bin\java.exe" -Djavax.xml.accessExternalDTD=all -Djavax.xml.accessExternalSchema=all "-Xbootclasspath/p:C:\Users\Tester User.m2\repository\javax\annotation\javax.annotation-api\1.2-b03\javax.annotation-api-1.2-b03.jar;C:\Users\Tester User.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar;C:\Users\Tester User.m2\repository\javax\xml\ws\jaxws-api\2.2.9\jaxws-api-2.2.9.jar;C:\Users\Tester User.m2\repository\javax\xml\soap\saaj-api\1.3.4\saaj-api-1.3.4.jar;C:\Users\Tester User.m2\repository\javax\xml\bind\jaxb-api\2.2.7\jaxb-api-2.2.7.jar;C:\Users\Tester User.m2\repository\javax\xml\webservices-api\1.4\webservices-api-1.4.jar" -cp "/C:/Users/Tester User/.m2/repository/org/jvnet/jax-ws-commons/jaxws-maven-plugin/2.3/jaxws-maven-plugin-2.3.jar" org.jvnet.jax_ws_commons.jaxws.Invoker com.sun.tools.ws.wscompile.WsimportTool -pathfile C:\Users\Tester User\AppData\Local\Temp\jax-ws-mvn-plugin-cp5226347961693906680.txt -keep -s C:\workspace\Accounting_Integration\testingsrv-gp\target\generated-sources\jaxws-wsimport -d C:\workspace\Accounting_Integration\testingsrv-gp\target\classes -verbose -encoding UTF-8 -extension -Xnocompile -p com.tester.eai.testingsrv -catalog C:\workspace\Accounting_Integration\testingsrv-gp\src\jax-ws-catalog.xml -wsdllocation C:\workspace\Accounting_Integration\testingsrv-gp/src/wsdl -target 2.0 -XadditionalHeaders -b C:\workspace\Accounting_Integration\testingsrv-gp\src\bindings-default.xml file:/C:/workspace/Accounting_Integration/testingsrv-gp/src/wsdl/sqltest01_20443/DLCWS/GPConnect.svc.wsdl"
Exception in thread "main" java.io.FileNotFoundException: C:\Users\Tester (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:120)
at org.jvnet.jax_ws_commons.jaxws.Invoker.main(Invoker.java:48)
`
Note the space in the User path "C:\Users\Tester User"
Please scape the path of the temp folder on the Invoker class.
Note: Is working on Linux.
The text was updated successfully, but these errors were encountered: