diff --git a/moduleTest.war/README.md b/moduleTest.war/README.md index b12845d..34a507d 100644 --- a/moduleTest.war/README.md +++ b/moduleTest.war/README.md @@ -6,3 +6,6 @@ The web service is pretty straightforward to use (use SoapUI), but the servlet n http://localhost:8080/moduleTest/moduleTest?command=getModuleOfClass&className=javax.xml.ws.Service +Use the `testSaajMessageFactory` method to figure out how to make a deployment in EAP 6 use the SAAJ implementation found in the JDK. + +Make sure to copy the `sun.internal.saaj` module to your `$JBOSS_HOME/modules` directory. diff --git a/modules/sun/internal/saaj/main/module.xml b/modules/sun/internal/saaj/main/module.xml index 7495185..1676783 100644 --- a/modules/sun/internal/saaj/main/module.xml +++ b/modules/sun/internal/saaj/main/module.xml @@ -27,19 +27,20 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/saajTest.ear/META-INF/application.xml b/saajTest.ear/META-INF/application.xml deleted file mode 100644 index c11f72b..0000000 --- a/saajTest.ear/META-INF/application.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - saajTest.war - /saajTest - - - - saajTest.jar - - diff --git a/saajTest.ear/META-INF/jboss-deployment-structure.xml b/saajTest.ear/META-INF/jboss-deployment-structure.xml deleted file mode 100644 index 775a774..0000000 --- a/saajTest.ear/META-INF/jboss-deployment-structure.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - false - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/saajTest.ear/README.md b/saajTest.ear/README.md deleted file mode 100644 index 98beb47..0000000 --- a/saajTest.ear/README.md +++ /dev/null @@ -1,5 +0,0 @@ -###Make a deployment use JDK SAAJ - -This is an experiment to figure out how to make a deployment in EAP 6 use the SAAJ implementation found in the JDK. - -Make sure to copy the `sun.internal.saaj` module to your `$JBOSS_HOME/modules` directory. diff --git a/saajTest.ear/build.properties b/saajTest.ear/build.properties deleted file mode 100644 index ce71a53..0000000 --- a/saajTest.ear/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -test-client= -auth-conf=${basedir}/auth.conf diff --git a/saajTest.ear/build.xml b/saajTest.ear/build.xml deleted file mode 100644 index bde2e07..0000000 --- a/saajTest.ear/build.xml +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Running ${archive-type} build scripts : ${ant.file} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PROPS: ${srcpath} ${destdir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calling sub archives build - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Undeploy ${undeploy.files} - - - - - - - - ${jboss-endorsed-dir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This target will split this deployment up into java files and resources which is useful when moving it to the JBoss testsuite - - - - Copying java source to ${testcase.source.dir} - - - - - - - - Copying resources to ${testcase.resource.dir} - - - - - - - - - - - - archive-name = ${archive-name} - all - builds and packages the archive in the dist/ directory - build - builds the *.java files - clean - deletes the compiled classes *.java and the dist/ directory - deploy - deploys the archive in $JBOSS_HOME/server/$JBOSS_PROFILE - defaults to default, can be set in env variables or build.properties - export-zip - cleans then zips up the source in a zip file in dist/ directory - test - calls build, then runs a test client, the test client class is defined in build.properties property name: test-client - undeploy - undeploys the archive in $JBOSS_HOME/server/$JBOSS_SERVER - defaults to default, can be set in env variables or build.properties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mavenize ${dist}/${archive-name}-${archive-type}/pom.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/saajTest.ear/lib/saajOverride.jar b/saajTest.ear/lib/saajOverride.jar deleted file mode 100644 index c5acb3d..0000000 Binary files a/saajTest.ear/lib/saajOverride.jar and /dev/null differ diff --git a/saajTest.ear/saajTest.jar/META-INF/MANIFEST.MF b/saajTest.ear/saajTest.jar/META-INF/MANIFEST.MF deleted file mode 100644 index e69de29..0000000 diff --git a/saajTest.ear/saajTest.jar/build.properties b/saajTest.ear/saajTest.jar/build.properties deleted file mode 100644 index ce71a53..0000000 --- a/saajTest.ear/saajTest.jar/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -test-client= -auth-conf=${basedir}/auth.conf diff --git a/saajTest.ear/saajTest.jar/build.xml b/saajTest.ear/saajTest.jar/build.xml deleted file mode 100644 index bde2e07..0000000 --- a/saajTest.ear/saajTest.jar/build.xml +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Running ${archive-type} build scripts : ${ant.file} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PROPS: ${srcpath} ${destdir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calling sub archives build - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Undeploy ${undeploy.files} - - - - - - - - ${jboss-endorsed-dir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This target will split this deployment up into java files and resources which is useful when moving it to the JBoss testsuite - - - - Copying java source to ${testcase.source.dir} - - - - - - - - Copying resources to ${testcase.resource.dir} - - - - - - - - - - - - archive-name = ${archive-name} - all - builds and packages the archive in the dist/ directory - build - builds the *.java files - clean - deletes the compiled classes *.java and the dist/ directory - deploy - deploys the archive in $JBOSS_HOME/server/$JBOSS_PROFILE - defaults to default, can be set in env variables or build.properties - export-zip - cleans then zips up the source in a zip file in dist/ directory - test - calls build, then runs a test client, the test client class is defined in build.properties property name: test-client - undeploy - undeploys the archive in $JBOSS_HOME/server/$JBOSS_SERVER - defaults to default, can be set in env variables or build.properties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mavenize ${dist}/${archive-name}-${archive-type}/pom.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/saajTest.ear/saajTest.jar/com/redhat/gss/saaj/EjbSaajTest.java b/saajTest.ear/saajTest.jar/com/redhat/gss/saaj/EjbSaajTest.java deleted file mode 100644 index e941e64..0000000 --- a/saajTest.ear/saajTest.jar/com/redhat/gss/saaj/EjbSaajTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * To the extent possible under law, Red Hat, Inc. has dedicated all copyright - * to this software to the public domain worldwide, pursuant to the CC0 Public - * Domain Dedication. This software is distributed without any warranty. See - * . - */ -package com.redhat.gss.saaj; - -import javax.xml.soap.MessageFactory; -import org.jboss.modules.ModuleClassLoader; -import org.jboss.modules.Module; -import org.jboss.logging.Logger; - -@javax.ejb.Singleton -@javax.ejb.Startup -public class EjbSaajTest -{ - private Logger log = Logger.getLogger(this.getClass().getName()); - - @javax.annotation.PostConstruct - public void test() throws Exception - { - Thread.sleep(2000); - - MessageFactory mf = MessageFactory.newInstance(); - log.info(mf.getClass().getName()); - - ModuleClassLoader cl = (ModuleClassLoader)Thread.currentThread().getContextClassLoader(); - Module module = cl.getModule(); - } -} diff --git a/saajTest.ear/saajTest.war/META-INF/MANIFEST.MF b/saajTest.ear/saajTest.war/META-INF/MANIFEST.MF deleted file mode 100644 index e69de29..0000000 diff --git a/saajTest.ear/saajTest.war/WEB-INF/classes/com/redhat/gss/saaj/SaajTest.java b/saajTest.ear/saajTest.war/WEB-INF/classes/com/redhat/gss/saaj/SaajTest.java deleted file mode 100644 index fb39f8a..0000000 --- a/saajTest.ear/saajTest.war/WEB-INF/classes/com/redhat/gss/saaj/SaajTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * To the extent possible under law, Red Hat, Inc. has dedicated all copyright - * to this software to the public domain worldwide, pursuant to the CC0 Public - * Domain Dedication. This software is distributed without any warranty. See - * . - */ -package com.redhat.gss.saaj; - -import javax.xml.soap.MessageFactory; -import org.jboss.modules.ModuleClassLoader; -import org.jboss.modules.Module; - -@javax.jws.WebService -public class SaajTest -{ - public String test() throws Exception - { - MessageFactory mf = MessageFactory.newInstance(); - ModuleClassLoader cl = (ModuleClassLoader)Thread.currentThread().getContextClassLoader(); - Module module = cl.getModule(); - return module.toString(); - /* - return ((ModuleClassLoader)mf.getClass().getClassLoader()).getModule().getIdentifier().toString(); - */ - } -} diff --git a/saajTest.ear/saajTest.war/build.properties b/saajTest.ear/saajTest.war/build.properties deleted file mode 100644 index ce71a53..0000000 --- a/saajTest.ear/saajTest.war/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -test-client= -auth-conf=${basedir}/auth.conf diff --git a/saajTest.ear/saajTest.war/build.xml b/saajTest.ear/saajTest.war/build.xml deleted file mode 100644 index bde2e07..0000000 --- a/saajTest.ear/saajTest.war/build.xml +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Running ${archive-type} build scripts : ${ant.file} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - PROPS: ${srcpath} ${destdir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calling sub archives build - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Undeploy ${undeploy.files} - - - - - - - - ${jboss-endorsed-dir} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This target will split this deployment up into java files and resources which is useful when moving it to the JBoss testsuite - - - - Copying java source to ${testcase.source.dir} - - - - - - - - Copying resources to ${testcase.resource.dir} - - - - - - - - - - - - archive-name = ${archive-name} - all - builds and packages the archive in the dist/ directory - build - builds the *.java files - clean - deletes the compiled classes *.java and the dist/ directory - deploy - deploys the archive in $JBOSS_HOME/server/$JBOSS_PROFILE - defaults to default, can be set in env variables or build.properties - export-zip - cleans then zips up the source in a zip file in dist/ directory - test - calls build, then runs a test client, the test client class is defined in build.properties property name: test-client - undeploy - undeploys the archive in $JBOSS_HOME/server/$JBOSS_SERVER - defaults to default, can be set in env variables or build.properties - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mavenize ${dist}/${archive-name}-${archive-type}/pom.xml - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -