You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Gertjan van Oosten <ge...@West.NL> on 2007/07/24 10:12:31 UTC

How to deploy exploded .aar under axis2?

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/...
?

Kind regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Gertjan,
I tested that in both tomcat and standalone version but I did not get
the exception and the service got deployed without  having any  issues.

Thanks
Deepal
> As quoted from Sanjiva Weerawarana <sa...@opensource.lk>:
>   
>> Can you post your services.xml? The error seems to say that you have two 
>> services with the same name.
>>     
>
> No, it does work if I use the .aar file unexploded.  And anyway, the
> fact that it is reproducable by exploding Axis' own version-1.3-RC2.aar
> says it all, no?
>
> Regards,
>   




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


Re: How to deploy exploded .aar under axis2?

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Gertjan van Oosten wrote:
> As quoted from Sanjiva Weerawarana <sa...@opensource.lk>:
>> Can you post your services.xml? The error seems to say that you have two 
>> services with the same name.
> 
> No, it does work if I use the .aar file unexploded.  And anyway, the
> fact that it is reproducable by exploding Axis' own version-1.3-RC2.aar
> says it all, no?

It does certainly .. sorry for the pain :(. We'll fix it.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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


Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
As quoted from Sanjiva Weerawarana <sa...@opensource.lk>:
> Can you post your services.xml? The error seems to say that you have two 
> services with the same name.

No, it does work if I use the .aar file unexploded.  And anyway, the
fact that it is reproducable by exploding Axis' own version-1.3-RC2.aar
says it all, no?

Regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Can you post your services.xml? The error seems to say that you have two 
services with the same name.

Sanjiva.

Gertjan van Oosten wrote:
> As quoted from Deepal Jayasinghe <de...@opensource.lk>:
>>> 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,

-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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


Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
Hi Deepal,

As quoted from Deepal Jayasinghe <de...@opensource.lk>:
> yes there was an issue when we turn on hotupdate , now I have fixed that
> in both trunk and branch.

Thanks!

-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Charitha Kankanamge <ch...@wso2.com>.
Yes, Deepal has fixed the issue. I verified it in trunk and worked properly.

regards
Charitha

Davanum Srinivas wrote:

> Sanjiva,
>
> I think deepal already took care of this:
> http://svn.apache.org/viewvc?view=rev&revision=559377
>
> -- dims
>
> On 7/25/07, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
>
>> Please create a JIRA as a blocker for 1.3 .. we gotta fix this!
>>
>> Gertjan, thanks for persisting and letting us know the details to
>> reproduce the error!
>>
>> Sanjiva.
>>
>> Charitha Kankanamge wrote:
>> > Hi Gertjan,
>> > Seems there is a problem with hotupdate when service archive is
>> > exploded. I was able to reproduce the issue by setting hotupdate=true.
>> >
>> > regards
>> > Charitha
>> >
>> >
>> > Gertjan van Oosten wrote:
>> >
>> >> As quoted from Charitha Kankanamge <ch...@wso2.com>:
>> >>
>> >>
>> >>> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted
>> >>> tomcat (I was running tomcat 6.0.10). I did not get such an error.
>> >>>
>> >>
>> >> As quoted from Deepal jayasinghe <de...@gmail.com>:
>> >>
>> >>
>> >>> I did the same thing and it worked for me as well.
>> >>>
>> >>
>> >> I'm under Tomcat 5.5.17.  One maybe important issue is that I have 
>> set
>> >>    <parameter name="hotupdate">true</parameter>
>> >> in axis2.xml.  Try that and see if it keeps undeploying and deploying
>> >> for you as well.  Happens to me every 10 seconds, like I said.
>> >>
>> >>
>> >>
>> >>> You will definitely get the following exception if both unpacked aar
>> >>> and version-*.aar are placed in the WEB-INF/services directory.
>> >>> Probably you haven't removed one of them.
>> >>>
>> >>
>> >> No, I have removed the .aar, of course.
>> >>
>> >> Kind regards,
>> >>
>> >>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-dev-help@ws.apache.org
>> >
>> >
>>
>> -- 
>> Sanjiva Weerawarana, Ph.D.
>> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
>> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
>> Director; Open Source Initiative; http://www.opensource.org/
>> Member; Apache Software Foundation; http://www.apache.org/
>> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>
>



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


Re: How to deploy exploded .aar under axis2?

Posted by Davanum Srinivas <da...@gmail.com>.
Sanjiva,

I think deepal already took care of this:
http://svn.apache.org/viewvc?view=rev&revision=559377

-- dims

On 7/25/07, Sanjiva Weerawarana <sa...@opensource.lk> wrote:
> Please create a JIRA as a blocker for 1.3 .. we gotta fix this!
>
> Gertjan, thanks for persisting and letting us know the details to
> reproduce the error!
>
> Sanjiva.
>
> Charitha Kankanamge wrote:
> > Hi Gertjan,
> > Seems there is a problem with hotupdate when service archive is
> > exploded. I was able to reproduce the issue by setting hotupdate=true.
> >
> > regards
> > Charitha
> >
> >
> > Gertjan van Oosten wrote:
> >
> >> As quoted from Charitha Kankanamge <ch...@wso2.com>:
> >>
> >>
> >>> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted
> >>> tomcat (I was running tomcat 6.0.10). I did not get such an error.
> >>>
> >>
> >> As quoted from Deepal jayasinghe <de...@gmail.com>:
> >>
> >>
> >>> I did the same thing and it worked for me as well.
> >>>
> >>
> >> I'm under Tomcat 5.5.17.  One maybe important issue is that I have set
> >>    <parameter name="hotupdate">true</parameter>
> >> in axis2.xml.  Try that and see if it keeps undeploying and deploying
> >> for you as well.  Happens to me every 10 seconds, like I said.
> >>
> >>
> >>
> >>> You will definitely get the following exception if both unpacked aar
> >>> and version-*.aar are placed in the WEB-INF/services directory.
> >>> Probably you haven't removed one of them.
> >>>
> >>
> >> No, I have removed the .aar, of course.
> >>
> >> Kind regards,
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
>
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> Director; Open Source Initiative; http://www.opensource.org/
> Member; Apache Software Foundation; http://www.apache.org/
> Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Gertjan ,
yes there was an issue when we turn on hotupdate , now I have fixed that
in both trunk and branch.

Thanks
Deepal
> As quoted from Charitha Kankanamge <ch...@wso2.com>:
>   
>> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted 
>> tomcat (I was running tomcat 6.0.10). I did not get such an error.
>>     
>
> As quoted from Deepal jayasinghe <de...@gmail.com>:
>   
>> I did the same thing and it worked for me as well.
>>     
>
> I'm under Tomcat 5.5.17.  One maybe important issue is that I have set
>   



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


Re: How to deploy exploded .aar under axis2?

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
Please create a JIRA as a blocker for 1.3 .. we gotta fix this!

Gertjan, thanks for persisting and letting us know the details to 
reproduce the error!

Sanjiva.

Charitha Kankanamge wrote:
> Hi Gertjan,
> Seems there is a problem with hotupdate when service archive is 
> exploded. I was able to reproduce the issue by setting hotupdate=true.
> 
> regards
> Charitha
> 
> 
> Gertjan van Oosten wrote:
> 
>> As quoted from Charitha Kankanamge <ch...@wso2.com>:
>>  
>>
>>> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted 
>>> tomcat (I was running tomcat 6.0.10). I did not get such an error.
>>>   
>>
>> As quoted from Deepal jayasinghe <de...@gmail.com>:
>>  
>>
>>> I did the same thing and it worked for me as well.
>>>   
>>
>> I'm under Tomcat 5.5.17.  One maybe important issue is that I have set
>>    <parameter name="hotupdate">true</parameter>
>> in axis2.xml.  Try that and see if it keeps undeploying and deploying
>> for you as well.  Happens to me every 10 seconds, like I said.
>>
>>  
>>
>>> You will definitely get the following exception if both unpacked aar 
>>> and version-*.aar are placed in the WEB-INF/services directory. 
>>> Probably you haven't removed one of them.
>>>   
>>
>> No, I have removed the .aar, of course.
>>
>> Kind regards,
>>  
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 

-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
Director; Open Source Initiative; http://www.opensource.org/
Member; Apache Software Foundation; http://www.apache.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

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


Re: How to deploy exploded .aar under axis2?

Posted by Charitha Kankanamge <ch...@wso2.com>.
Hi Gertjan,
Seems there is a problem with hotupdate when service archive is 
exploded. I was able to reproduce the issue by setting hotupdate=true.

regards
Charitha


Gertjan van Oosten wrote:

>As quoted from Charitha Kankanamge <ch...@wso2.com>:
>  
>
>>I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted 
>>tomcat (I was running tomcat 6.0.10). I did not get such an error.
>>    
>>
>
>As quoted from Deepal jayasinghe <de...@gmail.com>:
>  
>
>>I did the same thing and it worked for me as well.
>>    
>>
>
>I'm under Tomcat 5.5.17.  One maybe important issue is that I have set
>    <parameter name="hotupdate">true</parameter>
>in axis2.xml.  Try that and see if it keeps undeploying and deploying
>for you as well.  Happens to me every 10 seconds, like I said.
>
>  
>
>>You will definitely get the following exception if both unpacked aar and 
>>version-*.aar are placed in the WEB-INF/services directory. Probably you 
>>haven't removed one of them.
>>    
>>
>
>No, I have removed the .aar, of course.
>
>Kind regards,
>  
>



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


Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
As quoted from Charitha Kankanamge <ch...@wso2.com>:
> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted 
> tomcat (I was running tomcat 6.0.10). I did not get such an error.

As quoted from Deepal jayasinghe <de...@gmail.com>:
> I did the same thing and it worked for me as well.

I'm under Tomcat 5.5.17.  One maybe important issue is that I have set
    <parameter name="hotupdate">true</parameter>
in axis2.xml.  Try that and see if it keeps undeploying and deploying
for you as well.  Happens to me every 10 seconds, like I said.

> You will definitely get the following exception if both unpacked aar and 
> version-*.aar are placed in the WEB-INF/services directory. Probably you 
> haven't removed one of them.

No, I have removed the .aar, of course.

Kind regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal jayasinghe <de...@gmail.com>.
I did the same thing and it worked for me as well.

Thanks
Deepal
> Gertjan van Oosten wrote:
>
>> Hi Deepal,
>>
>> As quoted from Deepal jayasinghe <de...@gmail.com>:
>>  
>>
>>> If that is the case try to provide me to regenerate the issue , may be
>>> you can write light weight version and send
>>>   
>>
>> It's even simpler than that: I can reproduce it by unpacking the
>> version-1.3-RC2.aar that's bundled with axis2-1.3-RC2.war!
>> So there you go: a perfect testcase for you. ;-)
>>  
>>
>
> I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted
> tomcat (I was running tomcat 6.0.10). I did not get such an error.
> FYI: I attached a screen shot with my exploded aar and tomcat startup.
>
> You will definitely get the following exception if both unpacked aar
> and version-*.aar are placed in the WEB-INF/services directory.
> Probably you haven't removed one of them.
>
> 2007-07-24 22:43:18,703 ERROR
> org.apache.axis2.deployment.ServiceDeployer - The version-1.3-RC2.aar
> service, which is not valid, caused Two services cannot have same
> name.  A service with the Version
> name already exists in the system.
> org.apache.axis2.AxisFault: Two services cannot have same name.  A
> service with the Version name alr
> eady exists in the system.
>        at
> org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:356)
>
>
> Thanks and regards
> Charitha


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


