On 3/21/07, muhwas <[EMAIL PROTECTED]> wrote:

Hi everybody,

I am new tu tuscany. I am trying to run
helloworldwsclient sample. when i am running
java -jar ../../../bin/launcher.jar
target/samplehelloworldwsclient.jar

I am getting following exception. I have
axis2-1.0-incubator-M2.jar  and
databinding-sdo-1.0-incubator-M2.jar in my extension
direcotry. I can run the calculator standalone sample
but not this one.

Exception in thread "main"
org.apache.tuscany.spi.component.TargetException : Err
or initializing component instance
[directoryScanExtender]
        at
org.apache.tuscany.core.implementation.PojoAtomicComponent.init(PojoA
tomicComponent.java:96)
        at
org.apache.tuscany.core.component.scope.InstanceWrapperImpl.start (Ins
tanceWrapperImpl.java:49)
        at
org.apache.tuscany.core.component.scope.ModuleScopeContainer.eagerIni
tComponents(ModuleScopeContainer.java:145)
        at
org.apache.tuscany.core.component.scope.ModuleScopeContainer.onEvent (
ModuleScopeContainer.java:72)
        at
org.apache.tuscany.spi.component.AbstractSCAObject.publish(AbstractSC
AObject.java:94)
        at
org.apache.tuscany.core.implementation.composite.AbstractCompositeCom
ponent.publish(AbstractCompositeComponent.java:139)
        at
org.apache.tuscany.core.implementation.composite.AbstractCompositeCom
ponent.start(AbstractCompositeComponent.java:106)
        at
org.apache.tuscany.runtime.standalone.host.StandaloneRuntimeImpl.init
ialize(StandaloneRuntimeImpl.java:82)
        at
org.apache.tuscany.launcher.MainLauncherBooter.main(MainLauncherBoote
r.java:83)
Caused by:
org.apache.tuscany.core.injection.ObjectCallbackException:
Exception
thrown by callback method [public void
org.apache.tuscany.runtime.standalone.hos
t.DirectoryScanExtender.init()]
        at
org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(Meth
odEventInvoker.java:46)
        at
org.apache.tuscany.core.implementation.PojoAtomicComponent.init(PojoA
tomicComponent.java:94)
        ... 8 more
Caused by:
org.apache.tuscany.services.maven.TuscanyDependencyException :
Unable
to resolve artifact:
org.apache.tuscany.sca.services.bindings:axis2:1.0-incubato
r-M2:jar
[org.apache.tuscany.sca.services.bindings:axis2:1.0-incubator-M2:jar]
        at
org.apache.tuscany.services.maven.MavenArtifactRepository.resolve (Mav
enArtifactRepository.java:72)
        at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:99)
        at
org.apache.tuscany.core.implementation.composite.CompositeLoader.load
(CompositeLoader.java:55)
        at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:92)
        at
org.apache.tuscany.core.loader.LoaderRegistryImpl.load(LoaderRegistry
Impl.java:109)
        at
org.apache.tuscany.core.implementation.system.loader.SystemCompositeC
omponentTypeLoader.loadFromSidefile(
SystemCompositeComponentTypeLoader.java:68)
        at
org.apache.tuscany.core.implementation.system.loader.SystemCompositeC
omponentTypeLoader.load(SystemCompositeComponentTypeLoader.java:59)
        at
org.apache.tuscany.core.implementation.system.loader.SystemCompositeC
omponentTypeLoader.load(SystemCompositeComponentTypeLoader.java :38)
        at
org.apache.tuscany.core.loader.LoaderRegistryImpl.loadComponentType(L
oaderRegistryImpl.java:159)
        at
org.apache.tuscany.core.deployer.DeployerImpl.load(DeployerImpl.java:
101)
        at
org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.jav
a:76)
        at
org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.
deployExtension(AbstractExtensionDeployer.java :104)
        at
org.apache.tuscany.core.services.extension.AbstractExtensionDeployer.
deployExtension(AbstractExtensionDeployer.java:67)
        at
org.apache.tuscany.runtime.standalone.host.DirectoryScanExtender.init
(DirectoryScanExtender.java:57)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at
java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent (Meth
odEventInvoker.java:42)
        ... 9 more

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

Hi muhwas

Sorry for the slightly tardy reply, only just got round to trying this. I'm
afraid I may not be giving you the best advice as I'm not doing this
precisely by the instructions but here's what I did to get this working....

I set up my directory structure as before but with the addition of Tomcat.
So...

I downloaded tuscany-sca-1.0-incubator-M2-bin.zip and unpacked it to
\sca-bin
I downloaded tuscany-sca-1.0-incubator-M2-samples.zip and unpacked it to
\samples
I already had the zip of Tomcat5.55.20 so I unpacked that to \tomcat

cd \samples
mvn
cp webapp\helloworldws\target\sample-helloworldws.war ..\tomcat\webapps

at this point I started a separate dos window and started tomcat i.e.
\tomcat\bin\catalina.bat run
you will see it deploying the sample-helloworldws web app

back in the original window set up the client runtime
cd \sca-bin
cp contrib\axis2-1.0-incubator-M2.jar externals
cp contrib\databinding-sdo-1.0-incubator-M2.jar externals

now run the client
cd \samples\standalone\helloworldwsclient
java -jar ..\..\..\sca-bin\bin\launcher.jar target\sample-
helloworldwsclient.jar

this output some maven stuff and then printed

Hello World

which the readme says is the right answer. I didn't get indication that the
server had done anything though but maybe this is OK.

From your exception printout it looks like if can't find the axis jar. Are
you sure you copied it to the right place?

Hope that helps

Simon

Reply via email to