tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r454715 - in /incubator/tuscany/java/samples/sca/helloworldjsonrpc: pom.xml src/main/webapp/WEB-INF/web.xml
Date Tue, 10 Oct 2006 11:59:09 GMT
Author: antelder
Date: Tue Oct 10 04:59:09 2006
New Revision: 454715

URL: http://svn.apache.org/viewvc?view=rev&rev=454715
Log:
Try to get the json-rpc sample going with the new webapp stuff.
Doesn't work yet

Modified:
    incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml
    incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml

Modified: incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml?view=diff&rev=454715&r1=454714&r2=454715
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml Tue Oct 10 04:59:09 2006
@@ -30,62 +30,33 @@
         <dependency>
             <groupId>org.osoa</groupId>
             <artifactId>sca-api-r0.95</artifactId>
-            <scope>compile</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.tuscany.sca.kernel</groupId>
-            <artifactId>core</artifactId>
-            <version>${pom.version}</version>
-            <scope>runtime</scope> <!-- runtime is need for webapp integration
to include jar -->
-        </dependency>
-        <dependency>
-            <groupId>javax.servlet</groupId>
-            <artifactId>servlet-api</artifactId>
-            <version>2.4</version>
-            <scope>provided</scope>
-        </dependency>     
-        <dependency>
-            <groupId>org.apache.tuscany.sca.services.bindings</groupId>
-            <artifactId>axis2</artifactId>
-            <version>${pom.version}</version>
-            <scope>runtime</scope> <!-- runtime is need for webapp integration
to include jar -->
-        </dependency>   
-        <dependency>
-            <groupId>org.apache.tuscany.sca.services.bindings</groupId>
-            <artifactId>jsonrpc</artifactId>
-            <version>${pom.version}</version>
-            <scope>runtime</scope> <!-- runtime is need for webapp integration
to include jar -->
-        </dependency>
-        <dependency>
-            <groupId>org.apache.tuscany.sca.runtime</groupId>
-            <artifactId>webapp</artifactId>
-            <version>${pom.version}</version>
-            <scope>runtime</scope> <!-- runtime is need for webapp integration
to include jar -->
-        </dependency>
-        <dependency>
-            <groupId>org.apache.tuscany.sca.runtime</groupId>
-            <artifactId>webapp-host</artifactId>
-            <version>${pom.version}</version>
-            <scope>runtime</scope> <!-- runtime is need for webapp integration
to include jar -->
-        </dependency>
-        <dependency>
-          <groupId>ws-commons</groupId>
-          <artifactId>axiom-api</artifactId>
-          <version>SNAPSHOT</version>
-            <scope>compile</scope> 
-        </dependency>
-        <dependency>
-          <groupId>ws-commons</groupId>
-          <artifactId>axiom-impl</artifactId>
-          <version>SNAPSHOT</version>
-          <scope>runtime</scope>
-        </dependency>
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>3.8.1</version>
-            <scope>test</scope>
-        </dependency>
-        
     </dependencies>
+
+    <build>
+        <finalName>sample-helloworldjsonrpc</finalName>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.tuscany.sca.plugins</groupId>
+                <artifactId>tuscany-war-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>tuscany-war</id>
+                        <goals>
+                            <goal>tuscany-war</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <extensions>
+                       <dependency>
+                          <groupId>org.apache.tuscany.sca.services.bindings</groupId>
+                          <artifactId>binding-jsonrpc</artifactId>
+                          <version>${tuscanyVersion}</version>
+                       </dependency>
+                    </extensions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 </project>

Modified: incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml?view=diff&rev=454715&r1=454714&r2=454715
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml Tue
Oct 10 04:59:09 2006
@@ -24,29 +24,18 @@
         <welcome-file>HelloWorldJSONRPC.html</welcome-file>
     </welcome-file-list>
     
-    <context-param>
-     <param-name>systemScdlPath</param-name>
-     <param-value>/META-INF/sca/webapp.system.scdl</param-value>
-    </context-param>
-    
-    <context-param>
-     <param-name>applicationScdlPath</param-name>
-     <param-value>/META-INF/sca/default.scdl</param-value>
-  </context-param>
+    <filter>
+        <filter-name>TuscanyFilter</filter-name>
+        <filter-class>org.apache.tuscany.runtime.webapp.TuscanyFilter</filter-class>
+    </filter>
 
-  <listener>
-     <listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
-  </listener>
+    <filter-mapping>
+        <filter-name>TuscanyFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
 
-  <servlet>
-     <servlet-name>TuscanyServlet</servlet-name>
-     <display-name>Tuscany Servlet</display-name>
-     <servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
-  </servlet>
-  
-  <servlet-mapping>
-     <servlet-name>TuscanyServlet</servlet-name>
-     <url-pattern>/services/*</url-pattern>
-  </servlet-mapping>
+    <listener>
+        <listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
+    </listener>
 
 </web-app>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message