You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by 谷雨 <xg...@sina.com> on 2008/04/30 05:07:53 UTC

tuscany web app deployed on jboss

 

I copy  all jars in “tuscany-sca-1.2-incubating /lib” and
tuscany-host-webapp-1.2-incubating.jar in
“tuscany-sca-1.2-incubating/modules/” into
jboss-4.2.2GA/server/default/lib. Then I copy the Tuscany sample
calculator-webapp.war into jboss-4.2.2GA/server/default/deploy. I start
jboss, there are some errors parinted on screen:

 

…

Caused by: java.lang.reflect.InvocationTargetException

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

 

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

orAccessorImpl.java:39)

        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

onstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

        at
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCAD

omain.java:246)

        ... 141 more

Caused by: java.lang.ClassCastException:
org.apache.tuscany.sca.osgi.runtime.OSG

iRuntimeModuleActivator

        at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.loadModu

les(ReallySmallRuntime.java:320)

        at
org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.start(Re

allySmallRuntime.java:128)

        at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.init(Defau

ltSCADomain.java:118)

        at
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(Def

aultSCADomain.java:109)

        at
org.apache.tuscany.sca.host.webapp.WebSCADomain.<init>(WebSCADomain.j

ava:41)

        ... 146 more

09:21:10,781 ERROR [STDERR] 2008-4-30 9:21:10
org.apache.catalina.core.StandardC

ontext start

…..

 

Why?

I have a sense that Tuscany+jboss is a unstable combination.