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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
**********************************************************************
**************** 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>