axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zoetebier (JIRA)" <axis-...@ws.apache.org>
Subject [jira] [Created] (AXIS-2858) Deploying SampleService as a folder throws java.lang.ClassCastException
Date Sun, 28 Aug 2011 23:35:37 GMT
Deploying SampleService as a folder throws java.lang.ClassCastException
-----------------------------------------------------------------------

                 Key: AXIS-2858
                 URL: https://issues.apache.org/jira/browse/AXIS-2858
             Project: Axis
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 1.5
         Environment: Windows XP
            Reporter: John Zoetebier
            Priority: Minor


Page site/docs/userguide-buildingservices.html says:
"Finally, deploy the service by copying the SampleService directory to the webapps/axis2/WEB-INF/services
directory on the servlet engine"

This throws an exception:
=>
[INFO] The SampleService service, which is not valid, caused java.lang.ClassCastException:
org.apache.axis2.classloader.JarFileClassLoader c
annot 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.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
        at org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
=>

There is a workaround available:
- ZIP content of folder SampleService into SampleService.aar
- Copy file SampleService.aar into folder $TOMCAT_HOME/webapps/axis2/WEB-INF/services


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message