File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ClassNotFoundException

 
Sathiam Sriram
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Axis 1.1 and Tomcat 4.1 to develop my Web Services.
The class I have implemented returns an Array of Java Beans. I used Java2WSDL utility to create the WSDL and then, WSDL2Jave utility to get the deploy.wsdd and other server-side implementation classes and client stub.
I compiled all the classes above and put the compiled classes in:
C:\Tomcat4.1.30\webapps\axis\WEB-INF\classes\<My_APP>.
While trying to deploy my WSDD using AdminClient, I get the following error (a part of the errror is shown here):
#############################################
- Unable to deploy typemapping: {http://localhost/nmita/services/NMITAService}Ar
rayOf_tns1_ListGivenFamily
java.lang.ClassNotFoundException: ListGivenFamily
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1443)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1289)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:171)
at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:112)
at org.apache.axis.deployment.wsdd.WSDDTypeMapping.getLanguageSpecificTy
pe(WSDDTypeMapping.java:221)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer
vice.java:549)
at org.apache.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:
267)
at org.apache.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:2
47)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.
java:243)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java
:118)
at org.apache.axis.utils.Admin.processWSDD(Admin.java:150)
at org.apache.axis.utils.Admin.process(Admin.java:230)
at org.apache.axis.utils.Admin.AdminService(Admin.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.MsgProvider.processMessage(MsgProvider
.java:147)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:
333)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481
)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:85
4)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas
e.java:339)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
.....
########################

Could someone please let me know where I am going wrong?

Thanks in advance.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Sairam.

>- Unable to deploy typemapping: {http://localhost/nmita/services/NMITAService}Ar
rayOf_tns1_ListGivenFamily
>java.lang.ClassNotFoundException: ListGivenFamily

Its shows that your adminclient is not able to locate ListGivenFamily class, make sure that you have declared correct package name for the class ListGivenFamily for the attribute type under typeMapping element.
 
Sriram Sathiamoorthy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Balaji,
I had previously registered as Sathiam Sriram, but unfortunately forgotten my password and did not provide a contact email . So, I had to register again as a new user.
Anyway, thank you very much for the help. I will try out your suggestion.
Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic