BigBank trouble

2007-02-22 Thread Snehit Prabhu

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.

Re: BigBank trouble

2007-02-25 Thread Snehit Prabhu

Hi Jean-Sebastien,
Sorry for the delayed response, I am having some trouble finding my mail.

Yes I have that jar in my local repository at :
$.m2\repository\org\apache\tuscany\sca\services\databinding\databinding-sdo\1.0-incubator-M2\databinding-
sdo-1.0-incubator-M2.jar
Also, all my builds were successful when I ran them - they did not report
failure to download any jar's. So I assume I have the necessary local image
of all the required files.

Once again, how can I check the classpath of the tomcat process as it loads
the example? Is there anyway I can manually point the Tomcat JVM to this
jar? If I can force it to resolve databinding-sdo-1.0-incubator-M2.jar and
reattempt to run the example, then there are 3 possible outcomes :
1) Everything fits in well and the example runs smoothly --- meaning
something may be wrong with the sample configuration.
2) It throws the same error again --- meaning my jar file is corrupt. I can
download it again.
3) It progresses, resolves this dependency, and throws a new set of
exceptions saying it is unable to find other dependencies --- meaning Tomcat
is unable to resolve my local maven repository.

thanks
snehit

On 2/24/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:


Snehit Prabhu wrote:
> 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
> <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.war and
> $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
> <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
> <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
> <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
> <http://people.apache.org/repo/m2-incubating-repository>)
> [WARNING] Unable to get resource from repository
> http___repo1.maven.