Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Maven Plugin error - FileNotFoundException - When reading parameter from file txt on temp path(-pathfile) on Windows #141

Description

@chnavarro

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions