riftsaw SVN: r1219 - dsp/trunk.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-07 09:15:12 -0500 (Fri, 07 Jan 2011)
New Revision: 1219
Modified:
dsp/trunk/pom.xml
Log:
Changed way the example is distributed and built, to enable environment properties to be changed by the user prior to building the example.
Modified: dsp/trunk/pom.xml
===================================================================
--- dsp/trunk/pom.xml 2011-01-07 14:14:44 UTC (rev 1218)
+++ dsp/trunk/pom.xml 2011-01-07 14:15:12 UTC (rev 1219)
@@ -25,7 +25,6 @@
<module>api</module>
<module>jboss</module>
<module>tomcat</module>
- <module>samples</module>
<module>distribution</module>
</modules>
13 years, 4 months
riftsaw SVN: r1218 - in dsp/trunk: distribution/src/main/release and 2 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-07 09:14:44 -0500 (Fri, 07 Jan 2011)
New Revision: 1218
Added:
dsp/trunk/docs/GettingStarted.txt
Removed:
dsp/trunk/distribution/src/main/release/samples/
dsp/trunk/docs/GettingStartedForTomcat.txt
dsp/trunk/samples/pom.xml
Modified:
dsp/trunk/distribution/src/main/assembly/bin.xml
Log:
Changed way the example is distributed and built, to enable environment properties to be changed by the user prior to building the example.
Modified: dsp/trunk/distribution/src/main/assembly/bin.xml
===================================================================
--- dsp/trunk/distribution/src/main/assembly/bin.xml 2011-01-07 14:13:59 UTC (rev 1217)
+++ dsp/trunk/distribution/src/main/assembly/bin.xml 2011-01-07 14:14:44 UTC (rev 1218)
@@ -19,37 +19,37 @@
</fileSet>
<fileSet>
- <directory>src/main/release/samples</directory>
- <outputDirectory>/samples</outputDirectory>
+ <directory>../docs</directory>
+ <outputDirectory>/docs</outputDirectory>
</fileSet>
-
- <!-- Copy sample deploy war to samples -->
+
<fileSet>
- <directory>../samples/deployer-assembly/target</directory>
+ <directory>../samples</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>
+ <include>commons-logging:commons-logging</include>
+ <include>javax.servlet:servlet-api</include>
</includes>
</dependencySet>
+ <dependencySet>
+ <outputDirectory>/samples/example-deployer/deployer/resources/WEB-INF/lib</outputDirectory>
+ <includes>
+ <include>commons-fileupload:commons-fileupload</include>
+ <include>commons-io:commons-io</include>
+ <include>javassist:javassist</include>
+ <include>wsdl4j:wsdl4j</include>
+ </includes>
+ </dependencySet>
</dependencySets>
</assembly>
Copied: dsp/trunk/docs/GettingStarted.txt (from rev 1213, dsp/trunk/docs/GettingStartedForTomcat.txt)
===================================================================
--- dsp/trunk/docs/GettingStarted.txt (rev 0)
+++ dsp/trunk/docs/GettingStarted.txt 2011-01-07 14:14:44 UTC (rev 1218)
@@ -0,0 +1,56 @@
+Getting Started Guide
+=====================
+
+The Dynamic Service Provider project provides the means to deploy a web service, based on
+a WSDL definition, and route requests received on the resulting service to a service provider
+implementation.
+
+This capability is used within RiftSaw to create a web service dynamically, based on a
+deployed BPEL process (and accompanying WSDL), and to route web service requests to the
+process running in a BPEL engine.
+
+
+Installation Instructions
+-------------------------
+
+Installing on JBoss Application Server:
+
+The JBoss Application Server does not require any special pre-configuration. The dynamic service
+provider capability can be embedded into any other deployable module, as demonstrated by the
+$DSP/samples/example-deployer example.
+
+
+
+Installing on Apache Tomcat:
+
+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 $DSP/lib/commons-logging-1.1.1.jar into $CATALINA_HOME/lib
+
+Install $DSP/samples/example-deployer/deployer/resources/WEB-INF/lib/wsdl4j-1.6.2.jar into $CATALINA_HOME/lib
+
+Install $DSP/lib/dsp-api-<version>.jar into $CATALINA_HOME/lib
+
+
+The environment is now configured to be able to create a deployer (e.g. as a webapp), such as demonstrated
+by the $DSP/samples/example-deployer.
+
Deleted: dsp/trunk/docs/GettingStartedForTomcat.txt
===================================================================
--- dsp/trunk/docs/GettingStartedForTomcat.txt 2011-01-07 14:13:59 UTC (rev 1217)
+++ dsp/trunk/docs/GettingStartedForTomcat.txt 2011-01-07 14:14:44 UTC (rev 1218)
@@ -1,82 +0,0 @@
-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
-
-NOTE: Make sure that the CATALINA_HOME environment variable is set correctly before starting the 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>
-
Deleted: dsp/trunk/samples/pom.xml
===================================================================
--- dsp/trunk/samples/pom.xml 2011-01-07 14:13:59 UTC (rev 1217)
+++ dsp/trunk/samples/pom.xml 2011-01-07 14:14:44 UTC (rev 1218)
@@ -1,23 +0,0 @@
-<?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>samples</artifactId>
- <packaging>pom</packaging>
- <version>1.0.0-SNAPSHOT</version>
- <name>SOA::DSP::Samples</name>
-
- <parent>
- <groupId>org.jboss.soa.dsp</groupId>
- <artifactId>dsp</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </parent>
-
- <modules>
- <module>provider</module>
- <module>deployer</module>
- <module>deployer-assembly</module>
- </modules>
-
-</project>
13 years, 4 months
riftsaw SVN: r1217 - dsp/trunk/distribution.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-07 09:13:59 -0500 (Fri, 07 Jan 2011)
New Revision: 1217
Modified:
dsp/trunk/distribution/pom.xml
Log:
Changed way the example is distributed and built, to enable environment properties to be changed by the user prior to building the example.
Modified: dsp/trunk/distribution/pom.xml
===================================================================
--- dsp/trunk/distribution/pom.xml 2011-01-07 14:13:12 UTC (rev 1216)
+++ dsp/trunk/distribution/pom.xml 2011-01-07 14:13:59 UTC (rev 1217)
@@ -38,6 +38,37 @@
<artifactId>dsp-example-provider</artifactId>
<version>${dsp.version}</version>
</dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>${wsdl4j.version}</version>
+ <!-- scope>provided</scope -->
+ </dependency>
+ <dependency>
+ <groupId>javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>${javassist.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ </dependency>
</dependencies>
<build>
13 years, 4 months
riftsaw SVN: r1216 - in dsp/trunk/samples: example-deployer and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-07 09:13:12 -0500 (Fri, 07 Jan 2011)
New Revision: 1216
Added:
dsp/trunk/samples/example-deployer/
dsp/trunk/samples/example-deployer/build.xml
dsp/trunk/samples/example-deployer/hello_world.zip
dsp/trunk/samples/example-deployer/readme.txt
Log:
Changed way the example is distributed and built, to enable environment properties to be changed by the user prior to building the example.
Added: dsp/trunk/samples/example-deployer/build.xml
===================================================================
--- dsp/trunk/samples/example-deployer/build.xml (rev 0)
+++ dsp/trunk/samples/example-deployer/build.xml 2011-01-07 14:13:12 UTC (rev 1216)
@@ -0,0 +1,65 @@
+<project name="dsp-example-deployer" default="build" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="build.dir" location="build"/>
+
+ <path id="compile-classpath">
+ <fileset dir="../../lib" includes="*.jar" />
+ <fileset dir="deployer/resources/WEB-INF/lib" includes="*.jar" />
+ </path>
+
+ <property name="compile-classpath" refid="compile-classpath"/>
+
+ <target name="makewar" description="make war">
+
+ <mkdir dir="${build.dir}/war" />
+
+ <copy todir="${build.dir}/war" >
+ <fileset dir="deployer/resources" />
+ </copy>
+
+ <copy todir="${build.dir}/war/WEB-INF/lib" >
+ <fileset dir="../../lib" includes="dsp*.jar" />
+ </copy>
+
+ <copy todir="${build.dir}/war/WEB-INF/lib" >
+ <fileset dir="${build.dir}" includes="*.jar" />
+ </copy>
+
+ <jar destfile="${build.dir}/${ant.project.name}.war">
+ <fileset dir="${build.dir}/war" />
+ </jar>
+ </target>
+
+ <target name="buildprovider" >
+ <mkdir dir="${build.dir}/provider" />
+ <javac srcdir="provider/src" destdir="${build.dir}/provider" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="deployer/resources/WEB-INF/lib" includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <jar destfile="${build.dir}/dsp-example-provider.jar" basedir="${build.dir}/provider"/>
+ </target>
+
+ <target name="builddeployer" >
+ <mkdir dir="${build.dir}/deployer" />
+ <javac srcdir="deployer/src" destdir="${build.dir}/deployer" debug="true">
+ <classpath>
+ <path refid="compile-classpath" />
+ <fileset dir="deployer/resources/WEB-INF/lib" includes="*.jar" />
+ <fileset dir="${build.dir}" includes="*.jar" />
+ </classpath>
+ </javac>
+
+ <jar destfile="${build.dir}/dsp-example-deployer.jar" basedir="${build.dir}/deployer"/>
+ </target>
+
+ <target name="build" depends="buildprovider,builddeployer,makewar">
+ </target>
+</project>
Added: dsp/trunk/samples/example-deployer/hello_world.zip
===================================================================
(Binary files differ)
Property changes on: dsp/trunk/samples/example-deployer/hello_world.zip
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: dsp/trunk/samples/example-deployer/readme.txt
===================================================================
--- dsp/trunk/samples/example-deployer/readme.txt (rev 0)
+++ dsp/trunk/samples/example-deployer/readme.txt 2011-01-07 14:13:12 UTC (rev 1216)
@@ -0,0 +1,85 @@
+Example Deployer
+================
+
+This sample provides an example deployer that accepts a zip containing a WSDL definition, and then makes a
+web service available using that interface. The operations performed on that WSDL interface are implemented
+using an Example Service Provider that simply displays a message on the console, and returns a fault response.
+
+Build the Example
+-----------------
+
+From the $DSP/samples/example-deployer folder, run the following command:
+
+ ant build
+
+If built successfully, this will create a war file in the build folder.
+
+
+
+Deploying the example to JBoss Application Server
+-------------------------------------------------
+
+1) Start the JBoss Application Server (default profile assumed)
+
+2) Install the Example Service Provider's Deployer Web App
+
+Copy the $DSP/samples/example-deployer/build/dsp-example-deployer.war into $JBOSSAS/server/default/deploy
+
+
+Deploying the example to Apache Tomcat
+--------------------------------------
+
+1) Install the example service provider
+
+Copy the dsp-example-provider.jar into $CATALINA_HOME/lib
+
+2) Start the Apache Tomcat server
+
+NOTE: Make sure that the CATALINA_HOME environment variable is set correctly before starting the server.
+
+3) Install the Example Service Provider's Deployer Web App
+
+Copy the dsp-example-deployer.war into $CATALINA_HOME/webapps
+
+
+
+Running the Example
+-------------------
+
+1) 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.
+
+2) 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>
+
+3) Undeploy the service
+
+Select the service in the undeploy section of the deployer's web page. This will remove the web service
+associated with the Hello World web service.
13 years, 4 months
Build failed in Hudson: RiftSaw #320
by jboss-qa-internal@redhat.com
See <http://hudson.qa.jboss.com/hudson/job/RiftSaw/320/>
------------------------------------------
[...truncated 26796 lines...]
429/1291K
433/1291K
437/1291K
441/1291K
444/1291K
448/1291K
452/1291K
456/1291K
460/1291K
464/1291K
468/1291K
472/1291K
476/1291K
480/1291K
483/1291K
487/1291K
491/1291K
495/1291K
499/1291K
503/1291K
507/1291K
511/1291K
515/1291K
519/1291K
522/1291K
526/1291K
530/1291K
534/1291K
538/1291K
542/1291K
546/1291K
550/1291K
554/1291K
558/1291K
562/1291K
566/1291K
569/1291K
573/1291K
577/1291K
581/1291K
585/1291K
589/1291K
593/1291K
597/1291K
601/1291K
605/1291K
608/1291K
612/1291K
616/1291K
620/1291K
624/1291K
628/1291K
632/1291K
636/1291K
640/1291K
644/1291K
647/1291K
651/1291K
655/1291K
659/1291K
663/1291K
667/1291K
671/1291K
675/1291K
679/1291K
683/1291K
687/1291K
691/1291K
694/1291K
698/1291K
702/1291K
706/1291K
710/1291K
714/1291K
718/1291K
722/1291K
726/1291K
730/1291K
733/1291K
737/1291K
741/1291K
745/1291K
749/1291K
753/1291K
757/1291K
761/1291K
765/1291K
769/1291K
772/1291K
776/1291K
780/1291K
784/1291K
788/1291K
792/1291K
796/1291K
800/1291K
804/1291K
808/1291K
812/1291K
816/1291K
819/1291K
823/1291K
827/1291K
831/1291K
835/1291K
839/1291K
843/1291K
847/1291K
851/1291K
855/1291K
858/1291K
862/1291K
866/1291K
870/1291K
874/1291K
878/1291K
882/1291K
886/1291K
890/1291K
894/1291K
897/1291K
901/1291K
905/1291K
909/1291K
913/1291K
917/1291K
921/1291K
925/1291K
929/1291K
933/1291K
937/1291K
941/1291K
944/1291K
948/1291K
952/1291K
956/1291K
960/1291K
964/1291K
968/1291K
972/1291K
976/1291K
980/1291K
983/1291K
987/1291K
991/1291K
995/1291K
999/1291K
1003/1291K
1007/1291K
1011/1291K
1015/1291K
1019/1291K
1022/1291K
1026/1291K
1030/1291K
1034/1291K
1038/1291K
1042/1291K
1046/1291K
1050/1291K
1054/1291K
1058/1291K
1062/1291K
1066/1291K
1069/1291K
1073/1291K
1077/1291K
1081/1291K
1085/1291K
1089/1291K
1093/1291K
1097/1291K
1101/1291K
1105/1291K
1108/1291K
1112/1291K
1116/1291K
1120/1291K
1124/1291K
1128/1291K
1132/1291K
1136/1291K
1140/1291K
1144/1291K
1147/1291K
1151/1291K
1155/1291K
1159/1291K
1163/1291K
1167/1291K
1171/1291K
1175/1291K
1179/1291K
1183/1291K
1187/1291K
1191/1291K
1194/1291K
1198/1291K
1202/1291K
1206/1291K
1210/1291K
1214/1291K
1218/1291K
1222/1291K
1226/1291K
1230/1291K
1233/1291K
1237/1291K
1241/1291K
1245/1291K
1249/1291K
1253/1291K
1257/1291K
1261/1291K
1265/1291K
1269/1291K
1272/1291K
1276/1291K
1280/1291K
1284/1291K
1288/1291K
1291/1291K
1291K downloaded
[INFO] [antrun:run {execution: deploy-riftsaw}]
[INFO] Executing tasks
get.oracle.driver:
get.db2.driver:
unpack-distribution:
[mkdir] Created dir: /qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/distribution/target/dist
[unzip] Expanding: /qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/distribution/target/riftsaw-2.3.0-SNAPSHOT.zip into /qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/distribution/target/dist
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while executing this line:
/qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/integration-tests/build.xml:88: Error while expanding /qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/distribution/target/riftsaw-2.3.0-SNAPSHOT.zip
java.io.FileNotFoundException: /qa/services/hudson/hudson_workspace/workspace/RiftSaw/riftsaw/distribution/target/riftsaw-2.3.0-SNAPSHOT.zip (No such file or directory)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 minutes 32 seconds
[INFO] Finished at: Wed Jan 05 11:36:32 EST 2011
[INFO] Final Memory: 110M/538M
[INFO] ------------------------------------------------------------------------
Archiving artifacts
Recording test results
13 years, 4 months
riftsaw SVN: r1215 - in dsp/trunk: samples/deployer-assembly/src/main/resources/WEB-INF/classes and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-07 06:22:16 -0500 (Fri, 07 Jan 2011)
New Revision: 1215
Modified:
dsp/trunk/api/src/main/java/org/jboss/soa/dsp/ws/DeploymentBuilder.java
dsp/trunk/samples/deployer-assembly/src/main/resources/WEB-INF/classes/dsp.properties
Log:
Fixed npe when no build processor provided (in jboss environment).
Modified: dsp/trunk/api/src/main/java/org/jboss/soa/dsp/ws/DeploymentBuilder.java
===================================================================
--- dsp/trunk/api/src/main/java/org/jboss/soa/dsp/ws/DeploymentBuilder.java 2011-01-06 16:36:58 UTC (rev 1214)
+++ dsp/trunk/api/src/main/java/org/jboss/soa/dsp/ws/DeploymentBuilder.java 2011-01-07 11:22:16 UTC (rev 1215)
@@ -134,7 +134,9 @@
}
public DeploymentBuilder process(BuildProcessor processor) {
- processor.process(this);
+ if (processor != null) {
+ processor.process(this);
+ }
return(this);
}
Modified: dsp/trunk/samples/deployer-assembly/src/main/resources/WEB-INF/classes/dsp.properties
===================================================================
--- dsp/trunk/samples/deployer-assembly/src/main/resources/WEB-INF/classes/dsp.properties 2011-01-06 16:36:58 UTC (rev 1214)
+++ dsp/trunk/samples/deployer-assembly/src/main/resources/WEB-INF/classes/dsp.properties 2011-01-07 11:22:16 UTC (rev 1215)
@@ -1,5 +1,5 @@
-dsp.server.config.locator = org.jboss.soa.dsp.server.tomcat.TomcatServerConfigLocator
-dsp.service.deployer = org.jboss.soa.dsp.deployer.tomcat.TomcatServiceDeployer
+#dsp.server.config.locator = org.jboss.soa.dsp.server.tomcat.TomcatServerConfigLocator
+#dsp.service.deployer = org.jboss.soa.dsp.deployer.tomcat.TomcatServiceDeployer
-#dsp.server.config.locator = org.jboss.soa.dsp.server.jboss.ServerConfigFactory
-#dsp.service.deployer = org.jboss.soa.dsp.deployer.jboss.JBossServiceDeployer
+dsp.server.config.locator = org.jboss.soa.dsp.server.jboss.ServerConfigFactory
+dsp.service.deployer = org.jboss.soa.dsp.deployer.jboss.JBossServiceDeployer
13 years, 4 months
riftsaw SVN: r1214 - trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-06 11:36:58 -0500 (Thu, 06 Jan 2011)
New Revision: 1214
Modified:
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/EndpointManager.java
trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/JBossWSCXFBuildProcessor.java
Log:
Update to use new DSP API.
Modified: trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/EndpointManager.java
===================================================================
--- trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/EndpointManager.java 2011-01-06 14:27:47 UTC (rev 1213)
+++ trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/EndpointManager.java 2011-01-06 16:36:58 UTC (rev 1214)
@@ -169,7 +169,7 @@
URL serviceUrl = new WSDLParser(wsdlRef.getDefinition()).getServiceLocationURL(metaData.getServiceName(), metaData.getPortName());
ServiceEndpointReference ref = m_deployer.deploy(metaData, providerImpl.getClass(),
- serviceUrl, classLoader, warArchive);
+ serviceUrl, classLoader, warArchive, serverConfig);
/*
//Deployment deployment = createInMemoryDeployment(endpointId);
@@ -251,7 +251,7 @@
{
try
{
- m_deployer.undeploy(ref);
+ m_deployer.undeploy(ref, serverConfig);
// unregister
endpointMapping.remove(key);
Modified: trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/JBossWSCXFBuildProcessor.java
===================================================================
--- trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/JBossWSCXFBuildProcessor.java 2011-01-06 14:27:47 UTC (rev 1213)
+++ trunk/runtime/engine/src/main/java/org/jboss/soa/bpel/runtime/ws/JBossWSCXFBuildProcessor.java 2011-01-06 16:36:58 UTC (rev 1214)
@@ -22,6 +22,8 @@
import java.io.FileOutputStream;
import java.io.IOException;
+import org.jboss.soa.dsp.ws.DeploymentBuilder;
+
/**
* This build processor implementation sets the JAXWS web service provider class
* name in the JBossWS CXF configuration file, in one has been defined.
@@ -35,9 +37,9 @@
this.provider = provider;
}
- public void process(File war, File webInf, File wsdlDir) {
+ public void process(DeploymentBuilder builder) {
// Check if jbossws-cxf.xml is present, and if so, updated the provider implementation class attribute
- File f=new File(webInf, "jbossws-cxf.xml");
+ File f=new File(builder.getWebInf(), "jbossws-cxf.xml");
if (f.exists()) {
FileInputStream fis=null;
13 years, 4 months
riftsaw SVN: r1213 - in dsp/trunk: distribution and 5 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2011-01-06 09:27:47 -0500 (Thu, 06 Jan 2011)
New Revision: 1213
Modified:
dsp/trunk/api/src/main/java/org/jboss/soa/dsp/deployer/ServiceDeployer.java
dsp/trunk/distribution/
dsp/trunk/docs/GettingStartedForTomcat.txt
dsp/trunk/jboss/src/main/java/org/jboss/soa/dsp/deployer/jboss/JBossServiceDeployer.java
dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java
dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/deployer/tomcat/TomcatServiceDeployer.java
dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/server/tomcat/TomcatServerConfigLocator.java
Log:
Supports undeployment in tomcat version of example.
Modified: dsp/trunk/api/src/main/java/org/jboss/soa/dsp/deployer/ServiceDeployer.java
===================================================================
--- dsp/trunk/api/src/main/java/org/jboss/soa/dsp/deployer/ServiceDeployer.java 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/api/src/main/java/org/jboss/soa/dsp/deployer/ServiceDeployer.java 2011-01-06 14:27:47 UTC (rev 1213)
@@ -20,22 +20,47 @@
import org.jboss.soa.dsp.EndpointMetaData;
import org.jboss.soa.dsp.ServiceEndpointReference;
+import org.jboss.soa.dsp.server.ServerConfig;
import org.jboss.soa.dsp.ws.BuildProcessor;
+/**
+ * This interface represents a service deployer.
+ *
+ */
public interface ServiceDeployer {
+ /**
+ * This method is used to deploy a servicer within a target environment.
+ *
+ * @param metaData The service endpoint metadata
+ * @param providerImpl The service provider implementation
+ * @param serviceUrl The service endpoint URL
+ * @param classLoader The classloader used in creation of the service provider implementation
+ * @param deployment The deployment archive containing service artifacts
+ * @param serverConfig The server configuration
+ * @return The service endpoint reference
+ * @throws Exception Failed to deploy the service
+ */
public ServiceEndpointReference deploy(EndpointMetaData metaData, Class<?> providerImpl, URL serviceUrl,
- ClassLoader classLoader, java.io.File deployment) throws Exception;
+ ClassLoader classLoader, java.io.File deployment, ServerConfig serverConfig)
+ throws Exception;
- public void undeploy(ServiceEndpointReference ref) throws Exception;
+ /**
+ * This method undeploys the service associated with the supplied endpoint reference.
+ *
+ * @param ref The service endpoint reference
+ * @param serverConfig The server configuration
+ * @throws Exception
+ */
+ public void undeploy(ServiceEndpointReference ref, ServerConfig serverConfig) throws Exception;
/**
* This method returns the optional build processor associated with the
- * service deployer. This build processor can be used to performed any
+ * service deployer. This build processor can be used to perform any
* platform specific deployment archive modifications prior to it being
* deployed to the target platform.
*
- * @return The optional build procesor
+ * @return The optional build processor
*/
public BuildProcessor getBuildProcessor();
Property changes on: dsp/trunk/distribution
___________________________________________________________________
Name: svn:ignore
+ target
Modified: dsp/trunk/docs/GettingStartedForTomcat.txt
===================================================================
--- dsp/trunk/docs/GettingStartedForTomcat.txt 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/docs/GettingStartedForTomcat.txt 2011-01-06 14:27:47 UTC (rev 1213)
@@ -41,6 +41,8 @@
Step 2 - Start the Apache Tomcat server
+NOTE: Make sure that the CATALINA_HOME environment variable is set correctly before starting the server.
+
Step 3 - Install the Example Service Provider's Deployer Web App
Copy the dsp-example-deployer.war into $CATALINA_HOME/webapps
Modified: dsp/trunk/jboss/src/main/java/org/jboss/soa/dsp/deployer/jboss/JBossServiceDeployer.java
===================================================================
--- dsp/trunk/jboss/src/main/java/org/jboss/soa/dsp/deployer/jboss/JBossServiceDeployer.java 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/jboss/src/main/java/org/jboss/soa/dsp/deployer/jboss/JBossServiceDeployer.java 2011-01-06 14:27:47 UTC (rev 1213)
@@ -33,6 +33,7 @@
import org.jboss.soa.dsp.EndpointMetaData;
import org.jboss.soa.dsp.ServiceEndpointReference;
import org.jboss.soa.dsp.deployer.ServiceDeployer;
+import org.jboss.soa.dsp.server.ServerConfig;
import org.jboss.soa.dsp.server.jboss.KernelLocator;
import org.jboss.soa.dsp.ws.BuildProcessor;
import org.jboss.virtual.VFS;
@@ -41,7 +42,7 @@
public class JBossServiceDeployer implements ServiceDeployer {
public ServiceEndpointReference deploy(EndpointMetaData metaData, Class<?> providerImpl, URL serviceUrl,
- final ClassLoader classLoader, File warArchive) throws Exception {
+ final ClassLoader classLoader, File warArchive, ServerConfig serverConfig) throws Exception {
Deployment deployment = createVFSDeployment(warArchive);
// Classloading
@@ -74,7 +75,7 @@
return(ref);
}
- public void undeploy(ServiceEndpointReference ref) throws Exception {
+ public void undeploy(ServiceEndpointReference ref, ServerConfig serverConfig) throws Exception {
getMainDeployer().undeploy(ref.getDeploymentName());
}
Modified: dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java
===================================================================
--- dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/samples/deployer/src/main/java/org/jboss/soa/dsp/example/WSDeployer.java 2011-01-06 14:27:47 UTC (rev 1213)
@@ -67,11 +67,11 @@
javax.wsdl.Service service=(javax.wsdl.Service)wsdl.getServices().values().iterator().next();
- _log.info("SERVICE="+service);
+ _log.fine("SERVICE="+service);
javax.wsdl.Port port=(javax.wsdl.Port)service.getPorts().values().iterator().next();
- _log.info("PORT="+port);
+ _log.fine("PORT="+port);
EndpointMetaData metaData=new EndpointMetaData(service.getQName(),
port.getName(), new QName("http://www.example.org", "ProcessId"),
@@ -83,7 +83,7 @@
providerFactory.createProvider(metaData, wsdlRef, cl,
null, ExampleWebServiceFactory.class);
- _log.info("PROVIDER="+providerImpl);
+ _log.fine("Provider="+providerImpl);
ServerConfig serverConfig=getServerConfig();
@@ -98,21 +98,21 @@
providerFactory.writeClass(warArchive);
- _log.info("War Archive="+warArchive);
+ _log.fine("War Archive="+warArchive);
URL serviceUrl = new WSDLParser(wsdlRef.getDefinition()).getServiceLocationURL(metaData.getServiceName(),
metaData.getPortName());
- _log.info("Service URL="+serviceUrl);
+ _log.fine("Service URL="+serviceUrl);
ref = deployer.deploy(metaData, providerImpl.getClass(),
- serviceUrl, cl, warArchive);
+ serviceUrl, cl, warArchive, getServerConfig());
} catch (Throwable t) {
_log.log(Level.SEVERE, "Failed", t);
}
- _log.info("DEPLOYED endpoint ref="+ref);
+ _log.fine("DEPLOYED endpoint ref="+ref);
return(ref);
}
@@ -120,7 +120,7 @@
public void undeploy(ServiceEndpointReference ref) throws Exception {
ServiceDeployer deployer=getServiceDeployer();
- deployer.undeploy(ref);
+ deployer.undeploy(ref, getServerConfig());
}
protected ServerConfig getServerConfig() {
Modified: dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/deployer/tomcat/TomcatServiceDeployer.java
===================================================================
--- dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/deployer/tomcat/TomcatServiceDeployer.java 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/deployer/tomcat/TomcatServiceDeployer.java 2011-01-06 14:27:47 UTC (rev 1213)
@@ -17,6 +17,11 @@
package org.jboss.soa.dsp.deployer.tomcat;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
import java.net.URL;
import javax.wsdl.Definition;
@@ -30,6 +35,7 @@
import org.jboss.soa.dsp.EndpointMetaData;
import org.jboss.soa.dsp.ServiceEndpointReference;
import org.jboss.soa.dsp.deployer.ServiceDeployer;
+import org.jboss.soa.dsp.server.ServerConfig;
import org.jboss.soa.dsp.ws.BuildProcessor;
import org.jboss.soa.dsp.ws.DeploymentBuilder;
@@ -39,39 +45,87 @@
public ServiceEndpointReference deploy(EndpointMetaData metaData,
Class<?> providerImpl, URL serviceUrl, ClassLoader classLoader,
- File deployment) throws Exception {
+ File deployment, ServerConfig serverConfig) throws Exception {
String warPath=deployment.getAbsolutePath();
- // Send request to the server
+ File deployDir=getDeployDir(serviceUrl, serverConfig);
- /* ISSUE: Use of manager requires user authentication. See if there is other way to do this
- * locally within the server
- *
- String path="http://localhost:8080/manager/deploy?path=/Quickstart_bpel_hello_worldWS&...:"+warPath;
+ log.debug("Copy "+warPath+" to "+deployDir);
- URL url = new URL(path);
-
- HttpURLConnection con=(HttpURLConnection)url.openConnection();
+ copyDirectory(new File(warPath), deployDir);
- con.setDoOutput(true);
- con.setRequestMethod("GET");
-
- con.connect();
-
- System.out.println("CONNECTED TO: "+path+" url="+url);
- */
-
ServiceEndpointReference ret=new ServiceEndpointReference(metaData.getEndpointId(),
serviceUrl, metaData.getServiceName().getLocalPart(), warPath);
return(ret);
}
+
+ protected File getDeployDir(URL serviceUrl, ServerConfig serverConfig) throws Exception {
+ String context=serviceUrl.getPath();
+
+ int ind=context.indexOf(1, '/');
+ if (ind != -1) {
+ context = context.substring(0, ind);
+ }
+
+ File deployDir=new File(serverConfig.getServerDataDir(), context);
+
+ return(deployDir);
+ }
- public void undeploy(ServiceEndpointReference ref) throws Exception {
+ protected void copyDirectory(File sourceLocation , File targetLocation) throws IOException {
+
+ if (sourceLocation.isDirectory()) {
+ if (!targetLocation.exists()) {
+ targetLocation.mkdir();
+ }
+
+ String[] children = sourceLocation.list();
+ for (int i=0; i<children.length; i++) {
+ copyDirectory(new File(sourceLocation, children[i]),
+ new File(targetLocation, children[i]));
+ }
+ } else {
+
+ InputStream in = new FileInputStream(sourceLocation);
+ OutputStream out = new FileOutputStream(targetLocation);
+
+ // Copy the bits from instream to outstream
+ byte[] buf = new byte[1024];
+ int len;
+ while ((len = in.read(buf)) > 0) {
+ out.write(buf, 0, len);
+ }
+ in.close();
+ out.close();
+ }
+ }
+
+ public void undeploy(ServiceEndpointReference ref, ServerConfig serverConfig) throws Exception {
+ File deployDir=getDeployDir(ref.getServiceUrl(), serverConfig);
+
+ // Remove directory from the deployment folder
+ if (deployDir != null) {
+ delete(deployDir);
+ }
}
+ protected void delete(File file) {
+ if (file.isDirectory()) {
+ File[] children=file.listFiles();
+
+ for (int i=0; i < children.length; i++) {
+ delete(children[i]);
+ }
+ }
+
+ if (!file.delete()) {
+ log.error("Failed to delete '"+file+"' when undeploying service");
+ }
+ }
+
/**
* This method returns the optional build processor associated with the
* service deployer. This build processor can be used to performed any
Modified: dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/server/tomcat/TomcatServerConfigLocator.java
===================================================================
--- dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/server/tomcat/TomcatServerConfigLocator.java 2011-01-06 12:34:06 UTC (rev 1212)
+++ dsp/trunk/tomcat/src/main/java/org/jboss/soa/dsp/server/tomcat/TomcatServerConfigLocator.java 2011-01-06 14:27:47 UTC (rev 1213)
@@ -38,14 +38,31 @@
public String getImplementationVersion() {
return("1.0");
}
+
+ protected File getTomcatRoot() {
+ String path=System.getenv("CATALINA_HOME");
+
+ if (path == null) {
+ return(null);
+ }
+
+ return(new File(path));
+ }
public File getServerTempDir() {
- return(new java.io.File("/tmp"));
+ File tomcat=getTomcatRoot();
+ if (tomcat == null) {
+ return(null);
+ }
+ return(new java.io.File(tomcat, "temp"));
}
public File getServerDataDir() {
- // TODO Auto-generated method stub
- return null;
+ File tomcat=getTomcatRoot();
+ if (tomcat == null) {
+ return(null);
+ }
+ return(new java.io.File(tomcat, "webapps"));
}
public String getWebServiceHost() {
13 years, 4 months
riftsaw SVN: r1212 - in dsp/trunk: distribution and 6 other directories.
by riftsaw-commits@lists.jboss.org
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>
13 years, 4 months