• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBoss tutorial wscompile issue

 
Ranch Hand
Posts: 35
MyEclipse IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
MyEclipse IDE Redhat Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic