axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinath Perera" <>
Subject [Axis2]Fwd: Question regarding wsdl level imports in Axis 2 ...
Date Mon, 07 Aug 2006 23:41:26 GMT
---------- Forwarded message ----------
From: Vishal Deshpande <>
Date: Aug 7, 2006 3:27 PM
Subject: Question regarding wsdl level imports in Axis 2 ...

Hello Axis team,

I am a new user of Axis 2 and would like to ask you a few questions
about it as you seem to have great understanding on the subject.

We have a scenario where we have multiple services that are to be
exposed as web-services over Tomcat server. We are trying to use Axis
for our wsdl grunt-work, but would like to have a modular wsdl design

Ideally, I would like to have the schema elements separated into a say
ServiceType.wsdl and import these in the individual service wsdls like
ServiceA.wsdl, ServiceB.wsdl and so on where I have the service
bindings defined.

So far so good. I have the wsdls coded that way and I have Axis 2
generating the correct code. However, w.r.t creating jars, I was
trying to implement a similar logic, i.e have the schema elements and
its corresponding xsb bindings in a ServiceTypes.jar and have the
services in their own respective jars. This would have reduced the
need for having the schema elements in every single service jar, as I
could have the schema element jar in a shared location. That, for some
reason, when deployed, makes tomcat to go in an infinite loop on

Now we do have the services deployed on the Tomcat as application
archive, instead of exploded jars. Can we use exploded jars with Axis2
as I feel that Tomcat would be better off importing things from a
flat-file architecture rather than through a jar. However, I may be
wrong. It may just be my wsdls are incorrectly formed. ANy help in
this matter is highly appreciated.

To summarise, I guess my questions are
   1. Are the attached wsdls incorrectly formed? Syntax error or design error?
   2. Can we split wsdls in a hierarchical fashion when using Axis 2
as in the attachments?
   3. Can we have a clean separation between reusable schema elements
and service bindings in seaprate jars or do we have to package things
together in a single jar?
   4. Does Axis 2 support having more than one wsdl in a single jar?

I have attached the shcema wsdl and service wsdl for you. I would be
glad if I can get some guidance on this matter.

Thanking you for your help,
-- Vishal Deshpande

This is what the tomcat shows in its log when trying to view the service.

:895) at org.apache.axis2.description.WSDL2AxisServiceBuilder.processImports(
at org.apache.axis2.description.WSDL2AxisServiceBuilder.processImports(
at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(
at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(
at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(
at org.apache.axis2.deployment.repository.util.WSInfoList.update(
at org.apache.axis2.deployment.RepositoryListener.update(
at org.apache.axis2.deployment.RepositoryListener.checkServices(
at org.apache.axis2.deployment.DeploymentEngine.loadServices(
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(
at org.apache.axis2.transport.http.AxisServlet.init(
at org.apache.catalina.core.StandardWrapper.loadServlet(
at org.apache.catalina.core.StandardWrapper.load(
at org.apache.catalina.core.StandardContext.loadOnStartup(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.addChildInternal(
at org.apache.catalina.core.ContainerBase.addChild(
at org.apache.catalina.core.StandardHost.addChild(
at org.apache.catalina.startup.HostConfig.deployWAR(
at org.apache.catalina.startup.HostConfig.deployWARs(
at org.apache.catalina.startup.HostConfig.deployApps(
at org.apache.catalina.startup.HostConfig.start(
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start( at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke( at
org.apache.catalina.startup.Bootstrap.start( at

Srinath Perera:

View raw message