Invalid links in sca-java-development-guide
Hi All, While surfing through Tuscany web site's sca-java development guide, http://tuscany.apache.org/sca-java-development-guide.html I've noticed that some links to repositories are broken. Isn't it valuable to add the correct links? I would like to create a JIRA documentation issue on this, if the community agrees. Appreciate if you can guide me to the documentation patching guide of Tuscany. Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[jira] [Commented] (TUSCANY-3496) Develop a simple tool that can be used to generate composite diagrams from the xml files
[ https://issues.apache.org/jira/browse/TUSCANY-3496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009983#comment-13009983 ] C.S. Nirmal J. Fernando commented on TUSCANY-3496: -- I showed my interest on this idea, in the dev-mailing list, and currently started to explore the requirements and a design. > Develop a simple tool that can be used to generate composite diagrams from > the xml files > > > Key: TUSCANY-3496 > URL: https://issues.apache.org/jira/browse/TUSCANY-3496 > Project: Tuscany > Issue Type: Wish > Components: Java SCA Community Ideas >Affects Versions: Java-SCA-1.x >Reporter: Raymond Feng > Labels: gsoc, gsoc2010, gsoc2011, mentor > Original Estimate: 1m > Remaining Estimate: 1m > > I'm looking a simple tool (web based or command) that can generate the > composite diagrams from a list of composite files. One technology we can try > is the Apache Batik project. > http://xmlgraphics.apache.org/batik/ > This tool can serve multiple purposes: > 1) Help document our tutorials and samples > 2) Be integrated with the SCA domain manager to visualize the SCA domain > (contributions, composites, nodes etc) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: GSoC Project Proposal : Develop a 'NoSQL' Datastore component for Apache Cassandra, CouchDB, Hadoop/Hbase
Hi Jean-Sebastien, I updated the project proposal adding some of your ideas, links and Florian's previous project proposal and hoping to come up with a more advanced proposal. Please let me know your ideas on the current proposal (specially on timeline). It will be a great help for me to improve my proposal. Also before completing the "overview of the implementation plan" there are some problems I need to discuss with. 1. My plan is to create separate components for each database and make a composite component out of it. What do you think? 2. Final global API for all the database components must be decided. Any ideas for it? 3. Need to decide the order which we implement the components. I think we should start with Apache Cassandra since I have some knowledge in it. 4. In Apache Cassandra there are lots of client APIs. Thrift is the basic and there are some other higher-level APIs (Java) like Hector, Pelops, Kundera, Datanucleus-JDO. There are some concerns with using these APIs like how bulky is the components would be since there are lots of dependencies. Hope you have some ideas for them. thanks Eranda
Re: [GSoC-2011] TUSCANY-3496 idea
Hi, On Wed, Mar 23, 2011 at 12:27 AM, Jean-Sebastien Delfino wrote: > On Tue, Mar 22, 2011 at 10:47 AM, Nirmal Fernando > wrote: >> On Tue, Mar 22, 2011 at 10:54 PM, Raymond Feng wrote: >>> Hi, Nirmal. >>> The idea is to have a simple way to generate a diagram from the composite >>> file to illustrate the SCA components (service/reference) and their wirings. >>> It could be a simple .dot or .svg file. >>> Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. >>> This idea is more on the lightweight side, for example, allowing a browser >>> to point to Tuscany runtime to show the composite diagram. >>> [1] http://www.eclipse.org/stp/sca/ >> >> Thanks for the quick response Raymond, I will study on Apache Batik Project >> http://xmlgraphics.apache.org/batik/ and Eclipse tool and will log my >> findings >> on JIRA. >> >> If you have any other thing in your mind that I should start looking at, >> please >> share them. >> >> I am hoping to contribute to this project in GSoC! >> >> Thanks. >> > ... > > Just a thought: if you're going to generate SVG using Batik, it'd be > really cool to be able to edit the diagram too. It shouldn't be too > difficult to add mouse onclick event handlers to the SVG elements > representing components, wires etc and let the user move them around, > unwire and rewire components for example. This sounds interesting Jean, thanks for firing it up! > > Another thought, since Raymond mentioned Eclipse tools. It may be > worth taking a look at Eclipse Orion [1][2] and see if you can use any > of it... I mean, if it's not too complicated and you think that it'll > actually help you with the user interface. > > [1] http://www.eclipse.org/orion/ > [2] http://download.eclipse.org/e4/orion/ Orion looks pretty cool! I will consider the possibility of using it in this project. Thanks Jean for the support, hope you'll continue! Thanks! > -- > Jean-Sebastien > -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
[GSOC 2011]Enquiry
Hi everybody, I’m Pere Villega, a developer from Barcelona currently living in Dublin, and new to the mailing list. I contact you regarding Google Summer of Code 2011. I’m a student that would like to join the program this season and I’ve found your project interesting. I contacted Florian Moga (I thought he was a mentor :P) and he told me to write here to you all. First of all I want to do a disclaimer: I’m studying and working full time. Last year I was part of GSOC 2010 under the same conditions (working and studying) and contributed a project to Duraspace ( https://wiki.duraspace.org/display/GSOC/GSOC10+-+Add+Unit+Testing+to+Dspace). The project was a success and was incorporated into trunk at the end of GSOC. I say this because I want to show that although I won’t be working 40h/week on GSOC, I’m able to deliver. I expect to contribute around 15h each week, some weeks maybe more. If you prefer a full time student, I will understand. If having a part-time dedication is an issue, I completely understand it and I won’t submit any proposal. I truly appreciate your time spent reading this. The purpose of this email is to know if the members of the project would be interested in me working in your project, and in such case to establish a first contact with some mentor. I have many years of experience in Java development and I’m a beginner in Scala. I’ve seen some ideas of Florian related to that area, that’s why I first contacted him. To be fair, I don’t know too much about the project (although I know about SOA and I want to learn more about it, another reason why I’ve become interested on Tuscany), so another reason of this email would be to know which are the priorities for the project. I understand that GSOC is a perfect opportunity so use extra man-hours to implement things that can’t be easily achieved during the year with the standard work of committers (that’s what happened in my last GSOC) and by knowing what the project needs I can both create a better application and benefit Tuscany more. If someone is interested please contact me via the mailing list or directly via email. Best regards and thanks for your time, Pere Villega
Re: Tuscany/Spring MVC integration
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 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 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 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 implementati
Re: Tuscany/Spring MVC integration
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 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 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 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 an
Re: [GSoC-2011] TUSCANY-3496 idea
On Tue, Mar 22, 2011 at 10:47 AM, Nirmal Fernando wrote: > On Tue, Mar 22, 2011 at 10:54 PM, Raymond Feng wrote: >> Hi, Nirmal. >> The idea is to have a simple way to generate a diagram from the composite >> file to illustrate the SCA components (service/reference) and their wirings. >> It could be a simple .dot or .svg file. >> Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. >> This idea is more on the lightweight side, for example, allowing a browser >> to point to Tuscany runtime to show the composite diagram. >> [1] http://www.eclipse.org/stp/sca/ > > Thanks for the quick response Raymond, I will study on Apache Batik Project > http://xmlgraphics.apache.org/batik/ and Eclipse tool and will log my findings > on JIRA. > > If you have any other thing in your mind that I should start looking at, > please > share them. > > I am hoping to contribute to this project in GSoC! > > Thanks. > ... Just a thought: if you're going to generate SVG using Batik, it'd be really cool to be able to edit the diagram too. It shouldn't be too difficult to add mouse onclick event handlers to the SVG elements representing components, wires etc and let the user move them around, unwire and rewire components for example. Another thought, since Raymond mentioned Eclipse tools. It may be worth taking a look at Eclipse Orion [1][2] and see if you can use any of it... I mean, if it's not too complicated and you think that it'll actually help you with the user interface. [1] http://www.eclipse.org/orion/ [2] http://download.eclipse.org/e4/orion/ -- Jean-Sebastien
Re: [GSoC-2011] TUSCANY-3496 idea
On Tue, Mar 22, 2011 at 10:54 PM, Raymond Feng wrote: > Hi, Nirmal. > The idea is to have a simple way to generate a diagram from the composite > file to illustrate the SCA components (service/reference) and their wirings. > It could be a simple .dot or .svg file. > Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. > This idea is more on the lightweight side, for example, allowing a browser > to point to Tuscany runtime to show the composite diagram. > [1] http://www.eclipse.org/stp/sca/ Thanks for the quick response Raymond, I will study on Apache Batik Project http://xmlgraphics.apache.org/batik/ and Eclipse tool and will log my findings on JIRA. If you have any other thing in your mind that I should start looking at, please share them. I am hoping to contribute to this project in GSoC! Thanks. > 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 10:16 AM, Nirmal Fernando wrote: > > Hi All, > > I'm an undergraduate at Department of Computer Science and > Engineering, University of Moratuwa, Sri Lanka, and I'm hoping to have > an exciting summer with GSoC 2011. I participated in GSoC 2010 for > Apache Derby (RDBMS in Java) project and successfully finished the project. > This is a sample of the work (final output) which I've done for Derby > last summer > (http://nirmalfdo.blogspot.com/p/my-work-at-gsoc-2010.html). > > You can find my profile and recommendations at LinkedIn > (http://www.linkedin.com/profile/view?id=54105394&trk=tab_pro). > > While looking through The ASF idea page, I found this entry in JIRA > about "Develop a simple tool that can be used to generate composite diagrams > from the xml files" https://issues.apache.org/jira/browse/TUSCANY-3496 is > interesting. > > I would appreciate if I can get further details on the requirements of > this tool. > > I'm still new to Apache Tuscany project, but willing to learn quickly, any > help > on getting me started is highly appreciate. > > Thanks. > > -- > Best Regards, > Nirmal > > C.S.Nirmal J. Fernando > Department of Computer Science & Engineering, > Faculty of Engineering, > University of Moratuwa, > Sri Lanka. > Blog: http://nirmalfdo.blogspot.com/ > > -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: [GSoC-2011] TUSCANY-3496 idea
Hi, Nirmal. The idea is to have a simple way to generate a diagram from the composite file to illustrate the SCA components (service/reference) and their wirings. It could be a simple .dot or .svg file. Eclipse has a tooling project for SCA [1]. It can generate nice diagrams. This idea is more on the lightweight side, for example, allowing a browser to point to Tuscany runtime to show the composite diagram. [1] http://www.eclipse.org/stp/sca/ 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 10:16 AM, Nirmal Fernando wrote: > Hi All, > > I'm an undergraduate at Department of Computer Science and > Engineering, University of Moratuwa, Sri Lanka, and I'm hoping to have > an exciting summer with GSoC 2011. I participated in GSoC 2010 for > Apache Derby (RDBMS in Java) project and successfully finished the project. > This is a sample of the work (final output) which I've done for Derby > last summer > (http://nirmalfdo.blogspot.com/p/my-work-at-gsoc-2010.html). > > You can find my profile and recommendations at LinkedIn > (http://www.linkedin.com/profile/view?id=54105394&trk=tab_pro). > > While looking through The ASF idea page, I found this entry in JIRA > about "Develop a simple tool that can be used to generate composite diagrams > from the xml files" https://issues.apache.org/jira/browse/TUSCANY-3496 is > interesting. > > I would appreciate if I can get further details on the requirements of > this tool. > > I'm still new to Apache Tuscany project, but willing to learn quickly, any > help > on getting me started is highly appreciate. > > Thanks. > > -- > Best Regards, > Nirmal > > C.S.Nirmal J. Fernando > Department of Computer Science & Engineering, > Faculty of Engineering, > University of Moratuwa, > Sri Lanka. > Blog: http://nirmalfdo.blogspot.com/
[GSoC-2011] TUSCANY-3496 idea
Hi All, I'm an undergraduate at Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka, and I'm hoping to have an exciting summer with GSoC 2011. I participated in GSoC 2010 for Apache Derby (RDBMS in Java) project and successfully finished the project. This is a sample of the work (final output) which I've done for Derby last summer (http://nirmalfdo.blogspot.com/p/my-work-at-gsoc-2010.html). You can find my profile and recommendations at LinkedIn (http://www.linkedin.com/profile/view?id=54105394&trk=tab_pro). While looking through The ASF idea page, I found this entry in JIRA about "Develop a simple tool that can be used to generate composite diagrams from the xml files" https://issues.apache.org/jira/browse/TUSCANY-3496 is interesting. I would appreciate if I can get further details on the requirements of this tool. I'm still new to Apache Tuscany project, but willing to learn quickly, any help on getting me started is highly appreciate. Thanks. -- Best Regards, Nirmal C.S.Nirmal J. Fernando Department of Computer Science & Engineering, Faculty of Engineering, University of Moratuwa, Sri Lanka. Blog: http://nirmalfdo.blogspot.com/
Re: Tuscany/Spring MVC integration
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 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 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 >>> >>> >>> >> >> >
Re: Tuscany/Spring MVC integration
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 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 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 >> >> >> > >
Re: Tuscany/Spring MVC integration
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 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 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 >> * >> >> > >
Re: Tuscany/Spring MVC integration
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 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 > > >
Re: Tuscany/Spring MVC integration
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 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 > * > >