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 <[email protected]> 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/implementation-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
> [email protected]
> 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
> ________________________________________________________________*
>
>

Reply via email to