aspose 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
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"/>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Packaging the java class components