Web Services with Axis2

Asked

Viewed 110 times

0

I started studying web services now and it’s giving this error

This Web axisService has Deployment faults

Error: java.lang.ClassCastException:  
org.apache.axis2.classloader.JarFileClassLoader cannot be cast to 
org.apache.axis2.deployment.DeploymentClassLoader at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:131) at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:178) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:661) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:337) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:241) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:131) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:284) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:567) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:452) at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1213) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4425) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1060) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:759) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Can someone help me?

  • Is using Maven?

  • See if this can help you: http://stackoverflow.com/questions/6436631/webservice-with-eclipse-tomcat6-axis2-problem

  • I’m not, but I’ll see the link thanks

  • 1

    Storch Can you tell us what your application configuration is: IDE, Java-JDK Version, Application Server (TOMCAT, Jboss, Glassfish) A tip: Using Jboss Wildfly Application Server, your life will become much easier ;-) Jboss has libraries that for you to create a webservice just annotate the class with @Webservice and that’s it, your webservice is done. But if you want to use Axis describe a little more of your project there for us Vlw.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.