aspose file tools
The moose likes Web Services and the fly likes Wrapper class on the top of stateless session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Wrapper class on the top of stateless session bean" Watch "Wrapper class on the top of stateless session bean" New topic
Author

Wrapper class on the top of stateless session bean

sudheshna Iyer
Ranch Hand

Joined: Aug 20, 2004
Posts: 66
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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Wrapper class on the top of stateless session bean
 
Similar Threads
Expose EJB as webservice
Servicegen on windows and solaris
Webservices in weblogic 8.1 storing a value and then JSP reading it
No set method found problem in WebLogic 8.1 sp2
Ant servicegen