Win a copy of Event Streams in Action this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Wrapper class on the top of stateless session bean

Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • 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

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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!