[MOBY-dev] Service deployment on tomcat and axis2
Andreas Groscurth
groscurt at mpiz-koeln.mpg.de
Fri Jan 11 12:36:55 UTC 2008
hi,
i try to deploy a Web Service on tomcat and axis2, but i fail... does anyone
has any experiences with that ?
Axis2 has a new structure and e.g. dont use the AdminServlet to deploy
services.
I created a aar file containing the skeleton and the sample class with its
package structure by my own, because as I can see, there is no ant task for
that or any other moby structure to handle an aar file....
I also added the META-INF/services.xml into the archive and copied the archive
into axis2/WEB-INF/services
I then copied the biomoby-datatypes.jar, jmoby.jar and jmoby-other.jar into
the lib directory of axis2/WEB-INF
Validating this via the axis web interface it complaint that it misses
alltools and jdom. So I copied them also into the lib directory.
Then I get the the following error:
Error: org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: 2 at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:389)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:95)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:172)
at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:78)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
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:118)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:272)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:500)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:420) at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825) at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at
org.apache.catalina.core.StandardService.start(StandardService.java:448) at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at
org.apache.catalina.startup.Catalina.start(Catalina.java:552) 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:295) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by:
org.apache.axis2.deployment.DeploymentException: The following error occurred
during schema generation: 2 at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:354) ...
39 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.processMethods(DefaultSchemaGenerator.java:275)
at
org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchema(DefaultSchemaGenerator.java:181)
at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:352) at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:350) ...
39 more
Has anyone any experience with axis2 and can tell me how do to that ? or what
went wrong ?
Thanks
andreas
--
Andreas Groscurth
Bioinformatics Developer
Max Planck Institute for Plant Breeding Research
Carl-von-Linné-Weg 10
50829 Cologne
Germany
E-mail: groscurt at mpiz-koeln.mpg.de
Phone: +49(0)221-5062-449
More information about the MOBY-dev
mailing list