As quoted from Deepal Jayasinghe <[EMAIL PROTECTED]>: > > Is it possible to deploy an exploded .aar under axis2? If so, how? > > Do I simply unpack the file > > webapps/axis2/WEB-INF/services/my-service-1.0.aar > > into > > webapps/axis2/WEB-INF/services/my-service-1.0/... > > > Yes that is correct > > webapps/axis2/WEB-INF/services/my-service-1.0/ > /META-INF > services.xml
The .aar file contains more than just the services.xml of course, so I exploded the rest there as well (lib, classes). First of all, I get the same error I got before with my .aar file https://issues.apache.org/jira/browse/AXIS2-2889 but now for the directory: INFO: org.apache.axis2.deployment.DeploymentException: The my-service-1 service group name is not valid. If I then rename the directoy to "my-service" and restart Tomcat, Axis complains that: 24-Jul-2007 08:46:14 org.apache.axis2.deployment.ServiceDeployer deploy INFO: Deploying Web service: my-service 24-Jul-2007 08:46:15 org.apache.axis2.deployment.ServiceDeployer deploy SEVERE: The my-service service, which is not valid, caused Two services cannot have same name. A service with the MyFirstService name already exists in the system. org.apache.axis2.AxisFault: Two services cannot have same name. A service with the MyFirstService name already exists in the system. at org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:356) at org.apache.axis2.description.AxisServiceGroup.addService(AxisServiceGroup.java:111) at org.apache.axis2.deployment.DeploymentEngine.fillServiceGroup(DeploymentEngine.java:490) at org.apache.axis2.deployment.DeploymentEngine.addServiceGroup(DeploymentEngine.java:453) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:82) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:551) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:135) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:116) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:271) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:494) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:414) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201) 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.deployDirectory(HostConfig.java:904) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122) 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:1021) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:709) at org.apache.catalina.startup.Catalina.start(Catalina.java:551) 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:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 24-Jul-2007 08:46:15 org.apache.axis2.deployment.DeploymentEngine doDeploy INFO: org.apache.axis2.deployment.DeploymentException: Two services cannot have same name. A service with the MyFirstService name already exists in the system. After that it starts undeploying and deploying the service every 10 seconds: 24-Jul-2007 08:46:25 org.apache.axis2.deployment.ServiceDeployer unDeploy INFO: Undeploying Web service: mtts-ws 24-Jul-2007 08:46:26 org.apache.axis2.deployment.ServiceDeployer deploy INFO: Deploying Web service: mtts-ws 24-Jul-2007 08:46:35 org.apache.axis2.deployment.ServiceDeployer unDeploy INFO: Undeploying Web service: mtts-ws 24-Jul-2007 08:46:35 org.apache.axis2.deployment.ServiceDeployer deploy INFO: Deploying Web service: mtts-ws [...etc...] When the service is deployed, listServices shows all my services deployed in my-service (all 8 of them); when it is undeployed, they're all gone. I have about ten seconds each time to access them. :-( All the above happens with 1.3-RC2. Did not try it with 1.2. Regards, -- -- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191 600 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
