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:[EMAIL PROTECTED]
Sent: Wed 3/7/2007 9:47 PM
To: [email protected]
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]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to