Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Axis2 class cast exception in tomcat 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 "Axis2 class cast exception in tomcat" Watch "Axis2 class cast exception in tomcat" New topic

Axis2 class cast exception in tomcat

mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

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
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

I believe, you need to use the version of axis that is compatible with Tomcat and JDK. ;)

Not many get the right opportunity !
shvetha prabhu

Joined: Jun 27, 2011
Posts: 1
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

Joined: May 08, 2011
Posts: 7
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.
I agree. Here's the link:
subject: Axis2 class cast exception in tomcat
Similar Threads
Axis2-1.4 help
Web Service Exception!!
Tomcat Duplicate Deploy
Axis2-Redploying faulty service
Axis2 and Eclipse