axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishanthan Thangarajah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5219) Deploying SampleService as a folder throws java.lang.ClassCastException
Date Tue, 01 May 2012 07:21:45 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265694#comment-13265694
] 

Kishanthan Thangarajah commented on AXIS2-5219:
-----------------------------------------------

Hi,
This is fixed in later releases of axis2(v1.5.5) to prevent such class cast exceptions. Can
you try with a new release?

Thanks,
Kishanthan.  
                
> Deploying SampleService as a folder throws java.lang.ClassCastException
> -----------------------------------------------------------------------
>
>                 Key: AXIS2-5219
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5219
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Windows XP
>            Reporter: John Zoetebier
>            Priority: Minor
>              Labels: documentation
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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