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!