You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/08/26 13:07:54 UTC

svn commit: r989602 - in /tuscany/sca-java-2.x/contrib/samples/hema: ./ README pom.xml src/main/webapp/WEB-INF/web.xml src/test/java/itest/HelloworldTestCase.java

Author: antelder
Date: Thu Aug 26 11:07:54 2010
New Revision: 989602

URL: http://svn.apache.org/viewvc?rev=989602&view=rev
Log:
Start of a sample for Hema, a user asking for this on the mailing list - http://apache.markmail.org/message/7k3nvus244rrl7k2

Added:
    tuscany/sca-java-2.x/contrib/samples/hema/   (props changed)
      - copied from r989600, tuscany/sca-java-2.x/trunk/samples/webapps/helloworld-jsp/
Modified:
    tuscany/sca-java-2.x/contrib/samples/hema/README
    tuscany/sca-java-2.x/contrib/samples/hema/pom.xml
    tuscany/sca-java-2.x/contrib/samples/hema/src/main/webapp/WEB-INF/web.xml
    tuscany/sca-java-2.x/contrib/samples/hema/src/test/java/itest/HelloworldTestCase.java

Propchange: tuscany/sca-java-2.x/contrib/samples/hema/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Aug 26 11:07:54 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Propchange: tuscany/sca-java-2.x/contrib/samples/hema/
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Thu Aug 26 11:07:54 2010
@@ -0,0 +1 @@
+/tuscany/branches/sca-java-1.3/samples/webapps/helloworld-jsp:671193

Modified: tuscany/sca-java-2.x/contrib/samples/hema/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/hema/README?rev=989602&r1=989600&r2=989602&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/hema/README (original)
+++ tuscany/sca-java-2.x/contrib/samples/hema/README Thu Aug 26 11:07:54 2010
@@ -1,7 +1,4 @@
-The README in the <distribution-unpack-dir>/samples directory provides 
-general instructions about building and running samples. (where
-distribution-unpack-dir is the directory in which you unpacked the tuscany
-binary distribution archive). Take a look there first (noting at you read it that this sample
-is not a new style sample). 
+A sample to demonstrate a Tuscany/SCA webapp that uses the Web Services, RMI, and REST bindings.
+
+Done to help a Tuscany user, see mailing list thread: http://apache.markmail.org/message/7k3nvus244rrl7k2
 
-TODO - finish
\ No newline at end of file

Modified: tuscany/sca-java-2.x/contrib/samples/hema/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/hema/pom.xml?rev=989602&r1=989600&r2=989602&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/hema/pom.xml (original)
+++ tuscany/sca-java-2.x/contrib/samples/hema/pom.xml Thu Aug 26 11:07:54 2010
@@ -26,15 +26,15 @@
         <relativePath>../../pom.xml</relativePath>
     </parent>
 
-    <artifactId>sample-helloworld-jsp-webapp</artifactId>
+    <artifactId>sample-hema</artifactId>
     <packaging>war</packaging>
-    <name>Apache Tuscany SCA Sample Helloworld JSP</name>
+    <name>Apache Tuscany SCA Sample for Hema</name>
 
     <dependencies>
 
         <dependency>
             <groupId>org.apache.tuscany.sca.shades</groupId>
-            <artifactId>tuscany-base</artifactId>
+            <artifactId>tuscany-base-nodep</artifactId>
             <version>2.0-SNAPSHOT</version>
         </dependency>
 
@@ -55,14 +55,14 @@
     </dependencies>
 
     <build>
-       <finalName>helloworld-jsp</finalName>
+       <finalName>${artifactId}</finalName>
        <plugins>
           <plugin>
              <groupId>org.mortbay.jetty</groupId>
              <artifactId>maven-jetty-plugin</artifactId>
              <version>6.1.18</version>
              <configuration>
-                <contextPath>helloworld-jsp</contextPath>
+                <contextPath>${artifactId}</contextPath>
                 <stopKey>foo</stopKey>
                 <stopPort>9999</stopPort>
              </configuration>

Modified: tuscany/sca-java-2.x/contrib/samples/hema/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/hema/src/main/webapp/WEB-INF/web.xml?rev=989602&r1=989600&r2=989602&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/hema/src/main/webapp/WEB-INF/web.xml (original)
+++ tuscany/sca-java-2.x/contrib/samples/hema/src/main/webapp/WEB-INF/web.xml Thu Aug 26 11:07:54 2010
@@ -22,7 +22,7 @@
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
 
-  <display-name>Apache Tuscany Helloworld JSP Sample</display-name>
+  <display-name>Apache Tuscany Sample for Hema</display-name>
 
   <filter>
     <filter-name>tuscany</filter-name> 

Modified: tuscany/sca-java-2.x/contrib/samples/hema/src/test/java/itest/HelloworldTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/contrib/samples/hema/src/test/java/itest/HelloworldTestCase.java?rev=989602&r1=989600&r2=989602&view=diff
==============================================================================
--- tuscany/sca-java-2.x/contrib/samples/hema/src/test/java/itest/HelloworldTestCase.java (original)
+++ tuscany/sca-java-2.x/contrib/samples/hema/src/test/java/itest/HelloworldTestCase.java Thu Aug 26 11:07:54 2010
@@ -39,7 +39,7 @@ public class HelloworldTestCase {
 
     @Test
     public void testA() throws FailingHttpStatusCodeException, MalformedURLException, IOException {
-        HtmlPage page = (HtmlPage)new WebClient().getPage("http://localhost:8085/helloworld-jsp");
+        HtmlPage page = (HtmlPage)new WebClient().getPage("http://localhost:8085/sample-hema");
         Iterator<?> ss = page.getAllHtmlChildElements().iterator();
         while(ss.hasNext()) {
             HtmlElement htmlElement = (HtmlElement) ss.next();