This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241246 - Long paths cause wsimport to fail on Maven projects
Summary: Long paths cause wsimport to fail on Maven projects
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-31 18:28 UTC by DHAnderson
Modified: 2016-07-07 09:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DHAnderson 2014-01-31 18:28:43 UTC
I have a Maven test project that I created on d:\Projects\Test and added a Web Service client.  The wsimport and code generation worked.

I create another Maven test project under a long path name and the wsimport fails when adding the same Web service client.

The long path is:
D:\Projects\Java Applications\PCI\Branches\Development\mavenproject1

The wsimport fails trying to access a folder that it successfully created:

(D:/Projects/Java%20Applications/PCI/Branches/Development/mavenproject1/Applications/PCI/Branches/Development/mavenproject1/target/generated-sources/jaxws-wsimport



Here is the output of the build

cd D:\Projects\Java Applications\PCI\Branches\Development\mavenproject1; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.7.0_45" cmd /c "\"\"D:\\Users\\DHAnderson.IRSNet\\AppData\\Roaming\\NetBeans\\7.4\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=D:\\Users\\DHAnderson.IRSNet\\AppData\\Roaming\\NetBeans\\7.4\\maven-nblib\\netbeans-eventspy.jar compile\""
Scanning for projects...
                                                                        
------------------------------------------------------------------------
Building mavenproject1 2.0-SNAPSHOT
------------------------------------------------------------------------

--- jaxws-maven-plugin:2.3:wsimport (wsimport-generate-ACHLogService.asmx) @ mavenproject1 ---
cannot find file for junit:junit
Processing: file:/D:/Projects/Java%20Applications/PCI/Branches/Development/mavenproject1/src/wsdl/www.shopouraisles.com/webservices/achlogservice/ACHLogService.asmx.wsdl
jaxws:wsimport args: [-keep, -s, D:\Projects\Java Applications\PCI\Branches\Development\mavenproject1\target\generated-sources\jaxws-wsimport, -d, D:\Projects\Java Applications\PCI\Branches\Development\mavenproject1\target\classes, -verbose, -encoding, UTF-8, -extension, -Xnocompile, -p, com.htg.mavenproject1, -catalog, D:\Projects\Java Applications\PCI\Branches\Development\mavenproject1\src\jax-ws-catalog.xml, -wsdllocation, http://www.shopouraisles.com/webservices/achlogservice/ACHLogService.asmx?wsdl, "file:/D:/Projects/Java%20Applications/PCI/Branches/Development/mavenproject1/src/wsdl/www.shopouraisles.com/webservices/achlogservice/ACHLogService.asmx.wsdl"]
parsing WSDL...


file:/D:/Projects/Java%20Applications/PCI/Branches/Development/mavenproject1/Applications/PCI/Branches/Development/mavenproject1/target/generated-sources/jaxws-wsimport is unreachable


	Failed to parse the WSDL.
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.410s
Finished at: Fri Jan 31 11:56:03 CST 2014
Final Memory: 4M/15M
------------------------------------------------------------------------
Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (wsimport-generate-ACHLogService.asmx) on project mavenproject1: Mojo failed - check output -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Comment 1 DHAnderson 2014-02-10 19:12:31 UTC
I removed the space in the root path of:
 d:\projects\Java Applications\
to 
 d:\projects\JavaApplications\

and wsimport was able to run with out any errors.

So this bug must relate to any regarding wsimport on Maven projects where there is a space in the path to the project.
Comment 2 Martin Balin 2016-07-07 09:54:17 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss