Author: jboynes
Date: Sun Oct 15 15:05:35 2006
New Revision: 464301
URL: http://svn.apache.org/viewvc?view=rev&rev=464301
Log:
add simple webapp sample to branch
Added:
incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/
- copied from r464297, incubator/tuscany/java/samples/sca/webapp/
incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt
(with props)
Modified:
incubator/tuscany/branches/sca-java-M2/samples/README.txt
incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator/README.txt
incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/pom.xml
Modified: incubator/tuscany/branches/sca-java-M2/samples/README.txt
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/README.txt?view=diff&rev=464301&r1=464300&r2=464301
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/README.txt (original)
+++ incubator/tuscany/branches/sca-java-M2/samples/README.txt Sun Oct 15
15:05:35 2006
@@ -11,3 +11,19 @@
All samples are intended to be built using Maven 2.0.4. For detailed
instructions on
building and running individual samples please refer to the README file in
each directory.
+
+Configuring Apache Tomcat
+-------------------------
+All of the webapp samples are self-contained and do not require any libraries
to be
+installed in the Tomcat server directories.
+
+The webapp samples can be deployed using the tomcat-maven-plugin described
here:
+http://mojo.codehaus.org/tomcat-maven-plugin/introduction.html
+
+This plugin accesses Tomcat using the Manager application and requires a
suitably configured
+role to be set up. The plugin assumes a default username "admin" with no
password (so this
+should not be enabled on a production or visible server). To configure Tomcat
to allow this
+the following line should be added to the user's file
${catalina.home}/conf/tomcat-users.xml
+
+ <user username="admin" password="" roles="manager"/>
+
Modified:
incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator/README.txt
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator/README.txt?view=diff&rev=464301&r1=464300&r2=464301
==============================================================================
---
incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator/README.txt
(original)
+++
incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator/README.txt
Sun Oct 15 15:05:35 2006
@@ -7,7 +7,7 @@
Building
--------
-To build the sample using Maven use:
+To build and install the sample using Maven use:
$ mvn install
This will build the sample, package a JAR file for the composite and install
it in your
Added: incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt?view=auto&rev=464301
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt
(added)
+++ incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt Sun
Oct 15 15:05:35 2006
@@ -0,0 +1,33 @@
+Simple Webapp Sample
+====================
+
+This sample illustrates how to use Apache Tuscany to run a SCA composite
inside a
+web application. It describes how to run it on Apache Tomcat but the
application
+should be portable to other containers such as Jetty or commmercial servers.
+
+Building
+--------
+
+Before building make sure you have built and installed the composite from the
+simple calculator sample in standalone/calculator.
+
+To build this sample using Maven use:
+$ mvn package
+
+This will create a standard WAR file and uses the tuscany-war-plugin to copy in
+all of the Tuscany jars needed for the runtime.
+
+Deploying
+---------
+
+If you have enabled remote deployment as described in the root README file, you
+can deploy the WAR to Tomcat using the tomcat-maven-plugin:
+$ mvn tomcat:deploy
+
+Alternatively you can copy the WAR file to the webapps directory
+$ cp target/sample-webapp.war ${catalina.home}/webapps/.
+
+Running
+-------
+The home page for the application is
+http://localhost:8080/sample-webapp/
\ No newline at end of file
Propchange:
incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/pom.xml?view=diff&rev=464301&r1=464297&r2=464301
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/pom.xml
(original)
+++ incubator/tuscany/branches/sca-java-M2/samples/webapp/webapp/pom.xml Sun
Oct 15 15:05:35 2006
@@ -19,7 +19,7 @@
-->
<project>
<parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
+ <groupId>org.apache.tuscany.sca.samples</groupId>
<artifactId>parent</artifactId>
<version>1.0-incubator-M2-SNAPSHOT</version>
</parent>
@@ -33,13 +33,13 @@
<dependency>
<groupId>org.apache.tuscany.samples.sca</groupId>
<artifactId>sample-calculator</artifactId>
- <version>${tuscanyVersion}</version>
+ <version>${scaVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.tuscany.sca.runtime</groupId>
<artifactId>webapp</artifactId>
- <version>${tuscanyVersion}</version>
+ <version>${scaVersion}</version>
</dependency>
</dependencies>
<build>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]