Re: Camel blueprint in JBoss AS

2013-07-05 Thread Gnanaguru S
Hi, 

Thanks, I added the blueprint bundle. But it shows an error. Is it because
of the version conflict. I couldnt understand the error message. 

15:29:06,328 ERROR [org.apache.camel.camel-blueprint] (Thread-62)
FrameworkEvent ERROR: org.apache.felix.log.LogException: o
.osgi.framework.BundleException: Cannot resolve bundle resModule:
[org.apache.camel.camel-blueprint:2.10.0]
at
org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157)
at
org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)
at
org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211)
at
org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494)
at
org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144)
at
org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)
at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416)
at
org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49)
at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[rt.jar:1.6.0_17]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[rt.jar:1.6.0_17]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]
Caused by: org.apache.felix.log.LogException:
org.jboss.osgi.resolver.XResolverException: Unable to resolve
Module[org.apach
camel.camel-blueprint:2.10.0]: missing requirement
[Module[org.apache.camel.camel-blueprint:2.10.0]] package; ((package=org
pache.aries.blueprint)(version=0.2.0)(!(version=2.0.0)))
at
org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117)
at
org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149)
at
org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155)
... 11 more

15:29:06,372 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)
JBAS018559: Deployed camel-blueprint-2.10.0.jar

Regards
Guru



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-blueprint-in-JBoss-AS-tp5735183p5735200.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel blueprint in JBoss AS

2013-07-05 Thread Aki Yoshida
that means you don't have org.apache.aries.blueprint stuff.
I don't know what needs to be done for your JBoss container to set up the
aries blueprint.

regards, aki


2013/7/5 Gnanaguru S gnanaguru.sattanat...@wipro.com

 Hi,

 Thanks, I added the blueprint bundle. But it shows an error. Is it because
 of the version conflict. I couldnt understand the error message.

 15:29:06,328 ERROR [org.apache.camel.camel-blueprint] (Thread-62)
 FrameworkEvent ERROR: org.apache.felix.log.LogException: o
 .osgi.framework.BundleException: Cannot resolve bundle resModule:
 [org.apache.camel.camel-blueprint:2.10.0]
 at

 org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157)
 at

 org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551)
 at

 org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211)
 at

 org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494)
 at

 org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144)
 at

 org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119)
 at

 org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416)
 at

 org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49)
 at

 org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954)
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 [rt.jar:1.6.0_17]
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 [rt.jar:1.6.0_17]
 at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]
 Caused by: org.apache.felix.log.LogException:
 org.jboss.osgi.resolver.XResolverException: Unable to resolve
 Module[org.apach
 camel.camel-blueprint:2.10.0]: missing requirement
 [Module[org.apache.camel.camel-blueprint:2.10.0]] package; ((package=org
 pache.aries.blueprint)(version=0.2.0)(!(version=2.0.0)))
 at

 org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117)
 at

 org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149)
 at

 org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155)
 ... 11 more

 15:29:06,372 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2)
 JBAS018559: Deployed camel-blueprint-2.10.0.jar

 Regards
 Guru



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/Camel-blueprint-in-JBoss-AS-tp5735183p5735200.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Re: Camel blueprint in JBoss AS

2013-07-05 Thread Gnanaguru S
Hi, 

JBoss AS ships Aries inbuilt, I suspect there is a conflict with the
Versions. Because we can directly drop the blueprint bundles in the hot
deployment directory. 

Let me post in JBoss forum about this issue. Thanks Aki

Regards
Guru
@gnanagurus
gnanaguru.com



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-blueprint-in-JBoss-AS-tp5735183p5735202.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Camel blueprint in JBoss AS

2013-07-04 Thread Gnanaguru S
Hi, 

I am trying to deploy a camel-config.xml directly in JBoss deployment
directory. 

I have wrapped the camel context with blueprint tags, I have deployed
camel-core.jar in the same deployment directory. camel-core is shown as a
active bundle in the bundles list. 

The camel-config.xml is showing as deployed, but the routes are not working.
( A simple file to file use case)

Do I need to deploy any blueprint specific bundles ? 

I have a Java application which will collect from/to endpoints from a web
portal and creates a camel-config.xml dynamically. I want this to be
deployed on a server, that is the reason why I prefered blueprint as a
option to deploy xml's directly. 

Sample code: 


blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  
xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0;
   xmlns:jaxws=http://cxf.apache.org/blueprint/jaxws;
   xmlns:cxf=http://cxf.apache.org/blueprint/core;
   xmlns:camel=http://camel.apache.org/schema/blueprint;
   xmlns:camelcxf=http://camel.apache.org/schema/blueprint/cxf;
   xsi:schemaLocation=
 http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
 http://cxf.apache.org/blueprint/jaxws
http://cxf.apache.org/schemas/blueprint/jaxws.xsd
 http://cxf.apache.org/blueprint/core
http://cxf.apache.org/schemas/blueprint/core.xsd
 

  
  camelContext id=camel xmlns=http://camel.apache.org/schema/blueprint;
  
  route

from uri=file://e:\input /

to uri=file://e:\output /


/route
  
  /camelContext

/blueprint

Thanks
Guru
gnanaguru.com






--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-blueprint-in-JBoss-AS-tp5735183.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel blueprint in JBoss AS

2013-07-04 Thread Aki Yoshida
if you are talking about the camel components, you will also need
camel-blueprint.



2013/7/4 Gnanaguru S gnanaguru.sattanat...@wipro.com

 Hi,

 I am trying to deploy a camel-config.xml directly in JBoss deployment
 directory.

 I have wrapped the camel context with blueprint tags, I have deployed
 camel-core.jar in the same deployment directory. camel-core is shown as a
 active bundle in the bundles list.

 The camel-config.xml is showing as deployed, but the routes are not
 working.
 ( A simple file to file use case)

 Do I need to deploy any blueprint specific bundles ?

 I have a Java application which will collect from/to endpoints from a web
 portal and creates a camel-config.xml dynamically. I want this to be
 deployed on a server, that is the reason why I prefered blueprint as a
 option to deploy xml's directly.

 Sample code:


 blueprint xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0;
xmlns:jaxws=http://cxf.apache.org/blueprint/jaxws;
xmlns:cxf=http://cxf.apache.org/blueprint/core;
xmlns:camel=http://camel.apache.org/schema/blueprint;
xmlns:camelcxf=http://camel.apache.org/schema/blueprint/cxf;
xsi:schemaLocation=
  http://www.osgi.org/xmlns/blueprint/v1.0.0
 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
  http://cxf.apache.org/blueprint/jaxws
 http://cxf.apache.org/schemas/blueprint/jaxws.xsd
  http://cxf.apache.org/blueprint/core
 http://cxf.apache.org/schemas/blueprint/core.xsd
  


   camelContext id=camel xmlns=http://camel.apache.org/schema/blueprint
 

   route

 from uri=file://e:\input /

 to uri=file://e:\output /


 /route

   /camelContext

 /blueprint

 Thanks
 Guru
 gnanaguru.com






 --
 View this message in context:
 http://camel.465427.n5.nabble.com/Camel-blueprint-in-JBoss-AS-tp5735183.html
 Sent from the Camel - Users mailing list archive at Nabble.com.