File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes wsgen command line problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "wsgen command line problem" Watch "wsgen command line problem" New topic
Author

wsgen command line problem

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 65
I'm using wsgen to generate a web service on an established system.
We are currently upgrading our java version and run across a problem.

We can no longer run wsgen because of the size of the command-line required to run it on a windows system. This is because the system includes many libraries, and moving java versions has introduced more.

The end result is a command line over 11000 characters long, which is too long for the windows OS.

How can I reduce this to a usable size?

I'm putting the libraries in a directory with a short path, but it's not enough.

I could theoretically put all the libraries into one megalibrary with various bits of code, but it makes our whole development environment less intuitive to use, and may cause other problems.

Any ideas?

John
James Boswell
Ranch Hand

Joined: Nov 09, 2011
Posts: 657
    
    2

John

I would always use Maven for such a task:

http://mojo.codehaus.org/jaxws-maven-plugin/wsgen-mojo.html
John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 65
But that would still end up calling wsgen underneath, wouldn't it?
James Boswell
Ranch Hand

Joined: Nov 09, 2011
Posts: 657
    
    2

Yes John but Maven will handle your command line issues for you.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: wsgen command line problem
 
Similar Threads
Building with ant from eclipse
executable programs!?
Microsoft Under Fire
log file for catalina/tomcat
package javax.jws does not exist error on unix