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
rf...@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 <enjoyj...@gmail.com> wrote:
> I'm on MaC OS. What about you?
> 
> ________________________________________________________________ 
> Raymond Feng
> rf...@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 <enjoyj...@gmail.com> wrote:
>> FYI: I just rebuilt from the latest Trunk and the WAR works well with Tomcat.
>> 
>> ________________________________________________________________ 
>> Raymond Feng
>> rf...@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 <enjoyj...@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
>>> rf...@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.el...@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 <enjoyj...@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
>>>> > rf...@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 <enjoyj...@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
>>>> >> rf...@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
>>>> >> rf...@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 <enjoyj...@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
>>>> >>> rf...@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 <enjoyj...@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/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
>>>> >>>> rf...@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
>>>> >>>> ________________________________________________________________
>>>> >>>
>>>> >>>
>>>> >>
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> >
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

Reply via email to