• 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

Need a simple to follow example for building a web service

 
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 a simple example of how to build a webservice for the weblogic environment using a odinary class as the example.

The weblogic example given in C:\bea\weblogic81\samples\server\examples\src\examples\webservices\basic\javaclass\package-summary.html

is wrong in that it uses the servicegen WebLogic Ant task that automatically generates:

a client JAR file in a waf file that is not under web-inf/lib/ and so causing a NoClassDefFoundError.

So it looks as if I will need to create the webservice by hand , but do not have much experince in this fiels.

Thanks for any help

Tony
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can find some step-by-step tutorials linked in the Web Servicces FAQ. Those are not Weblogic-specific, though.

But I'm confused over what you write: The client jar file wouldn't go into the WEB-INF/lib directory; it can be whereever the client is installed. It's strange that it is inside a war file, though. But if the only problem is a NoClassDefFoundError, it shouldn't be too hard to take care of that by rearranging the classes, no?
 
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
Thanks for replying, I am afraid that I got confused, Monday morning and not understanding the example properly, the client jar which contained the calling stubs was not needed in the war file, but was needed in the ear with the program calling the web service. This has now been sorted out. Thansk again

Tony
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic