tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Snehit Prabhu" <sneh...@gmail.com>
Subject BigBank trouble
Date Fri, 23 Feb 2007 06:05:44 GMT
Hi,
I'm new to Tuscany. A little help with the Bigbank example would be
appreciated.
Im using the SCA samples that I downloaded from here :
http://incubator.apache.org/tuscany/sca_downloads.html. I downloaded the
source zip files from windows and built the same. My understanding of the
BigBank example is - copy the .war files into the webapps directory of
Tomcat (Im running Tomcat 5.5.20), and you should be ready to go. The two
WARs in question are :
$sca_samples\applications\bigbank\account\target\sample-bigbank-account.warand
$sca_samples\applications\bigbank\webclient\target\sample-
bigbank-webclient.war.

Everything works fine till here; I open the Tomcat Manager WebInterface -
the two newly added WARs (sample-bigbank-account.war and
sample-bigbank-webclient.war) are reflected in the list of applications.
Now, when I try to start sample-bigbank-account application, Tomcat throws
the following error :
FAIL - Application at context path /sample-bigbank-account could not be
started.

I stopped and restarted Tomcat to get a fresh error trace. Here is the error
log (stdout) of Tomcat as it initializes :

[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven2 (http://repo1.maven.org/maven2)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-incubating-repository (
http://people.apache.org/repo/m2-incubating-repository)
[WARNING] Unable to get resource from repository
http___repo1.maven.org_maven (http://repo1.maven.org/maven)
[WARNING] Unable to get resource from repository
http___people.apache.org_repo_m2-snapshot-repository (
http://people.apache.org/repo/m2-snapshot-repository)
[WARNING] Unable to get resource from repository apache.incubator (
http://people.apache.org/repo/m2-incubating-repository/)
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:3763)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java
:4211)
    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: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.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:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    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.component.TargetException: Error
initializing component instance [extender]
    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.webapp.WebappRuntimeImpl.initialize(
WebappRuntimeImpl.java:127)
    ... 25 more
Caused by: org.apache.tuscany.core.injection.ObjectCallbackException:
Exception thrown by callback method [public void
org.apache.tuscany.runtime.webapp.WebResourceScanExtender.init()]
    at org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(
MethodEventInvoker.java:46)
    at org.apache.tuscany.core.implementation.PojoAtomicComponent.init(
PojoAtomicComponent.java:94)
    ... 32 more
Caused by: org.apache.tuscany.services.maven.TuscanyDependencyException:
Unable to resolve artifact:
org.apache.tuscany.sca.services.databinding:databinding-sdo:1.0-incubator-M2:jar[
org.apache.tuscany.sca.services.databinding:databinding-sdo:1.0-incubator-M2:jar
]
    at org.apache.tuscany.services.maven.MavenArtifactRepository.resolve(
MavenArtifactRepository.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(
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:64)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:615)
    at org.apache.tuscany.core.injection.MethodEventInvoker.invokeEvent(
MethodEventInvoker.java:42)
    ... 33 more

I've attached a screenshot of the Tomcat Webbased manager as well.
It seems that Tomcat is denied access to the maven repositories. Tomcat also
supposedly ignores the CLASSPATH variable (according to this thread :
http://forum.java.sun.com/thread.jspa?threadID=316391&messageID=1273633), so
I gather M2_REPO is inaccessible from there. How do I point Tomcat to the
required dependencies?

Thanks in advance. I hope to start contributing actively to the forum soon.
Snehit

Mime
View raw message