• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic