You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pratibhaG <pr...@in2m.com> on 2008/06/11 15:53:10 UTC

Couldn't deploy more than one servicemix-camel service-units

I am using servicemix 3.2.1 and facing the same problem as discussed in 
[jira] Resolved: (SM-1191) Couldn't deploy >1 separate servicemix-camel
service-units.

As said it has been resolved in 3.2.2 version. But, there is not official
released for 3.2.2 version.

1) Can i use this resolved problem patch for servicemix 3.2.1 version.If
it's not when can i expect 3.2.2 release.
2) Is there any link which actually provides binary version for 3.2.2
release and how much it is stable?

Please help me on this.

pratibha





-- 
View this message in context: http://www.nabble.com/Couldn%27t-deploy-more-than-one-servicemix-camel-service-units-tp17778184p17778184.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Couldn't deploy more than one servicemix-camel service-units

Posted by Dave Stanley <ds...@gmail.com>.
It sounds like you might have a camel version mismatch. Check the version
your pulling in in your SU's pom.xml and compare it with the version of
the actual camel component.

HTH
/Dave

On Fri, Jun 13, 2008 at 10:20 AM, pratibhaG <pr...@in2m.com>
wrote:

>
> Thanks for the information.
>
>    We faced some issues while building camel 1.4.0 version so we went with
> 1.3.0.
>    We successfully built it and placed it in servicemix-home/hotdeploy as
> servicemix-camel-3.2.2-SNAPSHOT-installer.zip instead of
> servicemix-camel-3.2.1-installer.zip
>
>    When I had my servicemix-camel-3.2.1-installer.zip in hotdeploy my
> example was working fine. But now it's not.
>
>    But after sending my message we were facing problems:
>
>    This is how my flow looks :              HTTP-SU(Consumer) --> Camel-SU
> --> HTTP-SU (Provider)
>
>    As soon as my message reaches camel we are facing this issue:
>
>    java.lang.NoSuchMethodError:
> org.apache.camel.Endpoint.getCamelContext()Lorg/apache/camel/CamelContext;
>        at
>
> org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:100)
>        at
>
> org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:74)
>        at
>
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>        at
>
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>        at
>
> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>        at
>
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>        at
>
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
>        at
>
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>        at java.lang.Thread.run(Thread.java:595)
>
>
>        what is the problem?
>       what  went wrong? Please help
>
> Pratibha
> --
> View this message in context:
> http://www.nabble.com/Couldn%27t-deploy-more-than-one-servicemix-camel-service-units-tp17778184p17824547.html
>  Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Re: Couldn't deploy more than one servicemix-camel service-units

Posted by pratibhaG <pr...@in2m.com>.
Thanks for the information.
 
    We faced some issues while building camel 1.4.0 version so we went with
1.3.0.
    We successfully built it and placed it in servicemix-home/hotdeploy as
servicemix-camel-3.2.2-SNAPSHOT-installer.zip instead of
servicemix-camel-3.2.1-installer.zip
 
    When I had my servicemix-camel-3.2.1-installer.zip in hotdeploy my
example was working fine. But now it's not.
   
    But after sending my message we were facing problems:
    
    This is how my flow looks :              HTTP-SU(Consumer) --> Camel-SU
--> HTTP-SU (Provider)
 
    As soon as my message reaches camel we are facing this issue:
 
    java.lang.NoSuchMethodError:
org.apache.camel.Endpoint.getCamelContext()Lorg/apache/camel/CamelContext;
        at
org.apache.servicemix.camel.CamelJbiEndpoint.handleActiveProviderExchange(CamelJbiEndpoint.java:100)
        at
org.apache.servicemix.camel.CamelJbiEndpoint.process(CamelJbiEndpoint.java:74)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
 
 
        what is the problem?
       what  went wrong? Please help

Pratibha
-- 
View this message in context: http://www.nabble.com/Couldn%27t-deploy-more-than-one-servicemix-camel-service-units-tp17778184p17824547.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Couldn't deploy more than one servicemix-camel service-units

Posted by Bruce Snyder <br...@gmail.com>.
On Thu, Jun 12, 2008 at 12:16 AM, pratibhaG <pr...@in2m.com> wrote:
>
> I downloaded the source for servicemix 3.2.2 and tried to build it as
> explained in
> http://servicemix.apache.org/building.html
> It worked fine for
>
> mvn -Dmaven.test.skip=true -Pstep1 install
>
> but when I moved further for
> mvn -Dmaven.test.skip=true -Pstep2 install
>
> It gave me following error:
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) org.apache.camel:camel-spring:jar:1.4-SNAPSHOT
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=org.apache.camel
> -DartifactId=camel-spring -Dversion=1.4-SNAPSHOT
> -Dpackaging=jar-Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=org.apache.camel
> -DartifactId=camel-spring -Dversion=1.4-SNAPSHOT -Dpackaging=jar
> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1)
> org.apache.servicemix:servicemix-camel:jbi-component:3.2.2-SNAPSHOT
>        2) org.apache.camel:camel-spring:jar:1.4-SNAPSHOT
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  org.apache.servicemix:servicemix-camel:jbi-component:3.2.2-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo),
>  java.net (http://download.java.net/maven/1),
>  apache.snapshots (http://svn.apache.org/maven-snapshot-repository),
>  codehaus (http://repository.codehaus.org),
>  apache-incubating
> (http://people.apache.org/repo/m2-incubating-repository),
>  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)
>
>
> It is missing
> org.apache.camel:camel-spring:jar:1.4-SNAPSHOT
>
> I tried to search for this artifact on above repositories as well as google,
> but could not find it.
> How can I solve this problem?
>
> Will it do if I change the dependency from camel 1.4 to 1.3 as the above
> artifact for version 1.3 is available?

This is a problem with the snapshots for Camel being deleted from the
Apache snapshots repository. What I did to work around this is to
build the camel trunk to create a 1.4 snapshot locally.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: Couldn't deploy more than one servicemix-camel service-units

Posted by pratibhaG <pr...@in2m.com>.
I downloaded the source for servicemix 3.2.2 and tried to build it as
explained in
http://servicemix.apache.org/building.html
It worked fine for

mvn -Dmaven.test.skip=true -Pstep1 install

but when I moved further for
mvn -Dmaven.test.skip=true -Pstep2 install

It gave me following error:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
 
Missing:
----------
1) org.apache.camel:camel-spring:jar:1.4-SNAPSHOT
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.camel
-DartifactId=camel-spring -Dversion=1.4-SNAPSHOT
-Dpackaging=jar-Dfile=/path/to/file
 
  Alternatively, if you host your own repository you can deploy the file
there:
      mvn deploy:deploy-file -DgroupId=org.apache.camel
-DartifactId=camel-spring -Dversion=1.4-SNAPSHOT -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
 
  Path to dependency:
        1)
org.apache.servicemix:servicemix-camel:jbi-component:3.2.2-SNAPSHOT
        2) org.apache.camel:camel-spring:jar:1.4-SNAPSHOT
 
----------
1 required artifact is missing.
 
for artifact:
  org.apache.servicemix:servicemix-camel:jbi-component:3.2.2-SNAPSHOT
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2), 
  servicemix-m2-repo (http://svn.apache.org/repos/asf/servicemix/m2-repo), 
  java.net (http://download.java.net/maven/1), 
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository), 
  codehaus (http://repository.codehaus.org), 
  apache-incubating
(http://people.apache.org/repo/m2-incubating-repository), 
  apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository)


It is missing
org.apache.camel:camel-spring:jar:1.4-SNAPSHOT

I tried to search for this artifact on above repositories as well as google,
but could not find it.
How can I solve this problem?

Will it do if I change the dependency from camel 1.4 to 1.3 as the above
artifact for version 1.3 is available?

Pratibha
-- 
View this message in context: http://www.nabble.com/Couldn%27t-deploy-more-than-one-servicemix-camel-service-units-tp17778184p17793223.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Couldn't deploy more than one servicemix-camel service-units

Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Jun 11, 2008 at 7:53 AM, pratibhaG <pr...@in2m.com> wrote:
>
> I am using servicemix 3.2.1 and facing the same problem as discussed in
> [jira] Resolved: (SM-1191) Couldn't deploy >1 separate servicemix-camel
> service-units.
>
> As said it has been resolved in 3.2.2 version. But, there is not official
> released for 3.2.2 version.
>
> 1) Can i use this resolved problem patch for servicemix 3.2.1 version.If
> it's not when can i expect 3.2.2 release.

Yes, you should be able to build the 3.2.2 version of the
servicemix-camel component and use it in 3.2.1.

> 2) Is there any link which actually provides binary version for 3.2.2
> release and how much it is stable?

3.2.2 has not yet been released. For the time-being, I'd suggest
building the ServiceMix 3.2 branch yourself to produce a 3.2.2
snapshot because currently the snapshot builds keep getting removed
and I'm trying to get this changed.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/