axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolaus Krismer"<r...@krismer.de>
Subject Re: Re: Re: Re: Deploy services to subfolders in servicePath?
Date Tue, 08 Mar 2011 10:28:39 GMT
Are you sure that this can be done.

I know that the following is possible (already tested it) in the repository:

services
  MyService
    META-INF
      MyService.wsdl
      services.xml

But is this also possible?

services
  v1
    MyService
      META-INF
        MyService.wsdl
        services.xml
 
The exception "missing META-INF directory" tells me that axis2 searches for a META-INF in
each subfolder of the repository (and v1 does not include such a folder).

Regrads,
Niko


----- Original Message -----
From: afkham@gmail.com
To: java-user@axis.apache.org
Date: 08.03.2011 02:54:50
Subject: Re: Re: Re: Deploy services to subfolders in servicePath?


> The previews of the 1.6 release are available at
> http://people.apache.org/~ruwan/axis2/dist/1.6.0/ You could try that as
> well.
> 
> 
> On Mon, Mar 7, 2011 at 7:16 PM, Afkham Azeez  wrote:
> 
> > This is in the trunk for sure. I'm not sure whether it got into the latest
> > Axis2 release. But it would be surely available with Axis2 1.6. If you
> > really want this feature, you could try it out with the WSO2 Application
> > Server, which embeds Axis2. http://wso2.com/products/application-server/
> >
> >
> > Azeez
> >
> >
> > On Mon, Mar 7, 2011 at 6:52 PM, Nikolaus Krismer  wrote:
> >
> >> With the latest release (axis2-1.5.4) i get the same error.
> >> However, since line numbers have changed the exception now looks like:
> >>
> >> org.apache.axis2.deployment.DeploymentException: Invalid service. META-INF
> >> directory not found.
> >>         at
> >> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:296)
> >>         at
> >> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:67)
> >>        at
> >> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> >>         at
> >> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
> >>         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:559)
> >>        at
> >> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:448)
> >>        at
> >> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
> >>        at
> >> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
> >>        at
> >> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
> >>        at
> >> org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
> >>        at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> >>        at
> >> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> >>        at
> >> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> >>         at
> >> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >>         at
> >> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> >>        at
> >> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> >>        at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
> >>         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:288)
> >>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> >> Caused by: org.apache.axis2.deployment.DeploymentException: Invalid
> >> service. META-INF directory not found.
> >>         at
> >> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:284)
> >>        ... 28 more
> >>
> >> Regards,
> >> Niko
> >>
> >> ----- Original Message -----
> >> From: afkham@gmail.com
> >> To: java-user@axis.apache.org
> >> Date: 07.03.2011 13:02:42
> >> Subject: Re: Re: Deploy services to subfolders in servicePath?
> >>
> >>
> >> > Can you try with the latest release?
> >> >
> >> >
> >> > On Mon, Mar 7, 2011 at 5:26 PM, Nikolaus Krismer  wrote:
> >> >
> >> > > I tried to move my current AAR file from the services dir to
> >> services/v1
> >> > > dir, but this raises the following exception:
> >> > >
> >> > > org.apache.axis2.deployment.DeploymentException: Invalid service.
> >> META-INF
> >> > > directory not found.
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:297)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:67)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:597)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:330)
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:227)
> >> > >        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:82)
> >> > >        at
> >> > >
> >> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
> >> > >        at
> >> > > org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
> >> > >        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.start(ContainerBase.java:1014)
> >> > >        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:597)
> >> > >        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: Invalid
> >> > > service. META-INF directory not found.
> >> > >        at
> >> > >
> >> org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:285)
> >> > >        ... 28 more
> >> > >
> >> > > I am still using axi2 v. 1.4.1 here... is that a problem?
> >> > >
> >> > > Regards,
> >> > > Niko
> >> > >
> >> > > ----- Original Message -----
> >> > > From: afkham@gmail.com
> >> > > To: java-user@axis.apache.org
> >> > > Date: 05.03.2011 03:24:26
> >> > > Subject: Re: Deploy services to subfolders in servicePath?
> >> > >
> >> > >
> >> > > > Yes that is possible. You have to specify the service hierarchy.
In
> >> the
> >> > > > deployment services directory, put your services AAR files into,
> >> > > > v1/MyService.aar and v2/MyServices.aar
> >> > > >
> >> > > >
> >> > > > On Fri, Mar 4, 2011 at 2:27 PM, Nikolaus Krismer  wrote:
> >> > > >
> >> > > > > Hi!
> >> > > > >
> >> > > > > Is there a possibility to deploy webservices in Axis2 to
> >> subfolders of
> >> > > the
> >> > > > > servicePath?
> >> > > > >
> >> > > > > The reason i want to do this is because of versioning. I
would
> >> like to
> >> > > > > deploy my webservice "MyService" in a new version (called
v2) and
> >> in an
> >> > > > > older version (called v1). I don't want my clients to change
the
> >> epr
> >> > > when
> >> > > > > the service changes, so I am thinking of deployment like
this:
> >> > > > >
> >> > > > >    https://myserver/services/v1/MyService
> >> > > > >    https://myserver/services/v2/MyService
> >> > > > >
> >> > > > > Is this possible if the servicePath is "/services"?
> >> > > > >
> >> > > > > Regards,
> >> > > > > Niko
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > >
> >> ---------------------------------------------------------------------
> >> > > > > To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> >> > > > > For additional commands, e-mail: java-user-help@axis.apache.org
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > *Afkham Azeez*
> >> > > > Senior Software Architect & Senior Manager; WSO2, Inc.;
> >> http://wso2.com,
> >> > > > *
> >> > > > *
> >> > > > *Member; Apache Software Foundation;
> >> > > > **http://www.apache.org/*
> >> > > > *
> >> > > > email: **azeez@wso2.com* * cell: +94 77 3320919
> >> > > > blog: **http://blog.afkham.org* *
> >> > > > twitter: **http://twitter.com/afkham_azeez*
> >> > > > *
> >> > > > linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> >> > > > *
> >> > > > *
> >> > > > *Lean . Enterprise . Middleware*
> >> > > > *
> >> > > > *
> >> > > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > ---------------------------------------------------------------------
> >> > > To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> >> > > For additional commands, e-mail: java-user-help@axis.apache.org
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > *Afkham Azeez*
> >> > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com
> >> ,
> >> > *
> >> > *
> >> > *Member; Apache Software Foundation;
> >> > **http://www.apache.org/*
> >> > *
> >> > email: **azeez@wso2.com* * cell: +94 77 3320919
> >> > blog: **http://blog.afkham.org* *
> >> > twitter: **http://twitter.com/afkham_azeez*
> >> > *
> >> > linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> >> > *
> >> > *
> >> > *Lean . Enterprise . Middleware*
> >> > *
> >> > *
> >> >
> >>
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> >> For additional commands, e-mail: java-user-help@axis.apache.org
> >>
> >>
> >
> >
> > --
> > *Afkham Azeez*
> > Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
> > *
> > *
> > *Member; Apache Software Foundation; **http://www.apache.org/*
> > *
> > email: **azeez@wso2.com* * cell: +94 77 3320919
> > blog: **http://blog.afkham.org* *
> > twitter: **http://twitter.com/afkham_azeez*
> > *
> > linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> > *
> > *
> > *Lean . Enterprise . Middleware*
> > *
> > *
> >
> >
> 
> 
> -- 
> *Afkham Azeez*
> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
> *
> *
> *Member; Apache Software Foundation;
> **http://www.apache.org/*
> *
> email: **azeez@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
> *
> *
> 





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


Mime
View raw message