This week's book giveaway is in the JDBC and Relational Databases forum.
We're giving away four copies of Murach's MySQL and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • 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

Problem with a .war file

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to build a webservice that can be invoked. This webservice sits on top of a weblogic server.

I followed the example as laid down in http://e-docs.bea.com/wls/docs81/webserv/implement.html#1061185 Implementing a Web Service By Writing a Java Class


With the example build scripts I created the file.ear which contained a file.war file.
The file.war file contained a file.jar which contains a class doSomething.class.

When I deployed and ran the service I get the following error :

java.lang.NoClassDefFoundError: path/ doSomething.

The file.jar is in the root of the file.war, should it be WEB-INF\classes.

Also do I need to provide a mapping to the file.jar in the web.xml in the file.war.

Running the example there was no C:\bea\weblogic81\samples\server\examples\src\examples\webservices\basic\javaclas I noticed that the file.jar was in the root of the file.war

Thanks for any help

Tony
 
Tony Evans
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used the servicegen Ant task.

Tony
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic