[prev in list] [next in list] [prev in thread] [next in thread]
List: tuscany-dev
Subject: Re: Tuscany/Spring MVC integration
From: Florian Moga <moga.flo () gmail ! com>
Date: 2011-03-24 6:07:20
Message-ID: AANLkTinSBYokuZ_L+B6hgVPeJZM3rskpWuU5z-6G9dQd () mail ! gmail ! com
[Download RAW message or body]
Cool, could you attach/upload the war to some sharing service?
Thanks,
Florian
On Thu, Mar 24, 2011 at 6:53 AM, Raymond Feng <enjoyjava@gmail.com> wrote:
> Hi,
>
> I just tried on Ubuntu w/ Java 1.6.0-20-b2 and it also works fine. But I
> didn't rebuild the WAR there though (I copied it from the mac).
>
> Thanks,
> Raymond
> *________________________________________________________________
> Raymond Feng
> rfeng@apache.org
> Apache Tuscany PMC member and committer: tuscany.apache.org
> Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> Personal Web Site: www.enjoyjava.com
> ________________________________________________________________*
>
> On Mar 23, 2011, at 2:45 PM, Florian Moga wrote:
>
> I'm running Ubuntu 10.10, OpenJDK 1.6.0_20, Maven 2.2.1.
>
> On Wed, Mar 23, 2011 at 11:41 PM, Raymond Feng <enjoyjava@gmail.com>wrote:
>
> > I'm on MaC OS. What about you?
> >
> > *________________________________________________________________
> > Raymond Feng
> > rfeng@apache.org
> > Apache Tuscany PMC member and committer: tuscany.apache.org
> > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > Personal Web Site: www.enjoyjava.com
> > ________________________________________________________________*
> >
> > On Mar 23, 2011, at 1:19 PM, Florian Moga wrote:
> >
> > Still getting it after building current trunk and using Tomcat 6.0.32...
> > Anyway, the sample looks really good, nice contribution!
> >
> >
> > On Wed, Mar 23, 2011 at 7:22 PM, Raymond Feng <enjoyjava@gmail.com>wrote:
> >
> > > FYI: I just rebuilt from the latest Trunk and the WAR works well with
> > > Tomcat.
> > >
> > > *________________________________________________________________
> > > Raymond Feng
> > > rfeng@apache.org
> > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > Personal Web Site: www.enjoyjava.com
> > > ________________________________________________________________*
> > >
> > > On Mar 23, 2011, at 9:28 AM, Florian Moga wrote:
> > >
> > > Integration test works fine (no errors in logs). Here's what I'm seeing
> > > in WEB-INF/lib:
> > >
> > > aopalliance-1.0.jar
> > > app-1.2.0-v20090520-1800.jar
> > > asm-3.1.jar
> > > axiom-api-1.2.10.jar
> > > axiom-impl-1.2.10.jar
> > > cglib-2.2.jar
> > > common-3.5.0-v20090520-1800.jar
> > > commons-beanutils-1.7.0.jar
> > > commons-cli-1.2.jar
> > > commons-codec-1.3.jar
> > > commons-collections-3.2.jar
> > > commons-digester-1.8.jar
> > > commons-discovery-0.4.jar
> > > commons-logging-1.1.1.jar
> > > contenttype-3.3.0-v20080604-1400.jar
> > > geronimo-javamail_1.4_spec-1.6.jar
> > > httpclient-4.0.3.jar
> > > httpcore-4.0.1.jar
> > > jabsorb-1.3.1.jar
> > > jackson-core-asl-1.7.1.jar
> > > jackson-mapper-asl-1.7.1.jar
> > > jackson-xc-1.7.1.jar
> > > jaxen-1.1.1.jar
> > > jettison-1.2.jar
> > > jobs-3.4.0-v20080512.jar
> > > jstl-1.2.jar
> > > myfaces-api-1.2.2.jar
> > > myfaces-impl-1.2.2.jar
> > > osgi-3.5.0-v20090520.jar
> > > preferences-3.2.300-v20090520-1800.jar
> > > registry-3.4.100-v20090520-1800.jar
> > > runtime-3.4.0-v20080512.jar
> > > sample-implementation-spring-helloworld-contribution-2.0-SNAPSHOT.jar
> > > servlet-api-2.5.jar
> > > slf4j-api-1.6.1.jar
> > > slf4j-jdk14-1.6.1.jar
> > > spring-aop-3.0.5.RELEASE.jar
> > > spring-asm-3.0.5.RELEASE.jar
> > > spring-beans-3.0.5.RELEASE.jar
> > > spring-context-3.0.5.RELEASE.jar
> > > spring-context-support-3.0.5.RELEASE.jar
> > > spring-core-3.0.5.RELEASE.jar
> > > spring-expression-3.0.5.RELEASE.jar
> > > spring-web-3.0.5.RELEASE.jar
> > > spring-webmvc-3.0.5.RELEASE.jar
> > > stripes-1.5.2.jar
> > > tuscany-assembly-2.0-SNAPSHOT.jar
> > > tuscany-assembly-xml-2.0-SNAPSHOT.jar
> > > tuscany-assembly-xsd-2.0-SNAPSHOT.jar
> > > tuscany-binding-http-2.0-SNAPSHOT.jar
> > > tuscany-binding-jsonp-2.0-SNAPSHOT.jar
> > > tuscany-binding-jsonp-runtime-2.0-SNAPSHOT.jar
> > > tuscany-binding-jsonrpc-2.0-SNAPSHOT.jar
> > > tuscany-binding-jsonrpc-runtime-2.0-SNAPSHOT.jar
> > > tuscany-binding-sca-runtime-2.0-SNAPSHOT.jar
> > > tuscany-binding-ws-2.0-SNAPSHOT.jar
> > > tuscany-builder-2.0-SNAPSHOT.jar
> > > tuscany-common-http-2.0-SNAPSHOT.jar
> > > tuscany-common-java-2.0-SNAPSHOT.jar
> > > tuscany-common-xml-2.0-SNAPSHOT.jar
> > > tuscany-contribution-2.0-SNAPSHOT.jar
> > > tuscany-core-2.0-SNAPSHOT.jar
> > > tuscany-core-databinding-2.0-SNAPSHOT.jar
> > > tuscany-core-spi-2.0-SNAPSHOT.jar
> > > tuscany-data-api-2.0-SNAPSHOT.jar
> > > tuscany-databinding-2.0-SNAPSHOT.jar
> > > tuscany-databinding-jaxb-2.0-SNAPSHOT.jar
> > > tuscany-databinding-json-2.0-SNAPSHOT.jar
> > > tuscany-deployment-2.0-SNAPSHOT.jar
> > > tuscany-domain-node-2.0-SNAPSHOT.jar
> > > tuscany-extensibility-2.0-SNAPSHOT.jar
> > > tuscany-extensibility-equinox-2.0-SNAPSHOT.jar
> > > tuscany-host-http-2.0-SNAPSHOT.jar
> > > tuscany-host-webapp-2.0-SNAPSHOT.jar
> > > tuscany-implementation-java-2.0-SNAPSHOT.jar
> > > tuscany-implementation-java-runtime-2.0-SNAPSHOT.jar
> > > tuscany-implementation-spring-2.0-SNAPSHOT.jar
> > > tuscany-implementation-spring-runtime-2.0-SNAPSHOT.jar
> > > tuscany-implementation-spring-webapp-2.0-SNAPSHOT.jar
> > > tuscany-implementation-web-2.0-SNAPSHOT.jar
> > > tuscany-implementation-web-runtime-2.0-SNAPSHOT.jar
> > > tuscany-interface-java-2.0-SNAPSHOT.jar
> > > tuscany-interface-java-jaxws-2.0-SNAPSHOT.jar
> > > tuscany-interface-wsdl-2.0-SNAPSHOT.jar
> > > tuscany-monitor-2.0-SNAPSHOT.jar
> > > tuscany-myfaces-2.0-SNAPSHOT.jar
> > > tuscany-node-api-2.0-SNAPSHOT.jar
> > > tuscany-node-impl-2.0-SNAPSHOT.jar
> > > tuscany-node-launcher-2.0-SNAPSHOT.jar
> > > tuscany-node-launcher-equinox-2.0-SNAPSHOT.jar
> > > tuscany-policy-security-2.0-SNAPSHOT.jar
> > > tuscany-sca-api-2.0-SNAPSHOT.jar
> > > tuscany-sca-client-impl-2.0-SNAPSHOT.jar
> > > tuscany-shell-2.0-SNAPSHOT.jar
> > > tuscany-stripes-2.0-SNAPSHOT.jar
> > > tuscany-web-javascript-2.0-SNAPSHOT.jar
> > > tuscany-xsd-2.0-SNAPSHOT.jar
> > > wsdl4j-1.6.2.jar
> > > XmlSchema-1.4.3.jar
> > >
> > >
> > > On Wed, Mar 23, 2011 at 6:00 PM, Raymond Feng <enjoyjava@gmail.com>wrote:
> > >
> > > > It's strange. After I saw your responses, I downloaded and installed
> > > > Tomcat 6.0.32 freshly. Then I copied helloworld-spring.war into webapps,
> > > > started Tomcat, pointed the browser to:
> > > >
> > > > http://localhost:8080/helloworld-spring/mvc/
> > > >
> > > > It just works without any issues!
> > > >
> > > > BTW, if you run mvn clean install for the webapp, we actually do the
> > > > integration test to verify all the endpoints are working.
> > > >
> > > > Can you show a list of jars in the WEB-INF/lib?
> > > >
> > > > Thanks,
> > > > Raymond
> > > > *________________________________________________________________
> > > > Raymond Feng
> > > > rfeng@apache.org
> > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > Personal Web Site: www.enjoyjava.com
> > > > ________________________________________________________________*
> > > >
> > > > On Mar 23, 2011, at 2:09 AM, Florian Moga wrote:
> > > >
> > > > Same here but without the ClassCastException...
> > > >
> > > > On Wed, Mar 23, 2011 at 9:44 AM, ant elder <ant.elder@gmail.com> wrote:
> > > >
> > > > > I gave it a try, deploying the built war to Tomcat it looks like it
> > > > > starts up ok but then i couldn't see what url to use to actually run
> > > > > anything. Running it with mvn jetty:run it fails with:
> > > > >
> > > > > Caused by: org.springframework.beans.factory.BeanCreationException:
> > > > > Error creating bean with name 'GreetingServiceBean' defined in U
> > > > > RL
> > > > > [file:/C:/Tuscany/SVN/rayspring/helloworld-spring-webapp/src/main/webapp/WEB-INF/sca/sca-context.xml]:
> > > > > Cannot resolve reference t
> > > > > o bean 'MessageServiceBean' while setting bean property
> > > > > 'messageService'; nested exception is
> > > > > org.springframework.beans.factory.NoSu
> > > > > chBeanDefinitionException: No bean named 'MessageServiceBean' is
> > > > > defined
> > > > >
> > > > > and with mvn tomcat:run it fails with:
> > > > >
> > > > > SEVERE: Exception starting filter tuscany
> > > > > java.lang.ClassCastException:
> > > > > org.apache.tuscany.sca.host.webapp.TuscanyServletFilter cannot be cast
> > > > > to javax.servlet.Filter
> > > > >
> > > > > ...ant
> > > > >
> > > > > On Tue, Mar 22, 2011 at 9:42 PM, Raymond Feng <enjoyjava@gmail.com>
> > > > > wrote:
> > > > > > I made one more change to exclude servlet/el/jsp jars from being
> > > > > packaged
> > > > > > into the WAR and upgrade to jstl 1.2. Now the standalone WAR can be
> > > > > deployed
> > > > > > to Tomcat.
> > > > > > Make sure you rebuild Tuscany. I don't see
> > > > > > the org.springframework.beans.factory.NoSuchBeanDefinitionException.
> > > > > > Thanks,
> > > > > > Raymond
> > > > > > ________________________________________________________________
> > > > > > Raymond Feng
> > > > > > rfeng@apache.org
> > > > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > > > Personal Web Site: www.enjoyjava.com
> > > > > > ________________________________________________________________
> > > > > > On Mar 22, 2011, at 12:26 PM, Florian Moga wrote:
> > > > > >
> > > > > > It looks like now it is finding the spring file but I'm
> > > > > >
> > > > > seeing org.springframework.beans.factory.NoSuchBeanDefinitionException: No
> > > > > > bean named 'MessageServiceBean' is defined
> > > > > > The bean is defined in servlet-context.xml. Are the spring files
> > > > > loaded in
> > > > > > some order? It looks like sca-context.xml is loaded before
> > > > > > servlet-context.xml and doesn't find the bean.
> > > > > >
> > > > > > On Tue, Mar 22, 2011 at 6:56 PM, Raymond Feng <enjoyjava@gmail.com>
> > > > > wrote:
> > > > > > >
> > > > > > > I made one more change in web.xml to use classpath: for Spring
> > > > > config
> > > > > > > location. Can you try again?
> > > > > > > Thanks,
> > > > > > > Raymond
> > > > > > > ________________________________________________________________
> > > > > > > Raymond Feng
> > > > > > > rfeng@apache.org
> > > > > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > > > > Personal Web Site: www.enjoyjava.com
> > > > > > > ________________________________________________________________
> > > > > > > On Mar 22, 2011, at 9:47 AM, Raymond Feng wrote:
> > > > > > >
> > > > > > > Hi,
> > > > > > > sample-implementation-spring-helloworld-contribution.jar is copied
> > > > > into
> > > > > > > the WAR as a jar. That's probably why you didn't see the
> > > > > > > WEB-INF/classes/helloworld-context.xml. Can you try to unzip the jar
> > > > > into
> > > > > > > WEB-INF/classes to see if it helps? We also need to figure out a way
> > > > > to
> > > > > > > resolve Spring application context files on the classpath.
> > > > > > > Thanks,
> > > > > > > Raymond
> > > > > > > ________________________________________________________________
> > > > > > > Raymond Feng
> > > > > > > rfeng@apache.org
> > > > > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > > > > Personal Web Site: www.enjoyjava.com
> > > > > > > ________________________________________________________________
> > > > > > > On Mar 22, 2011, at 9:32 AM, Florian Moga wrote:
> > > > > > >
> > > > > > > Hey Raymond,
> > > > > > > Yes, I tried deploying
> > > > > sample-implementation-spring-helloworld-webapp.war
> > > > > > > to both Tomcat and Jetty. When I saw the exceptions in logs, I tried
> > > > > copying
> > > > > > > sample-implementation-spring-helloworld-contribution.jar to the lib/
> > > > > folder
> > > > > > > of Tomcat and removing the provided scope but none didn't
> > > > > > > fix FileNotFoundException: Could not open ServletContext resource
> > > > > > > [/WEB-INF/classes/helloworld-context.xml].
> > > > > > > Florian
> > > > > > >
> > > > > > >
> > > > > > > On Tue, Mar 22, 2011 at 5:51 PM, Raymond Feng <enjoyjava@gmail.com>
> > > > > wrote:
> > > > > > > >
> > > > > > > > Hi, Florian.
> > > > > > > > Thank you for the feedback. Did you try to deploy the
> > > > > hello-spring.war
> > > > > > > > into Tomcat/Jetty?
> > > > > > > > You are right, the provided scope seems to be an issue (for some
> > > > > reason,
> > > > > > > > "provided" is used by some folks in the wrong way:-). I'll fix it.
> > > > > > > > Thanks,
> > > > > > > > Raymond
> > > > > > > > ________________________________________________________________
> > > > > > > > Raymond Feng
> > > > > > > > rfeng@apache.org
> > > > > > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > > > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > > > > > Personal Web Site: www.enjoyjava.com
> > > > > > > > ________________________________________________________________
> > > > > > > > On Mar 22, 2011, at 1:16 AM, Florian Moga wrote:
> > > > > > > >
> > > > > > > > Hi Raymond,
> > > > > > > > Having Spring MVC support in Tuscany sounds and looks great! I had
> > > > > a look
> > > > > > > > at the sample but I haven't been able to start it up successfully.
> > > > > I'm
> > > > > > > > seeing the following in logs:
> > > > > > > > Caused by: java.io.FileNotFoundException: Could not open
> > > > > ServletContext
> > > > > > > > resource [/WEB-INF/classes/helloworld-context.xml]
> > > > > > > > Caused by: java.lang.ClassNotFoundException: sample.DateService
> > > > > > > > This is probably due to the
> > > > > > > > sample-implementation-spring-helloworld-contribution dependency
> > > > > having the
> > > > > > > > scope set to provided. I don't know how that should be handled,
> > > > > I've tried
> > > > > > > > adding the jar to the lib/ folder in Tomcat but the first error was
> > > > > still
> > > > > > > > appearing. How should I do this correctly?
> > > > > > > > Thanks,
> > > > > > > > Florian
> > > > > > > >
> > > > > > > > On Tue, Mar 22, 2011 at 12:33 AM, Raymond Feng <
> > > > > enjoyjava@gmail.com>
> > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > Hi,
> > > > > > > > > I recently added support of Spring MVC integration for Tuscany on
> > > > > top of
> > > > > > > > > the Tuscany/Spring web application feature.
> > > > > > > > >
> > > > > > > > >
> > > > > https://cwiki.apache.org/confluence/download/attachments/5964931/Spring+Tuscany.pptx
> > > > >
> > > > > > > > > To support the Spring MVC which has a servlet-scoped application
> > > > > > > > > context, I added code to allow Tuscany to start/stop a node per
> > > > > servlet and
> > > > > > > > > enhanced the CompositeContext and Spring implementation provider
> > > > > to link the
> > > > > > > > > Spring application context to Tuscany.
> > > > > > > > > Here is a working sample:
> > > > > > > > >
> > > > > > > > >
> > > > > https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implementation-spring/
> > > > >
> > > > > > > > > (You can find how to invoke it
> > > > > > > > > at
> > > > > https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implemen \
> > > > > tation-spring/helloworld-spring-webapp/src/test/java/sample/HelloworldClientTestCase.java
> > > > > )
> > > > > > > > > (PS: I'm all confused by the move of our samples into various
> > > > > > > > > contrib/unreleased folders and had a difficult time to dig out the
> > > > > > > > > Spring/Tuscany integration sample. For now, I leave it in my
> > > > > sandbox before
> > > > > > > > > the sample structure is settled. )
> > > > > > > > > Thanks,
> > > > > > > > > Raymond
> > > > > > > > > ________________________________________________________________
> > > > > > > > > Raymond Feng
> > > > > > > > > rfeng@apache.org
> > > > > > > > > Apache Tuscany PMC member and committer: tuscany.apache.org
> > > > > > > > > Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
> > > > > > > > > Personal Web Site: www.enjoyjava.com
> > > > > > > > > ________________________________________________________________
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
[Attachment #3 (text/html)]
<font face="trebuchet ms,sans-serif"><div>Cool, could you attach/upload the war to \
some sharing service?</div></font><div><font face="trebuchet \
ms,sans-serif"><br></font></div><div><font face="trebuchet \
ms,sans-serif">Thanks,</font></div>
<div><font face="trebuchet ms,sans-serif"><br></font></div><div><font face="trebuchet \
ms,sans-serif">Florian<br></font><br></div><div><br><div class="gmail_quote">On Thu, \
Mar 24, 2011 at 6:53 AM, Raymond Feng <span dir="ltr"><<a \
href="mailto:enjoyjava@gmail.com">enjoyjava@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"><div style="word-wrap:break-word">Hi,<div><br></div><div>I \
just tried on Ubuntu w/ Java 1.6.0-20-b2 and it also works fine. But I didn't \
rebuild the WAR there though (I copied it from the mac).</div>
<div><br></div><div>Thanks,</div><div><div class="im">Raymond<br><div>
<span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial" size="4"><span \
style="font-size:15px"><i><span style="font-style:normal"><span \
style="font-family:Helvetica;font-size:medium">________________________________________________________________ \
<br>
<div><span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial"><span \
style="font-size:11pt">Raymond Feng</span></font></div><div><font face="Calibri, \
Verdana, Helvetica, Arial"><span style="font-size:11pt"><a \
href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
<i>Apache Tuscany PMC member and committer: <a href="http://tuscany.apache.org" \
target="_blank">tuscany.apache.org</a><br>Co-author of Tuscany SCA In Action book: <a \
href="http://www.tuscanyinaction.com" target="_blank">www.tuscanyinaction.com</a><br>
Personal Web Site: <a href="http://www.enjoyjava.com" \
target="_blank">www.enjoyjava.com</a><br></i></span></font></div></div></span></span>< \
/div>________________________________________________________________</span></span></i></span></font></div>
</div></span></div></span></span>
</div>
<br></div><div><div class="im"><div>On Mar 23, 2011, at 2:45 PM, Florian Moga \
wrote:</div><br></div><div><div></div><div class="h5"><blockquote type="cite"><font \
face="trebuchet ms,sans-serif">I'm running Ubuntu 10.10, OpenJDK 1.6.0_20, Maven \
2.2.1.<br>
</font><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 11:41 PM, Raymond Feng \
<span dir="ltr"><<a href="mailto:enjoyjava@gmail.com" \
target="_blank">enjoyjava@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word">I'm on MaC OS. What \
about you?<div><br><div> <span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial" size="4"><span \
style="font-size:15px"><i><span style="font-style:normal"><span \
style="font-family:Helvetica;font-size:medium">________________________________________________________________ \
<br>
<div><span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial"><span \
style="font-size:11pt">Raymond Feng</span></font></div><div><font face="Calibri, \
Verdana, Helvetica, Arial"><span style="font-size:11pt"><a \
href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
<i>Apache Tuscany PMC member and committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br>Co-author of Tuscany SCA In Action book: <a \
href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br>
Personal Web Site: <a href="http://www.enjoyjava.com/" \
target="_blank">www.enjoyjava.com</a><br></i></span></font></div></div></span></span>< \
/div>________________________________________________________________</span></span></i></span></font></div>
</div></span></div></span></span>
</div>
<br></div><div><div></div><div><div><div>On Mar 23, 2011, at 1:19 PM, Florian Moga \
wrote:</div><br><blockquote type="cite"><font face="trebuchet ms,sans-serif">Still \
getting it after building current trunk and using Tomcat 6.0.32... Anyway, the sample \
looks really good, nice contribution!<br>
</font><br><div><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 7:22 PM, Raymond \
Feng <span dir="ltr"><<a href="mailto:enjoyjava@gmail.com" \
target="_blank">enjoyjava@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word">FYI: I just rebuilt from \
the latest Trunk and the WAR works well with Tomcat.<div>
<br><div>
<span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial" size="4"><span \
style="font-size:15px"><i><span style="font-style:normal"><span \
style="font-family:Helvetica;font-size:medium">________________________________________________________________ \
<br>
<div><span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial"><span \
style="font-size:11pt">Raymond Feng</span></font></div><div><font face="Calibri, \
Verdana, Helvetica, Arial"><span style="font-size:11pt"><a \
href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
<i>Apache Tuscany PMC member and committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br>Co-author of Tuscany SCA In Action book: <a \
href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br>
Personal Web Site: <a href="http://www.enjoyjava.com/" \
target="_blank">www.enjoyjava.com</a><br></i></span></font></div></div></span></span>< \
/div>________________________________________________________________</span></span></i></span></font></div>
</div></span></div></span></span>
</div>
<br></div><div><div><div>On Mar 23, 2011, at 9:28 AM, Florian Moga \
wrote:</div><br></div><div><div></div><div><blockquote type="cite"><font \
face="trebuchet ms,sans-serif">Integration test works fine (no errors in logs). \
Here's what I'm seeing in WEB-INF/lib:</font><div>
<font face="trebuchet ms,sans-serif"><br></font></div><div><font face="trebuchet \
ms,sans-serif"><div>
aopalliance-1.0.jar</div><div>app-1.2.0-v20090520-1800.jar</div><div>asm-3.1.jar</div> \
<div>axiom-api-1.2.10.jar</div><div>axiom-impl-1.2.10.jar</div><div>cglib-2.2.jar</div><div>common-3.5.0-v20090520-1800.jar</div><div>
commons-beanutils-1.7.0.jar</div>
<div>commons-cli-1.2.jar</div><div>commons-codec-1.3.jar</div><div>commons-collections \
-3.2.jar</div><div>commons-digester-1.8.jar</div><div>commons-discovery-0.4.jar</div>< \
div>commons-logging-1.1.1.jar</div><div>contenttype-3.3.0-v20080604-1400.jar</div>
<div>geronimo-javamail_1.4_spec-1.6.jar</div><div>httpclient-4.0.3.jar</div><div>httpc \
ore-4.0.1.jar</div><div>jabsorb-1.3.1.jar</div><div>jackson-core-asl-1.7.1.jar</div><div>jackson-mapper-asl-1.7.1.jar</div><div>jackson-xc-1.7.1.jar</div>
<div>jaxen-1.1.1.jar</div><div>jettison-1.2.jar</div><div>jobs-3.4.0-v20080512.jar</di \
v><div>jstl-1.2.jar</div><div>myfaces-api-1.2.2.jar</div><div>myfaces-impl-1.2.2.jar</ \
div><div>osgi-3.5.0-v20090520.jar</div><div>preferences-3.2.300-v20090520-1800.jar</div>
<div>registry-3.4.100-v20090520-1800.jar</div><div>runtime-3.4.0-v20080512.jar</div><d \
iv>sample-implementation-spring-helloworld-contribution-2.0-SNAPSHOT.jar</div><div>servlet-api-2.5.jar</div><div>slf4j-api-1.6.1.jar</div>
<div>slf4j-jdk14-1.6.1.jar</div><div>spring-aop-3.0.5.RELEASE.jar</div><div>spring-asm \
-3.0.5.RELEASE.jar</div><div>spring-beans-3.0.5.RELEASE.jar</div><div>spring-context-3.0.5.RELEASE.jar</div><div>spring-context-support-3.0.5.RELEASE.jar</div>
<div>spring-core-3.0.5.RELEASE.jar</div><div>spring-expression-3.0.5.RELEASE.jar</div> \
<div>spring-web-3.0.5.RELEASE.jar</div><div>spring-webmvc-3.0.5.RELEASE.jar</div><div>stripes-1.5.2.jar</div><div>tuscany-assembly-2.0-SNAPSHOT.jar</div>
<div>tuscany-assembly-xml-2.0-SNAPSHOT.jar</div><div>tuscany-assembly-xsd-2.0-SNAPSHOT \
.jar</div><div>tuscany-binding-http-2.0-SNAPSHOT.jar</div><div>tuscany-binding-jsonp-2.0-SNAPSHOT.jar</div><div>tuscany-binding-jsonp-runtime-2.0-SNAPSHOT.jar</div>
<div>tuscany-binding-jsonrpc-2.0-SNAPSHOT.jar</div><div>tuscany-binding-jsonrpc-runtim \
e-2.0-SNAPSHOT.jar</div><div>tuscany-binding-sca-runtime-2.0-SNAPSHOT.jar</div><div>tu \
scany-binding-ws-2.0-SNAPSHOT.jar</div><div>tuscany-builder-2.0-SNAPSHOT.jar</div>
<div>tuscany-common-http-2.0-SNAPSHOT.jar</div><div>tuscany-common-java-2.0-SNAPSHOT.j \
ar</div><div>tuscany-common-xml-2.0-SNAPSHOT.jar</div><div>tuscany-contribution-2.0-SNAPSHOT.jar</div><div>tuscany-core-2.0-SNAPSHOT.jar</div>
<div>tuscany-core-databinding-2.0-SNAPSHOT.jar</div><div>tuscany-core-spi-2.0-SNAPSHOT \
.jar</div><div>tuscany-data-api-2.0-SNAPSHOT.jar</div><div>tuscany-databinding-2.0-SNAPSHOT.jar</div><div>tuscany-databinding-jaxb-2.0-SNAPSHOT.jar</div>
<div>tuscany-databinding-json-2.0-SNAPSHOT.jar</div><div>tuscany-deployment-2.0-SNAPSH \
OT.jar</div><div>tuscany-domain-node-2.0-SNAPSHOT.jar</div><div>tuscany-extensibility-2.0-SNAPSHOT.jar</div><div>tuscany-extensibility-equinox-2.0-SNAPSHOT.jar</div>
<div>tuscany-host-http-2.0-SNAPSHOT.jar</div><div>tuscany-host-webapp-2.0-SNAPSHOT.jar \
</div><div>tuscany-implementation-java-2.0-SNAPSHOT.jar</div><div>tuscany-implementati \
on-java-runtime-2.0-SNAPSHOT.jar</div><div>tuscany-implementation-spring-2.0-SNAPSHOT.jar</div>
<div>tuscany-implementation-spring-runtime-2.0-SNAPSHOT.jar</div><div>tuscany-implemen \
tation-spring-webapp-2.0-SNAPSHOT.jar</div><div>tuscany-implementation-web-2.0-SNAPSHOT.jar</div><div>tuscany-implementation-web-runtime-2.0-SNAPSHOT.jar</div>
<div>tuscany-interface-java-2.0-SNAPSHOT.jar</div><div>tuscany-interface-java-jaxws-2. \
0-SNAPSHOT.jar</div><div>tuscany-interface-wsdl-2.0-SNAPSHOT.jar</div><div>tuscany-monitor-2.0-SNAPSHOT.jar</div><div>tuscany-myfaces-2.0-SNAPSHOT.jar</div>
<div>tuscany-node-api-2.0-SNAPSHOT.jar</div><div>tuscany-node-impl-2.0-SNAPSHOT.jar</d \
iv><div>tuscany-node-launcher-2.0-SNAPSHOT.jar</div><div>tuscany-node-launcher-equinox-2.0-SNAPSHOT.jar</div><div>tuscany-policy-security-2.0-SNAPSHOT.jar</div>
<div>tuscany-sca-api-2.0-SNAPSHOT.jar</div><div>tuscany-sca-client-impl-2.0-SNAPSHOT.j \
ar</div><div>tuscany-shell-2.0-SNAPSHOT.jar</div><div>tuscany-stripes-2.0-SNAPSHOT.jar</div><div>tuscany-web-javascript-2.0-SNAPSHOT.jar</div>
<div>tuscany-xsd-2.0-SNAPSHOT.jar</div><div>wsdl4j-1.6.2.jar</div><div>XmlSchema-1.4.3.jar</div><div><br></div></font><br><div \
class="gmail_quote">On Wed, Mar 23, 2011 at 6:00 PM, Raymond Feng <span \
dir="ltr"><<a href="mailto:enjoyjava@gmail.com" \
target="_blank">enjoyjava@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div style="word-wrap:break-word">It's strange. After I \
saw your responses, I downloaded and installed Tomcat 6.0.32 freshly. Then I copied \
helloworld-spring.war into webapps, started Tomcat, pointed the browser to:<div>
<br></div><div><a href="http://localhost:8080/helloworld-spring/mvc/" \
target="_blank">http://localhost:8080/helloworld-spring/mvc/</a></div><div><br></div><div>It \
just works without any issues!</div><div><br></div><div>BTW, if you run mvn clean \
install for the webapp, we actually do the integration test to verify all the \
endpoints are working.</div>
<div><br></div><div>Can you show a list of jars in the \
WEB-INF/lib?</div><div><br></div><div>Thanks,</div><div><div>Raymond<br><div> <div \
style="word-wrap:break-word"><span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial" size="4"><span \
style="font-size:15px"><i><span style="font-style:normal"><span \
style="font-family:Helvetica;font-size:medium">________________________________________________________________ \
<br>
<div><span style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span \
style="border-collapse:separate;color:rgb(0, 0, \
0);font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-w \
eight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div \
style="word-wrap:break-word">
<div><font face="Calibri, Verdana, Helvetica, Arial"><span \
style="font-size:11pt">Raymond Feng</span></font></div><div><font face="Calibri, \
Verdana, Helvetica, Arial"><span style="font-size:11pt"><a \
href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
<i>Apache Tuscany PMC member and committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br>Co-author of Tuscany SCA In Action book: <a \
href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br>
Personal Web Site: <a href="http://www.enjoyjava.com/" \
target="_blank">www.enjoyjava.com</a><br></i></span></font></div></div></span></span>< \
/div>________________________________________________________________</span></span></i></span></font></div>
</div></span></div>
</div>
<br></div><div><div></div><div><div><div>On Mar 23, 2011, at 2:09 AM, Florian Moga \
wrote:</div><br><blockquote type="cite"><font face="'trebuchet ms', \
sans-serif">Same here but without the ClassCastException...</font><br>
<br><div class="gmail_quote">On Wed, Mar 23, 2011 at 9:44 AM, ant elder <span \
dir="ltr"><<a href="mailto:ant.elder@gmail.com" \
target="_blank">ant.elder@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I gave it a try, deploying the built war to Tomcat it looks \
like it<br> starts up ok but then i couldn't see what url to use to actually \
run<br> anything. Running it with mvn jetty:run it fails with:<br>
<br>
Caused by: org.springframework.beans.factory.BeanCreationException:<br>
Error creating bean with name 'GreetingServiceBean' defined in U<br>
RL [file:/C:/Tuscany/SVN/rayspring/helloworld-spring-webapp/src/main/webapp/WEB-INF/sca/sca-context.xml]:<br>
Cannot resolve reference t<br>
o bean 'MessageServiceBean' while setting bean property<br>
'messageService'; nested exception is<br>
org.springframework.beans.factory.NoSu<br>
<div>chBeanDefinitionException: No bean named 'MessageServiceBean' is \
defined<br> <br>
</div>and with mvn tomcat:run it fails with:<br>
<br>
SEVERE: Exception starting filter tuscany<br>
java.lang.ClassCastException:<br>
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter cannot be cast<br>
to javax.servlet.Filter<br>
<font color="#888888"><br>
...ant<br>
</font><div><div></div><div><br>
On Tue, Mar 22, 2011 at 9:42 PM, Raymond Feng <<a \
href="mailto:enjoyjava@gmail.com" target="_blank">enjoyjava@gmail.com</a>> \
wrote:<br> > I made one more change to exclude servlet/el/jsp jars from being \
packaged<br> > into the WAR and upgrade to jstl 1.2. Now the standalone WAR can be \
deployed<br> > to Tomcat.<br>
> Make sure you rebuild Tuscany. I don't see<br>
> the org.springframework.beans.factory.NoSuchBeanDefinitionException.<br>
> Thanks,<br>
> Raymond<br>
> ________________________________________________________________<br>
> Raymond Feng<br>
> <a href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
> Apache Tuscany PMC member and committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br> > Co-author of Tuscany SCA In Action \
book: <a href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br> > Personal Web Site: <a \
href="http://www.enjoyjava.com/" target="_blank">www.enjoyjava.com</a><br> > \
________________________________________________________________<br> > On Mar 22, \
2011, at 12:26 PM, Florian Moga wrote:<br> ><br>
> It looks like now it is finding the spring file but I'm<br>
> seeing org.springframework.beans.factory.NoSuchBeanDefinitionException: No<br>
> bean named 'MessageServiceBean' is defined<br>
> The bean is defined in servlet-context.xml. Are the spring files loaded in<br>
> some order? It looks like sca-context.xml is loaded before<br>
> servlet-context.xml and doesn't find the bean.<br>
><br>
> On Tue, Mar 22, 2011 at 6:56 PM, Raymond Feng <<a \
href="mailto:enjoyjava@gmail.com" target="_blank">enjoyjava@gmail.com</a>> \
wrote:<br> >><br>
>> I made one more change in web.xml to use classpath: for Spring config<br>
>> location. Can you try again?<br>
>> Thanks,<br>
>> Raymond<br>
>> ________________________________________________________________<br>
>> Raymond Feng<br>
>> <a href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
>> Apache Tuscany PMC member and committer: <a \
href="http://tuscany.apache.org/" target="_blank">tuscany.apache.org</a><br> >> \
Co-author of Tuscany SCA In Action book: <a href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br> >> Personal Web Site: <a \
href="http://www.enjoyjava.com/" target="_blank">www.enjoyjava.com</a><br> >> \
________________________________________________________________<br> >> On Mar \
22, 2011, at 9:47 AM, Raymond Feng wrote:<br> >><br>
>> Hi,<br>
>> sample-implementation-spring-helloworld-contribution.jar is copied into<br>
>> the WAR as a jar. That's probably why you didn't see the<br>
>> WEB-INF/classes/helloworld-context.xml. Can you try to unzip the jar \
into<br> >> WEB-INF/classes to see if it helps? We also need to figure out a \
way to<br> >> resolve Spring application context files on the classpath.<br>
>> Thanks,<br>
>> Raymond<br>
>> ________________________________________________________________<br>
>> Raymond Feng<br>
>> <a href="mailto:rfeng@apache.org" target="_blank">rfeng@apache.org</a><br>
>> Apache Tuscany PMC member and committer: <a \
href="http://tuscany.apache.org/" target="_blank">tuscany.apache.org</a><br> >> \
Co-author of Tuscany SCA In Action book: <a href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br> >> Personal Web Site: <a \
href="http://www.enjoyjava.com/" target="_blank">www.enjoyjava.com</a><br> >> \
________________________________________________________________<br> >> On Mar \
22, 2011, at 9:32 AM, Florian Moga wrote:<br> >><br>
>> Hey Raymond,<br>
>> Yes, I tried deploying \
sample-implementation-spring-helloworld-webapp.war<br> >> to both Tomcat and \
Jetty. When I saw the exceptions in logs, I tried copying<br> >> \
sample-implementation-spring-helloworld-contribution.jar to the lib/ folder<br> \
>> of Tomcat and removing the provided scope but none didn't<br> >> \
fix FileNotFoundException: Could not open ServletContext resource<br> >> \
[/WEB-INF/classes/helloworld-context.xml].<br> >> Florian<br>
>><br>
>><br>
>> On Tue, Mar 22, 2011 at 5:51 PM, Raymond Feng <<a \
href="mailto:enjoyjava@gmail.com" target="_blank">enjoyjava@gmail.com</a>> \
wrote:<br> >>><br>
>>> Hi, Florian.<br>
>>> Thank you for the feedback. Did you try to deploy the \
hello-spring.war<br> >>> into Tomcat/Jetty?<br>
>>> You are right, the provided scope seems to be an issue (for some \
reason,<br> >>> "provided" is used by some folks in the wrong \
way:-). I'll fix it.<br> >>> Thanks,<br>
>>> Raymond<br>
>>> ________________________________________________________________<br>
>>> Raymond Feng<br>
>>> <a href="mailto:rfeng@apache.org" \
target="_blank">rfeng@apache.org</a><br> >>> Apache Tuscany PMC member and \
committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br> >>> Co-author of Tuscany SCA In \
Action book: <a href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br> >>> Personal Web Site: <a \
href="http://www.enjoyjava.com/" target="_blank">www.enjoyjava.com</a><br> \
>>> ________________________________________________________________<br> \
>>> On Mar 22, 2011, at 1:16 AM, Florian Moga wrote:<br> >>><br>
>>> Hi Raymond,<br>
>>> Having Spring MVC support in Tuscany sounds and looks great! I had a \
look<br> >>> at the sample but I haven't been able to start it up \
successfully. I'm<br> >>> seeing the following in logs:<br>
>>> Caused by: java.io.FileNotFoundException: Could not open \
ServletContext<br> >>> resource \
[/WEB-INF/classes/helloworld-context.xml]<br> >>> Caused by: \
java.lang.ClassNotFoundException: sample.DateService<br> >>> This is \
probably due to the<br> >>> \
sample-implementation-spring-helloworld-contribution dependency having the<br> \
>>> scope set to provided. I don't know how that should be handled, \
I've tried<br> >>> adding the jar to the lib/ folder in Tomcat but the \
first error was still<br> >>> appearing. How should I do this correctly?<br>
>>> Thanks,<br>
>>> Florian<br>
>>><br>
>>> On Tue, Mar 22, 2011 at 12:33 AM, Raymond Feng <<a \
href="mailto:enjoyjava@gmail.com" target="_blank">enjoyjava@gmail.com</a>><br> \
>>> wrote:<br> >>>><br>
>>>> Hi,<br>
>>>> I recently added support of Spring MVC integration for Tuscany on \
top of<br> >>>> the Tuscany/Spring web application feature.<br>
>>>><br>
>>>> <a href="https://cwiki.apache.org/confluence/download/attachments/5964931/Spring+Tuscany.pptx" \
target="_blank">https://cwiki.apache.org/confluence/download/attachments/5964931/Spring+Tuscany.pptx</a><br>
>>>> To support the Spring MVC which has a servlet-scoped application<br>
>>>> context, I added code to allow Tuscany to start/stop a node per \
servlet and<br> >>>> enhanced the CompositeContext and Spring \
implementation provider to link the<br> >>>> Spring application context \
to Tuscany.<br> >>>> Here is a working sample:<br>
>>>><br>
>>>> <a href="https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implementation-spring/" \
target="_blank">https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implementation-spring/</a><br>
>>>> (You can find how to invoke it<br>
>>>> at <a \
href="https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/implementati \
on-spring/helloworld-spring-webapp/src/test/java/sample/HelloworldClientTestCase.java" \
target="_blank">https://svn.apache.org/repos/asf/tuscany/sandbox/rfeng/sca-java-2.x/im \
plementation-spring/helloworld-spring-webapp/src/test/java/sample/HelloworldClientTestCase.java</a>)<br>
>>>> (PS: I'm all confused by the move of our samples into \
various<br> >>>> contrib/unreleased folders and had a difficult time to \
dig out the<br> >>>> Spring/Tuscany integration sample. For now, I leave \
it in my sandbox before<br> >>>> the sample structure is settled. )<br>
>>>> Thanks,<br>
>>>> Raymond<br>
>>>> ________________________________________________________________<br>
>>>> Raymond Feng<br>
>>>> <a href="mailto:rfeng@apache.org" \
target="_blank">rfeng@apache.org</a><br> >>>> Apache Tuscany PMC member \
and committer: <a href="http://tuscany.apache.org/" \
target="_blank">tuscany.apache.org</a><br> >>>> Co-author of Tuscany SCA \
In Action book: <a href="http://www.tuscanyinaction.com/" \
target="_blank">www.tuscanyinaction.com</a><br> >>>> Personal Web Site: \
<a href="http://www.enjoyjava.com/" target="_blank">www.enjoyjava.com</a><br> \
>>>> ________________________________________________________________<br> \
>>><br> >>><br>
>><br>
>><br>
>><br>
><br>
><br>
><br>
</div></div></blockquote></div><br>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</blockquote></div></div></div><br></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br>
</blockquote></div></div></div><br></div></div></blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic