wood burning stoves*
The moose likes Web Services and the fly likes JBoss tutorial wscompile issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JBoss tutorial wscompile issue" Watch "JBoss tutorial wscompile issue" New topic
Author

JBoss tutorial wscompile issue

Aodhan Hoffman
Ranch Hand

Joined: May 21, 2004
Posts: 35

I'm working through the JBoss ws tutorial and right off the bat they recommend building the AS service descriptors using Sun's wscompile app. Fine. I do so from the directory the code resides in, and I get a ClassNotFound error.







The instruction in the tutorial ( take from the JBoss 4.0 Official Guide ) is simply:
wscompile -classpath <classpath> -gen:server -f:rpcliteral -mapping mapping.xml config.xml
This is what I did.

I tried performing the operation from the parent directory ( specifying the relative path to the config.xml file ), but got the same error.

Any input would be appreciated. Thanks!


-------<br /> Aodhan H - Ad Astra Per Aspera<br /> -------
Aodhan Hoffman
Ranch Hand

Joined: May 21, 2004
Posts: 35

Continuing to try different paths:

From this dir,

C:\jboss_examples\examples\src\main>tree
C:.
└───org
└───jboss
├───chap12
│ ├───hello

C:\jboss_examples\examples\src\main>ls org\jboss\chap12\hello
Hello.java HelloServlet.java wsdl
HelloBean.java config.xml

From here I tried again, specifying the whole path to the config file and including the whole path in my specified CP.

C:\jboss_examples\examples\src\main>C:\Sun\jwsdp-2.0\jaxrpc\bin\wscompile -classpath c:\jboss_examples\examples\src\main\org\jboss\chap12\hello -gen:server -f:rpcliteral -mapping mapping.xml org\jboss\chap12\hello\config.xml

error: RmiModeler error: java.lang.ClassNotFoundException: org$jboss$chap12$hello$Hello

Meang Akira Tanaka
Greenhorn

Joined: Jul 20, 2008
Posts: 1
I did the same mistake but i figured it out. The classpath should be to the location where the .class files are not the .java files


Hope that helps

br

Meang
Rex Hindleker
Greenhorn

Joined: Aug 04, 2008
Posts: 6
Hello,

I would advice you to use Eclipse and create the build using build.xml and not writing a dos command syntax.

If you want, I can post the build.xml file here for your help.


Regards,<br /> <br />Seetesh Hindlekar<br />Technical Architect
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss tutorial wscompile issue
 
Similar Threads
Java2WSDL in AXIS 1.4 shows shows java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
Error running wsdl2java tool
NullPointerException when calling a web service
Please Help: Can't generate wsdl and mapping file
Axis2 java2wsdl