You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca> on 2007/03/07 18:47:12 UTC
tyring to run spring application
Hi,
I am trying to run a spring application under tomcat 5.5.17 but I am getting UnRecognizedElement exception. I am using tuscany-incubating-M2. can somebody tell me how I can install spring extension?
thanks,
Muhammad
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
**************************************************************************************
RE: tyring to run spring application
Posted by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca>.
Hi Jim,
My scdl file contain.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Muhammad Waseem
Description: Account Service SCA Spring Composite Application
Date Last Modifed: March 02, 2007
Status: Prototype
-->
<!--
Composite Service:
CheckingAccountService
Services:
CheckingAccountService
Components:
CheckingAccountComponent
-->
<composite
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
name="checkingaccount">
<dbsdo:import.sdo
xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2"
location="wsdl/services.wsdl" />
<service name="CheckingAccountService">
<interface.wsdl
interface="http://checkingaccount.springexample#wsdl.interface(CheckingAccountService)"
wsdli:wsdlLocation="http://checkingaccount.springexample wsdl/services.wsdl"
/>
<binding.ws
endpoint="http://checkingaccount.springexample#wsdl.endpoint(CheckingAccountService/CheckingAccountServiceSOAP)"
location="wsdl/services.wsdl"
/>
<!-- Define our component and implementation package -->
<reference>checkingAccountComponent</reference>
</service>
<component name="checkingAccountComponent">
<implementation.spring location="applicationContext.xml" />
</component>
</composite>
I am getting following exception.
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl.java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl.java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl.java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl.java:109)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:138)
... 27 more
thanks,
Muhammad Waseem
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Wed 3/7/2007 9:47 PM
To: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi,
>
> I am trying to run a spring application under tomcat 5.5.17 but I
> am getting UnRecognizedElement exception. I am using tuscany-
> incubating-M2. can somebody tell me how I can install spring
> extension?
>
> thanks,
> Muhammad
>
Hi Muhammad,
A couple of things:
1. Have you looked at the Spring web-app sample?
2. Do you have a stacktrace you could post?
3. Can you post the SCDL (assembly xml)?
If you can send the stacktrace and SCDL, I'll take a look. It may
also be helpful if the problem isn't apparent for you to post the
contents of the war to a JIRA, but we can take a look at the first
two items in turn.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
running HelloWorldJMS Sample
Posted by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca>.
Hi,
I am trying to run HelloWorldJMS sample but i am getting following exception. I am created a project under eclipse and i am using ant to build it. i have copied all the scdl files (databinding, default, idl and jms) under META-INF directory and tuscany extensions under tuscany directory. I also couldn't find the tuscany JMS extension jar. any suggestions?
Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider com.bea.xml.stream.MXParserFactory not found
at javax.xml.stream.FactoryFinder.newInstance(FactoryFinder.java:72)
at javax.xml.stream.FactoryFinder.find(FactoryFinder.java:176)
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:155)
at org.apache.tuscany.core.launcher.LauncherImpl.bootRuntime(LauncherImpl.java:76)
at org.apache.tuscany.core.launcher.LauncherImpl.bootRuntime(LauncherImpl.java:158)
at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:55)
at helloworld.HelloWorldJmsClient.setUp(HelloWorldJmsClient.java:36)
at helloworld.HelloWorldJmsClient.main(HelloWorldJmsClient.java:46)
regards,
Muhammad Waseem
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
**************************************************************************************
RE: tyring to run spring application
Posted by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca>.
Hi,
I changed the spring.system.scdl file in meta-inf to default.scdl then this exception is gone. but now i am getting following exception
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.MissingResourceException: No location supplied
Context stack trace: [Account Service Spring Prototype][AccountServiceComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
________________________________
From: Waseem, Muhammad (CA - Toronto) [mailto:mwaseem@deloitte.ca]
Sent: Tue 3/13/2007 12:21 PM
To: Jim Marino
Cc: tuscany-dev@ws.apache.org
Subject: RE: tyring to run spring application
Hi,
When i copy the jar in the extension direcotry i am getting the following exception.
org.apache.tuscany.spi.loader.LoaderException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xa0 (at char #11, byte #-1)
Context stack trace: [spring-1.0-incubator-M2]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:136)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.loadFromSidefile(SystemCompositeComponentTypeLoader.java:68)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:38)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.deployExtension(AbstractExtensionDeployer.java:104)
at org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init(WebResourceScanExtender.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
regards,
Muhammad
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Fri 3/9/2007 1:02 AM
To: Waseem, Muhammad (CA - Toronto)
Cc: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
Hi Waseem,
Sorry for the delay, I was tied up at work...The short answer is you need to make sure the Tuscany Spring Extensions jar is in the extensions lib directory. The jar adds support for Spring to the SCA kernel. I'll try and respond more fully tomorrow and help out more.
Jim
On Mar 7, 2007, at 9:38 PM, Waseem, Muhammad ((CA - Toronto)) wrote:
Hi Jim,
My scdl file contain.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Muhammad Waseem
Description: Account Service SCA Spring Composite Application
Date Last Modifed: March 02, 2007
Status: Prototype
-->
<!--
Composite Service:
CheckingAccountService
Services:
CheckingAccountService
Components:
CheckingAccountComponent
-->
<composite
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
name="checkingaccount">
<dbsdo:import.sdo
xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2"
location="wsdl/services.wsdl" />
<service name="CheckingAccountService">
<interface.wsdl
interface="http://checkingaccount.springexample#wsdl.interface(CheckingAccountService)"
wsdli:wsdlLocation="http://checkingaccount.springexample wsdl/services.wsdl"
/>
<binding.ws
endpoint="http://checkingaccount.springexample#wsdl.endpoint(CheckingAccountService/CheckingAccountServiceSOAP)"
location="wsdl/services.wsdl"
/>
<!-- Define our component and implementation package -->
<reference>checkingAccountComponent</reference>
</service>
<component name="checkingAccountComponent">
<implementation.spring location="applicationContext.xml" />
</component>
</composite>
I am getting following exception.
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl....java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl....java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl....java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl....java:109)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:138)
.... 27 more
I am also attaching the war file. I have deleted the lib files from the war.
thanks,
Muhammad Waseem
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Wed 3/7/2007 9:47 PM
To: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi,
>
> I am trying to run a spring application under tomcat 5.5.17 but I
> am getting UnRecognizedElement exception. I am using tuscany-
> incubating-M2. can somebody tell me how I can install spring
> extension?
>
> thanks,
> Muhammad
>
Hi Muhammad,
A couple of things:
1. Have you looked at the Spring web-app sample?
2. Do you have a stacktrace you could post?
3. Can you post the SCDL (assembly xml)?
If you can send the stacktrace and SCDL, I'll take a look. It may
also be helpful if the problem isn't apparent for you to post the
contents of the war to a JIRA, but we can take a look at the first
two items in turn.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
________________________________
************************************************************************************** Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system. Thank you. Information confidentielle: Le présent message, ainsi que tout fichier qui y est joint, est envoyé à l'intention exclusive de son ou de ses destinataires; il est de nature confidentielle et peut constituer une information privilégiée. Nous avertissons toute personne autre que le destinataire prévu que tout examen, réacheminement, impression, copie, distribution ou autre utilisation de ce message et de tout fichier qui y est joint est strictement interdit. Si vous n'êtes pas le destinataire prévu, veuillez en aviser immédiatement l'expéditeur par retour de courriel et supprimer ce message et tout document joint de votre système. Merci. **************************************************************************************
<SpringSCA.war>
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
**************************************************************************************
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
****************************************************************
RE: tyring to run spring application
Posted by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca>.
Hi,
When i copy the jar in the extension direcotry i am getting the following exception.
org.apache.tuscany.spi.loader.LoaderException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0xa0 (at char #11, byte #-1)
Context stack trace: [spring-1.0-incubator-M2]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:136)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.loadFromSidefile(SystemCompositeComponentTypeLoader.java:68)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:38)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.deployExtension(AbstractExtensionDeployer.java:104)
at org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init(WebResourceScanExtender.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
regards,
Muhammad
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Fri 3/9/2007 1:02 AM
To: Waseem, Muhammad (CA - Toronto)
Cc: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
Hi Waseem,
Sorry for the delay, I was tied up at work...The short answer is you need to make sure the Tuscany Spring Extensions jar is in the extensions lib directory. The jar adds support for Spring to the SCA kernel. I'll try and respond more fully tomorrow and help out more.
Jim
On Mar 7, 2007, at 9:38 PM, Waseem, Muhammad ((CA - Toronto)) wrote:
Hi Jim,
My scdl file contain.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Muhammad Waseem
Description: Account Service SCA Spring Composite Application
Date Last Modifed: March 02, 2007
Status: Prototype
-->
<!--
Composite Service:
CheckingAccountService
Services:
CheckingAccountService
Components:
CheckingAccountComponent
-->
<composite
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
name="checkingaccount">
<dbsdo:import.sdo
xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2"
location="wsdl/services.wsdl" />
<service name="CheckingAccountService">
<interface.wsdl
interface="http://checkingaccount.springexample#wsdl.interface(CheckingAccountService)"
wsdli:wsdlLocation="http://checkingaccount.springexample wsdl/services.wsdl"
/>
<binding.ws
endpoint="http://checkingaccount.springexample#wsdl.endpoint(CheckingAccountService/CheckingAccountServiceSOAP)"
location="wsdl/services.wsdl"
/>
<!-- Define our component and implementation package -->
<reference>checkingAccountComponent</reference>
</service>
<component name="checkingAccountComponent">
<implementation.spring location="applicationContext.xml" />
</component>
</composite>
I am getting following exception.
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:109)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:138)
.... 27 more
I am also attaching the war file. I have deleted the lib files from the war.
thanks,
Muhammad Waseem
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Wed 3/7/2007 9:47 PM
To: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi,
>
> I am trying to run a spring application under tomcat 5.5.17 but I
> am getting UnRecognizedElement exception. I am using tuscany-
> incubating-M2. can somebody tell me how I can install spring
> extension?
>
> thanks,
> Muhammad
>
Hi Muhammad,
A couple of things:
1. Have you looked at the Spring web-app sample?
2. Do you have a stacktrace you could post?
3. Can you post the SCDL (assembly xml)?
If you can send the stacktrace and SCDL, I'll take a look. It may
also be helpful if the problem isn't apparent for you to post the
contents of the war to a JIRA, but we can take a look at the first
two items in turn.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
________________________________
************************************************************************************** Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system. Thank you. Information confidentielle: Le présent message, ainsi que tout fichier qui y est joint, est envoyé à l'intention exclusive de son ou de ses destinataires; il est de nature confidentielle et peut constituer une information privilégiée. Nous avertissons toute personne autre que le destinataire prévu que tout examen, réacheminement, impression, copie, distribution ou autre utilisation de ce message et de tout fichier qui y est joint est strictement interdit. Si vous n'êtes pas le destinataire prévu, veuillez en aviser immédiatement l'expéditeur par retour de courriel et supprimer ce message et tout document joint de votre système. Merci. **************************************************************************************
<SpringSCA.war>
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
**************************************************************************************
RE: tyring to run spring application
Posted by "Waseem, Muhammad (CA - Toronto)" <mw...@deloitte.ca>.
Hi Jim,
When i looked at the spring sample in SCA extension directory i noticed that there are two file (spring.system.scdl, test.binding.system.scdl ) do i need to include these files also. I also copied the spring-1.0-incubator-M2.jar file to this direcoty. but when i started my application i am getting following exceptions.
org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT}implementation.system [{http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT}implementation.system]
Context stack trace: [spring.system][spring.implementationLoader]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:109)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.loadFromSidefile(SystemCompositeComponentTypeLoader.java:68)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:38)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.deployExtension(AbstractExtensionDeployer.java:104)
at org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init(WebResourceScanExtender.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:42)
at org.apache.tuscany.core.implementation.PojoAtomicComponent.init(PojoAtomicComponent.java:94)
at org.apache.tuscany.core.component.scope.InstanceWrapperImpl.start(InstanceWrapperImpl.java:49)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.eagerInitComponents(ModuleScopeContainer.java:145)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.onEvent(ModuleScopeContainer.java:72)
at org.apache.tuscany.spi.component.AbstractSCAObject.publish(AbstractSCAObject.java:94)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.publish(AbstractCompositeComponent.java:139)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.start(AbstractCompositeComponent.java:106)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:127)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAXUtils).
log4j:WARN Please initialize the log4j system properly.
org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT}implementation.system [{http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT}implementation.system]
Context stack trace: [test.binding.system][BindingLoader]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:109)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.loadFromSidefile(SystemCompositeComponentTypeLoader.java:68)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:38)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.deployExtension(AbstractExtensionDeployer.java:104)
at org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init(WebResourceScanExtender.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:42)
at org.apache.tuscany.core.implementation.PojoAtomicComponent.init(PojoAtomicComponent.java:94)
at org.apache.tuscany.core.component.scope.InstanceWrapperImpl.start(InstanceWrapperImpl.java:49)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.eagerInitComponents(ModuleScopeContainer.java:145)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.onEvent(ModuleScopeContainer.java:72)
at org.apache.tuscany.spi.component.AbstractSCAObject.publish(AbstractSCAObject.java:94)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.publish(AbstractCompositeComponent.java:139)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.start(AbstractCompositeComponent.java:106)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:127)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
org.apache.tuscany.spi.loader.LoaderException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0x86 (at char #12, byte #-1)
Context stack trace: [spring-1.0-incubator-M2]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:136)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.loadFromSidefile(SystemCompositeComponentTypeLoader.java:68)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
at org.apache.tuscany.core.implementation.system.loader.SystemCompositeComponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:38)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.deployExtension(AbstractExtensionDeployer.java:104)
at org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init(WebResourceScanExtender.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(MethodEventInvoker.java:42)
at org.apache.tuscany.core.implementation.PojoAtomicComponent.init(PojoAtomicComponent.java:94)
at org.apache.tuscany.core.component.scope.InstanceWrapperImpl.start(InstanceWrapperImpl.java:49)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.eagerInitComponents(ModuleScopeContainer.java:145)
at org.apache.tuscany.core.component.scope.ModuleScopeContainer.onEvent(ModuleScopeContainer.java:72)
at org.apache.tuscany.spi.component.AbstractSCAObject.publish(AbstractSCAObject.java:94)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.publish(AbstractCompositeComponent.java:139)
at org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.start(AbstractCompositeComponent.java:106)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:127)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 start byte 0x86 (at char #12, byte #-1)
at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:650)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1071)
at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1080)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:107)
... 48 more
Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0x86 (at char #12, byte #-1)
at com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:299)
at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:185)
at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:934)
at com.ctc.wstx.sr.StreamScanner.getNext(StreamScanner.java:705)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:1882)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1054)
... 50 more
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [Account Service Spring Prototype][AccountServiceComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMthodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [Account Service Spring Prototype][AccountServiceComponent]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl..java:109)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:138)
... 27 more
Mar 13, 2007 10:11:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Mar 13, 2007 10:11:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/AccountHistoryPrototype] startup failed due to previous errors
Mar 13, 2007 10:11:40 AM org.apache.catalina.core.StandardContext start
SEVERE: Exception during cleanup after start failed
java.lang.NullPointerException
at org.apache.tuscany.tomcat.TuscanyContextListener.stopContext(TuscanyContextListener.java:143)
at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:69)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4355)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 13, 2007 10:11:40 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
LifecycleException: Manager has not yet been started
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:659)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4345)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4245)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 13, 2007 10:11:40 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive AccountHistoryPrototype.war
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: Manager has not yet been started
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:763)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
regards,
Muhammad Waseem
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Fri 3/9/2007 1:02 AM
To: Waseem, Muhammad (CA - Toronto)
Cc: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
Hi Waseem,
Sorry for the delay, I was tied up at work...The short answer is you need to make sure the Tuscany Spring Extensions jar is in the extensions lib directory. The jar adds support for Spring to the SCA kernel. I'll try and respond more fully tomorrow and help out more.
Jim
On Mar 7, 2007, at 9:38 PM, Waseem, Muhammad ((CA - Toronto)) wrote:
Hi Jim,
My scdl file contain.
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Muhammad Waseem
Description: Account Service SCA Spring Composite Application
Date Last Modifed: March 02, 2007
Status: Prototype
-->
<!--
Composite Service:
CheckingAccountService
Services:
CheckingAccountService
Components:
CheckingAccountComponent
-->
<composite
xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
name="checkingaccount">
<dbsdo:import.sdo
xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/databinding/sdo/1.0-incubator-M2"
location="wsdl/services.wsdl" />
<service name="CheckingAccountService">
<interface.wsdl
interface="http://checkingaccount.springexample#wsdl.interface(CheckingAccountService)"
wsdli:wsdlLocation="http://checkingaccount.springexample wsdl/services.wsdl"
/>
<binding.ws
endpoint="http://checkingaccount.springexample#wsdl.endpoint(CheckingAccountService/CheckingAccountServiceSOAP)"
location="wsdl/services.wsdl"
/>
<!-- Define our component and implementation package -->
<reference>checkingAccountComponent</reference>
</service>
<component name="checkingAccountComponent">
<implementation.spring location="applicationContext.xml" />
</component>
</composite>
I am getting following exception.
org.apache.tuscany.runtime.webapp.ServletLauncherInitException: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:147)
at org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:74)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:133)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:72)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://www.osoa.org/xmlns/sca/1.0}implementation.spring]
Context stack trace: [SpringSCA Web Service Sample][checkingAccountComponent]
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:90)
at org.apache.tuscany.core.loader.ComponentLoader.loadImplementation(ComponentLoader.java:183)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:127)
at org.apache.tuscany.core.loader.ComponentLoader.load(ComponentLoader.java:70)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:92)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:81)
at org.apache.tuscany.core.implementation.composite.CompositeLoader.load(CompositeLoader.java:55)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:92)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistryImpl...java:109)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:57)
at org.apache.tuscany.core.implementation.composite.CompositeComponentTypeLoader.load(CompositeComponentTypeLoader.java:39)
at org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(LoaderRegistryImpl.java:159)
at org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:101)
at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java:76)
at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(AbstractRuntime.java:136)
at org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize(WebappRuntimeImpl.java:138)
.... 27 more
I am also attaching the war file. I have deleted the lib files from the war.
thanks,
Muhammad Waseem
________________________________
From: Jim Marino [mailto:jmarino@myromatours.com]
Sent: Wed 3/7/2007 9:47 PM
To: tuscany-dev@ws.apache.org
Subject: Re: tyring to run spring application
On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi,
>
> I am trying to run a spring application under tomcat 5.5.17 but I
> am getting UnRecognizedElement exception. I am using tuscany-
> incubating-M2. can somebody tell me how I can install spring
> extension?
>
> thanks,
> Muhammad
>
Hi Muhammad,
A couple of things:
1. Have you looked at the Spring web-app sample?
2. Do you have a stacktrace you could post?
3. Can you post the SCDL (assembly xml)?
If you can send the stacktrace and SCDL, I'll take a look. It may
also be helpful if the problem isn't apparent for you to post the
contents of the war to a JIRA, but we can take a look at the first
two items in turn.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
________________________________
************************************************************************************** Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, retransmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, and delete this message and any attachments from your system. Thank you. Information confidentielle: Le présent message, ainsi que tout fichier qui y est joint, est envoyé à l'intention exclusive de son ou de ses destinataires; il est de nature confidentielle et peut constituer une information privilégiée. Nous avertissons toute personne autre que le destinataire prévu que tout examen, réacheminement, impression, copie, distribution ou autre utilisation de ce message et de tout fichier qui y est joint est strictement interdit. Si vous n'êtes pas le destinataire prévu, veuillez en aviser immédiatement l'expéditeur par retour de courriel et supprimer ce message et tout document joint de votre système. Merci. **************************************************************************************
<SpringSCA.war>
-----------------------------------------
**************************************************************************************
Confidentiality Warning: This message and any attachments are
intended only for the use of the intended recipient(s), are
confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of this
message and any attachments is strictly prohibited. If you are not
the intended recipient, please notify the sender immediately by
return e-mail, and delete this message and any attachments from
your system. Thank you.
Information confidentielle: Le présent message, ainsi que tout
fichier qui y est joint, est envoyé à l'intention exclusive de son
ou de ses destinataires; il est de nature confidentielle et peut
constituer une information privilégiée. Nous avertissons toute
personne autre que le destinataire prévu que tout examen,
réacheminement, impression, copie, distribution ou autre
utilisation de ce message et de tout fichier qui y est joint est
strictement interdit. Si vous n'êtes pas le destinataire prévu,
veuillez en aviser immédiatement l'expéditeur par retour de
courriel et supprimer ce message et tout document joint de votre
système. Merci.
****************************************************************
Re: tyring to run spring application
Posted by Jim Marino <jm...@myromatours.com>.
Hi Waseem,
Sorry for the delay, I was tied up at work...The short answer is you
need to make sure the Tuscany Spring Extensions jar is in the
extensions lib directory. The jar adds support for Spring to the SCA
kernel. I'll try and respond more fully tomorrow and help out more.
Jim
On Mar 7, 2007, at 9:38 PM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi Jim,
>
> My scdl file contain.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> Author: Muhammad Waseem
> Description: Account Service SCA Spring Composite Application
> Date Last Modifed: March 02, 2007
> Status: Prototype
> -->
> <!--
> Composite Service:
> CheckingAccountService
> Services:
> CheckingAccountService
> Components:
> CheckingAccountComponent
> -->
> <composite
> xmlns="http://www.osoa.org/xmlns/sca/1.0"
> xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
> name="checkingaccount">
>
>
> <dbsdo:import.sdo
> xmlns:dbsdo="http://incubator.apache.org/tuscany/xmlns/
> databinding/sdo/1.0-incubator-M2"
> location="wsdl/services.wsdl" />
>
> <service name="CheckingAccountService">
>
> <interface.wsdl
>
> interface="http://
> checkingaccount.springexample#wsdl.interface(CheckingAccountService)"
> wsdli:wsdlLocation="http://
> checkingaccount.springexample wsdl/services.wsdl"
> />
>
> <binding.ws
>
> endpoint="http://
> checkingaccount.springexample#wsdl.endpoint(CheckingAccountService/
> CheckingAccountServiceSOAP)"
> location="wsdl/services.wsdl"
> />
>
> <!-- Define our component and implementation package -->
> <reference>checkingAccountComponent</reference>
> </service>
>
> <component name="checkingAccountComponent">
> <implementation.spring location="applicationContext.xml" />
> </component>
>
> </composite>
> I am getting following exception.
>
> org.apache.tuscany.runtime.webapp.ServletLauncherInitException:
> org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://
> www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://
> www.osoa.org/xmlns/sca/1.0}implementation.spring]
> Context stack trace: [SpringSCA Web Service Sample]
> [checkingAccountComponent]
> at
> org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize
> (WebappRuntimeImpl.java:147)
> at
> org.apache.tuscany.runtime.webapp.TuscanyContextListener.contextInitia
> lized(TuscanyContextListener.java:74)
> at org.apache.catalina.core.StandardContext.listenerStart
> (StandardContext.java:3729)
> at org.apache.catalina.core.StandardContext.start
> (StandardContext.java:4187)
> at org.apache.catalina.core.ContainerBase.addChildInternal
> (ContainerBase.java:759)
> at org.apache.catalina.core.ContainerBase.addChild
> (ContainerBase.java:739)
> at org.apache.catalina.core.StandardHost.addChild
> (StandardHost.java:524)
> at org.apache.tuscany.tomcat.TuscanyHost.addChild
> (TuscanyHost.java:133)
> at org.apache.catalina.startup.HostConfig.deployWAR
> (HostConfig.java:809)
> at org.apache.catalina.startup.HostConfig.deployWARs
> (HostConfig.java:698)
> at org.apache.catalina.startup.HostConfig.deployApps
> (HostConfig.java:472)
> at org.apache.catalina.startup.HostConfig.start
> (HostConfig.java:1122)
> at org.apache.catalina.startup.HostConfig.lifecycleEvent
> (HostConfig.java:310)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> (LifecycleSupport.java:119)
> at org.apache.catalina.core.ContainerBase.start
> (ContainerBase.java:1021)
> at org.apache.catalina.core.StandardHost.start
> (StandardHost.java:718)
> at org.apache.tuscany.tomcat.TuscanyHost.start
> (TuscanyHost.java:72)
> at org.apache.catalina.core.ContainerBase.start
> (ContainerBase.java:1013)
> at org.apache.catalina.core.StandardEngine.start
> (StandardEngine.java:442)
> at org.apache.catalina.core.StandardService.start
> (StandardService.java:450)
> at org.apache.catalina.core.StandardServer.start
> (StandardServer.java:709)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:
> 551)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.start
> (Bootstrap.java:294)
> at org.apache.catalina.startup.Bootstrap.main
> (Bootstrap.java:432)
> Caused by:
> org.apache.tuscany.spi.loader.UnrecognizedElementException: {http://
> www.osoa.org/xmlns/sca/1.0}implementation.spring [{http://
> www.osoa.org/xmlns/sca/1.0}implementation.spring]
> Context stack trace: [SpringSCA Web Service Sample]
> [checkingAccountComponent]
> at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
> (LoaderRegistryImpl..java:90)
> at
> org.apache.tuscany.core.loader.ComponentLoader.loadImplementation
> (ComponentLoader.java:183)
> at org.apache.tuscany.core.loader.ComponentLoader.load
> (ComponentLoader.java:127)
> at org.apache.tuscany.core.loader.ComponentLoader.load
> (ComponentLoader.java:70)
> at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
> (LoaderRegistryImpl..java:92)
> at
> org.apache.tuscany.core.implementation.composite.CompositeLoader.load(
> CompositeLoader.java:81)
> at
> org.apache.tuscany.core.implementation.composite.CompositeLoader.load(
> CompositeLoader.java:55)
> at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
> (LoaderRegistryImpl..java:92)
> at org.apache.tuscany.core.loader.LoaderRegistryImpl.load
> (LoaderRegistryImpl..java:109)
> at
> org.apache.tuscany.core.implementation.composite.CompositeComponentTyp
> eLoader.loadFromSidefile(CompositeComponentTypeLoader.java:65)
> at
> org.apache.tuscany.core.implementation.composite.CompositeComponentTyp
> eLoader.load(CompositeComponentTypeLoader.java:57)
> at
> org.apache.tuscany.core.implementation.composite.CompositeComponentTyp
> eLoader.load(CompositeComponentTypeLoader.java:39)
> at
> org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType
> (LoaderRegistryImpl.java:159)
> at org.apache.tuscany.core.deployer.DeployerImpl.load
> (DeployerImpl.java:101)
> at org.apache.tuscany.core.deployer.DeployerImpl.deploy
> (DeployerImpl.java:76)
> at
> org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl(
> AbstractRuntime.java:136)
> at
> org.apache.tuscany.runtime.webapp.WebappRuntimeImpl.initialize
> (WebappRuntimeImpl.java:138)
> .... 27 more
>
> I am also attaching the war file. I have deleted the lib files from
> the war.
>
> thanks,
> Muhammad Waseem
>
> From: Jim Marino [mailto:jmarino@myromatours.com]
> Sent: Wed 3/7/2007 9:47 PM
> To: tuscany-dev@ws.apache.org
> Subject: Re: tyring to run spring application
>
>
> On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
>
> > Hi,
> >
> > I am trying to run a spring application under tomcat 5.5.17 but I
> > am getting UnRecognizedElement exception. I am using tuscany-
> > incubating-M2. can somebody tell me how I can install spring
> > extension?
> >
> > thanks,
> > Muhammad
> >
>
> Hi Muhammad,
>
> A couple of things:
>
> 1. Have you looked at the Spring web-app sample?
>
> 2. Do you have a stacktrace you could post?
>
> 3. Can you post the SCDL (assembly xml)?
>
> If you can send the stacktrace and SCDL, I'll take a look. It may
> also be helpful if the problem isn't apparent for you to post the
> contents of the war to a JIRA, but we can take a look at the first
> two items in turn.
>
> Thanks,
> Jim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
>
>
>
> **********************************************************************
> **************** Confidentiality Warning: This message and any
> attachments are intended only for the use of the intended recipient
> (s), are confidential, and may be privileged. If you are not the
> intended recipient, you are hereby notified that any review,
> retransmission, conversion to hard copy, copying, circulation or
> other use of this message and any attachments is strictly
> prohibited. If you are not the intended recipient, please notify
> the sender immediately by return e-mail, and delete this message
> and any attachments from your system. Thank you. Information
> confidentielle: Le présent message, ainsi que tout fichier qui y
> est joint, est envoyé à l'intention exclusive de son ou de ses
> destinataires; il est de nature confidentielle et peut constituer
> une information privilégiée. Nous avertissons toute personne autre
> que le destinataire prévu que tout examen, réacheminement,
> impression, copie, distribution ou autre utilisation de ce message
> et de tout fichier qui y est joint est strictement interdit. Si
> vous n'êtes pas le destinataire prévu, veuillez en aviser
> immédiatement l'expéditeur par retour de courriel et supprimer ce
> message et tout document joint de votre système. Merci.
> **********************************************************************
> ****************
> <SpringSCA.war>
Re: tyring to run spring application
Posted by Jim Marino <jm...@myromatours.com>.
On Mar 7, 2007, at 9:47 AM, Waseem, Muhammad ((CA - Toronto)) wrote:
> Hi,
>
> I am trying to run a spring application under tomcat 5.5.17 but I
> am getting UnRecognizedElement exception. I am using tuscany-
> incubating-M2. can somebody tell me how I can install spring
> extension?
>
> thanks,
> Muhammad
>
Hi Muhammad,
A couple of things:
1. Have you looked at the Spring web-app sample?
2. Do you have a stacktrace you could post?
3. Can you post the SCDL (assembly xml)?
If you can send the stacktrace and SCDL, I'll take a look. It may
also be helpful if the problem isn't apparent for you to post the
contents of the war to a JIRA, but we can take a look at the first
two items in turn.
Thanks,
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org