tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Stevens" <tstevens...@earthlink.net>
Subject unsubscribe
Date Thu, 24 Nov 2011 18:25:55 GMT
unsubscribe

-----Original Message-----
From: Antonio De Berardis [mailto:antonio.de-berardis@aps-prevoyance.fr] 
Sent: Thursday, November 24, 2011 8:27 AM
To: user@tuscany.apache.org
Subject: Re: tomcat integration help (tuscany 2.0beta3)

Le 21/11/2011 14:43, ant elder a écrit :
> On Wed, Nov 16, 2011 at 4:09 PM, Antonio De Berardis 
> <antonio.de-berardis@aps-prevoyance.fr>  wrote:
>> Hi, I'm trying to deploy a WebApp (included here as attachment) in a 
>> Tomcat
>> 6 instance, where I deployed and installed tuscany-war-2.0-Beta3.war.
>>
>> The error is:
>>
>> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>>     at
>>
org.apache.tuscany.sca.tomcat.TuscanyStandardContext.initDomain(TuscanyStand
ardContext.java:177)
>>     at
>>
org.apache.tuscany.sca.tomcat.TuscanyStandardContext.initTuscany(TuscanyStan
dardContext.java:142)
>>     at
>>
org.apache.tuscany.sca.tomcat.TuscanyStandardContext.getLoader(TuscanyStanda
rdContext.java:75)
>>     at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4514)
>>     at
>>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
99)
>>     at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
>>     at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
>>     at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
>>     at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
>>     at
>>
org.apache.tuscany.sca.tomcat.TuscanyHostConfig.deployApps(TuscanyHostConfig
.java:47)
>>     at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1383)
>>     at
>>
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
>>     at
>>
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:142)
>>     at
>>
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
1385)
>>     at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1649)
>>     at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
hildren(ContainerBase.java:1658)
>>     at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
ainerBase.java:1638)
>>     at java.lang.Thread.run(Thread.java:679)
>> Caused by: java.lang.reflect.InvocationTargetException
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)
>>     at
>>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:616)
>>     at
>>
org.apache.tuscany.sca.tomcat.TuscanyStandardContext.initDomain(TuscanyStand
ardContext.java:175)
>>     ... 17 more
>> Caused by: java.lang.IllegalStateException:
>> org.oasisopen.sca.ServiceRuntimeException: No DomainRegistry can 
>> support tuscany:default
>>     at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:195)
>>     ... 22 more
>> Caused by: org.oasisopen.sca.ServiceRuntimeException: No 
>> DomainRegistry can support tuscany:default
>>     at
>>
org.apache.tuscany.sca.runtime.ExtensibleDomainRegistryFactory.getEndpointRe
gistry(ExtensibleDomainRegistryFactory.java:113)
>>     at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:143)
>>     ... 22 more
>>
>> When tomcat starts I have a warning, but the Tuscany-war webapp seems 
>> to start. I don' know if this warning is the cause of the above error...
>>
>> WARN: [SetPropertiesRule]{Server/Service/Engine/Host} Setting 
>> property 'hostConfigClass' to 
>> 'org.apache.tuscany.sca.tomcat.TuscanyHostConfig' did not find a matching
property.
>> 16 nov. 2011 16:49:44 
>> org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener
>> lifecycleEvent
>> INFO: Using Tuscany webapp:
>> /home/antonio/test/tuscany-tomcat-6.0.32/webapps/tuscany-war-2.0-Beta
>> 3
>> 16 nov. 2011 16:49:44 
>> org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener
>> lifecycleEvent
>> INFO: Tuscany enabled on connector: localhost:8080
>> 16 nov. 2011 16:49:44 
>> org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener
>> lifecycleEvent
>> INFO: Tuscany enabled on connector: localhost:8009
>> 16 nov. 2011 16:49:45 org.apache.coyote.http11.Http11Protocol init
>> INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
>> 16 nov. 2011 16:49:45 org.apache.catalina.startup.Catalina load
>> INFO: Initialization processed in 357 ms
>> 16 nov. 2011 16:49:45 org.apache.catalina.core.StandardService start
>> INFO: Démarrage du service Catalina
>> 16 nov. 2011 16:49:45 org.apache.catalina.core.StandardEngine start
>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
>>   ...
>>
>> ...
>> 16 nov. 2011 16:49:45 org.apache.catalina.startup.Catalina start
>> INFO: Server startup in 570 ms
>>
>> Any help will be appreciated.
>>
>> Antonio De Berardis
>>
> In your Tomcat install in the conf folder the server.xml has the 
> Tuscany configuration, near the top is the line:
>
>    <Listener
className="org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener"
> />
>
> try changing that to be:
>
>    <Listener
className="org.apache.tuscany.sca.tomcat.TuscanyLifecycleListener"
> domainURI="default" />
>
> I've tried that with your _TestSCA.war and with that change i now see 
> the endpoints for the components come active.
>
>     ...ant

Hi, why if I include a META-INF/context.xml in my war it doesn't work?
My context.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<Context>
	<Resource name="myDS" auth="Container" type="javax.sql.DataSource"
		driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/DS"
		username="xx" password="xx" maxActive="100" maxIdle="30"
maxWait="10000" /> </Context>

If I remove this file it works...

Antonio





Mime
View raw message