Re: How to deploy exploded .aar under axis2?

Posted by Charitha Kankanamge <ch...@wso2.com>.
Gertjan van Oosten wrote:

>Hi Deepal,
>
>As quoted from Deepal jayasinghe <de...@gmail.com>:
>  
>
>>If that is the case try to provide me to regenerate the issue , may be
>>you can write light weight version and send
>>    
>>
>
>It's even simpler than that: I can reproduce it by unpacking the
>version-1.3-RC2.aar that's bundled with axis2-1.3-RC2.war!
>So there you go: a perfect testcase for you. ;-)
>  
>

I unpacked version-1.3-RC2.aar which comes with Axis2 and restarted 
tomcat (I was running tomcat 6.0.10). I did not get such an error. FYI: 
I attached a screen shot with my exploded aar and tomcat startup.

You will definitely get the following exception if both unpacked aar and 
version-*.aar are placed in the WEB-INF/services directory. Probably you 
haven't removed one of them.

2007-07-24 22:43:18,703 ERROR 
org.apache.axis2.deployment.ServiceDeployer - The version-1.3-RC2.aar
service, which is not valid, caused Two services cannot have same name.  
A service with the Version
name already exists in the system.
org.apache.axis2.AxisFault: Two services cannot have same name.  A 
service with the Version name alr
eady exists in the system.
        at 
