tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konradi, Philipp" <philipp.konr...@siemens.com>
Subject RE: binding.jms in SCA Java 2.0 M4 -RC2
Date Wed, 11 Nov 2009 08:41:02 GMT
Are there any workarounds known? 

 

From: ant elder [mailto:ant.elder@gmail.com] 
Sent: Monday, November 09, 2009 10:21 AM
To: dev@tuscany.apache.org
Subject: Re: binding.jms in SCA Java 2.0 M4 -RC2

 

Does the JMS binding actually work in an OSGi environment, i thought
there were issues with the accessing JNDI and the JMS resources that we
still needed to resolve? 

   ...ant

On Sat, Nov 7, 2009 at 6:52 PM, Raymond Feng <enjoyjava@gmail.com>
wrote:

Apparently, the binding-jms-runtime bundle is missing a few javax.*
packages. I'll fix it.

 

For Tuscany developers, please make sure OSGi system packages from the
JDK (javax.*, org.w3s.*, org.omg.* etc) must be listed on the
Import-Package header even they are from the JDK. The tricky thing is
that Eclipse PDE doesn't complain.

 

Thanks,

Raymond

 

From: roshan joseph <mailto:roshanjose@yahoo.com>  

Sent: Saturday, November 07, 2009 12:14 AM

To: dev@tuscany.apache.org 

Subject: binding.jms in SCA Java 2.0 M4 -RC2

 

Hi,

Could someone help me resolve the error which I am getting when I start
a small osgi bundle which has a helloworld.sayhello("Name") service. 

This is the details of my composite file which uses jms binding to
provide this service. I have an external broker with the queue
information as well started. 

<component name="VehicleLocationPublisherComponent"> 

   < tuscany :implementation.osgi
bundleSymbolicName="VehicleLocationPublisher" bundleVersion="1.0.0" /> 

   <service name="HelloWorldService"> 

   <binding.jms
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa
ctory" jndiURL="tcp://localhost:61616"> 

         <destination jndiName="DestQueueA" create="always"/> 

         <response> 

             <destination jndiName="RespQueueA" create="always"/> 

          </response> 

   </binding.jms>  

   </service> 

</component> 

When I start my bundle from the osgi prompt I get this error. 

Thanks and appreciate your help in advance... 

Regards, 

Roshan 

-------------------------------------------error message
start------------------------ 

osgi> start 198 

Nov 6, 2009 10:31:07 AM org.myexample.publisher.Activator start 

INFO: Starting VehicleLocationPublisher_1.0.0 [198] 

Nov 6, 2009 10:31:07 AM org.myexample.publisher.Activator start 

INFO: Registering org.myexample.publisher.HelloWorldService 

Nov 6, 2009 10:31:07 AM org.myexample.publisher.Activator getBundle 

INFO: org.myexample.publisher.HelloWorldService is loaded by bundle:
VehicleLoca 

tionPublisher 

Nov 6, 2009 10:31:07 AM org.apache.tuscany.sca.node.impl.NodeImpl start 

INFO: Starting node: VehicleLocationPublisher domain: tuscany.apache.org
<http://tuscany.apache.org/>  

Nov 6, 2009 10:31:21 AM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadCon 

tributions 

INFO: Loading contribution: bundleentry://198.fwk29855319/ 

Nov 6, 2009 10:31:26 AM
org.apache.tuscany.sca.node.osgi.impl.NodeManager bundle 

Started 

SEVERE: org.apache.tuscany.sca.runtime.ActivationException:
org.apache.tuscany.s 

ca.runtime.ActivationException: java.lang.IllegalStateException:
java.lang.refle 

ct.InvocationTargetException 

java.lang.IllegalStateException:
org.apache.tuscany.sca.runtime.ActivationExcept 

ion: org.apache.tuscany.sca.runtime.ActivationException:
java.lang.IllegalStateE 

xception: java.lang.reflect.InvocationTargetException 

        at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:176) 

        at
org.apache.tuscany.sca.node.osgi.impl.NodeManager.bundleStarted(NodeM 

anager.java:117) 

        at
org.apache.tuscany.sca.node.osgi.impl.NodeManager.bundleChanged(NodeM 

anager.java:139) 

        at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEv 

ent(BundleContextImpl.java:916) 

        at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM 

anager.java:220) 

        at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchr 

onous(ListenerQueue.java:149) 

        at
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent 

Privileged(Framework.java:1350) 

        at
org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent 

(Framework.java:1301) 

        at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl 

eHost.java:362) 

        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac 

tBundle.java:280) 

        at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(Abstrac 

tBundle.java:272) 

        at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._st 

art(FrameworkCommandProvider.java:253) 

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source) 

        at java.lang.reflect.Method.invoke(Unknown Source) 

        at
org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter. 

execute(FrameworkCommandInterpreter.java:155) 

        at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(F 

rameworkConsole.java:303) 

        at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(Fra 

meworkConsole.java:288) 

        at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(Framewo 

rkConsole.java:224) 

        at java.lang.Thread.run(Unknown Source) 

Caused by: org.apache.tuscany.sca.runtime.ActivationException:
org.apache.tuscan 

y.sca.runtime.ActivationException: java.lang.IllegalStateException:
java.lang.re <http://java.lang.re/>  

flect.InvocationTargetException 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti 

vate(CompositeActivatorImpl.java:112) 

        at
org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:145) 

        ... 20 more 

Caused by: org.apache.tuscany.sca.runtime.ActivationException:
java.lang.Illegal 

StateException: java.lang.reflect.InvocationTargetException 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti 

vateComponent(CompositeActivatorImpl.java:157) 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti 

vate(CompositeActivatorImpl.java:109) 

        ... 21 more 

Caused by: java.lang.IllegalStateException:
java.lang.reflect.InvocationTargetEx 

ception 

        at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$ 

LazyBindingProviderFactory.getFactory(DefaultProviderFactoryExtensionPoi
nt.java: 

233) 

        at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$ 

LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderF
actoryEx 

tensionPoint.java:246) 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.addS 

erviceBindingProvider(CompositeActivatorImpl.java:286) 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti 

vate(CompositeActivatorImpl.java:262) 

        at
org.apache.tuscany.sca.core.assembly.impl.CompositeActivatorImpl.acti 

vateComponent(CompositeActivatorImpl.java:148) 

        ... 22 more 

Caused by: java.lang.reflect.InvocationTargetException 

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) 

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source) 

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou 

rce) 

        at java.lang.reflect.Constructor.newInstance(Unknown Source) 

        at
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$ 

LazyBindingProviderFactory.getFactory(DefaultProviderFactoryExtensionPoi
nt.java: 

231) 

        ... 26 more 

Caused by: java.lang.NoClassDefFoundError: javax/naming/NamingException 

        at
org.apache.tuscany.sca.binding.jms.host.DefaultJMSHostExtensionPoint. 

<init>(DefaultJMSHostExtensionPoint.java:33) 

        at
org.apache.tuscany.sca.binding.jms.provider.JMSBindingProviderFactory 

.<init>(JMSBindingProviderFactory.java:58) 

        ... 31 more 

Caused by: java.lang.ClassNotFoundException:
javax.naming.NamingException 

        at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl 

eLoader.java:489) 

        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. 

java:405) 

        at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader. 

java:393) 

        at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De 

faultClassLoader.java:105) 

        at java.lang.ClassLoader.loadClass(Unknown Source) 

        at java.lang.ClassLoader.loadClassInternal(Unknown Source) 

        ... 33 more 

--------------------End of error
message--------------------------------------------------------- 

 

 


Mime
View raw message