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 Axis2 class cast exception in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 class cast exception in tomcat" Watch "Axis2 class cast exception in tomcat" New topic
Author

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
thanks
mahesh
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. ;)


S.D. MADHAN
Not many get the right opportunity !
shvetha prabhu
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Axis2 class cast exception in tomcat