org.apache.axis2.engine.AxisConfiguration.addToAllServicesMap(AxisConfiguration.java:356)

Thanks and regards
Charitha

Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
Hi Deepal,

As quoted from Deepal jayasinghe <de...@gmail.com>:
> If that is the case try to provide me to regenerate the issue , may be
> you can write light weight version and send

It's even simpler than that: I can reproduce it by unpacking the
version-1.3-RC2.aar that's bundled with axis2-1.3-RC2.war!
So there you go: a perfect testcase for you. ;-)

Regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal jayasinghe <de...@gmail.com>.
Hi Gertjan ,
If that is the case try to provide me to regenerate the issue , may be
you can write light weight version and send

Thanks
Deepal
> As quoted from Deepal jayasinghe <de...@gmail.com>:
>   
>> Could you please send me the service archive file.
>>     
>
> I'm afraid not: first of all it's over 25 MBytes, and second it
> contains proprietary stuff that I'm not allowed to send out.  :-(
>
> Regards,
>   



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


Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
As quoted from Deepal jayasinghe <de...@gmail.com>:
> Could you please send me the service archive file.

I'm afraid not: first of all it's over 25 MBytes, and second it
contains proprietary stuff that I'm not allowed to send out.  :-(

Regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal jayasinghe <de...@gmail.com>.
Could you please send me the service archive file.
Thanks
Deepal
> As quoted from Deepal Jayasinghe <de...@opensource.lk>:
>   
>>> 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
>   


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


Re: How to deploy exploded .aar under axis2?

Posted by Gertjan van Oosten <ge...@West.NL>.
As quoted from Deepal Jayasinghe <de...@opensource.lk>:
> > 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, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

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


Re: How to deploy exploded .aar under axis2?

Posted by Deepal Jayasinghe <de...@opensource.lk>.
> 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




> ?
>
> Kind regards,
>   

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



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