I suspect this could be due to maven repository problems. Could you try
changing the sample to include all its dependencies locally:

In helloworldws\src\main\webapp\WEB-INF\web.xml add:

 <context-param>
    <param-name>tuscany.online</param-name>
    <param-value>false</param-value>
 </context-param>

In helloworldws\pom.xml change <loadExtensionDependencies> from false to
true.

Then rebuild and redeploy the sample to Tomcat and see if this helps.

  ...ant

On 1/25/07, Fang, Yue (Freeman) <[EMAIL PROTECTED]> wrote:

Hi,

I try the helloworldws samples with tomcat 5.5.20, which is the latest
tomcat version. And I clean up my local maven repository to build the
samples, still get the same exceptions. I am using Linux Redhat 9.

Could anyone please help me out?

Thanks very much

Freeman


-----Original Message-----
From: Fang, Yue (Freeman)
Sent: Tue 12/26/2006 3:34 AM
To: [email protected]
Subject: can not start helloworldws samples for 1.0 M2

Hi all,

I try to deploy helloworldws samples into tomcat 5.5.16, but when I
start tomcat, I get exception of helloworldws as follows,

Dec 26, 2006 4:29:02 PM org.apache.catalina.core.ApplicationContext log
SEVERE: org.apache.tuscany.spi.component.TargetException: Error
initializing component instance [extender]
org.apache.tuscany.runtime.webapp.ServletLauncherInitException:
org.apache.tuscany.spi.component.TargetException: Error initializing
component instance [extender]
         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:4183)
         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.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:1112)
         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.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
:275)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.tuscany.spi.component.TargetException: Error
initializing component instance [extender]


Also, when I try to start helloworldwsclient sample, I get exception as
follows,

Exception in thread "main"
org.apache.tuscany.spi.component.TargetException: Error initializing
component instance [directoryScanExtender]
         at
org.apache.tuscany.core.implementation.PojoAtomicComponent.init(
PojoAtomicComponent.java:96)
         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.standalone.host.StandaloneRuntimeImpl.initialize
(StandaloneRuntimeImpl.java:82)

I follow the instruction in readme step by step, could anyone help me out?

Thanks very much

Freeman
--
Freeman Fang
Software Engineer

IONA Asia Pacific Software Development Center
No.2 Floor A Unit Information Center
Zhongguancun Software Park Haidian District,
Beijing, P.R.China

Tel.: +86-10-82825151 -  ex. 551
Fax: +86-10-8282-5210
[EMAIL PROTECTED]
-------------------------------------------------
Making Software Work Together TM





Reply via email to