There have been several reports about this exceptions. See AXIS2-5079 for more information.
Andreas On Thu, Jun 23, 2011 at 20:28, Tao, Wenchao <w...@mednet.ucla.edu> wrote: > Hi, > > I am trying to develop an WEB Service using the Windows platform: Windows 7 > (32-bit), Eclipse EE Indigo, Axis2-1.5.5, Tomcat 6. When I deploy the > service, I got the following exception: > > [INFO] The SimpleTest service, which is not valid, caused > 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:1173) > at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993) > at > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420) > at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) > 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:754) > 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) > > > This problem seems to only happen on the Windows platform. I tried the same > code on OS X and Fedora (with the same version of Axis2 and Tomcat), and it > worked fine. But I have to deploy the service to a Windows server in > production, so need to figure out a solution somehow. > > Any help would be greatly appreciated. > > Thanks. > > --Wenchao-- > > > > > ________________________________ > IMPORTANT WARNING: This email (and any attachments) is only intended for the > use of the person or entity to which it is addressed, and may contain > information that is privileged and confidential. You, the recipient, are > obligated to maintain it in a safe, secure and confidential manner. > Unauthorized redisclosure or failure to maintain confidentiality may subject > you to federal and state penalties. If you are not the intended recipient, > please immediately notify us by return email, and delete this message from > your computer. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org