I am looking at running some simple SCA applications within tomcat.
Unfortunately it has not been as fun as I would like :-(

The java/GettingStarted.htm refers to the embeded tomcat server in the build
env.  I believe that this is no longer the supported scenario.  What is the
plan here ?

The
http://incubator.apache.org/tuscany/java-projects.html#Running%20The%20Samplesdirects
users to download a binary of tomcat into the
tuscany\java\distribution\tomcat-overlay and then to run build-dist.bat/sh
which no longer exists.  Did I miss something here or is the doc just out of
date?  If it is out of date what is the direction here ?

So dispite these issues seems that running sca samples in regular tomcat is
currently the simplest option.  Should the sca web distribution be unzipped
into the war files directory or into the
tuscany-tomcat-5.5.16\commondirectory?  I would have thought that the
SCA runtime would want to be
available across web applications ?  Sorry if these questions are somewhat
basic as I am new to SCA and had some trouble figuring out which documents
were still valid.

thanks for the help,
Robbie





On 9/13/06, Kapil Katyal <[EMAIL PROTECTED]> wrote:

Hi Rick,

Thanks for the response.  I extracted my application and unzipped the
web-1.0-snapshot-bin.zip to that directory.  I see several Tuscany
jars under the WEB-INF\lib and WEB-INF\tuscany\boot directories.

I'm trying to invoke a jsp and I'm getting a null pointer exception.
The following line is returning null:

CompositeContext context = CurrentCompositeContext.getContext();

So I'm assuming the Tuscany Runtime did not get initialized correctly.
Does anyone know how the Tuscany runtime actually gets initialized?
I know previously, we needed to modify the <TOMCAT>/conf/server.xml to
add className="org.apache.tuscany.tomcat.TuscanyHost".  Is this still
required?

Thanks,
Kapil

On 9/13/06, Rick <[EMAIL PROTECTED]> wrote:
> This no longer reflects what is in the HEAD of SVN, I'm not sure it even
is
> accurate for M1 download.  For the M1 download I'd use documentation
that came
> with it. For current SVN this is how I understand what will make it work
currently:
> Get a vanilla tomcat.
> unzip your web application war in the the TC webapps directory.
> Then change to that directory and unzip
> tuscany\java\distribution\sca\web\target\web-1.0-SNAPSHOT-bin.zip
>
> I haven't tried recently.
>
> Kapil Katyal wrote:
> > Hi,
> >
> > Does anyone know if the following document regarding Tomcat
> > integration is currently up to date:
> >
> > http://wiki.apache.org/ws/Tuscany/TuscanyJava/TomcatIntegration
> >
> > I don't see the following jars in my current repository:
> >
> > tuscany-common-SNAPSHOT.jar
> > tuscany-container-java-SNAPSHOT.jar
> > tuscany-core-SNAPSHOT.jar
> > tuscany-model-SNAPSHOT.jar
> > tuscany-tomcat-SNAPSHOT.jar
> >
> > I checked an old repository and found the jars there, so I tried them
> > and now I'm getting the following error:
> >
> > Caused by: java.lang.NoClassDefFoundError: org/osoa/sca/ModuleContext
> >
> > Has anyone been able to get the Tuscany environment working on Tomcat
> > recently?
> >
> > Thanks,
> > Kapil
> >
> > ---------------------------------------------------------------------
> > 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]
>
>

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




--
* * * Charlie * * *
Check out some pics of little Charlie at
http://www.flickr.com/photos/[EMAIL PROTECTED]/sets/

Check out Charlie's al crapo blog at http://robbieminshall.blogspot.com

* * * Addresss * * *
1914 Overland Drive
Chapel Hill
NC 27517

* * * Number * * *
919-225-1553

Reply via email to