From 359ecb03b3e263a1347e7163f35dbdd9b90a7f63 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 6 Nov 2009 08:47:55 +0000 Subject: Tag 2.0 M4 RC3 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833319 13f79535-47bb-0310-9956-ffa450edef68 --- .../contribution-jar/META-INF/MANIFEST.MF | 11 + .../2.0-M4-RC3/archetypes/contribution-jar/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 36 ++++ .../main/resources/META-INF/maven/archetype.xml | 30 +++ .../src/main/resources/archetype-resources/pom.xml | 110 ++++++++++ .../src/main/java/HelloworldImpl.java | 36 ++++ .../src/main/java/HelloworldService.java | 28 +++ .../main/resources/META-INF/sca-contribution.xml | 23 +++ .../src/main/resources/helloworld.composite | 29 +++ .../archetypes/contribution-zip-discriptor/pom.xml | 33 +++ .../assemblies/tuscany-zip-contribution.xml | 40 ++++ .../contribution-zip/META-INF/MANIFEST.MF | 11 + .../2.0-M4-RC3/archetypes/contribution-zip/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 36 ++++ .../main/resources/META-INF/maven/archetype.xml | 30 +++ .../src/main/resources/archetype-resources/pom.xml | 153 ++++++++++++++ .../archetype-resources/src/main/java/AddImpl.java | 38 ++++ .../src/main/java/AddService.java | 25 +++ .../main/resources/META-INF/sca-contribution.xml | 23 +++ .../src/main/resources/add.composite | 29 +++ tags/java/sca/2.0-M4-RC3/archetypes/pom.xml | 51 +++++ .../quickstart-bpel/META-INF/MANIFEST.MF | 11 + .../2.0-M4-RC3/archetypes/quickstart-bpel/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 43 ++++ .../main/resources/META-INF/maven/archetype.xml | 33 +++ .../src/main/resources/archetype-resources/pom.xml | 182 ++++++++++++++++ .../src/main/java/HelloworldService.java | 28 +++ .../src/main/resources/helloworld.bpel | 66 ++++++ .../src/main/resources/helloworld.wsdl | 82 ++++++++ .../src/main/webapp/WEB-INF/web.composite | 37 ++++ .../src/main/webapp/WEB-INF/web.xml | 41 ++++ .../archetype-resources/src/main/webapp/hello.jsp | 36 ++++ .../2.0-M4-RC3/archetypes/quickstart-jsf/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 44 ++++ .../main/resources/META-INF/maven/archetype.xml | 38 ++++ .../src/main/resources/archetype-resources/pom.xml | 154 ++++++++++++++ .../main/java/myfaces/HelloWorldController.java | 64 ++++++ .../src/main/java/sca/HelloworldService.java | 28 +++ .../src/main/java/sca/HelloworldServiceImpl.java | 30 +++ .../src/main/webapp/WEB-INF/faces-config.xml | 53 +++++ .../src/main/webapp/WEB-INF/web.composite | 35 ++++ .../src/main/webapp/WEB-INF/web.xml | 230 +++++++++++++++++++++ .../src/main/webapp/helloWorld.jsp | 37 ++++ .../archetype-resources/src/main/webapp/index.jsp | 22 ++ .../archetype-resources/src/main/webapp/page2.jsp | 35 ++++ .../quickstart-jsonp/META-INF/MANIFEST.MF | 11 + .../2.0-M4-RC3/archetypes/quickstart-jsonp/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 42 ++++ .../main/resources/META-INF/maven/archetype.xml | 31 +++ .../src/main/resources/archetype-resources/pom.xml | 154 ++++++++++++++ .../src/main/java/HelloworldImpl.java | 27 +++ .../src/main/java/HelloworldService.java | 28 +++ .../src/main/webapp/WEB-INF/web.composite | 32 +++ .../src/main/webapp/WEB-INF/web.xml | 43 ++++ .../archetype-resources/src/main/webapp/hello.jsp | 36 ++++ .../quickstart-stripes/META-INF/MANIFEST.MF | 11 + .../archetypes/quickstart-stripes/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 44 ++++ .../main/resources/META-INF/maven/archetype.xml | 38 ++++ .../src/main/resources/archetype-resources/pom.xml | 124 +++++++++++ .../src/main/java/sca/HelloworldService.java | 28 +++ .../src/main/java/sca/HelloworldServiceImpl.java | 31 +++ .../main/java/stripes/action/BaseActionBean.java | 36 ++++ .../main/java/stripes/action/HomeActionBean.java | 48 +++++ .../src/main/resources/StripesResources.properties | 77 +++++++ .../src/main/resources/log4j.properties | 51 +++++ .../src/main/webapp/WEB-INF/jsp/home.jsp | 29 +++ .../src/main/webapp/WEB-INF/jsp/layout.jsp | 42 ++++ .../src/main/webapp/WEB-INF/jsp/taglibs.jsp | 32 +++ .../src/main/webapp/WEB-INF/web.composite | 34 +++ .../src/main/webapp/WEB-INF/web.xml | 68 ++++++ .../archetype-resources/src/main/webapp/index.html | 27 +++ .../archetypes/quickstart/META-INF/MANIFEST.MF | 11 + .../sca/2.0-M4-RC3/archetypes/quickstart/pom.xml | 50 +++++ .../META-INF/maven/archetype-metadata.xml | 42 ++++ .../main/resources/META-INF/maven/archetype.xml | 31 +++ .../src/main/resources/archetype-resources/pom.xml | 143 +++++++++++++ .../src/main/java/HelloworldImpl.java | 27 +++ .../src/main/java/HelloworldService.java | 25 +++ .../src/main/webapp/WEB-INF/web.composite | 34 +++ .../src/main/webapp/WEB-INF/web.xml | 43 ++++ .../archetype-resources/src/main/webapp/hello.jsp | 36 ++++ 82 files changed, 3967 insertions(+) create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/META-INF/MANIFEST.MF create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml create mode 100644 tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp (limited to 'tags/java/sca/2.0-M4-RC3/archetypes') diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..1e2a0fbb4d --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Contribution JAR +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA Quickstart Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.jar +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/pom.xml new file mode 100644 index 0000000000..4af0007bc2 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-contribution-jar + maven-archetype + Create an SCA JAR contribution project + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-3 + + + + + maven-archetype-plugin + 2.0-alpha-3 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..46c5cd6dca --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,36 @@ + + + + + + src/main/java + + **/*.java + + + + src/main/resources + + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..69c3fb5ac9 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,30 @@ + + + + tuscany-contribution-jar + + src/main/java/HelloworldImpl.java + src/main/java/HelloworldService.java + + + src/main/hello.composite + src/main/webapp/META-INF/sca-contribution.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..4260b840c3 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,110 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + jar + ${version} + #literal() + quickstart + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + provided + + + + + junit + junit + 4.5 + test + + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + org.apache.tuscany.maven.plugins + maven-tuscany-plugin + + + + + 2.0-M4 + + #end + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java new file mode 100644 index 0000000000..26237c105c --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java @@ -0,0 +1,36 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +import org.oasisopen.sca.annotation.Init; +import org.oasisopen.sca.annotation.Scope; +import org.oasisopen.sca.annotation.EagerInit; + +@Scope("COMPOSITE") @EagerInit +public class HelloworldImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + + @Init + public void init() { + System.out.println(sayHello("world")); + } +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java new file mode 100644 index 0000000000..d705564334 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8608a99897 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..aacf93e66a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/pom.xml new file mode 100644 index 0000000000..4490392088 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/pom.xml @@ -0,0 +1,33 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-zip-contribution-descriptor + Tuscany SCA ZIP contribution Shared Assembly Descriptor + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml new file mode 100644 index 0000000000..a672d2920d --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml @@ -0,0 +1,40 @@ + + + + zip-contribution + + zip + + false + + + false + runtime + lib + false + + + + + ${project.build.outputDirectory} + / + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..b5be2573dd --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Contribution ZIP +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA ZIP Contribution Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.zip +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/pom.xml new file mode 100644 index 0000000000..152c28bb5a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-contribution-zip + maven-archetype + Create an SCA ZIP contribution project + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-3 + + + + + maven-archetype-plugin + 2.0-alpha-3 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..46c5cd6dca --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,36 @@ + + + + + + src/main/java + + **/*.java + + + + src/main/resources + + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..c17535e802 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,30 @@ + + + + tuscany-contribution-zip + + src/main/java/AddImpl.java + src/main/java/AddService.java + + + src/main/resources/add.composite + src/main/resources/META-INF/sca-contribution.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..175da3ca4a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,153 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + jar + ${version} + #literal() + quickstart + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + provided + + + + + commons-io + commons-io + 1.4 + + + + commons-math + commons-math + 1.2 + + + + + junit + junit + 4.5 + test + + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + maven-assembly-plugin + 2.2-beta-3 + + + org.apache.tuscany.sca + tuscany-zip-contribution-descriptor + ${tuscany.version} + + + + + make-assembly + package + + single + + + false + + + tuscany-zip-contribution.xml + + + + + + + + org.apache.tuscany.maven.plugins + maven-tuscany-plugin + + + + + 2.0-M4 + + #end + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java new file mode 100644 index 0000000000..48b62dbb6f --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java @@ -0,0 +1,38 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +import org.apache.commons.math.util.MathUtils; + +import org.oasisopen.sca.annotation.Init; +import org.oasisopen.sca.annotation.Scope; +import org.oasisopen.sca.annotation.EagerInit; + +@Scope("COMPOSITE") @EagerInit +public class AddImpl implements AddService { + + public int add(int x, int y) { + return MathUtils.addAndCheck(x, y); + } + + @Init + public void init() { + System.out.println("1 + 2 = " + add(1, 2)); + } +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java new file mode 100644 index 0000000000..4b25553893 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +public interface AddService { + + int add(int x, int y); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..8608a99897 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite new file mode 100644 index 0000000000..af2ed294f9 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/pom.xml new file mode 100644 index 0000000000..c08c27ef5a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/pom.xml @@ -0,0 +1,51 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../pom.xml + + tuscany-archetype + pom + Apache Tuscany SCA Maven Archetypes + + + + default + + true + + + + contribution-jar + contribution-zip + contribution-zip-discriptor + quickstart + quickstart-jsf + quickstart-stripes + quickstart-bpel + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..29e03eb396 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Quickstart Archetype +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA Quickstart Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/pom.xml new file mode 100644 index 0000000000..2398aaafe1 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-quickstart-bpel + maven-archetype + Create an SCA Webapp project using BPEL + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-3 + + + + + maven-archetype-plugin + 2.0-alpha-3 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..47c2f5dc10 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,43 @@ + + + + + + src/main/java + + **/*.java + + + + src/main/resources + + **/* + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..c466a1b3f5 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,33 @@ + + + + tuscany-quickstart + + src/main/java/HelloworldImpl.java + src/main/java/HelloworldService.java + + + src/main/resources/helloworld.bpel + src/main/resources/helloworld.wsdl + src/main/webapp/hello.jsp + src/main/webapp/WEB-INF/web.composite + src/main/webapp/WEB-INF/web.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..27fd12ee55 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,182 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${version} + #literal() + quickstart + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + ${tuscany.version} + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-runtime + ${tuscany.version} + runtime + + + + + junit + junit + 4.5 + test + + + + + org.mortbay.jetty + jetty + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-util + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-management + ${jetty.version} + provided + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack + compile + + unpack + + + + + org.apache.ode + ode-dao-jpa-ojpa-derby + 1.1.1 + zip + false + ${project.build.directory}/classes + **/* + + + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.mortbay.jetty + maven-jetty-plugin + ${jetty.version} + + + + + openjpa.QueryCompilationCache + false + + + + ${basedir}/src/main + ${basedir}/src/main/webapp/WEB-INF/web.xml + + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + + + 2.0-M4 + 6.1.18 + + #end + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java new file mode 100644 index 0000000000..a99cc7b032 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String hello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..53e77c5be0 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + concat($tmpVar,' World') + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..46cf381577 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..aa73578a36 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..922d275b17 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + ${artifactId} + + + tuscany.${artifactId} + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany.${artifactId} + /* + + + + hello.jsp + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..7aeaf81b33 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp @@ -0,0 +1,36 @@ +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + + +

${artifactId}

+ + Calling HelloworldService sayHello("world") returns: + +

+ + <%= service.hello("world") %> + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/pom.xml new file mode 100644 index 0000000000..03c6039680 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-quickstart-jsf + maven-archetype + Create a Tuscany SCA and JSF project + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-4 + + + + + maven-archetype-plugin + 2.0-alpha-4 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..f15a12fb88 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,44 @@ + + + + + + src/main/java + + **/*.java + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.html + **/*.composite + + + + src/main/resources + + **/*.properties + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..b5295d8a73 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,38 @@ + + + + quickstart-stripes + + src/main/java/sample/stripes/action/BaseActionBean.java + src/main/java/sample/stripes/action/HomeActionBean.java + src/main/java/sample/sca/HelloworldService.java + src/main/java/sample/sca/HelloworldServiceImpl.java + + + src/main/resources/log4j.properties + src/main/resources/StripesResources.properties + src/main/webapp/index.html + src/main/webapp/WEB-INF/jsp/home.jsp + src/main/webapp/WEB-INF/jsp/layout.jsp + src/main/webapp/WEB-INF/jsp/taglibs.jsp + src/main/webapp/WEB-INF/web.composite + src/main/webapp/WEB-INF/web.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..0b47fea538 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,154 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${version} + #literal() + quickstart-jsf + + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + + + org.apache.tuscany.sca + tuscany-myfaces + ${tuscany.version} + + + + + org.apache.myfaces.core + myfaces-api + 1.2.2 + compile + + + + org.apache.myfaces.core + myfaces-impl + 1.2.2 + compile + + + + org.apache.myfaces.tomahawk + tomahawk + 1.1.6 + runtime + + + javax.servlet + jstl + + + + + + jstl + jstl + 1.2 + runtime + + + + junit + junit + 4.0 + test + + + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.mortbay.jetty + maven-jetty-plugin + ${jetty.version} + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + + + 2.0-M4 + 1.5 + 6.1.4 + + #end + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java new file mode 100644 index 0000000000..e38c84feda --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java @@ -0,0 +1,64 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +*/ +package ${package}.myfaces; + +import org.oasisopen.sca.annotation.Reference; + +import ${package}.sca.HelloworldService; + +/** + * A typical simple backing bean, that is backed to helloworld.jsp + * + */ +public class HelloWorldController { + + //properties + private String name; + + @Reference + private HelloworldService service; + + /** + * default empty constructor + */ + public HelloWorldController(){ + } + + //-------------------getter & setter + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + + /** + * Method that is backed to a submit button of a form. + */ + public String send(){ + + // invoke the SCA reference + name = service.sayHello(name); + + return "success"; + } +} \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java new file mode 100644 index 0000000000..d6cb7bbcf2 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java @@ -0,0 +1,28 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.sca; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java new file mode 100644 index 0000000000..ec9bfd7221 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java @@ -0,0 +1,30 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.sca; + +public class HelloworldServiceImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml new file mode 100644 index 0000000000..3b732de8af --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml @@ -0,0 +1,53 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + + + helloWorld + ${package}.myfaces.HelloWorldController + request + + + + + /helloWorld.jsp + + success + /page2.jsp + + + + + + /page2.jsp + + back + /helloWorld.jsp + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..847625fcf4 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..48b73fe68a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,230 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + ${artifactId} + + + + org.apache.tuscany.sca.host.webapp.TuscanyContextListener + + + org.apache.myfaces.config.annotation.LifecycleProvider + org.apache.tuscany.sca.myfaces.TuscanyAnnotationLifecycleProvider + + + + + State saving method: "client" or "server" (= default) + See JSF Specification 2.5.3 + javax.faces.STATE_SAVING_METHOD + client + + + Only applicable if state saving method is "server" (= default). + Defines the amount (default = 20) of the latest views are stored in session. + org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION + 20 + + + Only applicable if state saving method is "server" (= default). + If true (default) the state will be serialized to a byte stream before it + is written to the session. + If false the state will not be serialized to a byte stream. + org.apache.myfaces.SERIALIZE_STATE_IN_SESSION + true + + + Only applicable if state saving method is "server" (= default) and if + org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default) + If true (default) the serialized state will be compressed before it + is written to the session. If false the state will not be compressed. + org.apache.myfaces.COMPRESS_STATE_IN_SESSION + true + + + This parameter tells MyFaces if javascript code should be allowed in the + rendered HTML output. + If javascript is allowed, command_link anchors will have javascript code + that submits the corresponding form. + If javascript is not allowed, the state saving info and nested parameters + will be added as url parameters. + Default: "true" + org.apache.myfaces.ALLOW_JAVASCRIPT + true + + + org.apache.myfaces.DETECT_JAVASCRIPT + false + + + If true, rendered HTML code will be formatted, so that it is "human readable". + i.e. additional line separators and whitespace will be written, that do not + influence the HTML code. + Default: "true" + org.apache.myfaces.PRETTY_HTML + true + + + If true, a javascript function will be rendered that is able to restore the + former vertical scroll on every request. Convenient feature if you have pages + with long lists and you do not want the browser page to always jump to the top + if you trigger a link or button action that stays on the same page. + Default: "false" + org.apache.myfaces.AUTO_SCROLL + true + + + + Used for encrypting view state. Only relevant for client side + state saving. See MyFaces wiki/web site documentation for instructions + on how to configure an application for diffenent encryption strengths. + + org.apache.myfaces.SECRET + NzY1NDMyMTA= + + + + + Validate managed beans, navigation rules and ensure that forms are not nested. + + org.apache.myfaces.VALIDATE + true + + + + + Treat readonly same as if disabled attribute was set for select elements. + + org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS + true + + + + + Use the defined class as the class which will be called when a resource is added to the + ExtensionFilter handling. Using StreamingAddResource here helps with performance. If you want to add + custom components and want to use the ExtensionFilter, you need to provide your custom implementation here. + + org.apache.myfaces.ADD_RESOURCE_CLASS + org.apache.myfaces.renderkit.html.util.DefaultAddResource + + + + + Virtual path in the URL which triggers loading of resources for the MyFaces extended components + in the ExtensionFilter. + + org.apache.myfaces.RESOURCE_VIRTUAL_PATH + /faces/myFacesExtensionResource + + + + + Check if the extensions-filter has been properly configured. + + org.apache.myfaces.CHECK_EXTENSIONS_FILTER + true + + + + + Define partial state saving as true/false. + + javax.faces.PARTIAL_STATE_SAVING_METHOD + false + + + + + extensionsFilter + org.apache.myfaces.webapp.filter.ExtensionsFilter + + Set the size limit for uploaded files. + Format: 10 - 10 bytes + 10k - 10 KB + 10m - 10 MB + 1g - 1 GB + uploadMaxFileSize + 100m + + + Set the threshold size - files + below this limit are stored in memory, files above + this limit are stored on disk. + + Format: 10 - 10 bytes + 10k - 10 KB + 10m - 10 MB + 1g - 1 GB + uploadThresholdSize + 100k + + + + + extensionsFilter + *.jsf + + + extensionsFilter + /faces/* + + + + + org.apache.myfaces.webapp.StartupServletContextListener + + + + + Faces Servlet + javax.faces.webapp.FacesServlet + 1 + + + + + Faces Servlet + *.jsf + + + + + index.jsp + index.html + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp new file mode 100644 index 0000000000..4a3197ec4f --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp @@ -0,0 +1,37 @@ + +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> + + + Hello World + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp new file mode 100644 index 0000000000..768aa2408b --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp @@ -0,0 +1,22 @@ + +<%@ page session="false"%> +<% +response.sendRedirect("helloWorld.jsf"); +%> \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp new file mode 100644 index 0000000000..1c096f66c6 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp @@ -0,0 +1,35 @@ + +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> + + + Hello World + + + + +

+ + + + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..29e03eb396 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Quickstart Archetype +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA Quickstart Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/pom.xml new file mode 100644 index 0000000000..e86e5d321a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-quickstart-jsonp + maven-archetype + Create a Tuscany SCA webapp project using the JSONP binding + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-4 + + + + + maven-archetype-plugin + 2.0-alpha-4 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..450e33afd5 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,42 @@ + + + + + + Y + + + + + src/main/java + + **/*.java + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..1bf4353502 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,31 @@ + + + + tuscany-quickstart + + src/main/java/HelloworldImpl.java + src/main/java/HelloworldService.java + + + src/main/webapp/hello.jsp + src/main/webapp/WEB-INF/web.composite + src/main/webapp/WEB-INF/web.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..d55a40bb11 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,154 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${version} + quickstart-jsonp + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} +#if(${includeTuscanyRuntime} == "Y") + compile +#else + provided +#end + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + ${tuscany.version} +#if( $includeTuscanyRuntime == "Y") + runtime +#else + provided +#end + + + + org.apache.tuscany.sca + tuscany-binding-jsonp-runtime + ${tuscany.version} +#if( $includeTuscanyRuntime == "Y") + runtime +#else + provided +#end + + + + + junit + junit + 4.5 + test + + + + + org.mortbay.jetty + jetty + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-util + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-management + ${jetty.version} + provided + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.mortbay.jetty + maven-jetty-plugin + ${jetty.version} + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + + + 2.0-M4 + 6.1.18 + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java new file mode 100644 index 0000000000..2491816adc --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +public class HelloworldImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java new file mode 100644 index 0000000000..3527edcd6f --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..7ccd63ce5d --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..25d8d8184d --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,43 @@ + + + + + ${artifactId} + +#if($includeTuscanyRuntime == "Y") + + tuscany.${artifactId} + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany.${artifactId} + /* + + +#end + + hello.jsp + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..9729ca6823 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp @@ -0,0 +1,36 @@ +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + + +

${artifactId}

+ + Calling HelloworldService sayHello("world") returns: + +

+ + <%= service.sayHello("world") %> + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..ae84237c4a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Quickstart Stripes Archetype +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA Quickstart Stripes Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart.stripes +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/pom.xml new file mode 100644 index 0000000000..d08c53f553 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-quickstart-stripes + maven-archetype + Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-4 + + + + + maven-archetype-plugin + 2.0-alpha-4 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..f15a12fb88 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,44 @@ + + + + + + src/main/java + + **/*.java + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.html + **/*.composite + + + + src/main/resources + + **/*.properties + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..b5295d8a73 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,38 @@ + + + + quickstart-stripes + + src/main/java/sample/stripes/action/BaseActionBean.java + src/main/java/sample/stripes/action/HomeActionBean.java + src/main/java/sample/sca/HelloworldService.java + src/main/java/sample/sca/HelloworldServiceImpl.java + + + src/main/resources/log4j.properties + src/main/resources/StripesResources.properties + src/main/webapp/index.html + src/main/webapp/WEB-INF/jsp/home.jsp + src/main/webapp/WEB-INF/jsp/layout.jsp + src/main/webapp/WEB-INF/jsp/taglibs.jsp + src/main/webapp/WEB-INF/web.composite + src/main/webapp/WEB-INF/web.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..bb3732cfce --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,124 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${version} + #literal() + quickstart-stripes + + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + + + org.apache.tuscany.sca + tuscany-stripes + ${tuscany.version} + + + + + net.sourceforge.stripes + stripes + ${stripes.version} + + + taglibs + standard + 1.1.2 + + + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.mortbay.jetty + maven-jetty-plugin + ${jetty.version} + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + + + 2.0-M4 + 1.5 + 6.1.4 + + #end + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java new file mode 100644 index 0000000000..d6cb7bbcf2 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java @@ -0,0 +1,28 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.sca; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java new file mode 100644 index 0000000000..390b424d24 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java @@ -0,0 +1,31 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.sca; + + +public class HelloworldServiceImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java new file mode 100644 index 0000000000..5bfa1c5d32 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java @@ -0,0 +1,36 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.stripes.action; + +import net.sourceforge.stripes.action.ActionBean; +import net.sourceforge.stripes.action.ActionBeanContext; + +public class BaseActionBean implements ActionBean { + private ActionBeanContext context; + + public ActionBeanContext getContext() { + return context; + } + public void setContext(ActionBeanContext context) { + this.context = context; + } +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java new file mode 100644 index 0000000000..05fd743841 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java @@ -0,0 +1,48 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}.stripes.action; + +import net.sourceforge.stripes.action.DefaultHandler; +import net.sourceforge.stripes.action.ForwardResolution; +import net.sourceforge.stripes.action.Resolution; +import net.sourceforge.stripes.action.UrlBinding; + +import org.oasisopen.sca.annotation.Reference; + +import ${package}.sca.HelloworldService; + +@UrlBinding("/Home.htm") +public class HomeActionBean extends BaseActionBean { + + @Reference + HelloworldService service; + + @DefaultHandler + public Resolution view() { + return new ForwardResolution("/WEB-INF/jsp/home.jsp"); + } + + public String getHello() { + return service.sayHello("world"); + } + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties new file mode 100644 index 0000000000..6567f21ce1 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties @@ -0,0 +1,77 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + +${symbol_pound} Resource strings used by the tag when there are no nested tags +stripes.errors.header=

Please fix the following errors:
    +stripes.errors.beforeError=
  1. +stripes.errors.afterError=
  2. +stripes.errors.footer=
+ +${symbol_pound} Resource strings used by the tag when displaying errors for a +${symbol_pound} specific field (e.g. ). If not supplied the +${symbol_pound} values above will be used instead. +stripes.fieldErrors.header= +stripes.fieldErrors.beforeError= +stripes.fieldErrors.afterError=
+stripes.fieldErrors.footer= + +${symbol_pound} Resource strings used by the stripes:messages tag +stripes.messages.header=
    +stripes.messages.beforeMessage=
  • +stripes.messages.afterMessage=
  • +stripes.messages.footer=
+ +${symbol_pound} Validation error messages produced by Stripes' built-in converter classes. These +${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. +${symbol_pound} Using the 'invalidNumber' error for a field 'age' of a form posting to +${symbol_pound} '/user/Profile.action', the keys looked for (in order) would be: +${symbol_pound} 1: /user/Profile.action.age.invalidNumber +${symbol_pound} 2: /user/Profile.action.age.errorMessage +${symbol_pound} 3: age.errorMessage +${symbol_pound} 4: /user/Profile.action.invalidNumber +${symbol_pound} 5: converter.number.invalidNumber +converter.number.invalidNumber=The value ({1}) entered in field {0} must be a valid number +converter.byte.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} +converter.short.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} +converter.integer.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} +converter.float.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} +converter.enum.notAnEnumeratedValue=The value "{1}" is not a valid value for field {0} +converter.date.invalidDate=The value ({1}) entered in field {0} must be a valid date +converter.email.invalidEmail=The value ({1}) entered is not a valid email address +converter.creditCard.invalidCreditCard=The value ({1}) entered is not a valid credit card number + +${symbol_pound} Validation error messages produced by Stripes' annotation based validations. These +${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. +${symbol_pound} Using the 'valueNotPresent' required field error for a field 'username' of a form +${symbol_pound} posting to '/user/Register.action', the keys looked for (in order) would be: +${symbol_pound} 1: /user/Register.action.username.valueNotPresent +${symbol_pound} 2: /user/Register.action.username.errorMessage +${symbol_pound} 3: username.errorMessage +${symbol_pound} 4: /user/Register.action.valueNotPresent +${symbol_pound} 5: validation.required.valueNotPresent +validation.required.valueNotPresent={0} is a required field +validation.minlength.valueTooShort={0} must be at least {2} characters long +validation.maxlength.valueTooLong={0} must be no more than {2} characters long +validation.minvalue.valueBelowMinimum=The minimum allowed value for {0} is {2} +validation.maxvalue.valueAboveMaximum=The maximum allowed value for {0} is {2} +validation.mask.valueDoesNotMatch={1} is not a valid {0} +validation.expression.valueFailedExpression=The value supplied ({1}) for field {0} is invalid +validation.file.postBodyTooBig=Total upload size of {3} KB exceeds the maximum size of {2} KB diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties new file mode 100644 index 0000000000..e2fd1997c8 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties @@ -0,0 +1,51 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +${symbol_pound} log4j.properties + +${symbol_pound} Set up a logger to the console +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n + +${symbol_pound} Use this to only see log messages beyond a certain threshold in the console +${symbol_pound}log4j.appender.stdout.Threshold=WARN + +${symbol_pound} Set up a logger to a log file +log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n +log4j.appender.logfile.File=${symbol_dollar}{user.home}/stripesquick.log +log4j.appender.logfile.DatePattern='.'yyyy-MM-dd + +${symbol_pound} Use this to only see log messages beyond a certain threshold in the log file +${symbol_pound}log4j.appender.logfile.Threshold=WARN + +${symbol_pound} Logger settings +log4j.rootLogger=INFO, stdout, logfile + +${symbol_pound} Valid levels are TRACE, DEBUG, INFO, WARN, ERROR, FATAL +${symbol_pound} Change to TRACE or DEBUG to see more log messages +log4j.logger.net.sourceforge.stripes=WARN +log4j.logger.org.stripesbook.quickstart=INFO +log4j.logger.org.mortbay.log=INFO +log4j.logger.org=WARN +log4j.logger.com=WARN +log4j.logger.net=WARN diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp new file mode 100644 index 0000000000..59cdacfe23 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp @@ -0,0 +1,29 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> + + + +

sayHello returns: ${symbol_dollar}{actionBean.hello}

+

Congratulations, you've set up a Stripes SCA project!

+
+
diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp new file mode 100644 index 0000000000..0964d2fb7b --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp @@ -0,0 +1,42 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> + + + + + + + ${symbol_dollar}{title} + + + + + +
+ + +
+ + + +
\ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp new file mode 100644 index 0000000000..6452b1bd9c --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp @@ -0,0 +1,32 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%-- Stripes TLD --%> +<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> +<%@ taglib prefix="sdyn" uri="http://stripes.sourceforge.net/stripes-dynattr.tld" %> + +<%-- JSTL TLDs --%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> + +<%-- This is so that you can conveniently refer to the context path with ${symbol_dollar}{contextPath} --%> + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..40896b1473 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..d73e7311d6 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,68 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + ${artifactId} + + + org.apache.tuscany.sca.host.webapp.TuscanyContextListener + + + + StripesFilter + net.sourceforge.stripes.controller.StripesFilter + + ActionResolver.Packages + ${package}.stripes.action + + + Extension.Packages + org.apache.tuscany.sca.stripes + + + + + DispatcherServlet + net.sourceforge.stripes.controller.DispatcherServlet + 1 + + + + StripesFilter + DispatcherServlet + REQUEST + FORWARD + + + + DispatcherServlet + *.htm + + + + index.html + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html new file mode 100644 index 0000000000..a350f1e68a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html @@ -0,0 +1,27 @@ +#set( $symbol_pound = '#' ) +#set( $symbol_dollar = '$' ) +#set( $symbol_escape = '\' ) + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/META-INF/MANIFEST.MF b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..29e03eb396 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/META-INF/MANIFEST.MF @@ -0,0 +1,11 @@ +Manifest-Version: 1.0 +Bundle-Name: Apache Tuscany SCA Quickstart Archetype +Created-By: 1.6.0_07 (Sun Microsystems Inc.) +Bundle-Vendor: The Apache Software Foundation +Bundle-Version: 2.0.0 +Bundle-ManifestVersion: 2 +Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt +Bundle-Description: Apache Tuscany SCA Quickstart Archetype +Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart +Bundle-DocURL: http://www.apache.org/ +Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/pom.xml new file mode 100644 index 0000000000..25b743a218 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/pom.xml @@ -0,0 +1,50 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4 + ../../pom.xml + + + tuscany-quickstart + maven-archetype + Create a simple Apache Tuscany SCA webapp project + + + + + org.apache.maven.archetype + archetype-packaging + 2.0-alpha-4 + + + + + maven-archetype-plugin + 2.0-alpha-4 + true + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml new file mode 100644 index 0000000000..c132fa0364 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml @@ -0,0 +1,42 @@ + + + + + + Y + + + + + src/main/java + + **/*.java + + + + src/main/webapp + + **/*.jsp + **/*.xml + **/*.composite + + + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml new file mode 100644 index 0000000000..7794570626 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml @@ -0,0 +1,31 @@ + + + + tuscany-quickstart + + src/main/java/HelloworldImpl.java + src/main/java/HelloworldService.java + + + src/main/webapp/hello.jsp + src/main/webapp/WEB-INF/web.composite + src/main/webapp/WEB-INF/web.xml + + \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml new file mode 100644 index 0000000000..48c34e55a6 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml @@ -0,0 +1,143 @@ + + + + + 4.0.0 + ${groupId} + ${artifactId} + war + ${version} + quickstart + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} +#if(${includeTuscanyRuntime} == "Y") + compile +#else + provided +#end + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + ${tuscany.version} +#if( $includeTuscanyRuntime == "Y") + runtime +#else + provided +#end + + + + + junit + junit + 4.5 + test + + + + + org.mortbay.jetty + jetty + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-util + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-management + ${jetty.version} + provided + + + + install + ${artifactId} + + + false + src/main/resources + + + false + src/main/java + + ** + + + **/*.java + + + + + + false + src/test/java + + ** + + + **/*.java + + + + + + true + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + true + true + + + + org.mortbay.jetty + maven-jetty-plugin + ${jetty.version} + + + org.apache.maven.plugins + maven-eclipse-plugin + + true + + + + + + 2.0-M4 + 6.1.18 + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java new file mode 100644 index 0000000000..df80303778 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +public class HelloworldImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java new file mode 100644 index 0000000000..47501efb9a --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java @@ -0,0 +1,25 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package ${package}; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..a90973d6f7 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..a7c7d2251e --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,43 @@ + + + + + ${artifactId} + +#if($includeTuscanyRuntime == "Y") + + tuscany.${artifactId} + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany.${artifactId} + /* + + +#end + + hello.jsp + + + diff --git a/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..9729ca6823 --- /dev/null +++ b/tags/java/sca/2.0-M4-RC3/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp @@ -0,0 +1,36 @@ +<%-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + + +

${artifactId}

+ + Calling HelloworldService sayHello("world") returns: + +

+ + <%= service.sayHello("world") %> + + + -- cgit v1.2.3