File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss tutorial wscompile issue

 
Aodhan Hoffman
Ranch Hand
Posts: 35
Java MyEclipse IDE Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Aodhan Hoffman
Ranch Hand
Posts: 35
Java MyEclipse IDE Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic