File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Packaging the java class components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Packaging the java class components" Watch "Packaging the java class components" New topic

Packaging the java class components

Krithi Raghu

Joined: Jan 15, 2008
Posts: 23
Hi everyone...
I am trying to develop a web service in weblogic. I have prepared a build (listService.ear) to deploy on the server. In my ear I find that only my service class is included and all the other classes are missing. Hence I am getting ClassNotFound exception. Could you please help me in resolving this.

My servicegen ant task is as below...

<target name="ear">
<servicegen destEar="listService.ear"
<service javaClassComponents="webservice.ListService"
style="rpc" >
<classpath refid="ossclasspath"/>

Thanks in advance
Krithi Raghu

Joined: Jan 15, 2008
Posts: 23
I tried using the <wspackage>.. Now my class files are there in the ear but i get class not found exception. Could you please tell me where exactly am I going wrong?

<wspackage output="${source}/listService.ear"
I agree. Here's the link:
subject: Packaging the java class components
Similar Threads
how do I set the port when using servicegen to create a wsdl file
Problem in ServiceGen task
Expose EJB as webservice
Using Weblogic's servicegen ant task
problem in web services