Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 class cast exception in tomcat

 
mahesh shinde
Ranch Hand
Posts: 69
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to web service

My Environment eclipse helios, tomcat 6, axis2 1.5.5, JDK1.6

Axis2 directory installed separately from Tomcat.
I developed apache axis2 webservice using eclipse wtp.But when I deployed it on Tomcat it says it faulty service and throws the class cast exception as follows

[INFO] org.apache.axis2.deployment.DeploymentException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader
[INFO] Deploying Web service: version.aar - file:/D:/Projects/helios/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/TestWS/WEB-INF/services/version.aar
[WARN] No transportReceiver for org.apache.axis2.transport.http.AxisServletListener found. An instance for HTTP will be configured automatically. Please update your axis2.xml file!


If anyboby have solution please suggest me
thanks
mahesh
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe, you need to use the version of axis that is compatible with Tomcat and JDK. ;)
 
shvetha prabhu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ran into the same problem. Installed the new Axis 1.6.0 and the problem went away. You can try the same.
 
Maria Anjum
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I gote the same problem. cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader

How can i download 1.6.0 only documentation is available.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic