Author: objectiser
Date: 2011-01-06 07:34:06 -0500 (Thu, 06 Jan 2011)
New Revision: 1212
Added:
dsp/trunk/distribution/
dsp/trunk/distribution/pom.xml
dsp/trunk/distribution/src/
dsp/trunk/distribution/src/main/
dsp/trunk/distribution/src/main/assembly/
dsp/trunk/distribution/src/main/assembly/bin.xml
dsp/trunk/distribution/src/main/assembly/src.xml
dsp/trunk/distribution/src/main/release/
dsp/trunk/distribution/src/main/release/ReleaseNotes.txt
dsp/trunk/distribution/src/main/release/samples/
dsp/trunk/distribution/src/main/release/samples/hello_world.zip
dsp/trunk/docs/
dsp/trunk/docs/GettingStartedForTomcat.txt
Modified:
dsp/trunk/pom.xml
Log:
Added some initial instructions regarding using DSP with tomcat - and provide a
distribution structure.
Added: dsp/trunk/distribution/pom.xml
===================================================================
--- dsp/trunk/distribution/pom.xml (rev 0)
+++ dsp/trunk/distribution/pom.xml 2011-01-06 12:34:06 UTC (rev 1212)
@@ -0,0 +1,90 @@
+<?xml version="1.0"?>
+<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>distribution</artifactId>
+ <packaging>pom</packaging>
+ <version>1.0.0-SNAPSHOT</version>
+ <name>SOA::DSP::Distribution</name>
+
+ <parent>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-api</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-jboss</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.dsp</groupId>
+ <artifactId>dsp-tomcat</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.soa.dsp.samples</groupId>
+ <artifactId>dsp-example-provider</artifactId>
+ <version>${dsp.version}</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>distribution-package</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+ <finalName>dsp-${project.version}</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+
<descriptor>src/main/assembly/bin.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ <archiverConfig>
+ <duplicateBehavior>skip</duplicateBehavior>
+ </archiverConfig>
+ </configuration>
+ </execution>
+ <execution>
+ <id>distribution-package-source</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ <configuration>
+
<finalName>dsp-${project.version}-src</finalName>
+ <appendAssemblyId>false</appendAssemblyId>
+ <descriptors>
+
<descriptor>src/main/assembly/src.xml</descriptor>
+ </descriptors>
+ <tarLongFileMode>gnu</tarLongFileMode>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+</project>
Added: dsp/trunk/distribution/src/main/assembly/bin.xml
===================================================================
--- dsp/trunk/distribution/src/main/assembly/bin.xml (rev 0)
+++ dsp/trunk/distribution/src/main/assembly/bin.xml 2011-01-06 12:34:06 UTC (rev 1212)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+ <!-- id typically identifies the "type" (src vs bin etc) of the assembly
-->
+ <id></id>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <fileSets>
+
+ <!--Copy files like License and samples etc -->
+ <fileSet>
+ <directory>src/main/release</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>*.txt</include>
+ </includes>
+ </fileSet>
+
+ <fileSet>
+ <directory>src/main/release/samples</directory>
+ <outputDirectory>/samples</outputDirectory>
+ </fileSet>
+
+ <!-- Copy sample deploy war to samples -->
+ <fileSet>
+ <directory>../samples/deployer-assembly/target</directory>
+ <outputDirectory>/samples</outputDirectory>
+ <includes>
+ <include>dsp-example-deployer.war</include>
+ </includes>
+ </fileSet>
+
+ </fileSets>
+
+ <dependencySets>
+ <dependencySet>
+ <outputDirectory>/samples</outputDirectory>
+ <includes>
+
<include>org.jboss.soa.dsp.samples:dsp-example-provider</include>
+ </includes>
+ </dependencySet>
+
+ <dependencySet>
+ <outputDirectory>/lib</outputDirectory>
+ <includes>
+ <include>org.jboss.soa.dsp:dsp-api</include>
+ <include>org.jboss.soa.dsp:dsp-jboss</include>
+ <include>org.jboss.soa.dsp:dsp-tomcat</include>
+ </includes>
+ </dependencySet>
+ </dependencySets>
+
+</assembly>
Added: dsp/trunk/distribution/src/main/assembly/src.xml
===================================================================
--- dsp/trunk/distribution/src/main/assembly/src.xml (rev 0)
+++ dsp/trunk/distribution/src/main/assembly/src.xml 2011-01-06 12:34:06 UTC (rev 1212)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+ <!-- id typically identifies the "type" (src vs bin etc) of the assembly
-->
+ <id>src</id>
+ <includeBaseDirectory>true</includeBaseDirectory>
+ <formats>
+ <format>zip</format>
+ </formats>
+
+ <fileSets>
+ <fileSet>
+ <directory>../distribution</directory>
+ <outputDirectory>/distribution</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../docs</directory>
+ <outputDirectory>/docs</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../api</directory>
+ <outputDirectory>/api</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../jboss</directory>
+ <outputDirectory>/jboss</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../tomcat</directory>
+ <outputDirectory>/tomcat</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>../samples</directory>
+ <outputDirectory>/samples</outputDirectory>
+ <excludes>
+ <exclude>**/.project</exclude>
+ <exclude>**/.classpath</exclude>
+ <exclude>**/.settings</exclude>
+ <exclude>**/.settings/**/*</exclude>
+ <exclude>**/target</exclude>
+ <exclude>**/target/**/*</exclude>
+ <exclude>**/*.iml</exclude>
+ <exclude>**/*.ipr</exclude>
+ <exclude>**/*.iws</exclude>
+ </excludes>
+ </fileSet>
+ <fileSet>
+ <directory>..</directory>
+ <outputDirectory>/</outputDirectory>
+ <includes>
+ <include>pom.xml</include>
+ <include>README.txt</include>
+ </includes>
+ </fileSet>
+ </fileSets>
+
+</assembly>
Added: dsp/trunk/distribution/src/main/release/ReleaseNotes.txt
===================================================================
Added: dsp/trunk/distribution/src/main/release/samples/hello_world.zip
===================================================================
(Binary files differ)
Property changes on: dsp/trunk/distribution/src/main/release/samples/hello_world.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: dsp/trunk/docs/GettingStartedForTomcat.txt
===================================================================
--- dsp/trunk/docs/GettingStartedForTomcat.txt (rev 0)
+++ dsp/trunk/docs/GettingStartedForTomcat.txt 2011-01-06 12:34:06 UTC (rev 1212)
@@ -0,0 +1,80 @@
+Getting Started Guide for Apache Tomcat
+=======================================
+
+Installing
+----------
+
+Step 1 - Download and unpack the JAXWS Reference Implementation
+
+The reference implementation can be found at:
http://jax-ws.java.net/. Version 2.2.1 has
been used for testing.
+
+Step 2 - Setup the environment
+
+Set JAXWS_HOME to the JAXWS Reference Implementation installation folder.
+Set CATALINA_HOME to the Apache Tomcat folder.
+
+Step 3 - Install JAXWS into Tomcat
+
+Open a command window and change to the JAXWS-RI root folder (JAXWS_HOME). Then run:
+
+ ant install-api
+
+Step 4 - Copy libraries into Tomcat
+
+Copy all of the jars from $JAXWS_HOME/lib to $CATALINA_HOME/endorsed (folder created as
part of "ant install-api").
+
+Copy $CATALINA_HOME/lib/servlet-api.jar to $CATALINA_HOME/endorsed
+
+Install commons-logging-1.1.1.jar (from
http://commons.apache.org/logging/) into
$CATALINA_HOME/lib
+
+Install wsdl4j-1.6.2.jar (from
http://sourceforge.net/projects/wsdl4j/) into
$CATALINA_HOME/lib
+
+Install dsp-api-<version>.jar (from DSP distribution) into $CATALINA_HOME/lib
+
+
+Deploying and Running the Example
+---------------------------------
+
+Step 1 - Install the example service provider
+
+Copy the dsp-example-provider.jar into $CATALINA_HOME/lib
+
+Step 2 - Start the Apache Tomcat server
+
+Step 3 - Install the Example Service Provider's Deployer Web App
+
+Copy the dsp-example-deployer.war into $CATALINA_HOME/webapps
+
+Step 4 - Deploy an Example WSDL
+
+Start a browser and enter the following URL:
http://localhost:8080/dsp-example-deployer/
+
+When the 'Dynamic Service Provider Example' page is displayed, requesting the web
service details, browse to the
+hello_world.zip contained in the samples folder. This zip contains a WSDL definition that
will be used to provide
+the web service implemented using the example dynamic service provider implementation.
+
+Step 5 - Send a message to the web service
+
+Using a suitable SOAP client, such as SOAPUI, send the following message to:
+http://127.0.0.1:8080/Quickstart_bpel_hello_worldWS/
+
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Hello World</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
+
+You should receive the following response:
+
+<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
+ <SOAP-ENV:Body>
+ <SOAP-ENV:Fault>
+ <faultcode
xmlns:ns0="http://www.example.org">ns0:ExampleFault</faultcode>
+ <faultstring>Fault string, and possibly fault code, not
set</faultstring>
+ </SOAP-ENV:Fault>
+ </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
+
Modified: dsp/trunk/pom.xml
===================================================================
--- dsp/trunk/pom.xml 2010-12-15 00:26:02 UTC (rev 1211)
+++ dsp/trunk/pom.xml 2011-01-06 12:34:06 UTC (rev 1212)
@@ -26,6 +26,7 @@
<module>jboss</module>
<module>tomcat</module>
<module>samples</module>
+ <module>distribution</module>
</modules>