You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Jojo <jo...@gmail.com> on 2006/10/18 15:20:37 UTC
Web App deployment in the M2 branch
Hi,
I pulled yesterday night's version of the branch and was trying to deploy an
axis based service built using the war plugin. I was facing some classpath
errors, so tried to build and deploy the helloworldWS sample. I have
problems there as well. This is the stack trace I am getting :
SEVERE: org.osoa.sca.annotations.Property.override()Ljava/lang/String;
java.lang.NoSuchMethodError: org.osoa.sca.annotations.Property.override
()Ljava/lang/String;
at
org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processProperty
(ImplementationProcessorServiceImpl.java:259)
at
org.apache.tuscany.core.implementation.processor.ImplementationProcessorServiceImpl.processParam
(ImplementationProcessorServiceImpl.java:118)
at
org.apache.tuscany.core.implementation.processor.HeuristicPojoProcessor.evaluateConstructor
(HeuristicPojoProcessor.java:245)
at
org.apache.tuscany.core.implementation.processor.HeuristicPojoProcessor.visitEnd
(HeuristicPojoProcessor.java:114)
at
org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.introspect(
IntrospectionRegistryImpl.java:107)
......
Some further debugging showed that I have two different versions of the
sca-api jar file, one inside the WEB-INF/lib folder and another inside
WEB-INF/tuscany/boot folder. The first one is an old snapshot version (
sca-api-r0.95-1.0-incubator-M2-SNAPSHOT.jar), where as the second one is
what I have built (sca-api-r0.95-1.0-incubator-M2.jar). The one that got
loaded was the first one from WEB-INF/lib folder. So deleting that solved
the issue.
Is this happening because of something wrong in the POM file ? Or is it a
bug in the plugin code ?
Another thing I noticed was In the tuscany war plugin, the boot library
versions are hard-coded as :
(line no 116 - 119 in org.apache.tuscany.plugin.war.Dependency)
// TODO Decide on whether to get snapshot version rather than
hardcoded version
private WebappHostDependency() {
super("org.apache.tuscany.sca.runtime", "webapp-host", "
1.0-incubator-M2-SNAPSHOT");
}
Is this a right approach ?
--
Warm regards,
jojo.
Re: Web App deployment in the M2 branch
Posted by Jojo <jo...@gmail.com>.
Hi Jeremy,
I have attached a patch to the Jira. The URL is:
http://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12350253
Please take a look and let me know what you think. I have kept the changes
minimal.
On 10/19/06, Jeremy Boynes <jb...@apache.org> wrote:
>
> On Oct 18, 2006, at 11:26 PM, Jojo wrote:
>
> > Hi Jeremy,
> >
> > Thanks for the reply. See my comments in-line.
> >
> > On 10/18/06, Jeremy Boynes <jb...@apache.org> wrote:
> >>
> >> I think getting the two versions is a pom problem, possibly related
> >> to the issue with the plugin.
> >
> >
> > You are right, the pom.xml file under sca-java-M2\samples defines the
> > versions as :
> >
> > <properties>
> > <scaVersion>1.0-incubator-M2-SNAPSHOT</scaVersion>
> > <sdoVersion>1.0-incubator-M2</sdoVersion>
> > <dasVersion>1.0-incubator-M2-SNAPSHOT</dasVersion>
> > <specVersion>0.95</specVersion>
> > </properties>
> >
> > I guess for the branch, we might need to change the SNAPSHOT
> > versions to M2
> > versions. Is there a plan for this ?
>
> We would do this when we tag the branch - we don't want different
> versions of non-SNAPSHOT artifacts floating around.
>
> >
> > For the plugin having a hard coded version, it isn't the best way to
> >> do it and there's a JIRA open[1] to fix this. If you could help with
> >> the JIRA that would be appreciated.
> >
> >
> >
> > I took a look at the JIRA. It is already assigned to Meeraj, Should
> > I go
> > ahead and fix it ? Also I would like to know if we are targetting
> > this for
> > M2.
>
> Patches are always welcome so if you have a chance to fix is please do.
>
> The main (non-sample) code in M2 is basically frozen bar essential
> fixes which come in before we create the final tag (which is
> primarily waiting for Axis2 1.1 to release). I would suggest creating
> the patch for trunk and then we'd see how big/risky it was and make a
> decision on applying it to M2 as well.
>
> --
> Jeremy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Warm regards,
jojo.
Re: Web App deployment in the M2 branch
Posted by Jeremy Boynes <jb...@apache.org>.
On Oct 18, 2006, at 11:26 PM, Jojo wrote:
> Hi Jeremy,
>
> Thanks for the reply. See my comments in-line.
>
> On 10/18/06, Jeremy Boynes <jb...@apache.org> wrote:
>>
>> I think getting the two versions is a pom problem, possibly related
>> to the issue with the plugin.
>
>
> You are right, the pom.xml file under sca-java-M2\samples defines the
> versions as :
>
> <properties>
> <scaVersion>1.0-incubator-M2-SNAPSHOT</scaVersion>
> <sdoVersion>1.0-incubator-M2</sdoVersion>
> <dasVersion>1.0-incubator-M2-SNAPSHOT</dasVersion>
> <specVersion>0.95</specVersion>
> </properties>
>
> I guess for the branch, we might need to change the SNAPSHOT
> versions to M2
> versions. Is there a plan for this ?
We would do this when we tag the branch - we don't want different
versions of non-SNAPSHOT artifacts floating around.
>
> For the plugin having a hard coded version, it isn't the best way to
>> do it and there's a JIRA open[1] to fix this. If you could help with
>> the JIRA that would be appreciated.
>
>
>
> I took a look at the JIRA. It is already assigned to Meeraj, Should
> I go
> ahead and fix it ? Also I would like to know if we are targetting
> this for
> M2.
Patches are always welcome so if you have a chance to fix is please do.
The main (non-sample) code in M2 is basically frozen bar essential
fixes which come in before we create the final tag (which is
primarily waiting for Axis2 1.1 to release). I would suggest creating
the patch for trunk and then we'd see how big/risky it was and make a
decision on applying it to M2 as well.
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Web App deployment in the M2 branch
Posted by Jojo <jo...@gmail.com>.
Hi Jeremy,
Thanks for the reply. See my comments in-line.
On 10/18/06, Jeremy Boynes <jb...@apache.org> wrote:
>
> I think getting the two versions is a pom problem, possibly related
> to the issue with the plugin.
You are right, the pom.xml file under sca-java-M2\samples defines the
versions as :
<properties>
<scaVersion>1.0-incubator-M2-SNAPSHOT</scaVersion>
<sdoVersion>1.0-incubator-M2</sdoVersion>
<dasVersion>1.0-incubator-M2-SNAPSHOT</dasVersion>
<specVersion>0.95</specVersion>
</properties>
I guess for the branch, we might need to change the SNAPSHOT versions to M2
versions. Is there a plan for this ?
For the plugin having a hard coded version, it isn't the best way to
> do it and there's a JIRA open[1] to fix this. If you could help with
> the JIRA that would be appreciated.
I took a look at the JIRA. It is already assigned to Meeraj, Should I go
ahead and fix it ? Also I would like to know if we are targetting this for
M2.
--
> Jeremy
>
> [1] http://issues.apache.org/jira/browse/TUSCANY-733
>
> On Oct 18, 2006, at 6:20 AM, Jojo wrote:
>
> > Hi,
> >
> > I pulled yesterday night's version of the branch and was trying to
> > deploy an
> > axis based service built using the war plugin. I was facing some
> > classpath
> > errors, so tried to build and deploy the helloworldWS sample. I have
> > problems there as well. This is the stack trace I am getting :
> >
> > SEVERE: org.osoa.sca.annotations.Property.override()Ljava/lang/String;
> > java.lang.NoSuchMethodError:
> > org.osoa.sca.annotations.Property.override
> > ()Ljava/lang/String;
> > at
> > org.apache.tuscany.core.implementation.processor.ImplementationProcess
> > orServiceImpl.processProperty
> > (ImplementationProcessorServiceImpl.java:259)
> > at
> > org.apache.tuscany.core.implementation.processor.ImplementationProcess
> > orServiceImpl.processParam
> > (ImplementationProcessorServiceImpl.java:118)
> > at
> > org.apache.tuscany.core.implementation.processor.HeuristicPojoProcesso
> > r.evaluateConstructor
> > (HeuristicPojoProcessor.java:245)
> > at
> > org.apache.tuscany.core.implementation.processor.HeuristicPojoProcesso
> > r.visitEnd
> > (HeuristicPojoProcessor.java:114)
> > at
> > org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.intro
> > spect(
> > IntrospectionRegistryImpl.java:107)
> > ......
> >
> > Some further debugging showed that I have two different versions of
> > the
> > sca-api jar file, one inside the WEB-INF/lib folder and another inside
> > WEB-INF/tuscany/boot folder. The first one is an old snapshot
> > version (
> > sca-api-r0.95-1.0-incubator-M2-SNAPSHOT.jar), where as the second
> > one is
> > what I have built (sca-api-r0.95-1.0-incubator-M2.jar). The one
> > that got
> > loaded was the first one from WEB-INF/lib folder. So deleting that
> > solved
> > the issue.
> >
> > Is this happening because of something wrong in the POM file ? Or
> > is it a
> > bug in the plugin code ?
> >
> > Another thing I noticed was In the tuscany war plugin, the boot
> > library
> > versions are hard-coded as :
> >
> > (line no 116 - 119 in org.apache.tuscany.plugin.war.Dependency)
> >
> > // TODO Decide on whether to get snapshot version rather than
> > hardcoded version
> > private WebappHostDependency() {
> > super("org.apache.tuscany.sca.runtime", "webapp-host", "
> > 1.0-incubator-M2-SNAPSHOT");
> > }
> >
> > Is this a right approach ?
> >
> > --
> > Warm regards,
> > jojo.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
--
Warm regards,
jojo.
Re: Web App deployment in the M2 branch
Posted by Jeremy Boynes <jb...@apache.org>.
I think getting the two versions is a pom problem, possibly related
to the issue with the plugin.
For the plugin having a hard coded version, it isn't the best way to
do it and there's a JIRA open[1] to fix this. If you could help with
the JIRA that would be appreciated.
--
Jeremy
[1] http://issues.apache.org/jira/browse/TUSCANY-733
On Oct 18, 2006, at 6:20 AM, Jojo wrote:
> Hi,
>
> I pulled yesterday night's version of the branch and was trying to
> deploy an
> axis based service built using the war plugin. I was facing some
> classpath
> errors, so tried to build and deploy the helloworldWS sample. I have
> problems there as well. This is the stack trace I am getting :
>
> SEVERE: org.osoa.sca.annotations.Property.override()Ljava/lang/String;
> java.lang.NoSuchMethodError:
> org.osoa.sca.annotations.Property.override
> ()Ljava/lang/String;
> at
> org.apache.tuscany.core.implementation.processor.ImplementationProcess
> orServiceImpl.processProperty
> (ImplementationProcessorServiceImpl.java:259)
> at
> org.apache.tuscany.core.implementation.processor.ImplementationProcess
> orServiceImpl.processParam
> (ImplementationProcessorServiceImpl.java:118)
> at
> org.apache.tuscany.core.implementation.processor.HeuristicPojoProcesso
> r.evaluateConstructor
> (HeuristicPojoProcessor.java:245)
> at
> org.apache.tuscany.core.implementation.processor.HeuristicPojoProcesso
> r.visitEnd
> (HeuristicPojoProcessor.java:114)
> at
> org.apache.tuscany.core.implementation.IntrospectionRegistryImpl.intro
> spect(
> IntrospectionRegistryImpl.java:107)
> ......
>
> Some further debugging showed that I have two different versions of
> the
> sca-api jar file, one inside the WEB-INF/lib folder and another inside
> WEB-INF/tuscany/boot folder. The first one is an old snapshot
> version (
> sca-api-r0.95-1.0-incubator-M2-SNAPSHOT.jar), where as the second
> one is
> what I have built (sca-api-r0.95-1.0-incubator-M2.jar). The one
> that got
> loaded was the first one from WEB-INF/lib folder. So deleting that
> solved
> the issue.
>
> Is this happening because of something wrong in the POM file ? Or
> is it a
> bug in the plugin code ?
>
> Another thing I noticed was In the tuscany war plugin, the boot
> library
> versions are hard-coded as :
>
> (line no 116 - 119 in org.apache.tuscany.plugin.war.Dependency)
>
> // TODO Decide on whether to get snapshot version rather than
> hardcoded version
> private WebappHostDependency() {
> super("org.apache.tuscany.sca.runtime", "webapp-host", "
> 1.0-incubator-M2-SNAPSHOT");
> }
>
> Is this a right approach ?
>
> --
> Warm regards,
> jojo.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org