File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Packaging the java class components

Krithi Raghu
Greenhorn

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"
contextURI="ListService"
keepGenerated="True">
<service javaClassComponents="webservice.ListService"
targetNamespace="http://www.bea.com/webservices/basic/"
serviceName="ListService"
serviceURI="/ListService"
typeMappingFile="${source}/requestTypeMapping.txt"
generateTypes="True"
expandMethods="True"
style="rpc" >
</service>
<classpath refid="ossclasspath"/>
</servicegen>
</target>

Thanks in advance
Krithi Raghu
Greenhorn

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"
overwrite="false"
filesToEar="${source}/oss_jar/service.jar"/>
 
I agree. Here's the link: http://aspose.com/file-tools
 
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