• 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

Wrapper class on the top of stateless session bean

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a stateless session bean which has the methods with Collection as input and output parameters.

So I wrote a wrapper class on the top of this stateless session bean, which calls this stateless
session bean methods and converts the collection params to string[] data types(JAVA-RPC valid datatypes) and
returns to the client.

Now I converted this wrapper class into Webservice. I have used Weblogic application server.
I used:
servicegen ant task to convert java class to web service.

I deployed
1.stateless session bean
2.Wrapper web service class into Weblogic App server 8.1(sp3)

When I tried to access this wrapper WS, I am getting the following exception. This is because my wrapper class is not
able to find the stateless session bean.

javax.servlet.ServletException: Web Service init() failed: java.lang.NoClassDefFoundError: org/ieee/serviceadvisor/Servi
ceAdvisorHome



My question:

Since my wrapper webservice class uses stateless session bean, my "ServiceAdvisorWS.ear" webservice ear should include
stateless session bean jar "service_advisor.jar" while generating the webservice using "servicegen".

How do I include dependency jar files while generating webservice ear?


Also do anybody has any examples of wrapper classes for ejbs? or any good site on this topic?

Thank you very much!
 
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic