It's not a secret anymore!
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JBoss tutorial wscompile issue" Watch "JBoss tutorial wscompile issue" New topic

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,

│ ├───hello

C:\jboss_examples\examples\src\main>ls org\jboss\chap12\hello wsdl 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

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


Rex Hindleker

Joined: Aug 04, 2008
Posts: 6

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:
subject: JBoss tutorial wscompile issue
It's not a secret anymore!