diff --git a/build.sh b/build.sh new file mode 100644 index 000000000..05a43527f --- /dev/null +++ b/build.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Full build script + +JV_SRCROOT=`dirname $0` +JV_SRCROOT=`realpath $JV_SRCROOT` +export JV_SRCROOT +mvn clean -Dmaven.repo.local=$JV_SRCROOT/m2/repository $* +mvn install -Dmaven.test.skip=true -e -Dmaven.repo.local=$JV_SRCROOT/m2/repository $* diff --git a/global-common/m2.ant b/global-common/m2.ant index c44a6656e..7a7a6bfe2 100755 --- a/global-common/m2.ant +++ b/global-common/m2.ant @@ -64,7 +64,6 @@ 11/19/09: Ed W. --> - @@ -134,7 +133,6 @@ work.dir=${work.dir} - junit.gfbase=${junit.gfbase} junit.maxmemory=${junit.maxmemory} junit.srcroot=${junit.srcroot} jbicomps.junit.sysproperties=${echo.jbicomps.junit.sysproperties} diff --git a/global-common/ojc-versions/pom.xml b/global-common/ojc-versions/pom.xml index 81927ab5d..99df3e182 100755 --- a/global-common/ojc-versions/pom.xml +++ b/global-common/ojc-versions/pom.xml @@ -67,6 +67,9 @@ 3.0.6-SNAPSHOT 3.0.6-SNAPSHOT + + 2.4.2 + 3.0.6 @@ -931,13 +934,6 @@ ${iepse.artifact.version} - - - jbicompsplatform - compileconf - ${jbicomps.currentVersion} - - open-jbi-components restjbiadapter @@ -947,9 +943,9 @@ open-jbi-components restbc-installer ${restbc.artifact.version} - - - + + + open-jbi-components camelseimpl ${camelse.artifact.version} diff --git a/global-common/pom.xml b/global-common/pom.xml index 2b5b50270..ef7f0e3b8 100644 --- a/global-common/pom.xml +++ b/global-common/pom.xml @@ -183,7 +183,6 @@ ${env.JV_SRCROOT} ${env.JV_TOOLROOT} - ${env.JV_GFBASE} ${SRCROOT}/bld/version.properties diff --git a/nbactions.xml b/nbactions.xml old mode 100755 new mode 100644 diff --git a/ojc-core/bpelmonitortool/bpelmonitor-console/pom.xml b/ojc-core/bpelmonitortool/bpelmonitor-console/pom.xml index 8b6279c65..d478c9fd4 100644 --- a/ojc-core/bpelmonitortool/bpelmonitor-console/pom.xml +++ b/ojc-core/bpelmonitortool/bpelmonitor-console/pom.xml @@ -11,7 +11,6 @@ junit junit - 3.8.1 test @@ -55,9 +54,8 @@ 3.0 - open-esb + net.open-esb.core jbi-admin-common - 1.1 diff --git a/ojc-core/bpelmonitortool/monitor-src/pom.xml b/ojc-core/bpelmonitortool/monitor-src/pom.xml index 9d453c485..a5b1670a3 100755 --- a/ojc-core/bpelmonitortool/monitor-src/pom.xml +++ b/ojc-core/bpelmonitortool/monitor-src/pom.xml @@ -107,16 +107,26 @@ open-jbi-components bpelmodel ---> - + --> - open-esb - jbi-admin-common + org.glassfish + javax.management.j2ee + 3.0 + + + javax.faces + jsf-api + 1.2 + + + javax.el + el-api + 2.2 - jbicompsplatform - compileconf + net.open-esb.core + jbi-admin-common open-jbi-components diff --git a/ojc-core/bpelmonitortool/packaging/pom.xml b/ojc-core/bpelmonitortool/packaging/pom.xml index a90018709..7cf7512d9 100755 --- a/ojc-core/bpelmonitortool/packaging/pom.xml +++ b/ojc-core/bpelmonitortool/packaging/pom.xml @@ -119,7 +119,7 @@ true - open-esb + net.open-esb.core jbi-admin-common true diff --git a/ojc-core/bpelse/bpelcore/pom.xml b/ojc-core/bpelse/bpelcore/pom.xml index dde6c8c9f..822c3f744 100755 --- a/ojc-core/bpelse/bpelcore/pom.xml +++ b/ojc-core/bpelse/bpelcore/pom.xml @@ -124,7 +124,6 @@ - @@ -142,7 +141,6 @@ - @@ -170,10 +168,6 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - open-jbi-components debuggerbdi @@ -225,7 +219,6 @@ net.sf.hulp.meas net.sf.hulp.meas.itf - 2.0 js-engine diff --git a/ojc-core/bpelse/packaging/pom.xml b/ojc-core/bpelse/packaging/pom.xml index c254b214d..10277e200 100755 --- a/ojc-core/bpelse/packaging/pom.xml +++ b/ojc-core/bpelse/packaging/pom.xml @@ -249,7 +249,6 @@ net.sf.hulp.meas net.sf.hulp.meas.itf - 2.0 true diff --git a/ojc-core/bpelse/system-test/pom.xml b/ojc-core/bpelse/system-test/pom.xml index c6dd25024..d22a7e577 100755 --- a/ojc-core/bpelse/system-test/pom.xml +++ b/ojc-core/bpelse/system-test/pom.xml @@ -103,10 +103,8 @@ - - @@ -119,11 +117,9 @@ - - diff --git a/ojc-core/build-common/ojc-common/pom.xml b/ojc-core/build-common/ojc-common/pom.xml index 66ac97814..e3cf3089e 100755 --- a/ojc-core/build-common/ojc-common/pom.xml +++ b/ojc-core/build-common/ojc-common/pom.xml @@ -160,17 +160,11 @@ java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.createArg( - - - - org.apache.ant - ant - 1.7.1 - + 1.7.1 + ant ant-nodeps @@ -283,11 +277,6 @@ java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.createArg( 1.6.1 - - javax.servlet - servlet-api - 2.2 - com.sun.xml.bind jaxb-xjc @@ -549,27 +538,43 @@ java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.createArg( serializer 1.0 - - - open-esb - jbi - 1.1 - - - open-esb - jbi-ext - 1.1 - - - open-esb - jbi-admin-common - 1.1 - opensymphony quartz-all 1.6.1 + + net.java.hulp.i18ntask + net.java.hulp.i18ntask + ${I18NTASK_VERSION} + + + net.sf.hulp.meas + net.sf.hulp.meas.itf + 2.1-SNAPSHOT + + + net.sf.hulp.meas + net.sf.hulp.meas.impl + 2.1-SNAPSHOT + + + + + net.open-esb.core + jbi + ${openesb-core-version} + + + net.open-esb.core + jbi-ext + ${openesb-core-version} + + + net.open-esb.core + jbi-admin-common + ${openesb-core-version} + diff --git a/ojc-core/cam/camimpl/pom.xml b/ojc-core/cam/camimpl/pom.xml index df5b075df..8d40ec9a1 100755 --- a/ojc-core/cam/camimpl/pom.xml +++ b/ojc-core/cam/camimpl/pom.xml @@ -85,11 +85,7 @@ - jbicompsplatform - compileconf - - - open-esb + net.open-esb.core jbi-admin-common @@ -120,5 +116,35 @@ xalan xalan + + javax.persistence + persistence-api + 1.0.2 + + + javax + javaee-api + 6.0 + + + glassfish + appserv-rt + 1.0 + + + glassfish + appserv-admin + 1.0 + + + glassfish + appserv-se + 1.0 + + + glassfish + appserv-ext + 1.0 + diff --git a/ojc-core/cam/camplugins/aspects/pom.xml b/ojc-core/cam/camplugins/aspects/pom.xml index 3c88b9fc3..a664c596a 100755 --- a/ojc-core/cam/camplugins/aspects/pom.xml +++ b/ojc-core/cam/camplugins/aspects/pom.xml @@ -55,10 +55,6 @@ xerces xercesImpl - - jbicompsplatform - compileconf - open-jbi-components camimpl diff --git a/ojc-core/cam/common/pom.xml b/ojc-core/cam/common/pom.xml index 5898c5ed7..7a3f7d9d0 100755 --- a/ojc-core/cam/common/pom.xml +++ b/ojc-core/cam/common/pom.xml @@ -52,11 +52,7 @@ - jbicompsplatform - compileconf - - - open-esb + net.open-esb.core jbi-admin-common diff --git a/ojc-core/camelse/camelseimpl/pom.xml b/ojc-core/camelse/camelseimpl/pom.xml index 06e1a8c33..758cf328a 100644 --- a/ojc-core/camelse/camelseimpl/pom.xml +++ b/ojc-core/camelse/camelseimpl/pom.xml @@ -100,11 +100,6 @@ --> diff --git a/ojc-core/compileconf/m2.ant b/ojc-core/compileconf/m2.ant deleted file mode 100755 index 3cc23f539..000000000 --- a/ojc-core/compileconf/m2.ant +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ojc-core/compileconf/pom.xml b/ojc-core/compileconf/pom.xml index ec5b043f2..ef397c6ac 100755 --- a/ojc-core/compileconf/pom.xml +++ b/ojc-core/compileconf/pom.xml @@ -45,39 +45,6 @@ maven-antrun-plugin - - top_clean - clean - - run - - - - - - - - - - - - ${project.artifactId}-create-jar - clean - - run - - - - - - - - - - - - - download-ojdbc5 clean @@ -249,21 +216,6 @@ ${SRCROOT}/ojc-core/vendor-libs/woodstock/jars/webui-jsf-4.0.jar - - install-compileconf - clean - - install-file - - - true - jar - jbicompsplatform - compileconf - ${jbicomps.currentVersion} - ${project.build.directory}${file.separator}compileconf-${jbicomps.currentVersion}.jar - - install-jinterop-j-interop clean @@ -804,51 +756,10 @@ - - install-jbi - clean - - install-file - - - true - jar - open-esb - jbi - ${OPEN_ESB_VERSION} - ${gfbase}/jbi/lib/jbi.jar - - - - install-jbi-ext - clean - - install-file - - - true - jar - open-esb - jbi-ext - ${OPEN_ESB_VERSION} - ${gfbase}/jbi/lib/jbi-ext.jar - - - - install-jbi-admin-common - clean - - install-file - - - true - jar - open-esb - jbi-admin-common - 1.1 - ${gfbase}/jbi/lib/jbi-admin-common.jar - - + + + + install-hulp-meas-itf clean diff --git a/ojc-core/component-common/common-util/pom.xml b/ojc-core/component-common/common-util/pom.xml index e813f8a0a..fe1d9cc06 100755 --- a/ojc-core/component-common/common-util/pom.xml +++ b/ojc-core/component-common/common-util/pom.xml @@ -102,7 +102,7 @@ - open-esb + net.open-esb.core jbi diff --git a/ojc-core/component-common/component-toolkit/pom.xml b/ojc-core/component-common/component-toolkit/pom.xml index d84f07ce0..89f041ffa 100755 --- a/ojc-core/component-common/component-toolkit/pom.xml +++ b/ojc-core/component-common/component-toolkit/pom.xml @@ -77,13 +77,12 @@ - open-esb + net.open-esb.core jbi net.java.hulp.i18ntask net.java.hulp.i18ntask - 2.2 open-jbi-components diff --git a/ojc-core/component-common/component/pom.xml b/ojc-core/component-common/component/pom.xml index 1545640bd..556e61f3d 100755 --- a/ojc-core/component-common/component/pom.xml +++ b/ojc-core/component-common/component/pom.xml @@ -93,7 +93,7 @@ wsdl4j - open-esb + net.open-esb.core jbi diff --git a/ojc-core/component-common/crl/pom.xml b/ojc-core/component-common/crl/pom.xml index 8f82c9142..327401e97 100755 --- a/ojc-core/component-common/crl/pom.xml +++ b/ojc-core/component-common/crl/pom.xml @@ -79,13 +79,12 @@ - open-esb + net.open-esb.core jbi net.java.hulp.i18ntask net.java.hulp.i18ntask - 2.2 open-jbi-components diff --git a/ojc-core/component-common/jamsel/pom.xml b/ojc-core/component-common/jamsel/pom.xml index 683258541..5713e3c35 100755 --- a/ojc-core/component-common/jamsel/pom.xml +++ b/ojc-core/component-common/jamsel/pom.xml @@ -64,10 +64,6 @@ - - jbicompsplatform - compileconf - javax javaee-api diff --git a/ojc-core/component-common/jxpath/pom.xml b/ojc-core/component-common/jxpath/pom.xml index e3300267c..10a2d595d 100755 --- a/ojc-core/component-common/jxpath/pom.xml +++ b/ojc-core/component-common/jxpath/pom.xml @@ -72,6 +72,7 @@ javax.servlet servlet-api + 2.2 junit diff --git a/ojc-core/component-common/qos/pom.xml b/ojc-core/component-common/qos/pom.xml index b5fcdba9e..08f2c501f 100755 --- a/ojc-core/component-common/qos/pom.xml +++ b/ojc-core/component-common/qos/pom.xml @@ -71,7 +71,7 @@ - open-esb + net.open-esb.core jbi diff --git a/ojc-core/component-common/test-util/pom.xml b/ojc-core/component-common/test-util/pom.xml index 54556d32c..318a62b7e 100755 --- a/ojc-core/component-common/test-util/pom.xml +++ b/ojc-core/component-common/test-util/pom.xml @@ -84,7 +84,7 @@ - open-esb + net.open-esb.core jbi diff --git a/ojc-core/databasebc/databasebcimpl/pom.xml b/ojc-core/databasebc/databasebcimpl/pom.xml index c8a2b8321..4bba61f85 100755 --- a/ojc-core/databasebc/databasebcimpl/pom.xml +++ b/ojc-core/databasebc/databasebcimpl/pom.xml @@ -58,14 +58,9 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - net.sf.hulp.meas net.sf.hulp.meas.itf - 2.1-SNAPSHOT wsdl4j diff --git a/ojc-core/databasebc/packaging/pom.xml b/ojc-core/databasebc/packaging/pom.xml index 306384311..681dfe162 100755 --- a/ojc-core/databasebc/packaging/pom.xml +++ b/ojc-core/databasebc/packaging/pom.xml @@ -188,17 +188,15 @@ jsr173_api true - + net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/dcombc/dcombcimpl/pom.xml b/ojc-core/dcombc/dcombcimpl/pom.xml index 6a2551e97..c78932dc5 100755 --- a/ojc-core/dcombc/dcombcimpl/pom.xml +++ b/ojc-core/dcombc/dcombcimpl/pom.xml @@ -56,10 +56,6 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/emailbc/jbiadapter/pom.xml b/ojc-core/emailbc/jbiadapter/pom.xml index a45906863..bb3c6af25 100755 --- a/ojc-core/emailbc/jbiadapter/pom.xml +++ b/ojc-core/emailbc/jbiadapter/pom.xml @@ -68,10 +68,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/encodersl/converter-ssc2custom/pom.xml b/ojc-core/encodersl/converter-ssc2custom/pom.xml index 7aed15834..4ccbc3565 100755 --- a/ojc-core/encodersl/converter-ssc2custom/pom.xml +++ b/ojc-core/encodersl/converter-ssc2custom/pom.xml @@ -143,10 +143,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/encodersl/encoder-coco/pom.xml b/ojc-core/encodersl/encoder-coco/pom.xml index dfc9df46f..c277babfc 100755 --- a/ojc-core/encodersl/encoder-coco/pom.xml +++ b/ojc-core/encodersl/encoder-coco/pom.xml @@ -144,10 +144,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/encodersl/encoder-custom/pom.xml b/ojc-core/encodersl/encoder-custom/pom.xml index ff00441fe..446cc4dbe 100755 --- a/ojc-core/encodersl/encoder-custom/pom.xml +++ b/ojc-core/encodersl/encoder-custom/pom.xml @@ -137,10 +137,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/encodersl/encoder-hl7/pom.xml b/ojc-core/encodersl/encoder-hl7/pom.xml index 8fa8e7771..cd507d9ac 100755 --- a/ojc-core/encodersl/encoder-hl7/pom.xml +++ b/ojc-core/encodersl/encoder-hl7/pom.xml @@ -145,10 +145,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/encodersl/encoder-swift/pom.xml b/ojc-core/encodersl/encoder-swift/pom.xml index 6f4d8d1c2..1f46065a4 100755 --- a/ojc-core/encodersl/encoder-swift/pom.xml +++ b/ojc-core/encodersl/encoder-swift/pom.xml @@ -143,10 +143,6 @@ - - jbicompsplatform - compileconf - open-jbi-components encoder-fw diff --git a/ojc-core/etlse/etlcore/pom.xml b/ojc-core/etlse/etlcore/pom.xml index 2c43b2399..e34fd2f6b 100755 --- a/ojc-core/etlse/etlcore/pom.xml +++ b/ojc-core/etlse/etlcore/pom.xml @@ -59,10 +59,6 @@ - - jbicompsplatform - compileconf - open-jbi-components componentsl diff --git a/ojc-core/etlse/etlse-monitor/pom.xml b/ojc-core/etlse/etlse-monitor/pom.xml index 26e32d16c..efee04908 100755 --- a/ojc-core/etlse/etlse-monitor/pom.xml +++ b/ojc-core/etlse/etlse-monitor/pom.xml @@ -77,10 +77,6 @@ - - jbicompsplatform - compileconf - open-jbi-components etlmonitor @@ -118,6 +114,16 @@ webui-jsf 4.0 + + javax.faces + jsf-api + 1.2 + + + javax.servlet + servlet-api + 2.5 + com/sun/jbi/cam/plugin/etlse/model diff --git a/ojc-core/execbc/execbcimpl/pom.xml b/ojc-core/execbc/execbcimpl/pom.xml index 788319ded..ef91356d4 100755 --- a/ojc-core/execbc/execbcimpl/pom.xml +++ b/ojc-core/execbc/execbcimpl/pom.xml @@ -171,11 +171,6 @@ build210 - - jbicompsplatform - compileconf - test - jmock jmock diff --git a/ojc-core/filebc/filebcimpl/pom.xml b/ojc-core/filebc/filebcimpl/pom.xml index 68ccb9346..b819c07bc 100755 --- a/ojc-core/filebc/filebcimpl/pom.xml +++ b/ojc-core/filebc/filebcimpl/pom.xml @@ -180,12 +180,18 @@ open-jbi-components compositelock - - jbicompsplatform - compileconf - test + net.sf.hulp.meas + net.sf.hulp.meas.itf + true + + net.sf.hulp.meas + net.sf.hulp.meas.impl + true + + + jmock jmock @@ -198,20 +204,7 @@ - net.sf.hulp.meas - net.sf.hulp.meas.itf - true - 2.1-SNAPSHOT - - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT - - - - open-esb + net.open-esb.core jbi-admin-common test diff --git a/ojc-core/filebc/packaging/pom.xml b/ojc-core/filebc/packaging/pom.xml index be7d7be12..760ed47ee 100755 --- a/ojc-core/filebc/packaging/pom.xml +++ b/ojc-core/filebc/packaging/pom.xml @@ -163,13 +163,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/ftpbc/ftpbcimpl/pom.xml b/ojc-core/ftpbc/ftpbcimpl/pom.xml index c11614ead..d0341691f 100755 --- a/ojc-core/ftpbc/ftpbcimpl/pom.xml +++ b/ojc-core/ftpbc/ftpbcimpl/pom.xml @@ -93,10 +93,10 @@ open-jbi-components encoder-fw - - open-esb + open-jbi-components qos @@ -106,7 +106,17 @@ open-jbi-components compositelock + + oro + oro + true + + + net.sf.hulp.meas + net.sf.hulp.meas.itf + + org.apache.derby derbyclient @@ -122,23 +132,5 @@ ant-junit test - - oro - oro - true - - - - com.sun.jbi - componentsl - 1.0 - - - net.sf.hulp.meas - net.sf.hulp.meas.itf - 2.1-SNAPSHOT - - - diff --git a/ojc-core/ftpbc/packaging/pom.xml b/ojc-core/ftpbc/packaging/pom.xml index fc1da0287..5625376e4 100755 --- a/ojc-core/ftpbc/packaging/pom.xml +++ b/ojc-core/ftpbc/packaging/pom.xml @@ -199,13 +199,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/hl7bc/hl7bcimpl/pom.xml b/ojc-core/hl7bc/hl7bcimpl/pom.xml index 5c68ae91c..2fbde5be6 100755 --- a/ojc-core/hl7bc/hl7bcimpl/pom.xml +++ b/ojc-core/hl7bc/hl7bcimpl/pom.xml @@ -145,11 +145,6 @@ componentsl - - jbicompsplatform - compileconf - - open-jbi-components encoder-fw @@ -183,19 +178,14 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT - - - jmock jmock diff --git a/ojc-core/hl7bc/packaging/pom.xml b/ojc-core/hl7bc/packaging/pom.xml index c757187ab..4e5e8ecb1 100755 --- a/ojc-core/hl7bc/packaging/pom.xml +++ b/ojc-core/hl7bc/packaging/pom.xml @@ -216,13 +216,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/httpsoapbc/.gitignore b/ojc-core/httpsoapbc/.gitignore new file mode 100644 index 000000000..62c5f3e4b --- /dev/null +++ b/ojc-core/httpsoapbc/.gitignore @@ -0,0 +1,3 @@ +!.gitignore + +target/ diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/pom.xml b/ojc-core/httpsoapbc/httpsoapbcimpl/pom.xml index 32a99db23..c1de7047e 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/pom.xml +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/pom.xml @@ -1,157 +1,118 @@ - - - - - build-common - open-jbi-components - 1.1 - ../../build-common - 4.0.0 - open-jbi-components + + + net.open-esb.components.httpbc + parent + ${httpsoapbc.artifact.version} + + httpsoapbcimpl - httpsoapbcimpl + OpenESB - Components - HTTPBC - Implementation ${httpsoapbc.artifact.version} httpsoapbcimpl description + sun-http-binding + - - maven-antrun-plugin - - - ${project.artifactId}-ant-junit - test - - run - - - - - - - - - - - - - - - - - - - - - - - - - - - - - maven-jar-plugin - ${httpbc.artifact.version} + ${project.version} ${component.name} + org.apache.maven.plugins maven-surefire-plugin - true + + **/framework/*.java + **/integrationtest/*.java + **/test/jbi/integration/**/*.java + **/validator/*.java + + open-jbi-components componentsl + - jbicompsplatform - compileconf + open-jbi-components + qos + - sun-identity - amclientsdk - - - commons-httpclient - commons-httpclient - - - net.sf.hulp.meas - net.sf.hulp.meas.itf - 2.1-SNAPSHOT - - - open-esb - jbi-ext + open-jbi-components + common-util + + org.glassfish.metro webservices-rt - 2.2.0-4 - + + + org.glassfish.grizzly + grizzly-http-server + + + + + + org.glassfish.main.security + security-ee + 4.1 + provided + + + + net.sf.hulp.meas + net.sf.hulp.meas.itf + + + + net.open-esb.core + jbi-ext + + + + + junit + junit + test + jmock jmock test - open-esb + net.open-esb.core jbi-admin-common test - open-jbi-components - qos - - - open-jbi-components - common-util + org.apache.ant + ant + 1.9.4 + test diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteConnector.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteConnector.java deleted file mode 100755 index 337b96cf9..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteConnector.java +++ /dev/null @@ -1,449 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)BCCoyoteConnector.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - -import java.util.Timer; - -import org.apache.catalina.LifecycleException; -import org.apache.catalina.Request; -import org.apache.catalina.Response; -import org.apache.coyote.tomcat5.CoyoteConnector; -import org.apache.coyote.tomcat5.CoyoteResponse; - -import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; - -public class BCCoyoteConnector extends CoyoteConnector{ - - private static final String USE_COYOTE_CONNECTOR = - "com.sun.enterprise.web.connector.useCoyoteConnector"; - - private static final String GRIZZLY_CONNECTOR = - "com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol"; - - - /** - * Are we recycling objects - */ - protected boolean recycleObjects; - - - /** - * The number of acceptor threads. - */ - protected int maxAcceptWorkerThreads; - - - /** - * The number of reader threads. - */ - protected int maxReadWorkerThreads; - - - /** - * The request timeout value used by the processor threads. - */ - protected int processorWorkerThreadsTimeout; - - - /** - * The increment number used by the processor threads. - */ - protected int minProcessorWorkerThreadsIncrement; - - - /** - * The size of the accept queue. - */ - protected int minAcceptQueueLength; - - - /** - * The size of the read queue - */ - protected int minReadQueueLength; - - - /** - * The size of the processor queue. - */ - protected int minProcessorQueueLength; - - - /** - * Use direct or non direct byte buffer. - */ - protected boolean useDirectByteBuffer; - - /* - * Number of seconds before idle keep-alive connections expire - */ - private int keepAliveTimeoutInSeconds; - - /* - * Number of keep-alive threads - */ - private int keepAliveThreadCount; - - /* - * Specifies whether response chunking is enabled/disabled - */ - private boolean chunkingDisabled; - - /** - * Maximum pending connection before refusing requests. - */ - private int maxPendingCount = 4096; - - - /** - * Set the number of Selector used by Grizzly. - */ - public int selectorReadThreadsCount = 0; - - private int maxQueueSizeInBytes = -1; - - private HttpSoapBindingLifeCycle lifeCycle; - - public BCCoyoteConnector(HttpSoapBindingLifeCycle lifeCycle) { - boolean coyoteOn = false; - if (System.getProperty(USE_COYOTE_CONNECTOR) != null){ - coyoteOn = - Boolean.valueOf(System.getProperty(USE_COYOTE_CONNECTOR)) - .booleanValue(); - } - - // By default, turn on the Coyote Connector - if (!coyoteOn) - setProtocolHandlerClassName(GRIZZLY_CONNECTOR); - - this.lifeCycle = lifeCycle; - - } - - - /** - * Enables or disables chunked encoding for any responses returned by this - * Connector. - * - * @param chunkingDisabled true if chunking is to be disabled, false - * otherwise - */ - public void setChunkingDisabled(boolean chunkingDisabled) { - this.chunkingDisabled = chunkingDisabled; - } - - - /** - * @return true if chunking is disabled on this Connector, and false - * otherwise - */ - public boolean isChunkingDisabled() { - return this.chunkingDisabled; - } - - - /** - * Create (or allocate) and return a Request object suitable for - * specifying the contents of a Request to the responsible Container. - */ - public Request createRequest() { - - BCCoyoteRequest request = new BCCoyoteRequest(); - request.setConnector(this); - return (request); - - } - - - /** - * Creates and returns Response object. - * - * @return Response object - */ - public Response createResponse() { - - //CoyoteResponse response = new CoyoteResponse(isChunkingDisabled()); - CoyoteResponse response = new BCCoyoteResponse(isChunkingDisabled()); - response.setConnector(this); - return (response); - - } - - - /** - * Gets the number of seconds before a keep-alive connection that has - * been idle times out and is closed. - * - * @return Keep-alive timeout in number of seconds - */ - public int getKeepAliveTimeoutInSeconds() { - return keepAliveTimeoutInSeconds; - } - - - /** - * Sets the number of seconds before a keep-alive connection that has - * been idle times out and is closed. - * - * @param timeout Keep-alive timeout in number of seconds - */ - public void setKeepAliveTimeoutInSeconds(int timeout) { - keepAliveTimeoutInSeconds = timeout; - setProperty("keepAliveTimeoutInSeconds", String.valueOf(timeout)); - } - - - /** - * Gets the number of keep-alive threads. - * - * @return Number of keep-alive threads - */ - public int getKeepAliveThreadCount() { - return keepAliveThreadCount; - } - - - /** - * Sets the number of keep-alive threads. - * - * @param threadCount Number of keep-alive threads - */ - public void setKeepAliveThreadCount(int threadCount) { - keepAliveThreadCount = threadCount; - setProperty("keepAliveThreadCount", String.valueOf(threadCount)); - } - - - /** - * Set the maximum pending connection this Connector - * can handle. - */ - public void setMaxPendingConnection(int maxPendingCount){ - this.maxPendingCount = maxPendingCount; - setProperty("maxPendingConnection", String.valueOf(maxPendingCount)); - } - - - /** - * Return the maximum pending connection. - */ - public int getMaxPendingConnection(){ - return maxPendingCount; - } - - - /** - * Set the recycle-tasks used by this Selector - */ - public void setRecycleObjects(boolean recycleObjects){ - this.recycleObjects= recycleObjects; - setProperty("recycleObjects", - String.valueOf(recycleObjects)); - } - - - /** - * Return the recycle-tasks used by this - * Selector - */ - public boolean getRecycleObjects(){ - return recycleObjects; - } - - - /** - * Set the reader-thread from domian.xml. - */ - public void setMaxReadWorkerThreads(int maxReadWorkerThreads){ - this.maxReadWorkerThreads = maxReadWorkerThreads; - setProperty("maxReadWorkerThreads", - String.valueOf(maxReadWorkerThreads)); - } - - - /** - * Return the read-thread used by this Selector - */ - public int getMaxReadWorkerThreads(){ - return maxReadWorkerThreads; - } - - - /** - * Set the reader-thread from domian.xml. - */ - public void setMaxAcceptWorkerThreads(int maxAcceptWorkerThreads){ - this.maxAcceptWorkerThreads = maxAcceptWorkerThreads; - setProperty("maxAcceptWorkerThreads", - String.valueOf(maxAcceptWorkerThreads)); - } - - - /** - * Return the read-thread used by this Selector - */ - public int getMaxAcceptWorkerThreads(){ - return maxAcceptWorkerThreads; - } - - - /** - * Set the acceptor-queue-length value - * on this Selector - */ - public void setMinAcceptQueueLength(int minAcceptQueueLength){ - this.minAcceptQueueLength = minAcceptQueueLength; - setProperty("minAcceptQueueLength", - String.valueOf(minAcceptQueueLength)); - } - - - /** - * Return the acceptor-queue-length value - * on this Selector - */ - public int getMinAcceptQueueLength(){ - return minAcceptQueueLength; - } - - - /** - * Set the reader-queue-length value - * on this Selector - */ - public void setMinReadQueueLength(int minReadQueueLength){ - this.minReadQueueLength = minReadQueueLength; - setProperty("minReadQueueLength", - String.valueOf(minReadQueueLength)); - } - - - /** - * Return the reader-queue-length value - * on this Selector - */ - public int getMinReadQueueLength(){ - return minReadQueueLength; - } - - - /** - * Set the processor-queue-length value - * on this Selector - */ - public void setMinProcessorQueueLength(int minProcessorQueueLength){ - this.minProcessorQueueLength = minProcessorQueueLength; - setProperty("minProcessorQueueLength", - String.valueOf(minProcessorQueueLength)); - } - - - /** - * Return the processor-queue-length value - * on this Selector - */ - public int getMinProcessorQueueLength(){ - return minProcessorQueueLength; - } - - - /** - * Set the use-nio-non-blocking by this Selector - */ - public void setUseDirectByteBuffer(boolean useDirectByteBuffer){ - this.useDirectByteBuffer = useDirectByteBuffer; - setProperty("useDirectByteBuffer", - String.valueOf(useDirectByteBuffer)); - } - - - /** - * Return the use-nio-non-blocking used by this - * Selector - */ - public boolean getUseDirectByteBuffer(){ - return useDirectByteBuffer; - } - - - public void setProcessorWorkerThreadsTimeout(int timeout){ - this.processorWorkerThreadsTimeout = timeout; - setProperty("processorWorkerThreadsTimeout", - String.valueOf(timeout)); - } - - - public int getProcessorWorkerThreadsTimeout(){ - return processorWorkerThreadsTimeout; - } - - - public void setProcessorWorkerThreadsIncrement(int increment){ - this.minProcessorWorkerThreadsIncrement = increment; - setProperty("processorThreadsIncrement", - String.valueOf(increment)); - } - - - public int getMinProcessorWorkerThreadsIncrement(){ - return minProcessorWorkerThreadsIncrement; - } - - public void setSelectorReadThreadsCount(int selectorReadThreadsCount){ - setProperty("selectorReadThreadsCount", - String.valueOf(selectorReadThreadsCount)); - } - - public void start() throws LifecycleException { - super.start(); - - com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol protocolHandler = - (com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol)getProtocolHandler(); - com.sun.enterprise.web.connector.grizzly.SelectorThread selThread = protocolHandler.selectorThread(); - - if (selThread.getProcessorPipeline() instanceof LinkedListThrottlePipeline) { - LinkedListThrottlePipeline pipeline = (LinkedListThrottlePipeline)selThread.getProcessorPipeline(); - pipeline.setHttpSoapBindingLifeCycle(lifeCycle); - } - } - - public void stop() throws LifecycleException { - com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol protocolHandler = - (com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol)getProtocolHandler(); - com.sun.enterprise.web.connector.grizzly.SelectorThread selThread = protocolHandler.selectorThread(); - - if (selThread.getProcessorPipeline() instanceof LinkedListThrottlePipeline) { - LinkedListThrottlePipeline pipeline = (LinkedListThrottlePipeline)selThread.getProcessorPipeline(); - pipeline.cleanup(); - } - super.stop(); - } -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteRequest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteRequest.java deleted file mode 100755 index 253ec9b38..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteRequest.java +++ /dev/null @@ -1,345 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)BCCoyoteRequest.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - -import com.sun.jbi.internationalization.Messages; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.UnsupportedEncodingException; -import java.util.logging.Logger; -import java.util.logging.Level; - -import javax.servlet.ServletRequest; -import javax.servlet.http.Cookie; - -import org.apache.catalina.Context; -import org.apache.catalina.Globals; -import org.apache.coyote.tomcat5.CoyoteRequest; -import org.apache.coyote.tomcat5.CoyoteResponse; -import org.apache.coyote.tomcat5.CoyoteConnector; -import org.apache.coyote.tomcat5.CoyoteInputStream; -import org.apache.coyote.tomcat5.CoyoteReader; -import org.apache.coyote.tomcat5.InputBuffer; -import org.apache.tomcat.util.http.Parameters; -import com.sun.enterprise.web.PwcWebModule; -import com.sun.enterprise.web.session.SessionCookieConfig; - -/** - * Customized version of the Tomcat 5 CoyoteRequest - * This is required for supporting Web Programmatic Login and setting the - * request encoding (charset). - * - */ -public class BCCoyoteRequest extends CoyoteRequest { - - private static final Messages mMessages = - Messages.getMessages(BCCoyoteRequest.class); - - //private static Logger logger = LogDomains.getLogger(LogDomains.PWC_LOGGER); - private final static Logger logger = - Messages.getLogger(BCCoyoteRequest.class); - - private boolean requestEncodingSet = false; - - // START SJSAS 6346738 - private byte[] formData = null; - private int formDataLen = 0; - // END SJSAS 6346738 - - public void setContext(Context ctx) { - super.setContext(ctx); - CoyoteResponse response = (CoyoteResponse) getResponse(); - // Assert response!=null - if (response != null) { - String[] cacheControls = ((PwcWebModule) ctx).getCacheControls(); - for (int i=0; cacheControls!=null && i element in sun-web.xml. - * - * @return The value of the query parameter whose name corresponds to the - * value of the form-hint-field attribute in sun-web.xml, or null if the - * request does not have any query string, or the query string does not - * contain a query parameter with that name - */ - private String getFormHintFieldEncoding(PwcWebModule wm) { - - String encoding = null; - - String formHintField = wm.getFormHintField(); - if (formHintField == null){ - return null; - } - - if ("POST".equalsIgnoreCase(getMethod())) { - // POST - encoding = getPostDataEncoding(formHintField); - } else { - String query = getQueryString(); - if (query != null) { - encoding = parseFormHintField(query, formHintField); - } - } - - return encoding; - } - - - private String getPostDataEncoding(String formHintField) { - - if (!getMethod().equalsIgnoreCase("POST")) { - return null; - } - - String contentType = getContentType(); - if (contentType == null) - contentType = ""; - int semicolon = contentType.indexOf(';'); - if (semicolon >= 0) { - contentType = contentType.substring(0, semicolon).trim(); - } else { - contentType = contentType.trim(); - } - if (!("application/x-www-form-urlencoded".equals(contentType))) { - return null; - } - - int len = getContentLength(); - if (len <= 0) { - return null; - } - int maxPostSize = ((CoyoteConnector) connector).getMaxPostSize(); - if ((maxPostSize > 0) && (len > maxPostSize)) { - if (logger.isLoggable(Level.WARNING)) { - logger.log(Level.WARNING, "HTTPBC-W00610.Post_size_too_large", - new Object[] { Integer.valueOf(len), Integer.valueOf(maxPostSize) }); - } - throw new IllegalStateException("Post too large"); - } - - String encoding = null; - - try { - formData = null; - if (len < CACHED_POST_LEN) { - if (postData == null) - postData = new byte[CACHED_POST_LEN]; - formData = postData; - } else { - formData = new byte[len]; - } - int actualLen = readPostBody(formData, len); - if (actualLen == len) { - // START SJSAS 6346738 - formDataLen = actualLen; - // END SJSAS 6346738 - String formDataString = new String(formData).substring(0, len); - encoding = parseFormHintField(formDataString, formHintField); - } - } catch (Throwable t) { - ; // Ignore - } - - return encoding; - } - - - /* - * Parses the value of the specified form-hint-field from the given - * parameter string. - * - * @param paramsString Parameter string - * @param formHintField From-hint-field - * - * @return Value of form-hint-field, or null if not found - */ - private String parseFormHintField(String paramsString, - String formHintField) { - - String encoding = null; - - formHintField += "="; - int index = paramsString.indexOf(formHintField); - if (index != -1) { - int endIndex = paramsString.indexOf('&', index); - if (endIndex != -1) { - encoding = paramsString.substring( - index + formHintField.length(), endIndex); - } else { - encoding = paramsString.substring( - index + formHintField.length()); - } - } - - return encoding; - } - - - // START SJSAS 6346738 - /** - * Gets the POST body of this request. - * - * @return The POST body of this request - */ - protected byte[] getPostBody() throws IOException { - - if (formDataLen > 0) { - // POST body already read - return formData; - } else { - return super.getPostBody(); - } - } - // END SJSAS 6346738 -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteResponse.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteResponse.java deleted file mode 100755 index c5ca949ae..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/BCCoyoteResponse.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)BCCoyoteResponse.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - -import com.sun.jbi.internationalization.Messages; - -import java.util.logging.Logger; - -import org.apache.catalina.Context; -import org.apache.coyote.tomcat5.CoyoteResponse; -import org.apache.coyote.tomcat5.CoyoteOutputStream; -import org.apache.coyote.tomcat5.CoyoteWriter; -import org.apache.coyote.tomcat5.OutputBuffer; - -/** - * Customized version of the Tomcat 5 CoyoteResponse - */ -public class BCCoyoteResponse extends CoyoteResponse { - - //private static Logger logger = LogDomains.getLogger(LogDomains.PWC_LOGGER); - private final static Logger logger = Messages.getLogger(BCCoyoteResponse.class); - - - /* - * Constructor. - */ - public BCCoyoteResponse(boolean chunkingDisabled) { - super(chunkingDisabled); - } - -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyRequestProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyRequestProcessor.java deleted file mode 100755 index bb89f3cbc..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyRequestProcessor.java +++ /dev/null @@ -1,615 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)GrizzlyRequestProcessor.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - -import com.sun.jbi.httpsoapbc.HttpSoapComponentContext; -import com.sun.jbi.httpsoapbc.MessageExchangeSupport; -import com.sun.jbi.httpsoapbc.ReplyListener; -import com.sun.jbi.httpsoapbc.servletsupport.HttpServletDenormalizer; -import com.sun.jbi.httpsoapbc.servletsupport.HttpServletNormalizer; -import com.sun.jbi.internationalization.Messages; -import com.sun.jbi.httpsoapbc.Normalizer; -import com.sun.jbi.httpsoapbc.Denormalizer; -import com.sun.jbi.httpsoapbc.ReplyListener; -import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; -import com.sun.jbi.httpsoapbc.InboundMessageProcessor; -import com.sun.jbi.httpsoapbc.Endpoint; -import com.sun.jbi.httpsoapbc.FaultException; -import com.sun.jbi.httpsoapbc.OperationMetaData; -import com.sun.jbi.httpsoapbc.util.DebugLog; -import com.sun.jbi.nms.exchange.ExchangePattern; -import com.sun.enterprise.web.connector.grizzly.AsyncTask; -import com.sun.enterprise.web.connector.grizzly.ByteBufferStream; - -import java.io.IOException; -import java.nio.ByteBuffer; -import java.net.URI; -import java.util.logging.Logger; -import java.util.logging.Level; -import java.util.Map; - - -import javax.jbi.messaging.MessageExchange; -import javax.jbi.messaging.ExchangeStatus; -import javax.jbi.messaging.InOut; -import javax.jbi.messaging.Fault; -import javax.jbi.messaging.NormalizedMessage; -import javax.jbi.messaging.MessagingException; -import javax.jbi.component.ComponentLifeCycle; -import java.util.Set; - - -import org.apache.catalina.Connector; -import org.apache.coyote.Adapter; -import org.apache.coyote.Request; -import org.apache.coyote.Response; -import org.apache.coyote.http11.InternalInputBuffer; -import org.apache.coyote.http11.InternalOutputBuffer; -import org.apache.coyote.tomcat5.CoyoteConnector; -import org.apache.coyote.tomcat5.CoyoteRequest; -import org.apache.coyote.tomcat5.CoyoteResponse; - - -/** - * Implementation of a coyote adapter to process HTTP requests asynchronously - * - */ -public class GrizzlyRequestProcessor implements Adapter, ReplyListener { - - private static final Messages mMessages = - Messages.getMessages(GrizzlyRequestProcessor.class); - private final static Logger mLogger = - Messages.getLogger(GrizzlyRequestProcessor.class); - - /** - * Index into the requests and response notes - */ - final static int ADAPTER_NOTES = 1; - - /** - * The CoyoteConnector with which this processor is associated. - */ - private CoyoteConnector connector = null; - - /** - * A mapping from the JBI message exchange ID to the request context - */ - Map exchangeIDToContext = new java.util.concurrent.ConcurrentHashMap(); - - HttpSoapBindingLifeCycle lifeCycle; - - /** - * Creates a new instance - * @param connector CoyoteConnector that owns this processor - */ - public GrizzlyRequestProcessor(CoyoteConnector connector) throws MessagingException { - this.connector = connector; - initialize(); - } - - /** - * Initialize the request processor - */ - void initialize() throws MessagingException { - lifeCycle = (HttpSoapBindingLifeCycle) HttpSoapComponentContext.getInstance().getAssociatedLifeCycle(); - } - - /** - * Main entry point of the adapter to service a request - * @param the incoming http request - * @param the http response to prepare - */ - public void service(Request req, Response res) { - - // Get the task associated with this request. This could be solved as a request note instead. - AsyncTask asyncTask = JBIGrizzlyAsyncFilter.removeTaskMapping(req); - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Got task mapping from request " - + req.toString() + ", asyncProcessorTask " + asyncTask); - } - int port = connector.getPort(); - - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Servicing async request for " + req.requestURI()); - } - - CoyoteRequest request = (CoyoteRequest) req.getNote(ADAPTER_NOTES); - CoyoteResponse response = (CoyoteResponse) res.getNote(ADAPTER_NOTES); - - // TODO: we should be able to re-use the CoyoteRequest/CoyoteResponse instances - //if (request == null) { - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Initializing servicing objects"); - } - // Create objects - request = (CoyoteRequest) connector.createRequest(); - request.setCoyoteRequest(req); - response = (CoyoteResponse) connector.createResponse(); - response.setCoyoteResponse(res); - - // Link objects - request.setResponse(response); - response.setRequest(request); - - // Set as notes - req.setNote(ADAPTER_NOTES, request); - res.setNote(ADAPTER_NOTES, response); - - // Set query string encoding - req.getParameters().setQueryStringEncoding(connector.getURIEncoding()); - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Query string encoding: " + connector.getURIEncoding()); - } - //} - - // Prepare the request context - Context currentContext = new Context(); - currentContext.port = port; - currentContext.anInputBuffer = (InternalInputBuffer) req.getInputBuffer(); - currentContext.anOutputBuffer = (InternalOutputBuffer) res.getOutputBuffer(); - currentContext.req = req; - currentContext.res = res; - currentContext.coyoteRequest = request; - currentContext.coyoteResponse = response; - currentContext.connector = connector; - currentContext.asyncTask = asyncTask; - - // TODO: beware, request parsing does not always seem intuitive - //currentContext.contextPath = req.localName().toString(); - currentContext.contextPath = ""; - currentContext.pathInfo = req.requestURI().toString(); - - // if the request is looking for the WSDL, don't process the actual message - // just let the reply handler load the WSDL and return it. - if ("WSDL".equalsIgnoreCase(request.getQueryString())) { - processSynchronousReply(currentContext, null, null); - } else { - try { - String exchangeID = processAsynchRequest(currentContext); - } catch (Exception ex) { - // Trigger an immediate reply if the request processing resulted in an exception - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Exception reported in process synchronous request-reply.", ex); - } - processSynchronousReply(currentContext, null, ex); - } - } - } - - /** - * @see Adapter - */ - public void afterService(Request req, Response res) { - } - - - /** - * Process a HttpRequest and send a JBI request. - * @param request embedded server request - * @return JBI message exchange ID - */ - public String processAsynchRequest(Context reqContext) throws FaultException, HttpException { - - String exchangeID = null; - CoyoteRequest request = reqContext.coyoteRequest; - String context = reqContext.contextPath + reqContext.pathInfo; - int port = reqContext.port; - - Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, port); - - if (targetEndpoint == null) { - if (mLogger.isLoggable(Level.WARNING)) { - mLogger.log(Level.WARNING, - "HTTPBC-W00652.Web_service_mapping_failed", - new Object[] { context, new Integer(port)}); - } - - // Send an HTTP 404 error - throw new HttpException(CoyoteResponse.SC_NOT_FOUND, - mMessages.getString("HTTPBC-W00652.Web_service_mapping_failed", - new Object[] {context, new Integer(port)})); - } else { - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Web service mapping found for the requested URL. " + context + " at port " + port); - } - - try { - InboundMessageProcessor anInboundProcessor = getProcessorSupport().inboundProcessor; - anInboundProcessor.setInput(request); - anInboundProcessor.setTargetEndpoint(targetEndpoint); - exchangeID = anInboundProcessor.execute(reqContext); - } catch (MessagingException ex) { - if (mLogger.isLoggable(Level.WARNING)) { - mLogger.log(Level.WARNING, "HTTPBC-W00653.Exception_during_request_processing", ex); - } - throw new FaultException(ex); - } - } - return exchangeID; - } - - /** - * The inbound message processor will call us back in execute() once it knows the message exchange for the request. - * @see ReplyListener - */ - public void setMessageExchangeId(String messageExchangeId, Object clientContext) { - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "setMessageExchangeId: " + messageExchangeId + ", clientContext: " + clientContext); - } - exchangeIDToContext.put(messageExchangeId, clientContext); - } - - - public void setMessageContextForCallback(Object obj1, Object obj2) { - // do nothing - } - - /** - * Removes a message exchange ID and its associated call back context - * @see ReplyListener - */ - public void removeMessageExchangeId(String messageExchangeId) { - exchangeIDToContext.remove(messageExchangeId); - } - - /** - * Handle the reply available from JBI. - */ - public void onReply(MessageExchange exchange) throws MessagingException { - - // MEP is complete, we do not expect any further replies. Remove from MessageExchangeSupport. - MessageExchangeSupport.removeReplyListener(exchange.getExchangeId()); - - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Got reply message exchange " + exchange.getExchangeId()); - } - Context context = (Context) exchangeIDToContext.remove(exchange.getExchangeId()); - if (mLogger.isLoggable(Level.FINEST)) { - StringBuffer idsStr = new StringBuffer(); - Set s = exchangeIDToContext.keySet(); - if (s.size() == 0) { - idsStr.append("none"); - } else { - for (Object key : s) { - idsStr.append(key.toString()).append(" "); - } - } - mLogger.log(Level.FINEST, "Outstanding exchanges: " + idsStr.toString()); - } - - try { - processAsynchReply(context, exchange, null); - } catch (RuntimeException ex) { - throw new MessagingException(mMessages.getString("HTTPBC-E00654.Exception_during_reply_processing"), - ex); - } finally { - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Finishing response"); - } - JBIGrizzlyAsyncFilter.finishResponse(context.asyncTask); - - /* This clean-up help may affect coyote/grizzly. Disable for now. - // As currently we can not re-use these, help in cleaning up request and response - if (context != null && context.coyoteRequest != null ) { - if (context.req != null) { - context.req.setNote(ADAPTER_NOTES, null); - context.req.recycle(); - context.req = null; - } - if (context.res != null) { - context.res.setNote(ADAPTER_NOTES, null); - context.res.recycle(); - context.res = null; - } - // remove linking - if (context.coyoteRequest != null) { - context.coyoteRequest.setResponse(null); - context.coyoteRequest.setCoyoteRequest(null); - context.coyoteRequest.recycle(); - context.coyoteRequest = null; - } - if (context.coyoteResponse != null) { - context.coyoteResponse.setRequest(null); - context.coyoteResponse.setCoyoteResponse(null); - context.coyoteResponse.recycle(); - context.coyoteResponse = null; - } - } - */ - } - } - - /** - * Reply synchronously in this service() invocation. - * This is useful for responding with errors and any other exchanges where no - * asynchronous exchange with the JBI NMR will occur. - */ - public void processSynchronousReply(Context reqContext, MessageExchange exchange, Exception requestFailedException) { - processAsynchReply(reqContext, exchange, requestFailedException); - JBIGrizzlyAsyncFilter.finishResponseSynchronously(reqContext.asyncTask); - } - - /** - * Process a JBI reply and prepare an HttpResponse - * @param reqContext the original request context - * @param exchange the JBI message exchange which has a reply available. Maybe null if requestFailedException is not null. - * @param requestFailedException The exception that occurred in the processAsynchRequest phase. - */ - public void processAsynchReply(Context reqContext, MessageExchange exchange, Exception requestFailedException) { - - CoyoteResponse response = reqContext.coyoteResponse; - try { - CoyoteRequest request = reqContext.coyoteRequest; - String context = reqContext.contextPath + reqContext.pathInfo; - - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Lifecycle: " - + lifeCycle + ", context path: " + context - + ", request context: " + reqContext); - } - Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, reqContext.port); - OperationMetaData operationMetaData = null; - - // SOAP 1.1 we'll set it as text/xml - // TODO: for SOAP 1.2, content type will have to be application/soap+xml - response.setContentType("text/xml"); - - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Request query string: " + request.getQueryString()); - } - - // if user is looking for the wsdl file, read it from disk and return it synchronously - if (targetEndpoint != null && "WSDL".equalsIgnoreCase(request.getQueryString())) { - try { - ByteBuffer mbb = targetEndpoint.getServiceDescriptorAsByteBuffer(); - java.io.OutputStream os = response.getOutputStream(); - java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); - channel.write(mbb); - os.flush(); - response.setStatus(CoyoteResponse.SC_OK); - } catch (Exception e) { - if (mLogger.isLoggable(Level.WARNING)) { - mLogger.log(Level.WARNING, "HTTPBC-W00651.WSDL_retrieval_exception", e); - } - // Reply with http error - response.setStatus(CoyoteResponse.SC_INTERNAL_SERVER_ERROR); - } - - return; - } - - String pat = null; - String operation = null; - if (exchange != null) { - URI pattern = exchange.getPattern(); - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Pattern for exchange id " - + exchange.getExchangeId() + " is " + pattern); - } - pat = pattern.toString().trim(); - operation = exchange.getOperation().getLocalPart(); - } else { - // If the exchange is null make sure there is an exception reported. - if (requestFailedException == null) { - requestFailedException = new MessagingException("Null message exchange"); - } - } - - // Get the operation meta data if available - if (targetEndpoint != null) { - Map nameToMeta = targetEndpoint.getOperationNameToMetaData(); - operationMetaData = (OperationMetaData) nameToMeta.get(operation); - } - - if (targetEndpoint == null || exchange == null || ExchangePattern.isInOut(exchange)) { - try { - if (requestFailedException != null) { - // Process a failure in processing the request - if (requestFailedException instanceof HttpException) { - - // Temporary Support for retrieving resources for WSDLs retrieved via ?WSDL that have relative imports - // If an address context is not unique (e.g. multiple endpoints are deployed under /service that import resources with the same name), - // this will simply return the first match it can find. - ByteBuffer resource = lifeCycle.queryResource(context, targetEndpoint); - if (resource != null) { - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Request context " - + context + " at port " + reqContext.port - + " mapped to resource " + resource); - } - ByteBuffer mbb = resource; - java.io.OutputStream os = response.getOutputStream(); - java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); - channel.write(mbb); - os.flush(); - response.setStatus(CoyoteResponse.SC_OK); - } else { - response.setStatus(((HttpException) requestFailedException).getErrorCode()); - } - - } else { - Denormalizer aDenormalizer = getProcessorSupport().denormalizer; - response = (CoyoteResponse) aDenormalizer.denormalizeException(requestFailedException, response); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - response.setStatus(statusCode); - } - - } else { - - if (operationMetaData == null) { - throw new MessagingException(mMessages.getString("HTTPBC-E00667.No_opmeta_for_operation", operation)); - } - - if (exchange.getError() != null) { - Denormalizer aDenormalizer = getProcessorSupport().denormalizer; - response = (CoyoteResponse) aDenormalizer.denormalizeError(exchange, response); - } else { - NormalizedMessage outMsg = null; - - if (exchange.getFault() != null) { - // TODO: check that a message exchange fault can be used - // the same way as an output message! - Fault aFault = exchange.getFault(); - outMsg = aFault; - } else { - if (exchange instanceof InOut) { - InOut inout = (InOut) exchange; - outMsg = inout.getOutMessage(); - } - } - - if (mLogger.isLoggable(Level.FINE)) { - if (outMsg != null) { - DebugLog.debugLog(mLogger, Level.FINE, "Denormalizing received msg", outMsg.getContent()); - } else { - mLogger.log(Level.FINE, "Message received is empty"); - } - } - Denormalizer aDenormalizer = getProcessorSupport().denormalizer; - response = (CoyoteResponse) aDenormalizer.denormalize(outMsg, exchange, response, operationMetaData); - } - } - } catch (Throwable ex) { - if (mLogger.isLoggable(Level.WARNING)) { - mLogger.log(Level.WARNING, "HTTPBC-W00654.Exception_during_reply_processing",ex); - } - // Reply with fault. - Denormalizer aDenormalizer = getProcessorSupport().denormalizer; - response = (CoyoteResponse) aDenormalizer.denormalizeException(ex, response); - } - } else if (ExchangePattern.isInOnly(exchange)) { - int statusCode = CoyoteResponse.SC_ACCEPTED; // one-way should send accepted 202 - not OK 200 - if (requestFailedException != null) { - if (requestFailedException instanceof HttpException) { - statusCode = ((HttpException) requestFailedException).getErrorCode(); - } else { - mLogger.log(Level.SEVERE, "HTTPBC-E00653.Exception_during_request_processing", - requestFailedException); - statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - } - } else { - // If the SE does not report a successful 'transmission' (for in-only exchange status DONE) - // respond with an http error - if (exchange.getStatus().equals(ExchangeStatus.ERROR)) { - mLogger.log(Level.SEVERE, "HTTPBC-E00653.Exception_during_request_processing"); - statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - } - } - response.setStatus(statusCode); - } else { - mLogger.log(Level.SEVERE,"HTTPBC-E00668.Unsupported_message_type", pat); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - response.setStatus(statusCode); - } - } catch (Throwable ex) { - // Make sure that no exceptions get propagated to the embedded server, this might terminate the server - mLogger.log(Level.SEVERE, "HTTPBC-E00654.Exception_during_reply_processing", ex); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - response.setStatus(statusCode); - } finally { - try { - response.finishResponse(); - } catch (IOException ex) { - mLogger.log(Level.SEVERE, "HTTPBC-E00654.Exception_during_reply_processing", ex); - } - - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Wrote response"); - } - } - } - - // START SJSAS 6349248 - /** - * Not supported by this adapter implementation. - * - * Notify all container event listeners that a particular event has - * occurred for this Adapter. The default implementation performs - * this notification synchronously using the calling thread. - * - * @param type Event type - * @param data Event data - */ - public void fireAdapterEvent(String type, Object data) { - mLogger.log(Level.FINE, "Not supported by this implementation"); - } - // END SJSAS 6349248 - - /** - * Get the thread specific processor support - * Beware: Do not use the processor support instances in a different thread than - * the one calling getProcessorSupport. - */ - ProcessorSupport getProcessorSupport() throws MessagingException { - // Get the processor support instances associated with the thread if present, create if not. - ProcessorSupport currentProcSupport = (ProcessorSupport) processorSupport.get(); - if (currentProcSupport == null) { - currentProcSupport = new ProcessorSupport(); - currentProcSupport.normalizer = new HttpServletNormalizer(); - currentProcSupport.denormalizer = new HttpServletDenormalizer(); - currentProcSupport.inboundProcessor = new InboundMessageProcessor(currentProcSupport.normalizer, this); - processorSupport.set(currentProcSupport); - } - return currentProcSupport; - } - - /** - * Holds instances that are not thread safe - */ - private static ThreadLocal processorSupport = new ThreadLocal(); - - /** - * Holds instances that are not thread safe - */ - static class ProcessorSupport { - Normalizer normalizer; - Denormalizer denormalizer; - InboundMessageProcessor inboundProcessor; - } - - /** - * Holds request context information - */ - static class Context { - int port; - InternalInputBuffer anInputBuffer; - InternalOutputBuffer anOutputBuffer; - Request req; - Response res; - CoyoteRequest coyoteRequest; - CoyoteResponse coyoteResponse; - Connector connector; - String contextPath; - String pathInfo; - AsyncTask asyncTask; - } - -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JBIGrizzlyAsyncFilter.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JBIGrizzlyAsyncFilter.java deleted file mode 100755 index ea57fa650..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JBIGrizzlyAsyncFilter.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)JBIGrizzlyAsyncFilter.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - - -import com.sun.enterprise.web.connector.grizzly.AsyncExecutor; -import com.sun.enterprise.web.connector.grizzly.AsyncFilter; -import com.sun.enterprise.web.connector.grizzly.AsyncHandler; -import com.sun.enterprise.web.connector.grizzly.AsyncTask; -import com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask; -import com.sun.enterprise.web.connector.grizzly.ProcessorTask; -import com.sun.jbi.internationalization.Messages; - -import java.util.logging.Logger; -import java.util.logging.Level; -import java.util.Map; -import java.util.Queue; - -import org.apache.coyote.Request; -import org.apache.coyote.tomcat5.CoyoteResponse; - - -/** - * Grizzly filter to asynchronously invoke JBI HTTP BC - * - * Also has support to mark an exchange as synchronous when needed, e.g. for - * reporting errors - * - */ -public class JBIGrizzlyAsyncFilter implements AsyncFilter { - - private final static Logger logger = - Messages.getLogger(JBIGrizzlyAsyncFilter.class); - - /** - * Mapping from the request to the processing task, used by the adapter - * to retrieve the task associated with a request. - */ - private static Map requestToTask = new java.util.concurrent.ConcurrentHashMap(); - - /** - * List of task instances that should be handled in a synchronous manner. - * By the adapter adding tasks to this queue it can control whether - * a given request is dealt with in a synchronous or asynchronous fashion. - */ - private static Queue respondSynchronously = new java.util.concurrent.ConcurrentLinkedQueue(); - - /** - * Filter implementation, invoke the BC adapter implementation. - */ - public boolean doFilter(AsyncExecutor asyncExecutor) { - - boolean continueSynchronously = false; - - AsyncTask asyncProcessorTask = asyncExecutor.getAsyncTask(); - // In Grizzly v1, the asynchronous extenstions are tied to the DefaultProcessorTask - DefaultProcessorTask defaultProcTask = (DefaultProcessorTask) asyncProcessorTask.getProcessorTask(); - Request req = defaultProcTask.getRequest(); - - if (logger.isLoggable(Level.FINEST)) { - logger.log(Level.FINEST, "doFilter on request " + req.toString() + ", asyncProcessorTask " + asyncProcessorTask.toString()); - } - - requestToTask.put(req, asyncProcessorTask); - - try { - asyncProcessorTask.getProcessorTask().invokeAdapter(); - boolean wasPresent = respondSynchronously.remove(asyncProcessorTask); - continueSynchronously = wasPresent; - } catch (RuntimeException ex) { - logger.log(Level.WARNING, "HTTPBC-W00641.Adapter_invoke_exception", ex); - // make sure this is removed; just in case. - respondSynchronously.remove(asyncProcessorTask); - continueSynchronously = true; - } finally { - // make sure this mapping is cleaned up; just in case - requestToTask.remove(req); - } - - if (logger.isLoggable(Level.FINEST)) { - logger.log(Level.FINEST, "Continue synchronously flag set to " + continueSynchronously); - } - - return continueSynchronously; - } - - /** - * Mark request as responding synchronously, from the same thread as the request thread. - */ - public static void finishResponseSynchronously(AsyncTask asyncProcessorTask) { - - if (asyncProcessorTask != null) { - DefaultProcessorTask task = (DefaultProcessorTask) asyncProcessorTask.getProcessorTask(); - AsyncHandler asyncHandler = task.getAsyncHandler(); - asyncHandler.removeFromInterruptedQueue(asyncProcessorTask); - - // Mark task as synchronous - respondSynchronously.add(asyncProcessorTask); - if (logger.isLoggable(Level.FINEST)) { - logger.log(Level.FINEST, "Marking exchange as synchronous"); - } - } - - } - - /** - * Finish the response asynchronously, i.e. from a different thread than the request thread. - */ - public static void finishResponse(AsyncTask asyncProcessorTask) { - if (asyncProcessorTask != null) { - // In Grizzly v1, the asynchronous extenstions are tied to the DefaultProcessorTask - DefaultProcessorTask task = (DefaultProcessorTask) asyncProcessorTask.getProcessorTask(); - - if (task != null) { - AsyncHandler asyncHandler = task.getAsyncHandler(); - if (asyncHandler != null) { - if (logger.isLoggable(Level.FINEST)) { - logger.log(Level.FINEST, "Finish response for asyncProcessorTask " - + asyncProcessorTask.toString()); - } - asyncHandler.handle(asyncProcessorTask); - } else { - logger.log(Level.SEVERE, "HTTPBC-E00642.No_response_handler_for_request"); - } - } else { - logger.log(Level.WARNING, "HTTPBC-W00642.No_correlating_request_for_response"); - } - } else { - logger.log(Level.WARNING, "HTTPBC-W00643.Null_response"); - } - } - - /** - * Remove the task mapping for a given request - * @param request the request - * @return the task if there was a mapping for the request, null if not - */ - public static AsyncTask removeTaskMapping(Request request) { - return (AsyncTask) requestToTask.remove(request); - } -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/LinkedListThrottlePipeline.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/LinkedListThrottlePipeline.java deleted file mode 100755 index adcd7b26e..000000000 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/LinkedListThrottlePipeline.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * BEGIN_HEADER - DO NOT EDIT - * - * The contents of this file are subject to the terms - * of the Common Development and Distribution License - * (the "License"). You may not use this file except - * in compliance with the License. - * - * You can obtain a copy of the license at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * See the License for the specific language governing - * permissions and limitations under the License. - * - * When distributing Covered Code, include this CDDL - * HEADER in each file and include the License file at - * https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. - * If applicable add the following below this CDDL HEADER, - * with the fields enclosed by brackets "[]" replaced with - * your own identifying information: Portions Copyright - * [year] [name of copyright owner] - */ - -/* - * @(#)LinkedListThrottlePipeline.java - * - * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved. - * - * END_HEADER - DO NOT EDIT - */ - -package com.sun.jbi.httpsoapbc.embedded; - -import java.nio.channels.SelectionKey; -import java.nio.ByteBuffer; -import java.nio.BufferUnderflowException; -import java.nio.channels.SocketChannel; - -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - -import java.util.logging.Logger; -import java.util.logging.Level; -import java.util.Iterator; - -import com.sun.enterprise.web.connector.grizzly.LinkedListPipeline; -import com.sun.enterprise.web.connector.grizzly.SelectorThread; -import com.sun.enterprise.web.connector.grizzly.Task; -import com.sun.enterprise.web.connector.grizzly.ReadTask; -import com.sun.enterprise.web.connector.grizzly.HtmlHelper; -import com.sun.enterprise.web.connector.grizzly.AsyncReadTask; -import com.sun.enterprise.web.connector.grizzly.WorkerThread; - -import com.sun.jbi.internationalization.Messages; - -import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; -import com.sun.jbi.httpsoapbc.Endpoint; -import com.sun.jbi.httpsoapbc.RequestThrottlingController; - -/** - * - * Throttle pipeline for throttling requests - */ -public class LinkedListThrottlePipeline extends LinkedListPipeline implements RequestThrottlingController { - private static final Messages mMessages = - Messages.getMessages(LinkedListThrottlePipeline.class); - private static final Logger mLogger = - Messages.getLogger(LinkedListThrottlePipeline.class); - - private SelectorThread st; - - private final static String QUERY_STRING="?"; - private final static String PATH_STRING="/"; - - private HttpSoapBindingLifeCycle lifeCycle; - - private ExecutorService resumeThreadPool; - - protected ConcurrentHashMap> suspendedKeys = - new ConcurrentHashMap>(); - - protected ConcurrentLinkedQueue bbPool = - new ConcurrentLinkedQueue(); - - class SelectionKeyByteBuffer { - private SelectionKey sk; - private ByteBuffer bb; - - SelectionKeyByteBuffer (SelectionKey sk, ByteBuffer bb) { - this.sk = sk; - this.bb = bb; - } - - SelectionKey getSelectionKey() { return sk; } - ByteBuffer getByteBuffer() {return bb; } - } - - class ResumerTask implements Runnable { - LinkedListThrottlePipeline pipeline; - Endpoint endpoint; - ResumerTask (LinkedListThrottlePipeline pipeline, Endpoint endpoint) { - this.pipeline = pipeline; - this.endpoint = endpoint; - } - - public void run() { - synchronized (pipeline) { - String uri = endpoint.getUrlContext(); - int port = endpoint.getUrlPort(); - int resumeCount = endpoint.getMaxConcurrencyLimit() - endpoint.getPendingExchangeReplies(); - String key = uri+":"+port; - ConcurrentLinkedQueue linkQ = pipeline.suspendedKeys.get(key); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "Resume SelectionKey(s) triggered; URI '"+uri+ - "', port '"+port+ - "'; resumeCount= "+resumeCount+ - ", suspended size="+linkQ.size()); - } - if (linkQ != null && linkQ.size() > 0) { - for (int i=0; i < resumeCount; i++){ - // only resume if there are still suspended ones.. - if (linkQ.size()>0) { - SelectionKeyByteBuffer skbb = linkQ.poll(); - try { - SelectionKey sk = skbb.getSelectionKey(); - ByteBuffer bb = skbb.getByteBuffer(); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "Request URI '" + uri + "', port '" + port + "'; got cached Selectionkey [" + sk + "] and cached ByteBuffer [" + bb + "]"); - } - AsyncReadTask task = (AsyncReadTask)st.getReadTask(sk); - task.getByteBuffer().put(bb); - task.setBytesAvailable(true); - endpoint.incrementPendingExchangeReplies(); - pipeline.internalAddTask(task); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "Request URI '" + uri + "', port '" + port + "'; RESUMED Selectionkey [" + task.getSelectionKey() + "], ByteBuffer [" + task.getByteBuffer() + "] on Task [" + task + "]"); - } - returnReadByteBuffer(bb); - } catch (Throwable t) { - String error = mMessages.getString("HTTPBC-E00670.Exception_during_resume_suspended_selectionkey", - new Object [] {uri, new Integer(port), skbb.getSelectionKey(), t.getLocalizedMessage()}); - mLogger.log(Level.WARNING, error, t); - } - } - } - - if (linkQ.size() == 0) { - pipeline.suspendedKeys.remove(key); - } - } - } - } - } - - public LinkedListThrottlePipeline () { - super(); - } - - public synchronized void addTask(Task task) { - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log (Level.FINER, "addTask called with Task [" + task + "]"); - } - - if (task.getType() == Task.READ_TASK) { - - String requestURI = null; - boolean isWsdlQuery = false; - ByteBuffer bb = getReadByteBuffer(); - - try { - PeekBuffer pb = peekRequestURI((ReadTask)task, bb); - requestURI = pb.getToken(); - isWsdlQuery = pb.getIsWsdlQuery(); - } catch (Throwable t) { - AsyncReadTask asyncRT = (AsyncReadTask)task; - asyncRT.terminate(false); - returnReadByteBuffer(bb); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log (Level.FINER, "Client has closed the socket..."); - } - return; - } - - if (requestURI != null) { - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log (Level.FINER, "Request URI is '" + requestURI + "'"); - } - int port = task.getSelectorThread().getPort(); - Endpoint endpoint = this.lifeCycle.getEndpointBeanForContext(requestURI, port); - - // Only associate throttler controler to endpoint if endpoint is configured for throttling - if (endpoint != null && endpoint.getMaxConcurrencyLimit() > 0) { - int maxConcurrencyLimit = endpoint.getMaxConcurrencyLimit(); - // associate this controller with endpoint first - endpoint.setInboundRequestThrottlingController(this); - - int pendingExchangeReplies = endpoint.getPendingExchangeReplies(); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "Found Endpoint for request URI '" + requestURI + "' and port '" + port + "'; maxConcurrencyLimit="+maxConcurrencyLimit+", pendingExchangeReplies="+pendingExchangeReplies); - } - - String key = requestURI+":"+port; - // suspend selection key if maxed out concurrent messages - if (maxConcurrencyLimit != -1 && (pendingExchangeReplies >= maxConcurrencyLimit) && !isWsdlQuery) { - // Disable keep-alive - task.getSelectionKey().attach(null); - st = task.getSelectorThread(); - if (!suspendedKeys.containsKey(key)) { - suspendedKeys.put(key, new ConcurrentLinkedQueue()); - } - ConcurrentLinkedQueue linkQ = suspendedKeys.get(key); - SelectionKey sk = task.getSelectionKey(); - SelectionKeyByteBuffer skbb = new SelectionKeyByteBuffer(sk, bb); - linkQ.offer(skbb); // add the byte buffer and selection key to our internal cache - task.recycle(); // tells Grizzly to reuse the task for the next request - st.returnTask(task); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "Request URI '" + requestURI + "', port '" + port + "'; SUSPENDED Selectionkey [" + sk + "], ByteBuffer [" + bb + "] from Task [" + task + "]; suspended size="+linkQ.size()); - } - return; - } - } - - // Proceed with the read task - copying the contents of the "temp" ByteBuffer to - // the one in ReadTask. - ((ReadTask)task).getByteBuffer().put(bb); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "ReadTask ByteBuffer [" + ((ReadTask)task).getByteBuffer()+ "]"); - } - ((ReadTask)task).setBytesAvailable(true); // tells Grizzly not to start reading from the stream buffer until the temp buffer is read - - if (endpoint != null && !isWsdlQuery) { - endpoint.incrementPendingExchangeReplies(); - } - } - - returnReadByteBuffer(bb); - } - super.addTask(task); // calls the super to resume normal processing of the LinkedListPipeline - } - - public void resumeSuspendedRequests(Endpoint endpoint) { - if (resumeThreadPool == null) { - resumeThreadPool = Executors.newCachedThreadPool(); - } - resumeThreadPool.submit(new ResumerTask(this,endpoint)); - } - - public synchronized void cleanup() { - if (resumeThreadPool != null) { - resumeThreadPool.shutdown(); - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "shutdown resume task thread pool"); - } - } - - // Cancel any suspended tasks - if (suspendedKeys != null && suspendedKeys.size() > 0) { - for (Iterator iter1=suspendedKeys.keySet().iterator(); iter1.hasNext();) { - String uriPort = iter1.next(); - String uri = uriPort.substring(0,uriPort.indexOf(":")); - String port = uriPort.substring(uriPort.indexOf(":")+1, uriPort.length()); - ConcurrentLinkedQueue linkQ = suspendedKeys.remove(uri); - if (linkQ != null && linkQ.size() > 0) { - for (Iterator iter2=linkQ.iterator();iter2.hasNext();) { - SelectionKeyByteBuffer ssbb = linkQ.poll(); - SelectionKey selkey = ssbb.getSelectionKey(); - try { - Task task = st.getReadTask(selkey); - task.cancelTask("No resources available.", HtmlHelper.OK); - } catch (Throwable t) { - String error = mMessages.getString("HTTPBC-E00671.Exception_during_cancel_suspended_selectionkey", - new Object [] {uri, port, selkey, t.getLocalizedMessage()}); - mLogger.log(Level.WARNING, error, t); - } - } - } - if (mLogger.isLoggable(Level.FINER)) { - mLogger.log(Level.FINER, "cancelled all suspended selection key read tasks for URI '" + uri + "' on port '" + port + "'"); - } - } - } - } - - public void setHttpSoapBindingLifeCycle (HttpSoapBindingLifeCycle lifeCycle) { - this.lifeCycle = lifeCycle; - } - - /*** - * Get the request URI from the ByteBuffer - */ - protected PeekBuffer peekRequestURI(ReadTask readTask, ByteBuffer byteBuffer) throws Exception { - SocketChannel socketChannel = - (SocketChannel)readTask.getSelectionKey().channel(); - String token = null; - boolean isWsdlQuery = false; - - if (socketChannel.isOpen()) { - socketChannel.read(byteBuffer); - int limit = byteBuffer.limit(); - int position = byteBuffer.position(); - - if (parse (byteBuffer)) { - byte[] chars = new byte[byteBuffer.limit() - byteBuffer.position()]; - - byteBuffer.get(chars); - - token = new String(chars); - - String normalizedToken = token.toLowerCase(); - if (normalizedToken.indexOf ("?wsdl") != -1) { - isWsdlQuery = true; - } - - int index = token.indexOf(0x20); - if ( index != -1){ - token = token.substring(0,index); - } - - // Remove query string. - index = token.indexOf(QUERY_STRING); - if ( index != -1){ - token = token.substring(0,index); - } - - boolean slash = token.endsWith(PATH_STRING); - if ( slash ){ - token = token.substring(0,token.length() -1); - } - } - - byteBuffer.limit(limit); - byteBuffer.position(position); - byteBuffer.flip(); - } - - return new PeekBuffer(token, isWsdlQuery); - } - - protected ByteBuffer getReadByteBuffer() { - int size = 1028; // keep it small - ByteBuffer bb = bbPool.poll(); - if (bb == null) { - bb = ByteBuffer.allocate(size); - } - return bb; - } - - protected void returnReadByteBuffer(ByteBuffer bb) { - bb.clear(); - bbPool.offer(bb); - } - - protected void internalAddTask (Task task) { - super.addTask(task); - } - - /** - * Parse the request line in search of the context-root bytes of the HTTP - * Method. The ByteBuffer position and limit refer - * respectively to the start and the end of the context root. - * @param byteBuffer The byteBuffer containing the requests bytes - * @return true if the context-root has been found. - */ - public boolean parse(ByteBuffer byteBuffer) { - boolean isFound = false; - - int curPosition = byteBuffer.position(); - int curLimit = byteBuffer.limit(); - - // Rule a - If nothing, return to the Selector. - if (byteBuffer.position() == 0) - return false; - - byteBuffer.position(0); - byteBuffer.limit(curPosition); - int state =0; - int start =0; - int end = 0; - - try { - byte c; - - // Rule b - try to determine the context-root - while(byteBuffer.hasRemaining()) { - c = byteBuffer.get(); - - // State Machine - // 0 - Search for the first SPACE ' ' between the method and the - // the request URI - // 1 - Search for the second SPACE ' ' between the request URI - // and the method - switch(state) { - case 0: // Search for first ' ' - if (c == 0x20){ - state = 1; - start = byteBuffer.position(); - //start = byteBuffer.position() + 1; - } - break; - case 1: // Search for next ' ' - if (c == 0x20){ - end = byteBuffer.position() - 1; - return true; - } - break; - default: - throw new IllegalArgumentException("Unexpected state"); - } - } - return false; - } catch (BufferUnderflowException bue) { - return false; - } finally { - if ( end > 0 ){ - byteBuffer.position(start); - byteBuffer.limit(end); - } else { - byteBuffer.limit(curLimit); - byteBuffer.position(curPosition); - } - } - } - - class PeekBuffer { - private boolean isWsdlQuery = false; - private String token; - - PeekBuffer(String token, boolean isWsdlQuery) { - this.token = token; - this.isWsdlQuery = isWsdlQuery; - } - - String getToken() { - return this.token; - } - - boolean getIsWsdlQuery() { - return this.isWsdlQuery; - } - } -} diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/AbstractEndpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/AbstractEndpoint.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/AbstractEndpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/AbstractEndpoint.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/DOMDataSourceImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/DOMDataSourceImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/DOMDataSourceImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/DOMDataSourceImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Denormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Denormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Denormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Denormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/DispatchPool.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/DispatchPool.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/DispatchPool.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/DispatchPool.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Endpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Endpoint.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Endpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Endpoint.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointChangeListener.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointChangeListener.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointChangeListener.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointChangeListener.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointChangeSubject.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointChangeSubject.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointChangeSubject.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointChangeSubject.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointFactory.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointFactory.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/EndpointFactory.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/EndpointFactory.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Extension.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Extension.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Extension.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Extension.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ExtensionMBean.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ExtensionMBean.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ExtensionMBean.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ExtensionMBean.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/FaultException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/FaultException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/FaultException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/FaultException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpClientConnectionProperties.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpClientConnectionProperties.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpClientConnectionProperties.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpClientConnectionProperties.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpEndpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpEndpoint.java similarity index 98% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpEndpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpEndpoint.java index 1c2ac0b10..469ae07ff 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpEndpoint.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpEndpoint.java @@ -68,7 +68,6 @@ import javax.wsdl.Output; import javax.wsdl.Part; import javax.wsdl.Port; import javax.xml.namespace.QName; -import javax.xml.ws.BindingProvider; import javax.xml.ws.Dispatch; import javax.xml.ws.Service; import javax.xml.ws.Service.Mode; @@ -455,15 +454,11 @@ public class HttpEndpoint extends AbstractEndpoint { public Dispatch createDispatch(String url, Class type){ Dispatch d = dispatchCache.get(type); - if (d == null) { mService.addPort(mPortName, javax.xml.ws.http.HTTPBinding.HTTP_BINDING, url); d = mService.createDispatch(mPortName, type, Mode.MESSAGE); dispatchCache.put(type, d); } - - d.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url); - d.getRequestContext().put(javax.xml.ws.http.HTTPBinding.HTTP_BINDING, url); return d; } } diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoap12Endpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoap12Endpoint.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoap12Endpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoap12Endpoint.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingComponent.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingComponent.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingComponent.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingComponent.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java similarity index 99% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java index 2d175b82e..ac9c6b64c 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapBindingLifeCycle.java @@ -113,6 +113,11 @@ import org.xml.sax.SAXException; import com.sun.jbi.httpsoapbc.async.AsyncResponseDispatcher; import com.sun.jbi.httpsoapbc.DispatchPool; +import com.sun.jbi.httpsoapbc.embedded.EndpointsManagerHttpHandler; +import com.sun.jbi.httpsoapbc.embedded.GrizzlyEmbeddedWebContainer; +import java.util.HashSet; +import org.glassfish.grizzly.http.server.HttpServer; +import org.glassfish.grizzly.http.server.NetworkListener; /** @@ -229,10 +234,8 @@ public class HttpSoapBindingLifeCycle mLogger = Messages.getLogger(getClass()); mJAXWSEndpointFactory = new JAXWSEndpointFactory(); - mEmbeddedController = new EmbeddedServerController(this); - - + MBeanServer mbServer = jbiContext.getMBeanServer(); MBeanNames mbnHndl = jbiContext.getMBeanNames(); mProcessingExtensionMBeanName = mbnHndl.createCustomComponentMBeanName(PROCESSING_EXTENSION); @@ -769,6 +772,11 @@ public class HttpSoapBindingLifeCycle } } + inboundThreadPool.shutdownNow(); + if (endpoint.getWSEndpoint() != null) { + endpoint.getWSEndpoint().dispose(); + } + //de-register the external endpoint ServiceEndpoint sep = endpoint.getEndpointReference(); if (sep != null) { @@ -1079,6 +1087,10 @@ public class HttpSoapBindingLifeCycle return mServiceUnitManager.queryResource(context, endpoint); } + public Set getRegisteredEndpoints() { + return new HashSet(mEndpoints.values()); + } + private void logComponentInfo() { StringBuffer msgBuf = new StringBuffer( mMessages.getString("HTTPBC-R00101.Binding_started_detailed", @@ -1353,4 +1365,4 @@ public class HttpSoapBindingLifeCycle return --refCount; } -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapComponentContext.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapComponentContext.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapComponentContext.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapComponentContext.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapDynamicEndpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapDynamicEndpoint.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapDynamicEndpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapDynamicEndpoint.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapEndpoint.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapEndpoint.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapEndpoint.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapEndpoint.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapPerformanceMeasurement.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapPerformanceMeasurement.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSoapPerformanceMeasurement.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSoapPerformanceMeasurement.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSpiContainerImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSpiContainerImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/HttpSpiContainerImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/HttpSpiContainerImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/InboundMessageProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/InboundMessageProcessor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/InboundMessageProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/InboundMessageProcessor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/MessageExchangeSupport.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/MessageExchangeSupport.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/MessageExchangeSupport.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/MessageExchangeSupport.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/NodeListImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/NodeListImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/NodeListImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/NodeListImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/NormalizedMessageProperties.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/NormalizedMessageProperties.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/NormalizedMessageProperties.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/NormalizedMessageProperties.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Normalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Normalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Normalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Normalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationMetaData.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationMetaData.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationMetaData.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationMetaData.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolveException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolveException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolveException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolveException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolver.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolver.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolver.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolver.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolver2.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolver2.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OperationResolver2.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OperationResolver2.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundAction.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundAction.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundAction.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundAction.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundMessageProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundMessageProcessor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundMessageProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundMessageProcessor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundMessageProcessorPool.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundMessageProcessorPool.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundMessageProcessorPool.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundMessageProcessorPool.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundReceiver.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundReceiver.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/OutboundReceiver.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/OutboundReceiver.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/RedeliveryListener.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/RedeliveryListener.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/RedeliveryListener.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/RedeliveryListener.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ReplyListener.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ReplyListener.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ReplyListener.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ReplyListener.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/RequestThrottlingController.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/RequestThrottlingController.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/RequestThrottlingController.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/RequestThrottlingController.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ResourceLocator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ResourceLocator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ResourceLocator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ResourceLocator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ServiceUnit.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ServiceUnit.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ServiceUnit.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ServiceUnit.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ServiceUnitImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ServiceUnitImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ServiceUnitImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ServiceUnitImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap11Denormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap11Denormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap11Denormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap11Denormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap11Normalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap11Normalizer.java similarity index 97% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap11Normalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap11Normalizer.java index 5a1f90676..f0b3515da 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap11Normalizer.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap11Normalizer.java @@ -80,6 +80,8 @@ import com.sun.jbi.nms.wsdl11wrapper.HelperFactory; import com.sun.jbi.nms.wsdl11wrapper.WrapperBuilder; import com.sun.jbi.nms.wsdl11wrapper.WrapperProcessingException; import com.sun.jbi.nms.wsdl11wrapper.util.WrapperUtil; +import java.util.HashSet; +import java.util.Set; /** * @@ -369,7 +371,9 @@ public class Soap11Normalizer implements SoapNormalizer { mimeParts = metaData.getOutputSOAPMimeContents(); } - //MimeHeaders mimeHeaders = soapMessage.getMimeHeaders(); + Set resolvedAttachments = new HashSet(); + + // Process MIME attachments Iterator mimeContents = mimeParts.values().iterator(); while (mimeContents.hasNext()) { MIMEContent mimeContent = (MIMEContent) mimeContents.next(); @@ -389,9 +393,27 @@ public class Soap11Normalizer implements SoapNormalizer { // rely on the WrapperBuilder API to create the cid per the URI scheme String cid = wrapperBuilder.addPartWithAttachment(mimePart); normalMsg.addAttachment(cid, dataHandler); + + resolvedAttachments.add(contentId); } } } + + // Process other attachments : MTOM, SWAREF + for (Iterator attachments = soapMessage.getAttachments(); attachments.hasNext();) { + AttachmentPart attachment = (AttachmentPart) attachments.next(); + String contentId = attachment.getContentId(); + + if (! resolvedAttachments.contains(contentId)) { + DataHandler dataHandler = attachment.getDataHandler(); + // Be careful about + if (contentId.indexOf('<') == 0 && (contentId.indexOf('>') == contentId.length() - 1)) { + contentId = contentId.substring(1, contentId.length() - 1); + } + + normalMsg.addAttachment(contentId, dataHandler); + } + } } protected void processSoapBody(WrapperBuilder wrapperBuilder, SOAPBody soapElement, OperationMetaData meta, boolean inMsg) @@ -956,4 +978,4 @@ public class Soap11Normalizer implements SoapNormalizer { } } } -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap12Denormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap12Denormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap12Denormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap12Denormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap12Normalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap12Normalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/Soap12Normalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/Soap12Normalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapDenormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapDenormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapDenormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapDenormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapDenormalizerImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapDenormalizerImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapDenormalizerImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapDenormalizerImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapNormalizerImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapNormalizerImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SoapNormalizerImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SoapNormalizerImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/StringDataSourceImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/StringDataSourceImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/StringDataSourceImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/StringDataSourceImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SynchronousReplySupport.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SynchronousReplySupport.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/SynchronousReplySupport.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/SynchronousReplySupport.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ThreadPoolQueue.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ThreadPoolQueue.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/ThreadPoolQueue.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/ThreadPoolQueue.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java similarity index 97% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java index 78492d525..7f993c676 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/WsdlQueryHelper.java @@ -4,6 +4,12 @@ package com.sun.jbi.httpsoapbc; import com.ibm.wsdl.Constants; +import com.ibm.wsdl.extensions.schema.SchemaConstants; +import com.ibm.wsdl.extensions.soap.SOAPConstants; +import com.ibm.wsdl.extensions.soap12.SOAP12Constants; +import com.ibm.wsdl.util.xml.DOMUtils; +import com.ibm.wsdl.util.xml.QNameUtils; +import com.sun.jbi.internationalization.Messages; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.net.InetAddress; @@ -15,7 +21,6 @@ import java.util.List; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; - import javax.wsdl.Definition; import javax.wsdl.Import; import javax.wsdl.Port; @@ -26,9 +31,6 @@ import javax.wsdl.extensions.schema.Schema; import javax.wsdl.extensions.schema.SchemaReference; import javax.wsdl.extensions.soap.SOAPAddress; import javax.wsdl.extensions.soap12.SOAP12Address; -import javax.wsdl.factory.WSDLFactory; -import javax.wsdl.xml.WSDLReader; -import javax.wsdl.xml.WSDLWriter; import javax.xml.namespace.QName; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; @@ -37,23 +39,13 @@ import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; - -import org.apache.coyote.tomcat5.CoyoteRequest; -import org.w3c.dom.Attr; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.xml.sax.InputSource; - -import com.ibm.wsdl.extensions.schema.SchemaConstants; -import com.ibm.wsdl.extensions.soap.SOAPConstants; -import com.ibm.wsdl.extensions.soap12.SOAP12Constants; -import com.ibm.wsdl.factory.WSDLFactoryImpl; -import com.ibm.wsdl.util.xml.DOMUtils; -import com.ibm.wsdl.util.xml.QNameUtils; -import com.sun.jbi.internationalization.Messages; import javax.xml.xpath.XPath; import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; +import org.glassfish.grizzly.http.server.Request; +import org.w3c.dom.Attr; +import org.w3c.dom.Document; +import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; @@ -75,19 +67,16 @@ public class WsdlQueryHelper { * this is the port on which http-bc is running */ String httpbcPort; - private CoyoteRequest request; + private final Request request; private static Messages mMessages = Messages.getMessages(WsdlQueryHelper.class); private static Logger mLog = Messages.getLogger(WsdlQueryHelper.class); /** * */ - public WsdlQueryHelper(CoyoteRequest request, int rPort, ByteBuffer def, boolean wsdl) { - + public WsdlQueryHelper(Request request, int rPort, ByteBuffer def, boolean wsdl) { this.isWsdl = wsdl; - this.request = request; - this.byteBuffer = def; lbHost = request.getServerName(); @@ -97,7 +86,7 @@ public class WsdlQueryHelper { try { - localhostFQDN = InetAddress.getLocalHost().getCanonicalHostName().toString(); + localhostFQDN = InetAddress.getLocalHost().getCanonicalHostName(); /* if (isWsdl) { @@ -127,7 +116,7 @@ public class WsdlQueryHelper { } - public WsdlQueryHelper(CoyoteRequest request, int rPort, ByteArrayOutputStream baos, boolean wsdl) { + public WsdlQueryHelper(Request request, int rPort, ByteArrayOutputStream baos, boolean wsdl) { this.isWsdl = wsdl; @@ -141,7 +130,7 @@ public class WsdlQueryHelper { httpbcPort = Integer.toString(rPort); try { - localhostFQDN = InetAddress.getLocalHost().getCanonicalHostName().toString(); + localhostFQDN = InetAddress.getLocalHost().getCanonicalHostName(); DocumentBuilderFactory builderF = DocumentBuilderFactory.newInstance(); @@ -179,10 +168,9 @@ public class WsdlQueryHelper { * check if the request is a direct request, return the byte-buffer if * true */ - /* if (isDirectRequest()) { return byteBuffer; - }*/ + } if (isWsdl) { try { @@ -498,7 +486,7 @@ public class WsdlQueryHelper { } return result; } - + private void updateSecurityPolicies(Element el) throws Exception { XPath xPath = XPathFactory.newInstance().newXPath(); String policiesExpression = "/*[local-name()='definitions']/*[local-name()='Policy']/*[local-name()='ExactlyOne']/*[local-name()='All']/*"; @@ -631,4 +619,4 @@ public class WsdlQueryHelper { private String getlocalhostFQDN() { return localhostFQDN; } -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlDenormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlDenormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlDenormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlDenormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlGetNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlGetNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlGetNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlGetNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlPostNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlPostNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/XmlPostNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/XmlPostNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncRequestContext.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncRequestContext.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncRequestContext.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncRequestContext.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseDispatcher.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseDispatcher.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseDispatcher.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseDispatcher.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseProcessor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/async/AsyncResponseProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/async/AsyncResponseProcessor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/HttpSoapBindingBootstrap.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/HttpSoapBindingBootstrap.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/HttpSoapBindingBootstrap.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/HttpSoapBindingBootstrap.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/InstallerExt.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/InstallerExt.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/InstallerExt.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/InstallerExt.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/InstallerExtMBean.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/InstallerExtMBean.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/InstallerExtMBean.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/bootstrap/InstallerExtMBean.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/RuntimeConfiguration.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/configuration/RuntimeConfiguration.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/RuntimeConfiguration.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/configuration/RuntimeConfiguration.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/RuntimeConfigurationMBean.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/configuration/RuntimeConfigurationMBean.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/RuntimeConfigurationMBean.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/configuration/RuntimeConfigurationMBean.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapConsumes.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapConsumes.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapConsumes.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapConsumes.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapEndpointIdentifier.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapEndpointIdentifier.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapEndpointIdentifier.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapEndpointIdentifier.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapProvides.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapProvides.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapProvides.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapProvides.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapSUDescriptorParser.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapSUDescriptorParser.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/descriptors/HttpSoapSUDescriptorParser.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/descriptors/HttpSoapSUDescriptorParser.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java similarity index 53% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java index 7d27971b6..a9d089210 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EmbeddedServerController.java @@ -27,51 +27,59 @@ * * END_HEADER - DO NOT EDIT */ - package com.sun.jbi.httpsoapbc.embedded; -import com.sun.enterprise.web.connector.grizzly.SecureSelector; -import com.sun.jbi.internationalization.Messages; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.logging.Logger; -import java.util.logging.Level; -import java.util.Map; - -import javax.jbi.component.ComponentContext; - -import org.apache.catalina.Connector; -import org.apache.catalina.net.ServerSocketFactory; -import org.apache.coyote.Adapter; -import org.apache.coyote.tomcat5.CoyoteServerSocketFactory; - import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; +import com.sun.jbi.internationalization.Messages; +import java.io.IOException; +import java.util.Collection; +import java.util.HashMap; +import java.util.Map; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.glassfish.grizzly.http.server.HttpHandler; +import org.glassfish.grizzly.http.server.HttpServer; +import org.glassfish.grizzly.http.server.NetworkListener; +import org.glassfish.grizzly.ssl.SSLContextConfigurator; +import org.glassfish.grizzly.ssl.SSLEngineConfigurator; /** - * Control the embedded http server + * Control the embedded HTTP server * */ public class EmbeddedServerController { private static final Messages mMessages = - Messages.getMessages(EmbeddedServerController.class); + Messages.getMessages(EmbeddedServerController.class); private static final Logger mLogger = - Messages.getLogger(EmbeddedServerController.class); - - private Map mStartedServers = new HashMap(); - private HttpSoapBindingLifeCycle mLifeCycle; - - /** Creates a new instance of EmbeddedServerController */ - public EmbeddedServerController(HttpSoapBindingLifeCycle httpBCLifeCycle) { - this.mLifeCycle = httpBCLifeCycle; + Messages.getLogger(EmbeddedServerController.class); + private final Map mStartedServers = new HashMap(); + + /** + * Creates a new instance of EmbeddedServerController + */ + public EmbeddedServerController(final HttpSoapBindingLifeCycle lifecycle) { + // this.initialize(lifecycle); } + private void initialize(HttpSoapBindingLifeCycle lifecycle) { + HttpServer server = new HttpServer(); + server.addListener(GrizzlyEmbeddedWebContainer.createNetworkListener( + null, 8080, "http")); + server.getServerConfiguration().addHttpHandler(new EndpointsManagerHttpHandler(lifecycle)); + try { + server.start(); + mStartedServers.put(8080, server); + } catch (IOException ex) { + Logger.getLogger(EmbeddedServerController.class.getName()).log(Level.SEVERE, "Fail to start HTTP container", ex); + } + } + /** * Start an embedded server if one isn't running yet with the given port */ - public void startServer(int port, String protocol, boolean clientAuthEnabled) throws Throwable { - if (!mStartedServers.containsKey(new Integer(port))) { + public void startServer(int port, String protocol, boolean clientAuthEnabled) throws Throwable { + if (!mStartedServers.containsKey(port)) { try { // Setting 'address' to NULL will cause Tomcat to pass a @@ -80,7 +88,7 @@ public class EmbeddedServerController { // connections on any/all local addresses. String address = null; if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Attempting to create Grizzly connector at port " + new Integer(port)); + mLogger.log(Level.FINE, "Attempting to create Grizzly connector at port {0}", port); } // TODO: use new "facade" usage pattern to instantiate / configure grizzly, i.e. @@ -89,82 +97,73 @@ public class EmbeddedServerController { //> selectorThread.setAdapter(new PlugNowAdapter()); //> selectorThread.initEndpoint(); //> selectorThread.startEndpoint(); - - Connector connector = new GrizzlyEmbeddedWebContainer().createConnector(address, port, protocol, mLifeCycle); - - // TODO: Should we make this setting configurable? - //connector.setURIEncoding("UTF-8"); - - BCCoyoteConnector peCon = (BCCoyoteConnector) connector; - org.apache.coyote.Adapter adapter = new JAXWSGrizzlyRequestProcessor(peCon); - peCon.setAdapter(adapter); + NetworkListener listener = GrizzlyEmbeddedWebContainer.createNetworkListener(address, port, protocol); // Set protocol security setting to same as connector - boolean secure = connector.getSecure(); - // we use asynchronous extensions and don't want to block - boolean blocking = false; - - com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol protocolHandler = - new com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol(secure, blocking, null); + boolean secure = listener.isSecure(); + if (secure) { + // Grizzly ssl configuration + SSLContextConfigurator sslContext = new SSLContextConfigurator(); + // HTTP BC only support JKS keystore format right now. - protocolHandler.setAttribute("keystoreType","JKS"); - protocolHandler.setAttribute("truststoreType","JKS"); + /* + protocolHandler.setAttribute("keystoreType", "JKS"); + protocolHandler.setAttribute("truststoreType", "JKS"); + */ + + // set up security context if (System.getProperty("javax.net.ssl.keyStore") == null) { // fail the start right here throw new Exception(mMessages.getString("HTTPBC-E00673.keystore_config_not_available", port)); } - protocolHandler.setAttribute("keystore", System.getProperty("javax.net.ssl.keyStore")); + sslContext.setKeyStoreFile(System.getProperty("javax.net.ssl.keyStore")); + if (System.getProperty("javax.net.ssl.trustStore") == null) { // fail the start right here throw new Exception(mMessages.getString("HTTPBC-E00674.trustore_config_not_available", port)); } - protocolHandler.setAttribute("truststore", System.getProperty("javax.net.ssl.trustStore")); + sslContext.setTrustStoreFile(System.getProperty("javax.net.ssl.trustStore")); + if (System.getProperty("javax.net.ssl.keyStorePassword") == null) { // fail the start right here throw new Exception(mMessages.getString("HTTPBC-E00675.keypass_config_not_available", port)); } - protocolHandler.setAttribute("keypass", System.getProperty("javax.net.ssl.keyStorePassword")); - + sslContext.setKeyStorePass(System.getProperty("javax.net.ssl.keyStorePassword")); + // enabling mutual authentication based on the flag - protocolHandler.setAttribute("clientauth", (clientAuthEnabled)? "true" : "false"); + SSLEngineConfigurator sslConfig = new SSLEngineConfigurator(sslContext, false, clientAuthEnabled, clientAuthEnabled); + listener.setSSLEngineConfig(sslConfig); } - peCon.setProtocolHandler(protocolHandler); - com.sun.enterprise.web.connector.grizzly.SelectorThread selThread = protocolHandler.selectorThread(); - com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncHandler asyncHandler = - new com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncHandler(); - selThread.setAsyncHandler(asyncHandler); - selThread.setEnableAsyncExecution(true); - com.sun.enterprise.web.connector.grizzly.AsyncFilter filter = - new com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter(); + listener.setChunkingEnabled(false); + + HttpServer server = new HttpServer(); + server.addListener(listener); + + HttpHandler handler = new JAXWSGrizzlyRequestProcessor(listener); + server.getServerConfiguration().addHttpHandler(handler); + + /* + com.sun.enterprise.web.connector.grizzly.AsyncFilter filter = + new com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter(); asyncHandler.addAsyncFilter(filter); - + */ + // use request throttling enabled pipeline + /* selThread.setClassLoader(this.getClass().getClassLoader()); - selThread.setPipelineClassName(com.sun.jbi.httpsoapbc.embedded.LinkedListThrottlePipeline.class.getName()); + selThread.setPipelineClassName(com.sun.jbi.httpsoapbc.embedded.LinkedListThrottlePipeline.class.getName()); + */ - // As of 9.1 the max read worker threads setting is optional - in 9.0 it was required when using asynchronous extensions - //peCon.setMaxReadWorkerThreads(threadSize); - //peCon.setMinProcessors(threadSize); - //peCon.setMaxProcessors(threadSize); - - // Configure time-outs - //peCon.setKeepAliveTimeoutInSeconds(30); // Beware: it seems setting this to no time-out Grizzly has an issue with fully closing connections - //peCon.setConnectionTimeout(-1); - //peCon.setMaxKeepAliveRequests(-1); - //peCon.setProcessorWorkerThreadsTimeout(-1); // The first read timeout. Beware: it seems setting this to no time-out Grizzly has an issue with fully closing connections - peCon.setChunkingDisabled(true); - peCon.setProperty("reuseAddress",false); - - peCon.start(); - mStartedServers.put(new Integer(port), connector); - + server.start(); + mStartedServers.put(port, server); + if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "HTTP connector created at port " + new Integer(port)); + mLogger.log(Level.FINE, "HTTP connector created at port {0}", port); } - + } catch (RuntimeException ex) { mLogger.log(Level.SEVERE, "HTTPBC-E00656.Exception_during_grizzly_start", ex); throw ex; @@ -177,10 +176,11 @@ public class EmbeddedServerController { // we should throw an exception to fail the application deployment. Otherwise, // we would either get a runtime exception when servicing the request, or the transport // layer processing would hang, as that seems to be the noted behavior - Connector connector = (Connector) mStartedServers.get(new Integer(port)); - String currentProtocol = connector.getScheme(); + HttpServer server = (HttpServer) mStartedServers.get(port); + String currentProtocol = server.getListener(GrizzlyEmbeddedWebContainer.LISTENER_NAME).getScheme(); + if (!currentProtocol.equalsIgnoreCase(protocol)) { - throw new Exception(mMessages.getString("HTTPBC-E00672.Same_port_no_matching_protocol", new Object[] {new Integer(port), currentProtocol, protocol})); + throw new Exception(mMessages.getString("HTTPBC-E00672.Same_port_no_matching_protocol", new Object[]{new Integer(port), currentProtocol, protocol})); } } } @@ -189,44 +189,47 @@ public class EmbeddedServerController { * Stop all embedded servers */ public void stopAll() { - Iterator iter = mStartedServers.values().iterator(); - while (iter.hasNext()) { - BCCoyoteConnector connector = (BCCoyoteConnector) iter.next(); + Collection servers = mStartedServers.values(); + for (HttpServer server : servers) { try { - connector.stop(); + server.shutdownNow(); + if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Stopped Grizzly connector for port " + new Integer(connector.getPort())); + mLogger.log(Level.FINE, "Stopped Grizzly connector for port {0}", + server.getListener(GrizzlyEmbeddedWebContainer.LISTENER_NAME).getPort()); } } catch (Exception ex) { if (mLogger.isLoggable(Level.WARNING)) { String text = mMessages.getString("HTTPBC-W00655.Exception_during_grizzly_stop", - new Object[] { new Integer(connector.getPort()), ex.getLocalizedMessage() } ); - mLogger.log(Level.WARNING, text, ex); - } - } - } - mStartedServers.clear(); - } - - /** - * Stop an embedded server if one is running on the given port - */ - public void stopServer(int port) { - Integer aPort = Integer.valueOf(port); - BCCoyoteConnector connector = (BCCoyoteConnector) mStartedServers.remove(aPort); - if (connector != null) { - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Stopping embedded HTTP server at port " + aPort); - } - try { - connector.stop(); - } catch (Exception ex) { - if (mLogger.isLoggable(Level.WARNING)) { - String text = mMessages.getString("HTTPBC-W00655.Exception_during_grizzly_stop", - new Object[] { aPort, ex.getLocalizedMessage() } ); + new Object[]{server.getListener(GrizzlyEmbeddedWebContainer.LISTENER_NAME).getPort(), + ex.getLocalizedMessage()}); mLogger.log(Level.WARNING, text, ex); } } } - } -} + + mStartedServers.clear(); + } + + /** + * Stop an embedded server if one is running on the given port + */ + public void stopServer(int port) { + HttpServer server = (HttpServer) mStartedServers.remove(port); + if (server != null) { + if (mLogger.isLoggable(Level.FINE)) { + mLogger.log(Level.FINE, "Stopping embedded HTTP server at port {0}", port); + } + + try { + server.shutdownNow(); + } catch (Exception ex) { + if (mLogger.isLoggable(Level.WARNING)) { + String text = mMessages.getString("HTTPBC-W00655.Exception_during_grizzly_stop", + new Object[]{port, ex.getLocalizedMessage()}); + mLogger.log(Level.WARNING, text, ex); + } + } + } + } +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EndpointsManagerHttpHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EndpointsManagerHttpHandler.java new file mode 100644 index 000000000..5169b7a07 --- /dev/null +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/EndpointsManagerHttpHandler.java @@ -0,0 +1,37 @@ +package com.sun.jbi.httpsoapbc.embedded; + +import com.sun.jbi.httpsoapbc.Endpoint; +import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; +import java.util.Set; +import javax.xml.namespace.QName; +import org.glassfish.grizzly.http.server.HttpHandler; +import org.glassfish.grizzly.http.server.Request; +import org.glassfish.grizzly.http.server.Response; + +/** + * + * + * @author David BRASSELY (brasseld at gmail.com) + * @author OpenESB Community + */ +public class EndpointsManagerHttpHandler extends HttpHandler { + + private final HttpSoapBindingLifeCycle lifecycle; + + public EndpointsManagerHttpHandler(final HttpSoapBindingLifeCycle lifecycle) { + this.lifecycle = lifecycle; + } + + @Override + public void service(Request request, Response response) throws Exception { + Set endpoints = lifecycle.getRegisteredEndpoints(); + for(Endpoint endpoint : endpoints) { + if (endpoint.isInbound()) { + QName service = endpoint.getServiceName(); + System.out.println("Endpoint : " + endpoint); + // response. + // endpoint.getC + } + } + } +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java similarity index 58% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java index bb0259cf8..f5767c397 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/GrizzlyEmbeddedWebContainer.java @@ -31,34 +31,22 @@ package com.sun.jbi.httpsoapbc.embedded; import com.sun.jbi.internationalization.Messages; - -import java.util.logging.Logger; import java.util.logging.Level; - -import org.apache.catalina.Connector; - -import com.sun.jbi.httpsoapbc.HttpSoapBindingLifeCycle; +import java.util.logging.Logger; +import org.glassfish.grizzly.http.server.NetworkListener; /** * Represents an embedded Catalina web container within BC. */ public class GrizzlyEmbeddedWebContainer { - Logger mLogger = + static final Logger mLogger = Messages.getLogger(GrizzlyEmbeddedWebContainer.class); - /** - * Create a customized version of the Tomcat's 5 Coyote Connector. This - * connector is required in order to support PE Web Programmatic login - * functionality. - * @param address InetAddress to bind to, or null if the - * connector is supposed to bind to all addresses on this server - * @param port Port number to listen to - * @param protocol the http protocol to use. - */ - public Connector createConnector(String address, int port, - String protocol, - HttpSoapBindingLifeCycle lifeCycle) { + public static final String LISTENER_NAME = "httpbc-listener"; + + public synchronized static NetworkListener createNetworkListener(String address, int port, + String protocol) { if (address != null) { /* @@ -71,32 +59,23 @@ public class GrizzlyEmbeddedWebContainer { if (index != -1) { address = address.substring(index + 1); } + } else { + address = NetworkListener.DEFAULT_NETWORK_HOST; } if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE,"Creating connector (address: " - + ((address == null) ? "ALL" : address) - + ":" + port + ", protocol: " + protocol + ")."); + mLogger.log(Level.FINE, "Creating listener (address: {0}:{1}, protocol: {2}).", new Object[]{address, port, protocol}); } - - BCCoyoteConnector connector = new BCCoyoteConnector(lifeCycle); - - String GRIZZLY_CONNECTOR = - "com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol"; - connector.setProtocolHandlerClassName(GRIZZLY_CONNECTOR); + NetworkListener listener = new NetworkListener(LISTENER_NAME, address, port); + listener.setScheme("http"); - if (address != null) { - connector.setAddress(address); - } - - connector.setPort(port); - + // Override scheme according SSL if (protocol.equalsIgnoreCase("https")) { - connector.setScheme("https"); - connector.setSecure(true); + listener.setScheme("https"); + listener.setSecure(true); } - return (connector); + return listener; } -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/HttpException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/HttpException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/HttpException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/HttpException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java similarity index 52% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java index b4a904cd3..44152ea2a 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyHttpConnection.java @@ -30,20 +30,21 @@ package com.sun.jbi.httpsoapbc.embedded; import com.sun.jbi.internationalization.Messages; -import com.sun.enterprise.web.connector.grizzly.AsyncTask; import com.sun.istack.NotNull; import com.sun.xml.ws.api.message.Packet; +import com.sun.xml.ws.api.server.PortAddressResolver; import com.sun.xml.ws.api.server.WSEndpoint; import com.sun.xml.ws.api.server.WebServiceContextDelegate; +import com.sun.xml.ws.transport.http.HttpAdapter; import com.sun.xml.ws.transport.http.WSHTTPConnection; -import org.jvnet.ws.message.PropertySet.Property; + +import com.oracle.webservices.api.message.PropertySet.Property; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.security.Principal; import java.util.ArrayList; -import java.util.Enumeration; import java.util.HashMap; import java.util.List; import java.util.StringTokenizer; @@ -52,15 +53,11 @@ import java.util.Map; import java.util.Set; import javax.security.auth.Subject; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import javax.xml.ws.WebServiceException; import javax.xml.ws.handler.MessageContext; -import org.apache.coyote.Request; -import org.apache.coyote.Response; -import org.apache.coyote.tomcat5.CoyoteRequest; -import org.apache.coyote.tomcat5.CoyoteResponse; -import org.apache.tomcat.util.http.MimeHeaders; +import org.glassfish.grizzly.http.server.Request; +import org.glassfish.grizzly.http.server.Response; /** * Based on JAX-WS WSHTTPConnection used with Java SE endpoints. It provides @@ -72,32 +69,33 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement Messages.getMessages(JAXWSGrizzlyHttpConnection.class); private final static Logger mLogger = Messages.getLogger(JAXWSGrizzlyHttpConnection.class); - //private final HttpExchange httpExchange; - private Request req; - private Response res; - private CoyoteRequest coyoteRequest; - private CoyoteResponse coyoteResponse; + + private final Request request; + private final Response response; + private int status; - private int responseContentLength = 0; private Subject basicAuthSubject; private boolean outputWritten; - private boolean isSecure; - private AsyncTask grizzlyAsyncTask; + private final boolean isSecure; + private final boolean isAsync; + + final HttpAdapter httpAdapter; + private Map> requestHeaders; private Map> responseHeaders; - public JAXWSGrizzlyHttpConnection(@NotNull Request request, @NotNull Response response, @NotNull CoyoteRequest coyoteRequest, - @NotNull CoyoteResponse coyoteResponse, AsyncTask grizzlyAsyncTask, boolean isSecure) { - this.req = request; - this.res = response; - this.coyoteRequest = coyoteRequest; - this.coyoteResponse = coyoteResponse; - this.grizzlyAsyncTask = grizzlyAsyncTask; + public JAXWSGrizzlyHttpConnection(final HttpAdapter httpAdapter, + final Request request, final Response response, + final boolean isSecure, final boolean isAsync) { + this.httpAdapter = httpAdapter; + this.request = request; + this.response = response; this.isSecure = isSecure; + this.isAsync = isAsync; } @Override - @org.jvnet.ws.message.PropertySet.Property({MessageContext.HTTP_REQUEST_HEADERS, Packet.INBOUND_TRANSPORT_HEADERS}) + @Property({MessageContext.HTTP_REQUEST_HEADERS, Packet.INBOUND_TRANSPORT_HEADERS}) public @NotNull Map> getRequestHeaders() { if (requestHeaders == null) { @@ -109,7 +107,35 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement @Override public String getRequestHeader(String headerName) { - return req.getHeader(headerName); + return request.getHeader(headerName); + } + + /** + * there seems to issue with metro implementation while creating soap 1.2 + * mime headers, for the content-type mime header it does not propagate the + * exact value for the content-type mime header, specially in this case + * though the http-request contents the value of the action in the content + * type , the same value is not propagated from the http transport layer to + * the soap message layer + * + * this is a work around which is used to pass on the action value if + * present in the content-type , this code needs to removed once we have the + * metro fix + * + * @param headerName + * @return + */ + private String soapActionHeader(String value) { + + StringTokenizer tk = new StringTokenizer(value, ";"); + String soapAction = null; + while (tk.hasMoreTokens()) { + String t = tk.nextToken(); + if (t.startsWith("action=")) { + soapAction = t.substring("action=".length()); + } + } + return soapAction; } @Override @@ -120,36 +146,36 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement } if (status != 0) { - res.setStatus(status); + response.setStatus(status); } - res.reset(); // clear all the headers + response.reset(); // clear all the headers for (Map.Entry> entry : headers.entrySet()) { String name = entry.getKey(); if (name.equalsIgnoreCase("Content-Type") || name.equalsIgnoreCase("Content-Length")) { - continue; // ignore headers that interfere with the operation + continue; // ignore headers that interfere with the operation } for (String value : entry.getValue()) { - res.addHeader(name, value); + response.addHeader(name, value); } - } + } } - //@Override + @Override public void setResponseHeader(String headerName, List values) { responseHeaders.put(headerName, values); } @Override - @org.jvnet.ws.message.PropertySet.Property(MessageContext.HTTP_RESPONSE_HEADERS) + @Property(MessageContext.HTTP_RESPONSE_HEADERS) public Map> getResponseHeaders() { return responseHeaders; } @Override public void setContentTypeResponseHeader(@NotNull String value) { - res.setHeader("Content-Type", value); + response.setContentType(value); } @Override @@ -158,124 +184,130 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement } @Override - @org.jvnet.ws.message.PropertySet.Property(MessageContext.HTTP_RESPONSE_CODE) + @com.oracle.webservices.api.message.PropertySet.Property(MessageContext.HTTP_RESPONSE_CODE) public int getStatus() { return status; } - @org.jvnet.ws.message.PropertySet.Property(MessageContext.SERVLET_REQUEST) - public HttpServletRequest getRequest() { - return coyoteRequest; + @NotNull + @Override + public InputStream getInput() throws IOException { + return request.getInputStream(); } - @org.jvnet.ws.message.PropertySet.Property(MessageContext.SERVLET_RESPONSE) - public HttpServletResponse getResponse() { - return coyoteResponse; - } - - public @NotNull - InputStream getInput() throws IOException { - return coyoteRequest.getInputStream(); - //return httpExchange.getRequestBody(); - } - - public @NotNull - OutputStream getOutput() throws IOException { + @NotNull + @Override + public OutputStream getOutput() throws IOException { assert !outputWritten; outputWritten = true; - res.setStatus(getStatus()); - return coyoteResponse.getOutputStream(); + response.setStatus(getStatus()); + return response.getOutputStream(); } - public @NotNull - WebServiceContextDelegate getWebServiceContextDelegate() { + @NotNull + @Override + public WebServiceContextDelegate getWebServiceContextDelegate() { return this; } + @Override public Principal getUserPrincipal(Packet request) { - return coyoteRequest.getUserPrincipal(); + return this.request.getUserPrincipal(); } + @Override public boolean isUserInRole(Packet request, String role) { return false; } - public @NotNull - String getEPRAddress(Packet request, WSEndpoint endpoint) { - // TODO: verify the kind of address it wants here - return coyoteRequest.getRequestURL().toString(); + @NotNull + @Override + public String getEPRAddress(Packet p, WSEndpoint endpoint) { + return request.getRequestURL().toString(); + /* + PortAddressResolver resolver = httpAdapter.owner.createPortAddressResolver(getBaseAddress()); + String address = resolver.getAddressFor(endpoint.getServiceName(), endpoint.getPortName().getLocalPart()); + if (address == null) { + throw new WebServiceException("WsservletMessages.SERVLET_NO_ADDRESS_AVAILABLE(" + endpoint.getPortName() + ")"); + } + return address; + */ } + @Override public String getWSDLAddress(@NotNull Packet request, @NotNull WSEndpoint endpoint) { String eprAddress = getEPRAddress(request, endpoint); - String wsdlAddress = eprAddress + "?wsdl"; - return wsdlAddress; + return eprAddress + "?wsdl"; } - //@Override + @NotNull + @Override + public String getBaseAddress() { + return getBaseAddress(request); + } + + static @NotNull + String getBaseAddress(Request request) { + StringBuilder buf = new StringBuilder(); + buf.append(request.getScheme()); + buf.append("://"); + buf.append(request.getServerName()); + buf.append(':'); + buf.append(request.getServerPort()); + buf.append(request.getContextPath()); + + final String httpHandlerPath = request.getHttpHandlerPath(); + if (httpHandlerPath != null) { + buf.append(httpHandlerPath); + } + + return buf.toString(); + } + + @Override public boolean isSecure() { return this.isSecure; } @Override - @org.jvnet.ws.message.PropertySet.Property(MessageContext.HTTP_REQUEST_METHOD) + @Property(MessageContext.HTTP_REQUEST_METHOD) public @NotNull String getRequestMethod() { - return coyoteRequest.getMethod(); + return request.getMethod().getMethodString(); } @Override - @org.jvnet.ws.message.PropertySet.Property(MessageContext.QUERY_STRING) + @Property(MessageContext.QUERY_STRING) public String getQueryString() { - return coyoteRequest.getQueryString(); + return request.getQueryString(); } @Override - @org.jvnet.ws.message.PropertySet.Property(MessageContext.PATH_INFO) + @Property(MessageContext.PATH_INFO) public String getPathInfo() { - return coyoteRequest.getRequestURI(); + return request.getPathInfo(); } /** * Override the close to make sure the Grizzly ARP processing completes * Delegate further processing to parent class */ + @Override public void close() { - finishGrizzlyResponse(); - super.close(); + try { + super.close(); + } finally { + if (isAsync) { + response.resume(); + } + } } + @Override protected PropertyMap getPropertyMap() { return model; } - - void finishGrizzlyResponse() { - if (grizzlyAsyncTask != null) { - JBIGrizzlyAsyncFilter.finishResponse(grizzlyAsyncTask); - // TODO: setting this to null is a work-around for JAX-WS calling onCompletion / close twice - // to make sure finish response is only called once - grizzlyAsyncTask = null; - } - } - - private Map> initializeRequestHeaders() { - final Map> headers = new HashMap>(); - MimeHeaders mimeHeaders = req.getMimeHeaders(); - Enumeration names = mimeHeaders.names(); - while (names.hasMoreElements()) { - String name = (String) names.nextElement(); - List jaxWsValues = new ArrayList(); - Enumeration values = mimeHeaders.values(name); - while (values.hasMoreElements()) { - String aValue = (String) values.nextElement(); - jaxWsValues.add(aValue); - } - headers.put(name, jaxWsValues); - } - - return headers; - } private static final PropertyMap model; static { @@ -285,7 +317,7 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement /** * @return the basicAuthSubject */ - @org.jvnet.ws.message.PropertySet.Property("basicAuthSubject") + @Property("basicAuthSubject") public Subject getBasicAuthSubject() { return basicAuthSubject; } @@ -297,33 +329,47 @@ public final class JAXWSGrizzlyHttpConnection extends WSHTTPConnection implement this.basicAuthSubject = basicAuthSubject; } - //@Override + private Map> initializeRequestHeaders() { + final Map> headers = new HashMap>(); + for (String name : request.getHeaderNames()) { + final List values = new ArrayList(2); + for (String value : request.getHeaders(name)) { + values.add(value); + } + + headers.put(name, values); + } + + return headers; + } + + @Override public Set getRequestHeaderNames() { return requestHeaders.keySet(); } - //@Override + @Override public List getRequestHeaderValues(String headerName) { return requestHeaders.get(headerName); } - //@Override + @Override public String getRequestURI() { - return req.requestURI().getString(); + return request.getRequestURI(); } - //@Override + @Override public String getRequestScheme() { - return req.scheme().getString(); + return request.getScheme(); } - //@Override + @Override public String getServerName() { - return req.serverName().getString(); + return request.getServerName(); } - //@Override + @Override public int getServerPort() { - return req.getServerPort(); + return request.getServerPort(); } } \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java similarity index 56% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java index e23e85b15..048ccbd68 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/embedded/JAXWSGrizzlyRequestProcessor.java @@ -27,7 +27,6 @@ * * END_HEADER - DO NOT EDIT */ - package com.sun.jbi.httpsoapbc.embedded; import java.io.IOException; @@ -39,17 +38,6 @@ import java.util.logging.Logger; import javax.jbi.messaging.MessagingException; import javax.security.auth.Subject; -import org.apache.catalina.Connector; -import org.apache.coyote.Adapter; -import org.apache.coyote.Request; -import org.apache.coyote.Response; -import org.apache.coyote.http11.InternalInputBuffer; -import org.apache.coyote.http11.InternalOutputBuffer; -import org.apache.coyote.tomcat5.CoyoteConnector; -import org.apache.coyote.tomcat5.CoyoteRequest; -import org.apache.coyote.tomcat5.CoyoteResponse; - -import com.sun.enterprise.web.connector.grizzly.AsyncTask; import com.sun.jbi.httpsoapbc.Denormalizer; import com.sun.jbi.httpsoapbc.Endpoint; import com.sun.jbi.httpsoapbc.FaultException; @@ -63,151 +51,116 @@ import com.sun.jbi.httpsoapbc.servletsupport.HttpServletNormalizer; import com.sun.jbi.internationalization.Messages; import com.sun.xml.ws.api.server.WSEndpoint; import com.sun.xml.ws.transport.http.HttpAdapter; +import org.glassfish.grizzly.http.io.InputBuffer; +import org.glassfish.grizzly.http.io.OutputBuffer; +import org.glassfish.grizzly.http.server.HttpHandler; +import org.glassfish.grizzly.http.server.NetworkListener; +import org.glassfish.grizzly.http.server.Request; +import org.glassfish.grizzly.http.server.Response; +import org.glassfish.grizzly.http.util.HttpStatus; import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.ConcurrentMap; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; - /** * Implementation of a coyote adapter to process HTTP requests asynchronously * - * This file uses the API in Glassfish / Grizzly 9.1 + * This file uses the API in Grizzly 2 * - * The invocation pipeline when the EmbeddedServerController sets this - * request processor looks as follows: - * - * -> Grizzly subsystem with ARP (asynchronous request processing) enabled - * -> ** JBIGrizzlyAsyncFilter doFilter - * -> Grizzly ProcessorTask invokeAdapter - * -> ** JAXWSGrizzlyRequestProcessor service (this is our Adapter implementation for Grizzly) - * -> JAX-WS HttpAdapter invokeAsync (invokes the JAX-WS WSEndpoint asynchronously) - * -> JAX-WS tube / pipeline plug-ins - * -> ** AsyncJBIProvider - * -> ** InboundMessageProcessor - * -> NMR + * The invocation pipeline when the EmbeddedServerController + * sets this request processor looks as follows: + * -> Grizzly subsystem with ARP (asynchronous request processing) enabled + * -> JBIGrizzlyAsyncFilter doFilter -> Grizzly ProcessorTask invokeAdapter + * -> JAXWSGrizzlyRequestProcessor service (this is our Adapter implementation for Grizzly) + * -> JAX-WS HttpAdapter invokeAsync (invokes the JAX-WS WSEndpoint asynchronously) + * -> JAX-WS tube / pipeline plug-ins + * -> AsyncJBIProvider + * -> InboundMessageProcessor + * -> NMR * * The classes marked with ** are implemented by this BC * */ -public class JAXWSGrizzlyRequestProcessor implements Adapter { - +public class JAXWSGrizzlyRequestProcessor extends HttpHandler { private static final Messages mMessages = - Messages.getMessages(JAXWSGrizzlyRequestProcessor.class); + Messages.getMessages(JAXWSGrizzlyRequestProcessor.class); private final static Logger mLogger = - Messages.getLogger(JAXWSGrizzlyRequestProcessor.class); - + Messages.getLogger(JAXWSGrizzlyRequestProcessor.class); /** * Index into the requests and response notes */ - final static int ADAPTER_NOTES = 1; - + final static int ADAPTER_NOTES = 1; /** - * The CoyoteConnector with which this processor is associated. + * The NetworkListener with which this processor is associated. */ - private CoyoteConnector connector = null; - + private NetworkListener listener = null; /** * A mapping from the JBI message exchange ID to the request context */ Map exchangeIDToContext = new java.util.concurrent.ConcurrentHashMap(); + HttpSoapBindingLifeCycle lifeCycle; private static Map httpAdapterMap = new ConcurrentHashMap(); - HttpSoapBindingLifeCycle lifeCycle; /** * Creates a new instance * @param connector CoyoteConnector that owns this processor */ - public JAXWSGrizzlyRequestProcessor(CoyoteConnector connector) throws MessagingException { - this.connector = connector; + public JAXWSGrizzlyRequestProcessor(NetworkListener listener) throws MessagingException { + this.listener = listener; initialize(); } - - /** - * Initialize the request processor + + /** + * Initialize the request processor */ - void initialize() throws MessagingException { + private void initialize() throws MessagingException { lifeCycle = (HttpSoapBindingLifeCycle) HttpSoapComponentContext.getInstance().getAssociatedLifeCycle(); } - + /** * Main entry point of the adapter to service a request + * * @param the incoming http request * @param the http response to prepare */ - public void service(Request req, Response res) { - - /* Debug - try { - org.apache.tomcat.util.buf.ByteChunk bc = new org.apache.tomcat.util.buf.ByteChunk(); - req.doRead(bc); - String bufStr = new String(bc.getBuffer()); - mLogger.fine("####debug service: buffer is:"); - mLogger.fine(bufStr); - } catch(Exception ex){ - + public void service(Request request, Response response) { + + // Get the task associated with this request. This could be solved as a request note instead. + /* + AsyncTask asyncTask = JBIGrizzlyAsyncFilter.removeTaskMapping(request); + if (mLogger.isLoggable(Level.FINEST)) { + mLogger.log(Level.FINEST, "Got task mapping for request " + request.toString() + ", asyncProcessorTask " + asyncTask); } */ - - // Get the task associated with this request. This could be solved as a request note instead. - AsyncTask asyncTask = JBIGrizzlyAsyncFilter.removeTaskMapping(req); - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Got task mapping for request " + req.toString() + ", asyncProcessorTask " + asyncTask); - } - int port = connector.getPort(); - + + int port = listener.getPort(); + if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Service async request for: " + req.requestURI()); + mLogger.log(Level.FINE, "Service async request for: {0}", request.getRequestURI()); } - - CoyoteRequest request = (CoyoteRequest) req.getNote(ADAPTER_NOTES); - CoyoteResponse response = (CoyoteResponse) res.getNote(ADAPTER_NOTES); - + // TODO: we should be able to re-use the CoyoteRequest/CoyoteResponse instances - //if (request == null) { - if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Initializing servicing objects"); - } - // Create objects - request = (CoyoteRequest) connector.createRequest(); - request.setCoyoteRequest(req); - response = (CoyoteResponse) connector.createResponse(); - response.setCoyoteResponse(res); - - // Link objects - request.setResponse(response); - response.setRequest(request); - - // Set as notes - req.setNote(ADAPTER_NOTES, request); - res.setNote(ADAPTER_NOTES, response); - - // Set query string encoding - req.getParameters().setQueryStringEncoding(connector.getURIEncoding()); - if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Query string encoding: " + connector.getURIEncoding()); - } - //} + if (mLogger.isLoggable(Level.FINEST)) { + mLogger.log(Level.FINEST, "Initializing servicing objects"); + } // Prepare the request context Context currentContext = new Context(); - currentContext.port = port; - currentContext.anInputBuffer = (InternalInputBuffer) req.getInputBuffer(); - currentContext.anOutputBuffer = (InternalOutputBuffer) res.getOutputBuffer(); - currentContext.req = req; - currentContext.res = res; - currentContext.coyoteRequest = request; - currentContext.coyoteResponse = response; - currentContext.connector = connector; - currentContext.asyncTask = asyncTask; + currentContext.port = port; + currentContext.anInputBuffer = request.getInputBuffer(); + currentContext.anOutputBuffer = response.getOutputBuffer(); + currentContext.request = request; + currentContext.response = response; + currentContext.listener = listener; + // TODO: beware, request parsing does not always seem intuitive //currentContext.contextPath = req.localName().toString(); - currentContext.contextPath = ""; - currentContext.pathInfo = req.requestURI().toString(); + currentContext.contextPath = ""; + currentContext.pathInfo = request.getRequestURI().toString(); // if the request is looking for the WSDL, don't process the actual message // just let the reply handler load the WSDL and return it. @@ -215,8 +168,8 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { // 1. An actual message // 2. ?WSDL // 3. Querying resources like XSD & WSDL - - String context = currentContext.contextPath + currentContext.pathInfo; + + String context = currentContext.contextPath + currentContext.pathInfo; if ("WSDL".equalsIgnoreCase(request.getQueryString())) { processSynchronousQueryResource(currentContext); } else if (context.toLowerCase().endsWith(".xsd") || context.toLowerCase().endsWith(".wsdl")) { @@ -241,92 +194,87 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { } public void processSynchronousQueryResource(Context reqContext) { - CoyoteResponse response = reqContext.coyoteResponse; + Response response = reqContext.response; try { - CoyoteRequest request = reqContext.coyoteRequest; String context = reqContext.contextPath + reqContext.pathInfo; int port = reqContext.port; - + response.setContentType("text/xml"); if (mLogger.isLoggable(Level.FINEST)) { - mLogger.log(Level.FINEST, "Request query string: " + request.getQueryString()); + mLogger.log(Level.FINEST, "Request query string: {0}", reqContext.request.getQueryString()); } - - + // if user is looking for the wsdl file, read it from disk and return it synchronously - if ("WSDL".equalsIgnoreCase(request.getQueryString())) { - Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, port); - if (targetEndpoint == null) { - ByteBuffer bb = ByteBuffer.wrap("Unable to locate the service endpoint for this soap address".getBytes()); - java.io.OutputStream os = response.getOutputStream(); - java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); + if ("WSDL".equalsIgnoreCase(reqContext.request.getQueryString())) { + Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, port); + if (targetEndpoint == null) { + ByteBuffer bb = ByteBuffer.wrap("Unable to locate the service endpoint for this soap address".getBytes()); + java.io.OutputStream os = response.getOutputStream(); + java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); channel.write(bb); os.flush(); - response.setStatus(CoyoteResponse.SC_SERVICE_UNAVAILABLE); - response.finishResponse(); - JBIGrizzlyAsyncFilter.finishResponseSynchronously(reqContext.asyncTask); - return; - } - - if (!targetEndpoint.getEnableWsdlQuery()) { - if (mLogger.isLoggable(Level.WARNING)) { + response.setStatus(HttpStatus.SERVICE_UNAVAILABLE_503); + response.finish(); + return; + } + + if (!targetEndpoint.getEnableWsdlQuery()) { + if (mLogger.isLoggable(Level.WARNING)) { mLogger.log(Level.WARNING, mMessages.getString("HTTPBC-W00656.Wsdl_query_unavailable")); } ByteBuffer bb = ByteBuffer.wrap("?WSDL query is disabled for this soap address".getBytes()); - java.io.OutputStream os = response.getOutputStream(); - java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); + java.io.OutputStream os = response.getOutputStream(); + java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); channel.write(bb); os.flush(); - response.setStatus(CoyoteResponse.SC_OK); - response.finishResponse(); - JBIGrizzlyAsyncFilter.finishResponseSynchronously(reqContext.asyncTask); - return; - } - + response.setStatus(HttpStatus.OK_200); + response.finish(); + return; + } + try { - - WsdlQueryHelper helper = new WsdlQueryHelper(request,port,targetEndpoint.getServiceDescriptorAsByteBuffer(),true); + + WsdlQueryHelper helper = new WsdlQueryHelper(reqContext.request, port, targetEndpoint.getServiceDescriptorAsByteBuffer(), true); //ByteBuffer mbb = targetEndpoint.getServiceDescriptorAsByteBuffer(); ByteBuffer mbb = helper.getServiceDescriptorAsByteBuffer(); - java.io.OutputStream os = response.getOutputStream(); + java.io.OutputStream os = response.getOutputStream(); java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); channel.write(mbb); os.flush(); - response.setStatus(CoyoteResponse.SC_OK); + response.setStatus(HttpStatus.OK_200); } catch (Exception e) { mLogger.log(Level.WARNING, "HTTPBC-W00651.WSDL_retrieval_exception", e); // Reply with http error - response.setStatus(CoyoteResponse.SC_INTERNAL_SERVER_ERROR); + response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR_500); } - + } else { // Temporary Support for retrieving resources for WSDLs retrieved via ?WSDL that have relative imports // If an address context is not unique (e.g. multiple endpoints are deployed under /service that import resources with the same name), // this will simply return the first match it can find. ByteBuffer resource = lifeCycle.queryResource(context, null); - + if (resource != null) { - + if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Request context " - + context + " at port " + reqContext.port - + " mapped to resource " + resource); + mLogger.log(Level.FINE, "Request context {0} at port {1} mapped to resource {2}", + new Object[]{context, reqContext.port, resource}); } boolean b = (context.toLowerCase().endsWith(".wsdl")); - WsdlQueryHelper helper = new WsdlQueryHelper(request,port,resource,b); - + WsdlQueryHelper helper = new WsdlQueryHelper(reqContext.request, port, resource, b); + //ByteBuffer mbb = resource; ByteBuffer mbb = helper.getServiceDescriptorAsByteBuffer(); - java.io.OutputStream os = response.getOutputStream(); + java.io.OutputStream os = response.getOutputStream(); java.nio.channels.WritableByteChannel channel = java.nio.channels.Channels.newChannel(os); channel.write(mbb); os.flush(); - response.setStatus(CoyoteResponse.SC_OK); + response.setStatus(HttpStatus.OK_200); } else { mLogger.log(Level.SEVERE, "HTTPBC-S00670.Resource_not_available", context); - response.setStatus(CoyoteResponse.SC_INTERNAL_SERVER_ERROR); + response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR_500); } } @@ -334,78 +282,77 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { } catch (Throwable ex) { // Make sure that no exceptions get propagated to the embedded server, this might terminate the server mLogger.log(Level.SEVERE, "HTTPBC-E00669.Exception_during_query", ex); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; + int statusCode = HttpStatus.INTERNAL_SERVER_ERROR_500.getStatusCode(); response.setStatus(statusCode); } finally { - try { - response.finishResponse(); - } catch (IOException ex) { + // try { + response.finish(); + /*} catch (IOException ex) { mLogger.log(Level.SEVERE, "HTTPBC-E00654.Exception_during_reply_processing", ex); - } + }*/ if (mLogger.isLoggable(Level.FINEST)) { mLogger.log(Level.FINEST, "Wrote response"); } } - JBIGrizzlyAsyncFilter.finishResponseSynchronously(reqContext.asyncTask); } - /** + + /** * Process a HttpRequest and send a JBI request. + * * @param request embedded server request * @return JBI message exchange ID */ public void processAsynchRequest(Context reqContext) throws FaultException, HttpException { - - String exchangeID = null; - CoyoteRequest request = reqContext.coyoteRequest; + // Instruct Grizzly to not flush response, once we exit the service(...) method + reqContext.response.suspend(); String context = reqContext.contextPath + reqContext.pathInfo; int port = reqContext.port; - Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, port); - - - - Subject subj=null; - - if (targetEndpoint == null) { - mLogger.log(Level.WARNING, "HTTPBC-W00652.Web_service_mapping_failed", new Object[] { context, new Integer(port)}); + Endpoint targetEndpoint = lifeCycle.getEndpointBeanForContext(context, port); + Subject subj = null; + + if (targetEndpoint == null) { + mLogger.log(Level.WARNING, "HTTPBC-W00652.Web_service_mapping_failed", new Object[]{context, port}); // Send an HTTP 404 error - throw new HttpException(CoyoteResponse.SC_NOT_FOUND, - mMessages.getString("HTTPBC-W00652.Web_service_mapping_failed", - new Object[] {context, new Integer(port)})); + throw new HttpException(HttpStatus.NOT_FOUND_404.getStatusCode(), + mMessages.getString("HTTPBC-W00652.Web_service_mapping_failed", + new Object[]{context, port})); } else { - if(targetEndpoint.isInbound() && targetEndpoint.isBasicAuthenticationEnabled()) { - String authHeader = request.getHeader("authorization"); - if(authHeader == null) { - reqContext.coyoteResponse.setHeader("WWW-Authenticate", "Basic realm=\"ANY\""); - reqContext.coyoteResponse.setStatus(CoyoteResponse.SC_UNAUTHORIZED); + if (targetEndpoint.isInbound() && targetEndpoint.isBasicAuthenticationEnabled()) { + String authHeader = reqContext.request.getHeader("authorization"); + if (authHeader == null) { + reqContext.response.setHeader("WWW-Authenticate", "Basic realm=\"ANY\""); + reqContext.response.setStatus(HttpStatus.UNAUTHORIZED_401); throw new HttpException(401, "Unauthorized"); } else { try { - subj = targetEndpoint.handleSecurity(authHeader); - if (subj != null && !subj.getPrincipals().isEmpty()) { - reqContext.coyoteRequest.setUserPrincipal(subj.getPrincipals().iterator().next()); - } - } catch (HttpBcSecurityException se) { - mLogger.log(Level.WARNING, mMessages.getString("HTTPBC-E01036.Authentication_failed", new Object[] { se.getLocalizedMessage() }), se); - reqContext.coyoteResponse.setStatus(CoyoteResponse.SC_FORBIDDEN); - throw new HttpException(403, "Forbidden"); + subj = targetEndpoint.handleSecurity(authHeader); + if (subj != null && !subj.getPrincipals().isEmpty()) { + reqContext.request.setUserPrincipal(subj.getPrincipals().iterator().next()); + } + } catch (HttpBcSecurityException se) { + mLogger.log(Level.WARNING, mMessages.getString("HTTPBC-E01036.Authentication_failed", new Object[]{se.getLocalizedMessage()}), se); + reqContext.response.setStatus(HttpStatus.FORBIDDEN_403); + throw new HttpException(403, "Forbidden"); - } + } } } - // TODO: can we re-use this connection? - JAXWSGrizzlyHttpConnection con = new JAXWSGrizzlyHttpConnection(reqContext.req, reqContext.res, reqContext.coyoteRequest, reqContext.coyoteResponse, reqContext.asyncTask, connector.getSecure()); - if(subj!=null){ - con.setBasicAuthSubject(subj); - } - - + WSEndpoint wsEndpoint = targetEndpoint.getWSEndpoint(); + HttpAdapter httpAdapter = getAdapter(wsEndpoint); + + // TODO: can we re-use this connection? + JAXWSGrizzlyHttpConnection con = new JAXWSGrizzlyHttpConnection(httpAdapter, reqContext.request, reqContext.response, listener.isSecure(), true); + if (subj != null) { + con.setBasicAuthSubject(subj); + } + try { httpAdapter.invokeAsync(con); @@ -438,30 +385,31 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { } /** - * Reply synchronously in this service() invocation. - * This is useful for responding with errors and any other exchanges where no - * asynchronous exchange with the JBI NMR will occur. + * Reply synchronously in this service() invocation. This is useful for + * responding with errors and any other exchanges where no asynchronous + * exchange with the JBI NMR will occur. */ public void processSynchronousReply(Context reqContext, Exception requestFailedException) { if (mLogger.isLoggable(Level.FINE)) { - mLogger.log(Level.FINE, "Replying synchronously. The request failed. Here's the exception.", requestFailedException); + mLogger.log(Level.FINE, "Replying synchronously. The request failed. Here's the exception.", requestFailedException); } - processAsynchReply(reqContext, requestFailedException); - JBIGrizzlyAsyncFilter.finishResponseSynchronously(reqContext.asyncTask); + processAsynchReply(reqContext, requestFailedException); } - + /** - * Rreply and prepare an HttpResponse, when using JAX-WS this means before it reached the JAX-WS tube. - * Typically this means an exception happened where we could not hand it to JAX-WS + * Rreply and prepare an HttpResponse, when using JAX-WS this means before + * it reached the JAX-WS tube. Typically this means an exception happened + * where we could not hand it to JAX-WS * * @param reqContext the original request context - * @param requestFailedException The exception that occurred in the processAsynchRequest phase. + * @param requestFailedException The exception that occurred in the + * processAsynchRequest phase. */ - public void processAsynchReply(Context reqContext, Exception requestFailedException) { + public void processAsynchReply(Context reqContext, Exception requestFailedException) { - CoyoteResponse response = reqContext.coyoteResponse; + Response response = reqContext.response; try { - CoyoteRequest request = reqContext.coyoteRequest; + Request request = reqContext.request; // SOAP 1.1 we'll set it as text/xml // for SOAP 1.2, content type would have to be application/soap+xml @@ -474,21 +422,19 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { } else { // TODO: it may not be worth keeping the whole ProcessorSupport just for this handling of an exception Denormalizer aDenormalizer = getProcessorSupport().denormalizer; - response = (CoyoteResponse) aDenormalizer.denormalizeException(requestFailedException, response); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - response.setStatus(statusCode); + response = (Response) aDenormalizer.denormalizeException(requestFailedException, response); + response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR_500); } } } catch (Throwable ex) { // Make sure that no exceptions get propagated to the embedded server, this might terminate the server mLogger.log(Level.SEVERE, "HTTPBC-E00654.Exception_during_reply_processing", ex); - int statusCode = CoyoteResponse.SC_INTERNAL_SERVER_ERROR; - response.setStatus(statusCode); + response.setStatus(HttpStatus.INTERNAL_SERVER_ERROR_500); } finally { try { - response.finishResponse(); - } catch (IOException ex) { + response.resume(); + } catch (Exception ex) { mLogger.log(Level.SEVERE, "HTTPBC-E00654.Exception_during_reply_processing", ex); } @@ -496,28 +442,12 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { mLogger.log(Level.FINEST, "Wrote response"); } } - } - - // START SJSAS 6349248 - /** - * Not supported by this adapter implementation. - * - * Notify all container event listeners that a particular event has - * occurred for this Adapter. The default implementation performs - * this notification synchronously using the calling thread. - * - * @param type Event type - * @param data Event data - */ - public void fireAdapterEvent(String type, Object data) { - mLogger.log(Level.FINE, "Not supported by this implementation"); } - // END SJSAS 6349248 /** - * Get the thread specific processor support - * Beware: Do not use the processor support instances in a different thread than - * the one calling getProcessorSupport. + * Get the thread specific processor support Beware: Do not use the + * processor support instances in a different thread than the one calling + * getProcessorSupport. */ ProcessorSupport getProcessorSupport() throws MessagingException { // Get the processor support instances associated with the thread if present, create if not. @@ -525,23 +455,24 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { if (currentProcSupport == null) { currentProcSupport = new ProcessorSupport(); currentProcSupport.normalizer = new HttpServletNormalizer(); - currentProcSupport.denormalizer = new HttpServletDenormalizer(); + currentProcSupport.denormalizer = new HttpServletDenormalizer(); //currentProcSupport.inboundProcessor = new InboundMessageProcessor(currentProcSupport.normalizer, this); processorSupport.set(currentProcSupport); - } + } return currentProcSupport; } /** - * Holds instances that are not thread safe - * Note that this is not suitable when using shared thread pools, only if a limited - * number of threads are used by this component only - */ + * Holds instances that are not thread safe Note that this is not suitable + * when using shared thread pools, only if a limited number of threads are + * used by this component only + */ private static ThreadLocal processorSupport = new ThreadLocal(); - + /** * Holds instances that are not thread safe */ static class ProcessorSupport { + Normalizer normalizer; Denormalizer denormalizer; //InboundMessageProcessor inboundProcessor; @@ -551,17 +482,14 @@ public class JAXWSGrizzlyRequestProcessor implements Adapter { * Holds request context information */ public static class Context { + int port; - InternalInputBuffer anInputBuffer; - InternalOutputBuffer anOutputBuffer; - Request req; - Response res; - CoyoteRequest coyoteRequest; - CoyoteResponse coyoteResponse; - Connector connector; + InputBuffer anInputBuffer; + OutputBuffer anOutputBuffer; + Request request; + Response response; + NetworkListener listener; String contextPath; String pathInfo; - AsyncTask asyncTask; } - -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/AccessManagerValidation.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/AccessManagerValidation.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/AccessManagerValidation.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/AccessManagerValidation.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/BasicAuthSecurityExtension.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/BasicAuthSecurityExtension.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/BasicAuthSecurityExtension.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/BasicAuthSecurityExtension.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/BasicAuthenticationDetail.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/BasicAuthenticationDetail.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/BasicAuthenticationDetail.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/BasicAuthenticationDetail.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/MustSupportBasicAuthentication.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/MustSupportBasicAuthentication.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/MustSupportBasicAuthentication.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/MustSupportBasicAuthentication.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/OptimizedMimeSerialization.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/OptimizedMimeSerialization.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/OptimizedMimeSerialization.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/OptimizedMimeSerialization.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/Policy.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/Policy.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/Policy.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/Policy.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/PolicyReference.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/PolicyReference.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/PolicyReference.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/PolicyReference.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/PropertiesFileValidation.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/PropertiesFileValidation.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/PropertiesFileValidation.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/PropertiesFileValidation.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/RealmValidation.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/RealmValidation.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/RealmValidation.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/RealmValidation.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/SOAPExtSerializer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/SOAPExtSerializer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/SOAPExtSerializer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/SOAPExtSerializer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/StringCompareValidation.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/StringCompareValidation.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/StringCompareValidation.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/StringCompareValidation.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/ValidationBaseType.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/ValidationBaseType.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/ValidationBaseType.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/extensions/ValidationBaseType.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncJBIProvider.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncJBIProvider.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncJBIProvider.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncJBIProvider.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncXmlHttpJBIProvider.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncXmlHttpJBIProvider.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncXmlHttpJBIProvider.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/AsyncXmlHttpJBIProvider.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/InvokerImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/InvokerImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/InvokerImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/InvokerImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSDenormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSDenormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSDenormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSDenormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSEndpointFactory.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSEndpointFactory.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSEndpointFactory.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSEndpointFactory.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpDenormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpDenormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpDenormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpDenormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpGetNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpGetNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpGetNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpGetNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpPostNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpPostNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpPostNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JAXWSXmlHttpPostNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JBIProvider.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JBIProvider.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/JBIProvider.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/JBIProvider.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/NewWebServiceContextImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/NewWebServiceContextImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/NewWebServiceContextImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/jaxwssupport/NewWebServiceContextImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagement.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagement.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagement.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagement.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagementMBean.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagementMBean.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagementMBean.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagementMBean.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagementMBeanHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagementMBeanHelper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/HTTPManagementMBeanHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/management/HTTPManagementMBeanHelper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxy.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxy.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxy.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxy.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxySelector.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxySelector.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxySelector.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxySelector.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandlerFactory.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandlerFactory.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandlerFactory.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/proxy/HttpProxyURLStreamHandlerFactory.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AMAuthorizationException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AMAuthorizationException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AMAuthorizationException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AMAuthorizationException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AMPolicyEvaluator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AMPolicyEvaluator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AMPolicyEvaluator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AMPolicyEvaluator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AmHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AmHelper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/AmHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/AmHelper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/SunAccessManagerCredentialValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/SunAccessManagerCredentialValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/SunAccessManagerCredentialValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/am/impl/SunAccessManagerCredentialValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/CredentialValidationException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/CredentialValidationException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/CredentialValidationException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/CredentialValidationException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/CredentialValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/CredentialValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/CredentialValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/CredentialValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfig.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfig.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfig.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfig.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfigConstants.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfigConstants.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfigConstants.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityConfigConstants.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityManager.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityManager.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityManager.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/EndpointSecurityManager.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/HTTPBasicAuthCredential.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/HTTPBasicAuthCredential.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/HTTPBasicAuthCredential.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/HTTPBasicAuthCredential.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/HttpBcSecurityException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/HttpBcSecurityException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/HttpBcSecurityException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/HttpBcSecurityException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/SecurityContextHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/SecurityContextHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/SecurityContextHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/SecurityContextHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/ServiceUnitSecurityConfig.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/ServiceUnitSecurityConfig.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/api/ServiceUnitSecurityConfig.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/api/ServiceUnitSecurityConfig.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/HttpAuthenticator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/HttpAuthenticator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/HttpAuthenticator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/HttpAuthenticator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/callback/HTTPAuthCallbackHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/callback/HTTPAuthCallbackHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/callback/HTTPAuthCallbackHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/callback/HTTPAuthCallbackHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginConfiguration.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginConfiguration.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginConfiguration.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginConfiguration.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginModule.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginModule.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginModule.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/auth/login/HTTPAuthLoginModule.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/BasicAuthenticator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/http/impl/BasicAuthenticator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/BasicAuthenticator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/http/impl/BasicAuthenticator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/HTTPSecurityContextHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/http/impl/HTTPSecurityContextHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/HTTPSecurityContextHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/http/impl/HTTPSecurityContextHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/AuthInfo.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/AuthInfo.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/AuthInfo.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/AuthInfo.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/CredentialValidatorManager.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/CredentialValidatorManager.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/CredentialValidatorManager.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/CredentialValidatorManager.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityConfigImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityConfigImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityConfigImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityConfigImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityManagerImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityManagerImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityManagerImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/EndpointSecurityManagerImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/ServiceUnitSecurityConfigImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/ServiceUnitSecurityConfigImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/ServiceUnitSecurityConfigImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/ServiceUnitSecurityConfigImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/UserPrincipal.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/UserPrincipal.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/UserPrincipal.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/impl/UserPrincipal.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java similarity index 70% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java index e7b1153ff..d08c6d55f 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/realm/impl/SunRealmCredentialValidator.java @@ -34,43 +34,46 @@ import javax.security.auth.Subject; import com.sun.jbi.httpsoapbc.security.api.CredentialValidationException; import com.sun.jbi.httpsoapbc.security.api.CredentialValidator; -import com.sun.appserv.security.ProgrammaticLogin; import com.sun.enterprise.security.SecurityContext; +import com.sun.enterprise.security.ee.auth.login.ProgrammaticLogin; import com.sun.jbi.internationalization.Messages; /** * - * Credentials validation based on Sun Application Server Realms + * Credentials validation based on Glassfish Application Server Realms */ -public class SunRealmCredentialValidator implements CredentialValidator{ - - private static final Messages mMessages = - Messages.getMessages(SunRealmCredentialValidator.class); - - private String realm; - private ProgrammaticLogin progLogin; - +public class SunRealmCredentialValidator implements CredentialValidator { + + private static final Messages mMessages + = Messages.getMessages(SunRealmCredentialValidator.class); + + private final String realm; + private final ProgrammaticLogin progLogin; + public SunRealmCredentialValidator(String realm) { this.realm = realm; this.progLogin = new ProgrammaticLogin(); } - public String getRealmName () {return realm;} - - public Subject validateCredential(String username, char[] password) - throws CredentialValidationException { + public String getRealmName() { + return realm; + } + + @Override + public Subject validateCredential(String username, char[] password) + throws CredentialValidationException { try { - Boolean result = progLogin.login(username, String.valueOf(password), realm, true); - if (result.booleanValue()) { - return SecurityContext.getCurrent().getSubject(); + Boolean result = progLogin.login(username, password, realm, true); + if (result) { + return SecurityContext.getCurrent().getSubject(); } else { - throw new CredentialValidationException ( + throw new CredentialValidationException( mMessages.getString("HTTPBC-E01025.Failed_realm_authentication", - new Object [] {username, realm})); + new Object[]{username, realm})); } } catch (Throwable t) { - throw new CredentialValidationException (t); + throw new CredentialValidationException(t); } } diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/PropertiesFileCredentialValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/sc/impl/PropertiesFileCredentialValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/PropertiesFileCredentialValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/sc/impl/PropertiesFileCredentialValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/SunStringCompareCredentialValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/sc/impl/SunStringCompareCredentialValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/SunStringCompareCredentialValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/sc/impl/SunStringCompareCredentialValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/util/api/Base64.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/util/api/Base64.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/util/api/Base64.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/util/api/Base64.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/util/impl/Base64Impl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/util/impl/Base64Impl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/util/impl/Base64Impl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/security/util/impl/Base64Impl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/HttpServletDenormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/HttpServletDenormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/HttpServletDenormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/HttpServletDenormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/HttpServletNormalizer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/HttpServletNormalizer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/HttpServletNormalizer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/HttpServletNormalizer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/SynchronousServletRequestProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/SynchronousServletRequestProcessor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/SynchronousServletRequestProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/servletsupport/SynchronousServletRequestProcessor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/AlertsUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/AlertsUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/AlertsUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/AlertsUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/ConfigReader.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/ConfigReader.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/ConfigReader.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/ConfigReader.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/Configuration.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/Configuration.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/Configuration.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/Configuration.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/DebugLog.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/DebugLog.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/DebugLog.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/DebugLog.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/DocumentBuilderPool.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/DocumentBuilderPool.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/DocumentBuilderPool.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/DocumentBuilderPool.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/GUIDUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/GUIDUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/GUIDUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/GUIDUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/HttpGetStringUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/HttpGetStringUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/HttpGetStringUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/HttpGetStringUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/HttpUrlResolverUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/HttpUrlResolverUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/HttpUrlResolverUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/HttpUrlResolverUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/LoggingMonitoringUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/LoggingMonitoringUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/LoggingMonitoringUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/LoggingMonitoringUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/ReadWriteTextFile.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/ReadWriteTextFile.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/ReadWriteTextFile.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/ReadWriteTextFile.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/StringUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/StringUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/StringUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/StringUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/TransactionsUtil.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/TransactionsUtil.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/TransactionsUtil.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/TransactionsUtil.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/TransformerPool.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/TransformerPool.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/TransformerPool.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/TransformerPool.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/Util.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/Util.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/Util.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/Util.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/WSDLUtilities.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/WSDLUtilities.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/WSDLUtilities.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/WSDLUtilities.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/WrapperParserPool.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/WrapperParserPool.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/WrapperParserPool.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/util/WrapperParserPool.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/Statement.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/Statement.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/Statement.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/Statement.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/StatementValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/StatementValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/StatementValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/StatementValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/ValidationResult.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/ValidationResult.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/ValidationResult.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/ValidationResult.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIConstants.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIConstants.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIConstants.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIConstants.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIValidationException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIValidationException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIValidationException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/WSIValidationException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPMsgValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPMsgValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPMsgValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPMsgValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPStatementValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPStatementValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPStatementValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPStatementValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPValidatorFactory.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPValidatorFactory.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPValidatorFactory.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/soap/api/SOAPValidatorFactory.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/BPv10SOAPMsgValidatorImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/BPv10SOAPMsgValidatorImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/BPv10SOAPMsgValidatorImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/BPv10SOAPMsgValidatorImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Statement.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Statement.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Statement.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Statement.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Validator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Validator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Validator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1011Validator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Statement.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Statement.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Statement.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Statement.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Validator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Validator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Validator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/R1013Validator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/impl/ValidationResultImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/impl/ValidationResultImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/impl/ValidationResultImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validation/conf/wsi/impl/ValidationResultImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/AbstractValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/AbstractValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/AbstractValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/AbstractValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/HttpSoapValidatorRegistry.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/HttpSoapValidatorRegistry.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/HttpSoapValidatorRegistry.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/HttpSoapValidatorRegistry.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/Visitable.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/Visitable.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/Visitable.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/Visitable.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/Visitor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/Visitor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/Visitor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/Visitor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/WSDLExtensionValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/WSDLExtensionValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/WSDLExtensionValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/WSDLExtensionValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpAddressValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpAddressValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpAddressValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpAddressValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpBindingValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpBindingValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpBindingValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpBindingValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpOperationValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpOperationValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpOperationValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/httpvalidators/HttpOperationValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/mimevalidators/WSIAP10Validator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/mimevalidators/WSIAP10Validator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/mimevalidators/WSIAP10Validator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/mimevalidators/WSIAP10Validator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12AddressValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12AddressValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12AddressValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12AddressValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BindingValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BindingValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BindingValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BindingValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BodyValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BodyValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BodyValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12BodyValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12FaultValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12FaultValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12FaultValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12FaultValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderFaultValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderFaultValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderFaultValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderFaultValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12HeaderValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12OperationValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12OperationValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12OperationValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/HttpSoap12OperationValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/MessagePart.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/MessagePart.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/MessagePart.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/MessagePart.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/ValidatorObserver.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/ValidatorObserver.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/ValidatorObserver.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soap12validators/ValidatorObserver.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapAddressValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapAddressValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapAddressValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapAddressValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBindingValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBindingValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBindingValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBindingValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBodyValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBodyValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBodyValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapBodyValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapFaultValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapFaultValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapFaultValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapFaultValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderFaultValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderFaultValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderFaultValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderFaultValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapHeaderValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapOperationValidator.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapOperationValidator.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapOperationValidator.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/HttpSoapOperationValidator.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/MessagePart.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/MessagePart.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/MessagePart.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/MessagePart.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/ValidatorObserver.java b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/ValidatorObserver.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/ValidatorObserver.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/java/com/sun/jbi/httpsoapbc/validator/soapvalidators/ValidatorObserver.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/bootstrap/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/configuration/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/embedded/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/extensions/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/jaxwssupport/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/management/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/proxy/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/am/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/auth/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/http/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/realm/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/security/sc/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/servletsupport/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/util/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/api/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validation/conf/wsi/bp/v10/impl/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/httpvalidators/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/mimevalidators/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/mimevalidators/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/mimevalidators/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/mimevalidators/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soap12validators/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_de.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_de.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_de.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_de.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_es.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_es.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_es.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_es.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_fr.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_fr.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_fr.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ja.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ja.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ja.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ko.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ko.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_ko.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_CN.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_CN.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_CN.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_TW.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/src/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_TW.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/src/main/resources/com/sun/jbi/httpsoapbc/validator/soapvalidators/messages/Bundle_zh_TW.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/IntegrationTestBase.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/IntegrationTestBase.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/IntegrationTestBase.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/IntegrationTestBase.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/OpenESBIntegrationTestBase.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/OpenESBIntegrationTestBase.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/OpenESBIntegrationTestBase.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/OpenESBIntegrationTestBase.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/OpenESBMBeanHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/OpenESBMBeanHelper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/OpenESBMBeanHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/OpenESBMBeanHelper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationService.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationService.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationService.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationService.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceConnectionSpec.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceConnectionSpec.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceConnectionSpec.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceConnectionSpec.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceFactory.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceFactory.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/AdministrationServiceFactory.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/AdministrationServiceFactory.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/ConnectionException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/ConnectionException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/ConnectionException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/ConnectionException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/DeploymentException.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/DeploymentException.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/DeploymentException.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/DeploymentException.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdminServiceConnectionSpec.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdminServiceConnectionSpec.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdminServiceConnectionSpec.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdminServiceConnectionSpec.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdministrationService.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdministrationService.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdministrationService.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/component/test/framework/container/openesb/OpenESBAdministrationService.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployerTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployerTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployerTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/HttpSoapBindingDeployerTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/ServiceUnitImplTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/ServiceUnitImplTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/ServiceUnitImplTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/ServiceUnitImplTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/ThreadPoolQueueTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/ThreadPoolQueueTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/ThreadPoolQueueTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/ThreadPoolQueueTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java similarity index 91% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java index adb46f2dd..00535fde8 100755 --- a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java +++ b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/WsdlQueryHelperTest.java @@ -12,7 +12,8 @@ import javax.wsdl.xml.WSDLWriter; import junit.framework.TestCase; -import org.apache.coyote.tomcat5.CoyoteRequest; +import org.glassfish.grizzly.http.server.Request; +import org.glassfish.grizzly.http.server.Response; import com.ibm.wsdl.DefinitionImpl; import com.ibm.wsdl.extensions.schema.SchemaConstants; @@ -23,7 +24,7 @@ import com.ibm.wsdl.extensions.schema.SchemaImpl; */ public class WsdlQueryHelperTest extends TestCase { - private CoyoteRequest req = new WsdlQueryHelperTest.DummyCoyoteRequest(); + private Request req = new WsdlQueryHelperTest.DummyRequest(); @Override @@ -101,7 +102,11 @@ public class WsdlQueryHelperTest extends TestCase { // TODO } - private class DummyCoyoteRequest extends CoyoteRequest { + private class DummyRequest extends Request { + + public DummyRequest(){ + super(new Response(){}); + } @Override public String getServerName() { @@ -116,4 +121,4 @@ public class WsdlQueryHelperTest extends TestCase { } -} +} \ No newline at end of file diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/XmlGetNormalizerTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/XmlGetNormalizerTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/XmlGetNormalizerTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/XmlGetNormalizerTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/HttpBasicAuthenticationTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/HttpBasicAuthenticationTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/HttpBasicAuthenticationTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/HttpBasicAuthenticationTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/HttpbcAuthorizationTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/HttpbcAuthorizationTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/HttpbcAuthorizationTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/HttpbcAuthorizationTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/MonitorManagementTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/MonitorManagementTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/MonitorManagementTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/MonitorManagementTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/Soap12InvokeTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/Soap12InvokeTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/Soap12InvokeTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/Soap12InvokeTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/Soap12WebServiceTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/Soap12WebServiceTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/Soap12WebServiceTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/Soap12WebServiceTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/TestEricssonProjectDeploymentRegression.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/TestEricssonProjectDeploymentRegression.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/TestEricssonProjectDeploymentRegression.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/TestEricssonProjectDeploymentRegression.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/ThrottlingTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/ThrottlingTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/ThrottlingTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/ThrottlingTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/AlarmIRPCompositeApp2.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/AlarmIRPCompositeApp2.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/AlarmIRPCompositeApp2.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/AlarmIRPCompositeApp2.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/AuthorizationCA.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/AuthorizationCA.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/AuthorizationCA.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/AuthorizationCA.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/BasicAuth.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/BasicAuth.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/BasicAuth.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/BasicAuth.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/HttpEchoCAPS.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/HttpEchoCAPS.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/HttpEchoCAPS.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/HttpEchoCAPS.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize13CAPS.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize13CAPS.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize13CAPS.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize13CAPS.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize1CAPS.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize1CAPS.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize1CAPS.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/caps/ThrottleSize1CAPS.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloCA.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloCA.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloCA.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloCA.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloWS.war b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloWS.war similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloWS.war rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/HelloWS.war diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/SoapInvoke.zip b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/SoapInvoke.zip similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/SoapInvoke.zip rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/SoapInvoke.zip diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/readme.txt b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/readme.txt similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/integrationtest/soap12/readme.txt rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/integrationtest/soap12/readme.txt diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/security/util/Base64Test.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/security/util/Base64Test.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/security/util/Base64Test.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/security/util/Base64Test.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/FaultTest.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/FaultTest.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/FaultTest.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/FaultTest.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/FaultTestWrapper.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/FaultTestWrapper.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/FaultTestWrapper.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/FaultTestWrapper.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/HelloProxy.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/HelloProxy.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/HelloProxy.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/HelloProxy.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/HelloService.xsd b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/HelloService.xsd similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/HelloService.xsd rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/HelloService.xsd diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/Soap12WSDLTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/Soap12WSDLTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/Soap12WSDLTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/Soap12WSDLTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/array.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/array.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/array.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/array.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/config.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/config.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/config.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/config.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/echo.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/echo.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/echo.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/echo.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/echoProxy.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/echoProxy.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/echoProxy.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/echoProxy.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/header.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/header.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/header.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/header.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/proxy.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/proxy.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/proxy.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/proxy.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/rpc.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/rpc.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/rpc.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/rpc.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/rpcHeader.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/rpcHeader.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/soap12/validator/rpcHeader.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/soap12/validator/rpcHeader.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/IOTools.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/IOTools.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/IOTools.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/IOTools.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/TransformerPoolTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/TransformerPoolTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/TransformerPoolTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/TransformerPoolTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/Upload.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/Upload.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/Upload.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/Upload.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/UtilTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/UtilTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/util/UtilTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/util/UtilTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/HttpSoapAllWSDLsTest.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/HttpSoapAllWSDLsTest.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/HttpSoapAllWSDLsTest.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/HttpSoapAllWSDLsTest.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/config/config.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/config/config.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/config/config.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/config/config.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6399367.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6399367.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6399367.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6399367.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6400567.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6400567.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6400567.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6400567.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6400569.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6400569.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/invalid/6400569.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/invalid/6400569.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/AccountTransaction.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/AccountTransaction.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/AccountTransaction.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/AccountTransaction.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/DBServiceUpdateCustomer.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/DBServiceUpdateCustomer.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/DBServiceUpdateCustomer.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/DBServiceUpdateCustomer.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/DecisionService.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/DecisionService.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/DecisionService.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/DecisionService.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/Echo1.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/Echo1.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/Echo1.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/Echo1.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/GeoMonster.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/GeoMonster.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/GeoMonster.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/GeoMonster.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/GeoServe.raw.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/GeoServe.raw.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/GeoServe.raw.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/GeoServe.raw.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/IMSReplyService.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/IMSReplyService.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/IMSReplyService.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/IMSReplyService.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/LodeStarLocalHost.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/LodeStarLocalHost.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/LodeStarLocalHost.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/LodeStarLocalHost.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/NucleusPharmaServices.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/NucleusPharmaServices.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/NucleusPharmaServices.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/NucleusPharmaServices.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/OmService.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/OmService.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/OmService.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/OmService.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/OtRecognitionNew.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/OtRecognitionNew.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/OtRecognitionNew.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/OtRecognitionNew.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/WSFilenetAxa.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/WSFilenetAxa.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/WSFilenetAxa.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/WSFilenetAxa.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/Xconnect.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/Xconnect.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/Xconnect.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/Xconnect.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/XconnectProxy.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/XconnectProxy.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/XconnectProxy.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/XconnectProxy.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/addresslookup.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/addresslookup.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/addresslookup.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/addresslookup.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/evocsvcuri.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/evocsvcuri.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/evocsvcuri.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/evocsvcuri.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/returnCanNumbers.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/returnCanNumbers.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/returnCanNumbers.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/returnCanNumbers.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/xsltnewscounter.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/xsltnewscounter.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/xsltnewscounter.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/xsltnewscounter.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/yahoonews.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/yahoonews.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/com/sun/jbi/httpsoapbc/validator/data/valid/yahoonews.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/com/sun/jbi/httpsoapbc/validator/data/valid/yahoonews.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/Configuration.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/Configuration.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/Configuration.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/Configuration.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/IntegrationTestCase.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/IntegrationTestCase.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/IntegrationTestCase.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/IntegrationTestCase.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/OpenESBInstaller.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/OpenESBInstaller.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/OpenESBInstaller.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/OpenESBInstaller.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/SAAssembler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/SAAssembler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/SAAssembler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/SAAssembler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/SUAssembler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/SUAssembler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/SUAssembler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/SUAssembler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/config.properties b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/config.properties similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/config.properties rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/config.properties diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/impl/HTTPBCSUAssembler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/impl/HTTPBCSUAssembler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/test/framework/impl/HTTPBCSUAssembler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/test/framework/impl/HTTPBCSUAssembler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Command.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Command.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Command.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Command.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Connection.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Connection.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Connection.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Connection.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/ConnectionListener.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/ConnectionListener.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/ConnectionListener.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/ConnectionListener.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/GetClassCommand.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/GetClassCommand.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/GetClassCommand.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/GetClassCommand.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Proxy.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Proxy.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Proxy.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Proxy.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Sandbox.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Sandbox.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Sandbox.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Sandbox.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/SandboxClassLoader.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/SandboxClassLoader.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/SandboxClassLoader.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/SandboxClassLoader.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/SandboxImpl.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/SandboxImpl.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/SandboxImpl.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/SandboxImpl.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Util.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Util.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/core/Util.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/core/Util.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/JbiHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/JbiHelper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/JbiHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/JbiHelper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/MessageConsumer.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/MessageConsumer.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/MessageConsumer.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/MessageConsumer.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/MessageProcessor.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/MessageProcessor.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/MessageProcessor.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/MessageProcessor.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEBootstrap.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEBootstrap.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEBootstrap.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEBootstrap.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEComponent.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEComponent.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEComponent.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEComponent.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEComponentLifeCycle.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEComponentLifeCycle.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/TestSEComponentLifeCycle.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/TestSEComponentLifeCycle.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/jbi.xml b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/jbi.xml similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/impl/jbi.xml rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/impl/jbi.xml diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/installer/TestHelper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/installer/TestHelper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/installer/TestHelper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/installer/TestHelper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/installer/TestSEInstaller.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/installer/TestSEInstaller.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/installer/TestSEInstaller.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/installer/TestSEInstaller.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/util/Helper.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/util/Helper.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testse/util/Helper.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testse/util/Helper.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/Saml11SVCallbackHandler.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/Saml11SVCallbackHandler.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/Saml11SVCallbackHandler.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/Saml11SVCallbackHandler.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/TestCustomProperty.java b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/TestCustomProperty.java similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/TestCustomProperty.java rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/TestCustomProperty.java diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/custom.wsdl b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/custom.wsdl similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/custom.wsdl rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/custom.wsdl diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/customPort.xml b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/customPort.xml similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/customPort.xml rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/customPort.xml diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/jbi.xml b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/jbi.xml similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/jbi.xml rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/jbi.xml diff --git a/ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/wsit-client.xml b/ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/wsit-client.xml similarity index 100% rename from ojc-core/httpsoapbc/httpsoapbcimpl/test/test/jbi/integration/testx/wsit-client.xml rename to ojc-core/httpsoapbc/httpsoapbcimpl/test/java/test/jbi/integration/testx/wsit-client.xml diff --git a/ojc-core/httpsoapbc/nbactions.xml b/ojc-core/httpsoapbc/nbactions.xml deleted file mode 100755 index 5658d512b..000000000 --- a/ojc-core/httpsoapbc/nbactions.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - clean - - * - - - clean - - - true - - - - build - - * - - - install - - - true - - - - test - - * - - - package - - - false - - - - rebuild - - * - - - clean - install - - - true - - - - CUSTOM-testreport - testreport - - surefire-report:report-only - - - true - - - - CUSTOM-allreports - allreports - - site - - - true - - - diff --git a/ojc-core/httpsoapbc/package-sources/pom.xml b/ojc-core/httpsoapbc/package-sources/pom.xml deleted file mode 100755 index 88897d011..000000000 --- a/ojc-core/httpsoapbc/package-sources/pom.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - package-common - open-jbi-components - 1.1 - ../build-common/package-common - - 4.0.0 - open-jbi-components - httpbc-installer-sources - httpbc-installer-sources - ${httpsoapbc.artifact.version} - httpbc source jar - - - - - bld/sources - - META-INF/** - **/checkstyle.suppressions - - - - - - maven-dependency-plugin - - - - ${project.artifactId}-unpack-sources - generate-sources - unpack-dependencies - - ${project.build.directory}/sources - sources - false - true - - - - - - - maven-surefire-plugin - - true - - - - - - - - open-jbi-components - httpbc-installer - - - open-jbi-components - httpsoapbcimpl - - - open-jbi-components - wsdl4j - - - open-jbi-components - resolver - - - open-jbi-components - componentsl - - - open-jbi-components - qos - - - open-jbi-components - common-util - - - diff --git a/ojc-core/httpsoapbc/packaging-full/nbactions.xml b/ojc-core/httpsoapbc/packaging-full/nbactions.xml deleted file mode 100755 index 5658d512b..000000000 --- a/ojc-core/httpsoapbc/packaging-full/nbactions.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - clean - - * - - - clean - - - true - - - - build - - * - - - install - - - true - - - - test - - * - - - package - - - false - - - - rebuild - - * - - - clean - install - - - true - - - - CUSTOM-testreport - testreport - - surefire-report:report-only - - - true - - - - CUSTOM-allreports - allreports - - site - - - true - - - diff --git a/ojc-core/httpsoapbc/packaging-full/src/main/resources/httpbc-ext.jar b/ojc-core/httpsoapbc/packaging-full/src/main/resources/httpbc-ext.jar deleted file mode 100755 index 128f12c59..000000000 Binary files a/ojc-core/httpsoapbc/packaging-full/src/main/resources/httpbc-ext.jar and /dev/null differ diff --git a/ojc-core/httpsoapbc/packaging-full/src/main/resources/javaee.jar b/ojc-core/httpsoapbc/packaging-full/src/main/resources/javaee.jar deleted file mode 100644 index d8f301325..000000000 Binary files a/ojc-core/httpsoapbc/packaging-full/src/main/resources/javaee.jar and /dev/null differ diff --git a/ojc-core/compileconf/nbactions.xml b/ojc-core/httpsoapbc/packaging-gfv4/nbactions.xml similarity index 100% rename from ojc-core/compileconf/nbactions.xml rename to ojc-core/httpsoapbc/packaging-gfv4/nbactions.xml diff --git a/ojc-core/httpsoapbc/packaging-full/pom.xml b/ojc-core/httpsoapbc/packaging-gfv4/pom.xml similarity index 59% rename from ojc-core/httpsoapbc/packaging-full/pom.xml rename to ojc-core/httpsoapbc/packaging-gfv4/pom.xml index eaaacc10a..83134cccb 100755 --- a/ojc-core/httpsoapbc/packaging-full/pom.xml +++ b/ojc-core/httpsoapbc/packaging-gfv4/pom.xml @@ -1,62 +1,29 @@ - - - - - package-common - open-jbi-components - 1.1 - ../../build-common/package-common - 4.0.0 - open-jbi-components - httpbc-full-installer - sun-http-binding + + + net.open-esb.components.httpbc + parent + ${httpsoapbc.artifact.version} + + + httpbc-gfv4-installer + OpenESB - Components - HTTPBC - Packaging for Glassfish v4 ${httpsoapbc.artifact.version} - httpbc packaging description + HTTPBC packaging description + META-INF - src + src/main/resources true *.xml *.xsd - - src/main/resources - - **/*.jar - - @@ -92,13 +59,13 @@ run - + - - + - @@ -108,67 +75,49 @@ i18nAttr="displayDescription" keyAttr="name"/> - + + + + net.open-esb.external.hulp + i18ntask + 3.0.0 + + - open-jbi-components + net.open-esb.components.httpbc httpsoapbcimpl - true + ${project.version} open-jbi-components wsdl4j - true open-jbi-components resolver - true open-jbi-components componentsl - true net.sf.hulp.meas net.sf.hulp.meas.itf - true - 2.1-SNAPSHOT - - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT open-jbi-components qos - true open-jbi-components common-util - true - - - org.glassfish.metro - webservices-rt - 2.2.0-4 - true - - - grizzly - grizzly - 1.0.19 - true diff --git a/ojc-core/httpsoapbc/packaging/src/jbi.xml b/ojc-core/httpsoapbc/packaging-gfv4/src/main/resources/jbi.xml similarity index 90% rename from ojc-core/httpsoapbc/packaging/src/jbi.xml rename to ojc-core/httpsoapbc/packaging-gfv4/src/main/resources/jbi.xml index 35c2c8b5d..fea985774 100755 --- a/ojc-core/httpsoapbc/packaging/src/jbi.xml +++ b/ojc-core/httpsoapbc/packaging-gfv4/src/main/resources/jbi.xml @@ -10,11 +10,11 @@ xmlns:logging="http://www.sun.com/jbi/descriptor/logging"> - + - ${project.name} + ${component.name} HTTP binding component. Provides message processing capabilities over HTTP protocol in a JBI 1.0 compliant environment. - + com.sun.jbi.httpsoapbc.HttpSoapBindingComponent @@ -22,8 +22,7 @@ wsdl4j.jar resolver.jar componentsl.jar - net.sf.hulp.meas.itf.jar - net.sf.hulp.meas.impl.jar + itf.jar common-util.jar qos.jar @@ -50,12 +49,9 @@ com.sun.jbi.httpsoapbc.ServiceUnitImpl com.sun.jbi.httpsoapbc.configuration.RuntimeConfiguration com.sun.jbi.httpsoapbc.embedded.EmbeddedServerController - com.sun.jbi.httpsoapbc.embedded.BCCoyoteRequest - com.sun.jbi.httpsoapbc.embedded.BCCoyoteResponse com.sun.jbi.httpsoapbc.embedded.GrizzlyEmbeddedWebContainer com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyHttpConnection com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor - com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter com.sun.jbi.httpsoapbc.jaxwssupport.JAXWSEndpointFactory com.sun.jbi.httpsoapbc.jaxwssupport.AsyncJBIProvider com.sun.jbi.httpsoapbc.jaxwssupport.AsyncXmlHttpJBIProvider @@ -98,21 +94,21 @@ - + - + - - - - - package-common - open-jbi-components - 1.1 - ../../build-common/package-common - 4.0.0 - open-jbi-components + + + net.open-esb.components.httpbc + parent + ${httpsoapbc.artifact.version} + + httpbc-installer - sun-http-binding + OpenESB - Components - HTTPBC - Packaging ${httpsoapbc.artifact.version} - httpbc packaging description + HTTPBC packaging description + META-INF - src + src/main/resources true *.xml @@ -59,7 +32,9 @@ ${project.artifactId}-fetch-deps generate-sources - copy-dependencies + + copy-dependencies + ${project.build.outputDirectory} true @@ -68,85 +43,95 @@ - - maven-surefire-plugin - - true - - maven-antrun-plugin - - ${project.artifactId}-generate-i18n-descriptors - process-resources - run - - - - - - - - - - - - - - - + + ${project.artifactId}-generate-i18n-descriptors + process-resources + + run + + + + + + + + + + + + + + + + + + + net.open-esb.external.hulp + i18ntask + 3.0.0 + + - open-jbi-components + net.open-esb.components.httpbc httpsoapbcimpl - true + ${project.version} open-jbi-components wsdl4j - true open-jbi-components resolver - true open-jbi-components componentsl - true + net.sf.hulp.meas net.sf.hulp.meas.itf - true - 2.1-SNAPSHOT - - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT + open-jbi-components qos - true open-jbi-components common-util - true - + + + org.glassfish.metro + webservices-rt + + + org.glassfish.grizzly + grizzly-http-server + + + org.glassfish.grizzly + grizzly-framework + ${grizzly.version} + + + org.glassfish.grizzly + grizzly-http + ${grizzly.version} + diff --git a/ojc-core/httpsoapbc/packaging-full/src/jbi.xml b/ojc-core/httpsoapbc/packaging/src/main/resources/jbi.xml similarity index 93% rename from ojc-core/httpsoapbc/packaging-full/src/jbi.xml rename to ojc-core/httpsoapbc/packaging/src/main/resources/jbi.xml index 20c78c9ba..23d20990b 100755 --- a/ojc-core/httpsoapbc/packaging-full/src/jbi.xml +++ b/ojc-core/httpsoapbc/packaging/src/main/resources/jbi.xml @@ -12,9 +12,9 @@ - ${project.name} + ${component.name} HTTP binding component. Provides message processing capabilities over HTTP protocol in a JBI 1.0 compliant environment. - + com.sun.jbi.httpsoapbc.HttpSoapBindingComponent @@ -22,14 +22,13 @@ wsdl4j.jar resolver.jar componentsl.jar - net.sf.hulp.meas.itf.jar - net.sf.hulp.meas.impl.jar + itf.jar common-util.jar qos.jar - grizzly.jar + grizzly-framework.jar + grizzly-http-server.jar + grizzly-http.jar webservices-rt.jar - httpbc-ext.jar - javaee.jar com.sun.jbi.httpsoapbc.bootstrap.HttpSoapBindingBootstrap @@ -37,10 +36,10 @@ componentsl.jar qos.jar common-util.jar - grizzly.jar + grizzly-framework.jar + grizzly-http-server.jar + grizzly-http.jar webservices-rt.jar - httpbc-ext.jar - javaee.jar com.sun.jbi.httpsoapbc.Extension @@ -58,12 +57,9 @@ com.sun.jbi.httpsoapbc.ServiceUnitImpl com.sun.jbi.httpsoapbc.configuration.RuntimeConfiguration com.sun.jbi.httpsoapbc.embedded.EmbeddedServerController - com.sun.jbi.httpsoapbc.embedded.BCCoyoteRequest - com.sun.jbi.httpsoapbc.embedded.BCCoyoteResponse com.sun.jbi.httpsoapbc.embedded.GrizzlyEmbeddedWebContainer com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyHttpConnection com.sun.jbi.httpsoapbc.embedded.JAXWSGrizzlyRequestProcessor - com.sun.jbi.httpsoapbc.embedded.JBIGrizzlyAsyncFilter com.sun.jbi.httpsoapbc.jaxwssupport.JAXWSEndpointFactory com.sun.jbi.httpsoapbc.jaxwssupport.AsyncJBIProvider com.sun.jbi.httpsoapbc.jaxwssupport.AsyncXmlHttpJBIProvider @@ -229,4 +225,4 @@ - + \ No newline at end of file diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config.properties similarity index 91% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config.properties index edaf1e917..de7c0ad03 100755 --- a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config.properties +++ b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config.properties @@ -1,5 +1,5 @@ #Default I18n properties bundle -#Thu Sep 10 16:47:08 PDT 2009 +#Wed Apr 29 15:40:23 CEST 2015 /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='InboundThreads']/@displayName=Number of Inbound Threads /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='AMClasspath']/@displayName=Sun Access Manager Classpath /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyUserName']/@displayName=Proxy User Name @@ -8,7 +8,7 @@ /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ClientAuthEnabled']/@displayDescription=Specifies whether or not to enable client authentication (2-way SSL) on the default HTTPS port /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='httpUrlLocation']/@displayDescription=Endpoint address - HTTP URL location /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyPort']/@displayName=Proxy Port -/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='HttpDefaultPort']/@displayDescription=Default HTTP port number for incoming HTTP/SOAP requests. The default value is -1 which indicates there is no valid port number defined. A valid port number is any positive integer between 1 and 65535, but it is highly recommended to avoid system reserved ports. +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='HttpDefaultPort']/@displayDescription=Default HTTP port number for incoming HTTP/SOAP requests. A valid port number is any positive integer between 1 and 65535, but it is highly recommended to avoid system reserved ports. /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='UseJVMProxySettings']/@displayDescription=Determines whether or not to use the default JVM system properties for proxy settings /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='configurationName']/@displayName=Application Configuration Name /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyPassword']/@displayName=Proxy User Password @@ -33,7 +33,7 @@ /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyType']/@displayDescription=A valid proxy type. Allowed proxy type values are\: SOCKS, HTTP, and DIRECT. This configuration is used for outgoing HTTP/SOAP client invocations only. /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyPort']/@displayDescription=A valid proxy port. This configuration is used for outgoing HTTP/SOAP client invocations only. /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='AMClasspath']/@displayDescription=Sun Access Manager client sdk jars( comma separated) to be used in the classpath -/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='HttpsDefaultPort']/@displayDescription=Default HTTPS port number for incoming HTTP/SOAP requests. The default value is -1 which indicates there is no valid port number defined. A valid port number is any positive integer between 1 and 65535, but it is highly recommended to avoid system reserved ports. +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='HttpsDefaultPort']/@displayDescription=Default HTTPS port number for incoming HTTP/SOAP requests. A valid port number is any positive integer between 1 and 65535, but it is highly recommended to avoid system reserved ports. /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='OutboundThreads']/@displayName=Number of Outbound Threads /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='InboundReplyThreads']/@displayName=Number of InboundReply Threads /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:Property[@name\='ProxyPassword']/@displayDescription=A valid proxy user password diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_de.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_de.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_de.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_de.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_es.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_es.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_es.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_es.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_fr.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_fr.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_fr.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_fr.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_ja.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_ja.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_ja.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_ja.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_ko.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_ko.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_ko.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_ko.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_zh_CN.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_zh_CN.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_zh_CN.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_zh_CN.properties diff --git a/ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_zh_TW.properties b/ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_zh_TW.properties similarity index 100% rename from ojc-core/httpsoapbc/packaging/src/sun-http-binding-config_zh_TW.properties rename to ojc-core/httpsoapbc/packaging/src/main/resources/sun-http-binding-config_zh_TW.properties diff --git a/ojc-core/httpsoapbc/pom.xml b/ojc-core/httpsoapbc/pom.xml old mode 100755 new mode 100644 index dee52e104..4e933fa1f --- a/ojc-core/httpsoapbc/pom.xml +++ b/ojc-core/httpsoapbc/pom.xml @@ -1,54 +1,46 @@ - + + 4.0.0 - - ojc-common open-jbi-components 1.1 ../build-common/ojc-common - 4.0.0 - open-jbi-components - httpbc-top + + net.open-esb.components.httpbc + parent pom - httpbc-top + OpenESB - Components - HTTPBC ${httpsoapbc.artifact.version} - Top-level Build for httpsoapbc-top - - install - + HTTP Binding Component + - httpsoapbcimpl packaging - packaging-full - + packaging-gfv4 + + + + + org.glassfish.metro + webservices-rt + ${jaxws-metro.version} + + + org.glassfish.grizzly + grizzly-http-server + ${grizzly.version} + + + + + + sun-http-binding + 2.3.17 + 2.3.1-b419 + diff --git a/ojc-core/iepse/iepcore/pom.xml b/ojc-core/iepse/iepcore/pom.xml index 58f4e982d..ac79325b4 100755 --- a/ojc-core/iepse/iepcore/pom.xml +++ b/ojc-core/iepse/iepcore/pom.xml @@ -148,10 +148,6 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - org.apache.derby diff --git a/ojc-core/iepse/iepjbiadapter/pom.xml b/ojc-core/iepse/iepjbiadapter/pom.xml index ebeb602e9..633741a62 100755 --- a/ojc-core/iepse/iepjbiadapter/pom.xml +++ b/ojc-core/iepse/iepjbiadapter/pom.xml @@ -67,7 +67,10 @@ net.sf.hulp.meas net.sf.hulp.meas.itf - 2.0 + + + net.open-esb.core + jbi-admin-common @@ -80,10 +83,6 @@ derbyclient test - - open-esb - jbi-admin-common - diff --git a/ojc-core/imsbc/imsbcimpl/pom.xml b/ojc-core/imsbc/imsbcimpl/pom.xml index 1f2b12dd1..d167f5cd3 100755 --- a/ojc-core/imsbc/imsbcimpl/pom.xml +++ b/ojc-core/imsbc/imsbcimpl/pom.xml @@ -71,10 +71,6 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - open-jbi-components encoder-fw @@ -96,13 +92,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/imsbc/packaging/pom.xml b/ojc-core/imsbc/packaging/pom.xml index 9ba8d27ac..cd46dcd2d 100755 --- a/ojc-core/imsbc/packaging/pom.xml +++ b/ojc-core/imsbc/packaging/pom.xml @@ -170,13 +170,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/jdbcbc/jdbcbcimpl/pom.xml b/ojc-core/jdbcbc/jdbcbcimpl/pom.xml index 7e0f85302..00f45c4f7 100755 --- a/ojc-core/jdbcbc/jdbcbcimpl/pom.xml +++ b/ojc-core/jdbcbc/jdbcbcimpl/pom.xml @@ -58,14 +58,9 @@ open-jbi-components componentsl - - jbicompsplatform - compileconf - net.sf.hulp.meas net.sf.hulp.meas.itf - 2.1-SNAPSHOT wsdl4j diff --git a/ojc-core/jmsbc/jmsbcimpl/pom.xml b/ojc-core/jmsbc/jmsbcimpl/pom.xml index 20fd53059..42c6de00b 100755 --- a/ojc-core/jmsbc/jmsbcimpl/pom.xml +++ b/ojc-core/jmsbc/jmsbcimpl/pom.xml @@ -143,27 +143,25 @@ test - open-esb + net.open-esb.core jbi-admin-common test - + net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT - - javaee - javaee-api - 5 - provided - + + javaee + javaee-api + 5 + provided + diff --git a/ojc-core/jmsbc/packaging/pom.xml b/ojc-core/jmsbc/packaging/pom.xml index c217811ab..8457caa48 100755 --- a/ojc-core/jmsbc/packaging/pom.xml +++ b/ojc-core/jmsbc/packaging/pom.xml @@ -191,13 +191,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/ldapbc/ldapbcimpl/pom.xml b/ojc-core/ldapbc/ldapbcimpl/pom.xml index 6cb66a631..d5ce605a4 100755 --- a/ojc-core/ldapbc/ldapbcimpl/pom.xml +++ b/ojc-core/ldapbc/ldapbcimpl/pom.xml @@ -56,13 +56,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT open-jbi-components diff --git a/ojc-core/ldapbc/packaging/pom.xml b/ojc-core/ldapbc/packaging/pom.xml index 7802f079b..d88680e1d 100755 --- a/ojc-core/ldapbc/packaging/pom.xml +++ b/ojc-core/ldapbc/packaging/pom.xml @@ -161,13 +161,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf true - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT diff --git a/ojc-core/mqbc/mqbcimpl/pom.xml b/ojc-core/mqbc/mqbcimpl/pom.xml index d76290820..5a605de77 100755 --- a/ojc-core/mqbc/mqbcimpl/pom.xml +++ b/ojc-core/mqbc/mqbcimpl/pom.xml @@ -178,10 +178,6 @@ open-jbi-components qos - - jbicompsplatform - compileconf - open-jbi-components encoder-fw @@ -193,7 +189,6 @@ net.sf.hulp.meas net.sf.hulp.meas.itf - 2.1-SNAPSHOT com.ibm diff --git a/ojc-core/mqbc/packaging/pom.xml b/ojc-core/mqbc/packaging/pom.xml index c0a6f9c6b..e6b87df68 100755 --- a/ojc-core/mqbc/packaging/pom.xml +++ b/ojc-core/mqbc/packaging/pom.xml @@ -197,19 +197,11 @@ net.sf.hulp.meas net.sf.hulp.meas.itf - 2.1-SNAPSHOT net.sf.hulp.meas net.sf.hulp.meas.impl true - 2.1-SNAPSHOT - - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT diff --git a/ojc-core/pojose/api/pom.xml b/ojc-core/pojose/api/pom.xml index ca4d2d7bf..4f6dc9ad1 100755 --- a/ojc-core/pojose/api/pom.xml +++ b/ojc-core/pojose/api/pom.xml @@ -59,7 +59,7 @@ - open-esb + net.open-esb.core jbi diff --git a/ojc-core/pojose/packaging/pom.xml b/ojc-core/pojose/packaging/pom.xml index fb860cb91..00f621a7c 100755 --- a/ojc-core/pojose/packaging/pom.xml +++ b/ojc-core/pojose/packaging/pom.xml @@ -203,7 +203,7 @@ diff --git a/ojc-core/pom.xml b/ojc-core/pom.xml index 38e6d6eba..cbdca689e 100755 --- a/ojc-core/pom.xml +++ b/ojc-core/pom.xml @@ -103,7 +103,7 @@ xsltse alese pojose - camelse + camelse - cam + + diff --git a/ojc-core/restbc/.gitignore b/ojc-core/restbc/.gitignore new file mode 100644 index 000000000..c18238fe5 --- /dev/null +++ b/ojc-core/restbc/.gitignore @@ -0,0 +1,4 @@ +!.gitignore +target/ +.project +.settings/ diff --git a/ojc-core/restbc/jbiadapter/.classpath b/ojc-core/restbc/jbiadapter/.classpath new file mode 100644 index 000000000..fd7ad7fbd --- /dev/null +++ b/ojc-core/restbc/jbiadapter/.classpath @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ojc-core/restbc/jbiadapter/.gitignore b/ojc-core/restbc/jbiadapter/.gitignore new file mode 100644 index 000000000..f1dad7993 --- /dev/null +++ b/ojc-core/restbc/jbiadapter/.gitignore @@ -0,0 +1,2 @@ +/target +target/ diff --git a/ojc-core/restbc/jbiadapter/nbactions.xml b/ojc-core/restbc/jbiadapter/nbactions.xml old mode 100755 new mode 100644 diff --git a/ojc-core/restbc/jbiadapter/pom.xml b/ojc-core/restbc/jbiadapter/pom.xml old mode 100755 new mode 100644 index 5dfa8bc89..11909fbfb --- a/ojc-core/restbc/jbiadapter/pom.xml +++ b/ojc-core/restbc/jbiadapter/pom.xml @@ -1,59 +1,31 @@ - + - + - - build-common - open-jbi-components - 1.1 - ../../build-common - 4.0.0 - open-jbi-components - restjbiadapter - restjbiadapter - ${restbc.artifact.version} + + + net.open-esb.components.restbc + parent + ${restbc.artifact.version} + + + restbc-jbiadapter + OpenESB - Components - RESTBC - JBI Adapter Implementation of Rest Binding Component - - - test - - **/*.java - **/*.ref - **/.* - **/*.wsdl - **/*.pom - - - maven-antrun-plugin @@ -66,12 +38,12 @@ - @@ -106,112 +78,90 @@ - - maven-surefire-plugin - - true - - open-jbi-components wsdl4j - true open-jbi-components wsdl4jext - true open-jbi-components resolver - true open-jbi-components componentsl - true open-jbi-components qos - true open-jbi-components common-util - true + + + + + org.glassfish.jersey.containers + jersey-container-servlet + ${jersey.version} - com.sun.jersey - jersey-bundle - 1.0.3.1 + org.glassfish.jersey.bundles.repackaged + jersey-guava + ${jersey.version} - com.sun.grizzly - grizzly-servlet-webserver - 1.9.61 + org.glassfish.jersey.containers + jersey-container-grizzly2-http + ${jersey.version} - javax.ws.rs - jsr311-api - 1.0 + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + ${jersey.version} - asm - asm - 3.1 + org.glassfish.grizzly + grizzly-http-server + 2.3.11 - javax.mail - mail - 1.4 + javax.mail + mail + 1.4 - org.codehaus.jackson - jackson-core-asl - 1.9.5 + com.fasterxml.jackson.core + jackson-core + ${jackson.version} - org.codehaus.jackson - jackson-mapper-asl - 1.9.5 + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson.version} + net.sf.hulp.meas net.sf.hulp.meas.itf - true - 2.1-SNAPSHOT - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT - - - org.apache.felix - org.apache.felix.main - 1.0.3 - - - + + junit junit test - - ant - ant-junit - test - - com/sun/jbi/restbc/jbiadapter + com/sun/jbi/common/util + net/openesb/jbi/restbc/jbiadapter - diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/HttpProxyURLConnectionFactory.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/HttpProxyURLConnectionFactory.java deleted file mode 100755 index d1fdc7702..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/HttpProxyURLConnectionFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter; - -import com.sun.jbi.restbc.jbiadapter.security.ProxySettings; -import com.sun.jersey.client.urlconnection.HttpURLConnectionFactory; -import java.io.IOException; -import java.net.*; -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * - * @author Alexander Lomov - */ -public class HttpProxyURLConnectionFactory implements HttpURLConnectionFactory { - - public HttpURLConnection getHttpURLConnection(URL url) throws IOException { - HttpURLConnection c; - ProxySettings ps; - try { - ps = ProxySettings.getProxySettings(url.toURI().getScheme()); - } catch (URISyntaxException ex) { - Logger.getLogger(HttpProxyURLConnectionFactory.class.getName()).log(Level.SEVERE, null, ex); - return null; - } - if (ps.isProxyUrlSet()) { - Proxy p = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(ps.getProxyHost(), Integer.valueOf(ps.getProxyPort()))); - if (ps.isProxyUserSet() && ps.isProxyPasswordSet()) { - final String user = ps.getProxyUser(); - final String password = ps.getProxyPassword(); - Authenticator.setDefault(new Authenticator() { - - @Override - protected PasswordAuthentication getPasswordAuthentication() { - return new PasswordAuthentication(user, password.toCharArray()); - } - }); - } - c = (HttpURLConnection) url.openConnection(p); - } else { - c = (HttpURLConnection) url.openConnection(); - } - return c; - } -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/BundleContextProvider.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/BundleContextProvider.java deleted file mode 100755 index 42676be43..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/BundleContextProvider.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import javax.ws.rs.core.Context; -import javax.ws.rs.ext.Provider; - -import org.osgi.framework.BundleContext; - -import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider; - -/** - * BundleContextProvider.java - * - * @author Edward Chou - */ -@Provider -public class BundleContextProvider extends SingletonTypeInjectableProvider { - - public BundleContextProvider() { - super(BundleContext.class, ComponentBundleActivator.getBundleContext()); - } - - -} \ No newline at end of file diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/CharsetResponseFilter.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/CharsetResponseFilter.java deleted file mode 100644 index e0d511560..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/CharsetResponseFilter.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import com.sun.jersey.spi.container.ContainerRequest; -import com.sun.jersey.spi.container.ContainerResponse; -import com.sun.jersey.spi.container.ContainerResponseFilter; -import java.util.List; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.MediaType; - -/** - * - * @author David BRASSELY (brasseld at gmail.com) - * @author OpenESB Community - */ -public class CharsetResponseFilter implements ContainerResponseFilter { - - public ContainerResponse filter(ContainerRequest request, ContainerResponse response) { - List headers = response.getHttpHeaders().get(HttpHeaders.CONTENT_TYPE); - - if (headers != null) { - MediaType contentType = (MediaType) headers.iterator().next(); - response.getHttpHeaders().putSingle("Content-Type", contentType.toString() + ";charset=UTF-8"); - } - return response; - } -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ComponentBundleActivator.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ComponentBundleActivator.java deleted file mode 100755 index 3369732e8..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ComponentBundleActivator.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -/** - * ComponentBundleActivator.java - * - * @author Edward Chou - */ -public class ComponentBundleActivator implements BundleActivator { - - private static BundleContext bundleContext; - - /* (non-Javadoc) - * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) - */ - public void start(BundleContext context) throws Exception { - bundleContext = context; - } - - /* (non-Javadoc) - * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) - */ - public void stop(BundleContext context) throws Exception { - - } - - public static BundleContext getBundleContext() { - return bundleContext; - } -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ContentLengthResponseFilter.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ContentLengthResponseFilter.java deleted file mode 100644 index 8926dd9f5..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ContentLengthResponseFilter.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import com.sun.jersey.spi.container.ContainerRequest; -import com.sun.jersey.spi.container.ContainerResponse; -import com.sun.jersey.spi.container.ContainerResponseFilter; - -/** - * - * @author David BRASSELY (brasseld at gmail.com) - * @author OpenESB Community - */ -public class ContentLengthResponseFilter implements ContainerResponseFilter { - - public ContainerResponse filter(ContainerRequest request, ContainerResponse response) { - String contentLength = (String) response.getHttpHeaders().getFirst("X-Content-Length"); - if (contentLength != null) { - response.getHttpHeaders().remove("Transfer-Encoding"); - response.getHttpHeaders().remove("X-Content-Length"); - response.getHttpHeaders().putSingle("Content-Length", contentLength); - } - - return response; - } -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojo.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojo.java deleted file mode 100755 index 8f28d129a..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojo.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import javax.ws.rs.GET; -import javax.ws.rs.POST; -import javax.ws.rs.Path; - -/** - * DefaultJaxrsPojo.java - * - * @author Edward Chou - */ -@Path("/welcome") -public class DefaultJaxrsPojo { - - @GET - public String get() { - return "Welcome to sample JAXRS POJO."; - } - - @POST - public String post() { - return "Welcome to sample JAXRS POJO."; - } - - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojoApplication.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojoApplication.java deleted file mode 100755 index 0090426a9..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/DefaultJaxrsPojoApplication.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.util.HashSet; -import java.util.Set; - -import javax.ws.rs.core.Application; - -/** - * DefaultJaxrsPojoApplication.java - * - * @author Edward Chou - */ -public class DefaultJaxrsPojoApplication extends Application { - - /* (non-Javadoc) - * @see javax.ws.rs.core.Application#getClasses() - */ - @Override - public Set> getClasses() { - Set> classes = new HashSet> (); - classes.add(DefaultJaxrsPojo.class); - return classes; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java deleted file mode 100755 index 0d30be820..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.util.Collections; -import java.util.HashMap; -import java.util.Map; - -import com.sun.grizzly.SSLConfig; -import com.sun.grizzly.http.embed.GrizzlyWebServer; -import com.sun.grizzly.http.servlet.ServletAdapter; -import com.sun.grizzly.ssl.SSLSelectorThread; - -/** - * InboundHttpListener.java - * - * @author Edward Chou - */ -public class InboundHttpListener { - - public static final String DEFAULT_LISTENER = "default-listener"; // NOI18N - public static final String DEFAULT_LISTENER_SSL = "default-listener-ssl"; // NOI18N - - private String listenerName; - private int port; - private GrizzlyWebServer webServer; - - private Map contextMap = new HashMap (); - - public InboundHttpListener(String listenerName, int port, int numThreads, SSLConfig sslConfig) { - this.listenerName = listenerName; - this.port = port; - this.webServer = new GrizzlyWebServer(port, ".", (sslConfig == null) ? false : true); - this.webServer.setCoreThreads(numThreads); - this.webServer.setMaxThreads(numThreads); - if (sslConfig != null) { - webServer.setSSLConfig(sslConfig); - ((SSLSelectorThread) webServer.getSelectorThread()).setNeedClientAuth(true); - } - } - - public void start() throws Exception { - webServer.start(); - } - - public void stop() throws Exception { - webServer.stop(); - } - - public synchronized void registerContext(String context, ServletAdapter adapter) throws Exception { - if (contextMap.containsKey(context)) { - throw new Exception("context already exists: " + context); - } - - webServer.addGrizzlyAdapter(adapter, new String[] { context }); - - contextMap.put(context, adapter); - } - - public synchronized void unregisterContext(String context) throws Exception { - ServletAdapter removedValue = contextMap.remove(context); - if (removedValue == null) { - throw new Exception("context did not exist: " + context); - } - - webServer.removeGrizzlyAdapter(removedValue); - } - - public Map getContextMap() { - return Collections.unmodifiableMap(contextMap); - } - - /** - * @return the listenerName - */ - public String getListenerName() { - return listenerName; - } - - /** - * @return the port - */ - public int getPort() { - return port; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsAnnotationScanner.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsAnnotationScanner.java deleted file mode 100755 index b281ae22f..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsAnnotationScanner.java +++ /dev/null @@ -1,383 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import com.sun.jersey.core.reflection.ReflectionHelper; -import java.io.File; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.net.URISyntaxException; -import java.net.URL; -import java.util.Enumeration; -import java.util.HashSet; -import java.util.Set; -import java.util.jar.JarEntry; -import java.util.jar.JarFile; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.objectweb.asm.AnnotationVisitor; -import org.objectweb.asm.Attribute; -import org.objectweb.asm.ClassReader; -import org.objectweb.asm.ClassVisitor; -import org.objectweb.asm.FieldVisitor; -import org.objectweb.asm.MethodVisitor; -import org.objectweb.asm.Opcodes; - -/** -* Search for Java classes that are annotated with one or more of a set -* of annotations. -*

-* The search is restricted to Java classes that are publically scoped. -* Inner static public classes are also searched. -* -* @author Frank D. Martinez. fmartinez@asimovt.com -*/ -public class JaxrsAnnotationScanner { - private static final Logger LOGGER = - Logger.getLogger(JaxrsAnnotationScanner.class.getName()); - - /** Matching annotated classes. */ - private Set> classes; - - /** Set of annotations to search for. */ - private final Set annotations; - - /** The class loader to use to load matching Java class files */ - private final ClassLoader classloader; - - - /** - * - * @param annotations the set of annotations to match - */ - public JaxrsAnnotationScanner(ClassLoader classloader, Class... annotations) { - this.classloader = classloader; - this.annotations = getAnnotationSet(annotations); - this.classes = new HashSet>(); - } - - /** - * Scans paths for matching Java classes - * - * @param paths An array of absolute paths to search. - * @return The set of matching classes that are annotated with one or more of - * the specified annotations. - */ - public Set> scan(File[] paths) { - this.classes = new HashSet>(); - - for (File file : paths) { - index(file); - } - - return classes; - } - - /** - * Scans packages for matching Java classes. - * - * @param packages An array of packages to search. - * @return The set of matching classes that are annotated with one or more of - * the specified annotations. - */ - public Set> scan(String[] packages) { - this.classes = new HashSet>(); - - for (String p : packages) { - try { - String fileP = p.replace('.', '/'); - Enumeration urls = classloader.getResources(fileP); - while (urls.hasMoreElements()) { - URL url = urls.nextElement(); - try { - URI uri = getURI(url); - index(uri, fileP); - } catch (URISyntaxException e) { - LOGGER.warning("URL, " + - url + - "cannot be converted to a URI"); - } - } - } catch (IOException ex) { - String s = "The resources for the package" + - p + - ", could not be obtained"; - LOGGER.severe(s); - throw new RuntimeException(s, ex); - } - } - - return classes; - } - - private URI getURI(URL url) throws URISyntaxException { - if (url.getProtocol().equalsIgnoreCase("vfsfile")) { - // Used with JBoss 5.x: trim prefix "vfs" - return new URI(url.toString().substring(3)); - } else { - return url.toURI(); - } - } - - /** - * Get the current set of matching classes. - * - * @return The set of matching classes that are annotated with one or more of - * the specified annotations. - */ - public Set> getMatchingClasses() { - return classes; - } - - private Set getAnnotationSet(Class... annotations) { - Set a = new HashSet(); - for (Class cls : annotations) { - a.add( - "L" + cls.getName().replaceAll("\\.", "/") + ";"); - } - return a; - } - - private void index(File file) { - if (file.isDirectory()) { - indexDir(file, true); - } else if (file.getName().endsWith(".jar") || - file.getName().endsWith(".zip")) { - indexJar(file); - } else { - LOGGER.warning("File, " + - file.getAbsolutePath() + - ", is ignored, it not a directory, a jar file or a zip file"); - } - } - - private void index(URI u, String filePackageName) { - String scheme = u.getScheme(); - if (scheme.equals("file")) { - File f = new File(u.getPath()); - if (f.isDirectory()) { - indexDir(f, false); - } else { - LOGGER.warning("URL, " + - u + - ", is ignored. The path, " + - f.getPath() + - ", is not a directory"); - } - } else if (scheme.equals("jar") || scheme.equals("zip")) { - URI jarUri = URI.create(u.getRawSchemeSpecificPart()); - String jarFile = jarUri.getPath(); - jarFile = jarFile.substring(0, jarFile.indexOf('!')); - indexJar(new File(jarFile), filePackageName); - } else { - LOGGER.warning("URL, " + - u + - ", is ignored, it not a file or a jar file URL"); - } - } - - private void indexDir(File root, boolean indexJars) { - for (File child : root.listFiles()) { - if (child.isDirectory()) { - indexDir(child, indexJars); - } else if (indexJars && child.getName().endsWith(".jar")) { - indexJar(child); - } else if (child.getName().endsWith(".class")) { - analyzeClassFile(child.toURI()); - } - } - } - - private void indexJar(File file) { - indexJar(file, ""); - } - - private void indexJar(File file, String parent) { - final JarFile jar = getJarFile(file); - try { - final Enumeration entries = jar.entries(); - while (entries.hasMoreElements()) { - JarEntry e = entries.nextElement(); - if (!e.isDirectory() && e.getName().startsWith(parent) && - e.getName().endsWith(".class")) { - analyzeClassFile(jar, e); - } - } - } catch (Exception e) { - LOGGER.log(Level.SEVERE, "Exception while processing file, " + file, e); - } finally { - try { - if (jar != null) { - jar.close(); - } - } catch (IOException ex) { - String s = "Error closing jar file, " + - jar.getName(); - LOGGER.severe(s); - } - } - } - - private JarFile getJarFile(File file) { - if (file == null) { - return null; - } - try { - return new JarFile(file); - } catch (IOException ex) { - String s = "File, " + - file.getAbsolutePath() + - ", is not a jar file"; - LOGGER.severe(s); - throw new RuntimeException(s, ex); - } - } - - private void analyzeClassFile(URI classFileUri) { - getClassReader(classFileUri).accept(classVisitor, 0); - } - - private void analyzeClassFile(JarFile jarFile, JarEntry entry) { - getClassReader(jarFile, entry).accept(classVisitor, 0); - } - - - private ClassReader getClassReader(JarFile jarFile, JarEntry entry) { - InputStream is = null; - try { - is = jarFile.getInputStream(entry); - ClassReader cr = new ClassReader(is); - return cr; - } catch (IOException ex) { - String s = "Error accessing input stream of the jar file, " + - jarFile.getName() + ", entry, " + entry.getName(); - LOGGER.severe(s); - throw new RuntimeException(s, ex); - } finally { - try { - if (is != null) { - is.close(); - } - } catch (IOException ex) { - String s = "Error closing input stream of the jar file, " + - jarFile.getName() + ", entry, " + entry.getName() + ", closed."; - LOGGER.severe(s); - } - } - } - - - private ClassReader getClassReader(URI classFileUri) { - InputStream is = null; - try { - is = classFileUri.toURL().openStream(); - ClassReader cr = new ClassReader(is); - return cr; - } catch (IOException ex) { - String s = "Error accessing input stream of the class file URI, " + - classFileUri; - LOGGER.severe(s); - throw new RuntimeException(s, ex); - } finally { - try { - if (is != null) { - is.close(); - } - } catch (IOException ex) { - String s = "Error closing input stream of the class file URI, " + - classFileUri; - LOGGER.severe(s); - } - } - } - - private Class getClassForName(String className) { - try { - return ReflectionHelper.classForNameWithException(className, classloader); - } catch (ClassNotFoundException ex) { - String s = "A class file of the class name, " + - className + - "is identified but the class could not be found"; - LOGGER.severe(s); - throw new RuntimeException(s, ex); - } - } - - private final AnnotatedClassVisitor classVisitor = new AnnotatedClassVisitor(); - - private final class AnnotatedClassVisitor implements ClassVisitor { - /** - * The name of the visited class. - */ - private String className; - - /** - * True if the class has the correct scope - */ - private boolean isScoped; - - /** - * True if the class has the correct declared annotations - */ - private boolean isAnnotated; - - public void visit(int version, int access, String name, - String signature, String superName, String[] interfaces) { - className = name; - isScoped = (access & Opcodes.ACC_PUBLIC) != 0; - isAnnotated = false; - } - - public AnnotationVisitor visitAnnotation(String desc, boolean visible) { - isAnnotated |= annotations.contains(desc); - return null; - } - - public void visitInnerClass(String name, String outerName, - String innerName, int access) { - // If the name of the class that was visited is equal - // to the name of this visited inner class then - // this access field needs to be used for checking the scope - // of the inner class - if (className.equals(name)) { - isScoped = (access & Opcodes.ACC_PUBLIC) != 0; - - // Inner classes need to be statically scoped - isScoped &= (access & Opcodes.ACC_STATIC) == Opcodes.ACC_STATIC; - } - } - - public void visitEnd() { - if (isScoped && isAnnotated) { - // Correctly scoped and annotated - // add to the set of matching classes. - classes.add(getClassForName(className.replaceAll("/", "."))); - } - } - - - public void visitOuterClass(String string, String string0, - String string1) { - // Do nothing - } - - public FieldVisitor visitField(int i, String string, - String string0, String string1, Object object) { - // Do nothing - return null; - } - - public void visitSource(String string, String string0) { - // Do nothing - } - - public void visitAttribute(Attribute attribute) { - // Do nothing - } - - public MethodVisitor visitMethod(int i, String string, - String string0, String string1, String[] string2) { - // Do nothing - return null; - } - }; -} \ No newline at end of file diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsServletContainer.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsServletContainer.java deleted file mode 100755 index 7bdbfcef7..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsServletContainer.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import javax.servlet.ServletException; - -import com.sun.jersey.spi.container.servlet.ServletContainer; - -/** - * JaxrsServletContainer.java - * - * @author Edward Chou - */ -public class JaxrsServletContainer extends ServletContainer { - - private ClassLoader cl; - - public JaxrsServletContainer(ClassLoader cl) { - this.cl = cl; - } - - @Override - public void init() throws ServletException { - ClassLoader oldCl = Thread.currentThread().getContextClassLoader(); - Thread.currentThread().setContextClassLoader(cl); - super.init(); - Thread.currentThread().setContextClassLoader(oldCl); - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyEndpointConfig.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyEndpointConfig.java deleted file mode 100755 index 13181420f..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyEndpointConfig.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.util.HashSet; -import java.util.Set; - -import javax.ws.rs.core.Application; - -/** - * JerseyEndpointConfig.java - * - * @author Edward Chou - */ -public class JerseyEndpointConfig extends Application { - - /* (non-Javadoc) - * @see javax.ws.rs.core.Application#getClasses() - */ - @Override - public Set> getClasses() { - Set> classes = new HashSet> (); - classes.add(JerseyRootResource.class); - return classes; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResource.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResource.java deleted file mode 100755 index c15f7d4aa..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResource.java +++ /dev/null @@ -1,130 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.io.InputStream; -import java.util.logging.Level; -import java.util.logging.Logger; - -import javax.ws.rs.DELETE; -import javax.ws.rs.GET; -import javax.ws.rs.HEAD; -import javax.ws.rs.POST; -import javax.ws.rs.PUT; -import javax.ws.rs.Path; -import javax.ws.rs.core.Context; -import javax.ws.rs.core.HttpHeaders; -import javax.ws.rs.core.Response; -import javax.ws.rs.core.SecurityContext; -import javax.ws.rs.core.UriInfo; -import javax.ws.rs.core.Response.ResponseBuilder; - -import com.sun.jbi.restbc.jbiadapter.I18n; - -/** - * JerseyRootResource.java - * - * @author Edward Chou - */ -@Path("{path:.*}") -public class JerseyRootResource { - - /* - * 101-110 - */ - private final static Logger logger = Logger.getLogger(JerseyRootResource.class.getName()); - - @Context UriInfo uriInfo; - @Context HttpHeaders headers; - @Context SecurityContext security; - - @GET - public Response get() { - return delegate("GET", null); - } - - @PUT - public Response put(InputStream payload) { - return delegate("PUT", payload); - } - - @POST - public Response post(InputStream payload) { - return delegate("POST", payload); - } - - @DELETE - public Response delete() { - return delegate("DELETE", null); - } - - @HEAD - public Response head() { - return delegate("HEAD", null); - } - - private Response delegate(String method, InputStream payload) { - if (logger.isLoggable(Level.FINEST)) { - StringBuilder sb = new StringBuilder(); - sb.append("\n"); - sb.append(" URI: " + uriInfo.getRequestUri().toString() + "\n"); - sb.append(" Method: " + method + "\n"); - sb.append(" Headers: " + headers.getRequestHeaders() + "\n"); - - String msg = I18n.lf("RESTBC-1101: Inbound Request: {0}", sb.toString());//NOI18N - logger.finest(msg); - } - - InboundDelegator inboundDelegator = InboundDelegator.getInstance(); - if (inboundDelegator == null) { - String msg = I18n.loc("RESTBC-7101: Inbound delegator not initialized yet"); - logger.severe(msg); - ResponseBuilder responseBuilder = Response.serverError(); - responseBuilder.entity(msg); - return responseBuilder.build(); - } - - try { - ResponseBuilder responseBuilder = inboundDelegator.delegateRequest(method, uriInfo, headers, security, payload); - - Response response = responseBuilder.build(); - - if (logger.isLoggable(Level.FINEST)) { - StringBuilder sb = new StringBuilder(); - sb.append("\n"); - sb.append(" URI: " + uriInfo.getRequestUri().toString() + "\n"); - sb.append(" Method: " + method + "\n"); - sb.append(" Status: " + response.getStatus()); - sb.append(" Headers: " + response.getMetadata() + "\n"); - - String msg = I18n.lf("RESTBC-1102: Inbound Response: {0}", sb.toString()); // NOI18N - logger.finest(msg); - } - - return response; - - } catch (Exception e) { - String msg = I18n.loc("RESTBC-7102: Error while serving inbound request {0}", e); - logger.severe(msg); - ResponseBuilder responseBuilder = Response.serverError(); - responseBuilder.entity(msg); - - Response response = responseBuilder.build(); - - if (logger.isLoggable(Level.FINEST)) { - StringBuilder sb = new StringBuilder(); - sb.append("\n"); - sb.append(" URI: " + uriInfo.getRequestUri().toString() + "\n"); - sb.append(" Method: " + method + "\n"); - sb.append(" Status: " + response.getStatus()); - sb.append(" Headers: " + response.getMetadata() + "\n"); - - String responseMsg = I18n.lf("RESTBC-1102: Inbound Response: {0}", sb.toString()); // NOI18N - logger.finest(responseMsg); - } - - return response; - } - - - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResourceApplication.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResourceApplication.java deleted file mode 100755 index 94e1683d6..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JerseyRootResourceApplication.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.util.HashSet; -import java.util.Set; - -import javax.ws.rs.core.Application; - -/** - * JerseyRootResourceApplication.java - * - * @author Edward Chou - */ -public class JerseyRootResourceApplication extends Application { - - /* (non-Javadoc) - * @see javax.ws.rs.core.Application#getClasses() - */ - @Override - public Set> getClasses() { - Set> classes = new HashSet> (); - classes.add(JerseyRootResource.class); - return classes; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/PathUtil.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/PathUtil.java deleted file mode 100755 index d998bb72c..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/PathUtil.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -/** - * PathUtil.java - * - * @author Edward Chou - */ -public class PathUtil { - - - public static String normalizePath(String path) { - // compact all slashes - String s = path.replaceAll("/++", "/"); - - // remove starting and ending slashes - if (s.startsWith("/")) { - s = s.substring(1); - } - if (s.endsWith("/")) { - s = s.substring(0, s.length() - 1); - } - - return s.toLowerCase(); - } -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/RestServiceUnit.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/RestServiceUnit.java deleted file mode 100755 index 497bf40ae..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/RestServiceUnit.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.io.File; -import java.util.logging.Logger; - -import javax.jbi.component.ComponentContext; -import javax.xml.namespace.QName; -import javax.xml.transform.stream.StreamSource; - -import com.sun.grizzly.http.servlet.ServletAdapter; -import com.sun.jbi.restbc.jbiadapter.RestComponent; -import com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig; - -/** - * RestServiceUnit.java - * - * @author Edward Chou - */ -public class RestServiceUnit implements ServiceUnitConfig { - - public final static String REST_CONFIG_FILE_NAME = "rest-config.xml"; - - private final static Logger logger = Logger.getLogger(RestServiceUnit.class.getName()); - - private RestComponent component; - private ComponentContext context; - private String serviceUnitName; - private String serviceUnitRootPath; - - public RestServiceUnit(RestComponent component, ComponentContext context, String serviceUnitName, String serviceUnitRootPath) throws Exception { - this.component = component; - this.context = context; - this.serviceUnitName = serviceUnitName; - this.serviceUnitRootPath = serviceUnitRootPath; - - init(); - } - - private void init() throws Exception { - File rootDir = new File(serviceUnitRootPath); - File configXML = new File(rootDir, REST_CONFIG_FILE_NAME); - - } - - - public void start() throws Exception { - /* - for (InboundConfig inboundConfig : restConfig.getInboundConfig()) { - String listenerName = inboundConfig.getListenerName(); - String contextRoot = inboundConfig.getContextRoot(); - - InboundHttpListener listener = component.getInboundHttpListener(listenerName); - if (listener == null) { - throw new Exception("cannot find listener with name: " + listenerName); - } - - // register contextRoot - ServletAdapter servletAdapter = null; - listener.registerContext(contextRoot, servletAdapter); - } - */ - } - - public void stop() throws Exception { - /* - for (InboundConfig inboundConfig : restConfig.getInboundConfig()) { - String listenerName = inboundConfig.getListenerName(); - String contextRoot = inboundConfig.getContextRoot(); - - InboundHttpListener listener = component.getInboundHttpListener(listenerName); - if (listener == null) { - throw new Exception("cannot find listener with name: " + listenerName); - } - - // unregister contextRoot - listener.unregisterContext(contextRoot); - } - */ - } - - public void shutdown() throws Exception { - - } - - - public String getServiceUnitName() { - return serviceUnitName; - } - - /* (non-Javadoc) - * @see com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig#getEndpointName() - */ - public String getEndpointName() { - // TODO Auto-generated method stub - return null; - } - - /* (non-Javadoc) - * @see com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig#getServiceName() - */ - public QName getServiceName() { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java b/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java deleted file mode 100755 index 8055b3402..000000000 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java +++ /dev/null @@ -1,163 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; - -import java.io.File; -import java.net.URL; -import java.net.URLClassLoader; -import java.util.Map; -import java.util.Set; -import java.util.logging.Level; -import java.util.logging.Logger; - -import javax.ws.rs.Path; -import javax.ws.rs.ext.Provider; - -import com.sun.jersey.api.core.DefaultResourceConfig; - -/** - * ServiceUnitResourceConfig.java - * - * @author Edward Chou - */ -public class ServiceUnitResourceConfig extends DefaultResourceConfig { - - public static final String PROPERTY_CLASSPATH - = "com.sun.jersey.config.property.classpath"; - - public static final String SERVICE_UNIT_ROOT = - "com.sun.jbi.config.property.serviceunitroot"; - - private static final Logger LOGGER = - Logger.getLogger(ServiceUnitResourceConfig.class.getName()); - - private final String[] paths; - - private ClassLoader serviceUnitClassLoader; - - public ServiceUnitResourceConfig() { - this(getPaths(), null); - } - - public ServiceUnitResourceConfig(Map props) { - this(getPaths(props), props); - - setPropertiesAndFeatures(props); - } - - public ServiceUnitResourceConfig(String[] paths, Map props) { - super(); - - if (paths == null || paths.length == 0) - throw new IllegalArgumentException( - "Array of paths must not be null or empty"); - - this.paths = paths.clone(); - - try { - Object v = props.get(SERVICE_UNIT_ROOT); - if (v == null) - throw new IllegalArgumentException(SERVICE_UNIT_ROOT + " property is missing"); - - String serviceUnitRoot = (String) v; - URL serviceUnitRootURL = new File(serviceUnitRoot).toURL(); - serviceUnitClassLoader = new URLClassLoader(new URL[] { serviceUnitRootURL }, this.getClass().getClassLoader()); - } catch(Exception e) { - LOGGER.log(Level.WARNING, "unable to create ServiceUnit ClassLoader", e); - } - - init(paths); - } - - /** - * Perform a new search for resource classes and provider classes. - */ - public void reload() { - getClasses().clear(); - init(paths); - } - - private void init(String[] paths) { - File[] roots = new File[paths.length]; - for (int i = 0; i< paths.length; i++) { - roots[i] = new File(paths[i]); - } - - if (LOGGER.isLoggable(Level.INFO)) { - StringBuilder b = new StringBuilder(); - b.append("Scanning for root resource and provider classes in the paths:"); - for (String p : paths) - b.append('\n').append(" ").append(p); - - LOGGER.log(Level.INFO, b.toString()); - } - - - JaxrsAnnotationScanner scanner = new JaxrsAnnotationScanner(serviceUnitClassLoader, Path.class, Provider.class); - - scanner.scan(roots); - - getClasses().addAll(scanner.getMatchingClasses()); - - if (LOGGER.isLoggable(Level.INFO) && !getClasses().isEmpty()) { - StringBuilder b = new StringBuilder(); - b.append("Root resource classes found:"); - for (Class c : getClasses()) { - if (c.isAnnotationPresent(Path.class)) { - b.append('\n').append(" ").append(c); - } - } - - LOGGER.log(Level.INFO, b.toString()); - - b = new StringBuilder(); - b.append("Provider classes found:"); - for (Class c : getClasses()) { - if (c.isAnnotationPresent(Provider.class)) { - b.append('\n').append(" ").append(c); - } - } - - LOGGER.log(Level.INFO, b.toString()); - } - } - - private static String[] getPaths() { - String classPath = System.getProperty("java.class.path"); - return classPath.split(File.pathSeparator); - } - - private static String[] getPaths(Map props) { - Object v = props.get(PROPERTY_CLASSPATH); - if (v == null) - throw new IllegalArgumentException(PROPERTY_CLASSPATH + - " property is missing"); - - String[] paths = getPaths(v); - if (paths.length == 0) - throw new IllegalArgumentException(PROPERTY_CLASSPATH + - " contains no paths"); - - return paths; - } - - private static String[] getPaths(Object param) { - if (param instanceof String) { - return getElements(new String[] { (String)param }); - } else if (param instanceof String[]) { - return getElements((String[])param); - } else { - throw new IllegalArgumentException(PROPERTY_CLASSPATH + " must " + - "have a property value of type String or String[]"); - } - } - - /* (non-Javadoc) - * @see com.sun.jersey.api.core.DefaultResourceConfig#getClasses() - */ - @Override - public Set> getClasses() { - Set> classes = super.getClasses(); - classes.add(BundleContextProvider.class); - return classes; - } - -} diff --git a/ojc-core/restbc/jbiadapter/src/main/java/com/sun/jbi/common/util/msgs.properties b/ojc-core/restbc/jbiadapter/src/main/java/com/sun/jbi/common/util/msgs.properties new file mode 100644 index 000000000..a069abdfe --- /dev/null +++ b/ojc-core/restbc/jbiadapter/src/main/java/com/sun/jbi/common/util/msgs.properties @@ -0,0 +1,330 @@ +# DO NOT EDIT +# THIS FILE IS GENERATED AUTOMATICALLY FROM JAVA SOURCES/CLASSES + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1001 = ComponentLifeCycle.init() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1002 = ComponentLifeCycle.shutdown() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1003 = ComponentLifeCycle.start() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1004 = ComponentLifeCycle.stop() called. + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-1021 = Bootstrap init called. + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1031 = ServiceUnitManager.deploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1032 = ServiceUnitManager.init() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1033 = ServiceUnitManager.init() successful serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1034 = ServiceUnitManager.shutdown() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1035 = ServiceUnitManager.start() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1036 = ServiceUnitManager.stop() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1037 = ServiceUnitManager.undeploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1051 = ServiceUnit.start() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1052 = ServiceUnit.stop() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1053 = ServiceUnit.shutdown() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1061 = creating NMR Receiver\: threadPoolSize\={0}, maxTheadPoolSize\={1}, maxWaitMillis\={2}, + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1062 = starting NMR Receiver + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1063 = stopping NMR Receiver + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1064 = received a MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1121 = WSDLEndpoint.start() + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1122 = WSDLEndpoint.stop() + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1123 = WSDLEndpoint.shutdown() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1131 = PropertyServiceUnitConfig.start() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1132 = PropertyServiceUnitConfig.stop() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1133 = PropertyServiceUnitConfig.shutdown() + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1202 = Application Configuration deleted {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1204 = New application variable added {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1205 = Application variable deleted {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4001 = Initializing Keystore at location {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4002 = Initializing Truststore at location {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4003 = Started listener {0} at port {1} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-4121 = activating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-4122 = deactivating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-4131 = activating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-4132 = deactivating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5001 = Initialized {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5002 = Shut down {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5003 = Start {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5004 = Stop {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-5031 = Deployed ServiceUnit {0}. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6001 = Unable to initialize SSLContext, install root is not a directory {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6002 = Unable to initialize SSLContext, keystore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6003 = Unable to initialize SSLContext, truststore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6004 = Unable to initialize SSLContext {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6005 = Unable to initialize SSLConfig, install root is not a directory {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6006 = Unable to initialize SSLConfig, keystore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6007 = Unable to initialize SSLConfig, truststore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6051 = unable to instantiate PropertyServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6052 = unable to instantiate JaxrsPojoServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6053 = unable to instantiate WSDLServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7003 = {0} failed to start {1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7004 = {0} failed to stop {1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7005 = {0} failed to stop HTTP listener {1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7021 = Failed to parse component descriptor\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7022 = Failed to initialize component bootstrap\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7023 = Failed to register component bootstrap\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7031 = Duplicate ServiceUnit {0}, cannot proceed with deployment. + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7032 = Error shutting down Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7033 = Cannot find Service Unit {0} to shutdown + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7034 = Error starting Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7035 = Cannot find Service Unit {0} to start + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7036 = Error stopping Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7037 = Cannot find Service Unit {0} to stop + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-7061 = Error during DeliveryChannel.accept() {0} + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-7062 = Error during Receiver.run() {0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7071 = error processing MessageExchange\: id\={0}, {1} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7072 = unsupported MEP\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7073 = Inbound MEP should not get here\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7074 = cannot find corresponding endpoint for this MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7075 = error when processing MessageExchange\: id\={0}, {1} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7076 = got ERROR status for MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7111 = Request URL {0} does not match any ServiceUnit with listenerName\={1} + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7112 = Unexcepted error\: unable to match request path with a inbound configuration + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7113 = Inbound request timed-out after {0} ms + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7114 = Error during inbound request {0} + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7115 = Incorrect return status for inbound request + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7116 = Unsupported MEP type {0} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7121 = http-listener-name\={0} specified in the inbound configuration for WSDL operation {1} does not match an existing HTTP Listener. + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7122 = unable to activate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7123 = unable to deactivate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7131 = http-listener-name\={0} specified in the inbound configuration for PropertyConfiguration does not match an existing HTTP Listener. + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7132 = unable to activate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7133 = unable to deactivate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7134 = {0} property cannot be empty. + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7201 = Application Config already exists {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7202 = Invalid item size for Application Config {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7203 = Invalid key for composite data for Application Config {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7204 = Application Configuration does not exist for delete {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7205 = Application Configuration does not exist for set {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7206 = Invalid item size for app config {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7207 = Invalid key for composite data for app config + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7208 = Unable to construct composite data for app config {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7209 = Application variable name already exists {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7210 = Invalid item size for app variable {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7211 = Invalid key for composite data for app variable {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7212 = Invalid app variable composite data no value field {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7213 = Invalid app variable composite data no type field + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7214 = Application variable does not exist for delete {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7215 = Application variable does not exist for set {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7216 = Invalid item size for app variable + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7219 = Invalid app variable composite data no type field {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7220 = Unable to construct composite data for app variable + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7221 = Invalid app config composite data null url + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7224 = Failed to persist application variables {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7225 = Failed to load application variables {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7226 = Failed to persist application configurations {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7227 = Failed to load application configurations {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7228 = Failed during mbean initialization {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7521 = Exception while persisting configuration changes. + diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/I18n.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/I18n.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/I18n.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/I18n.java index 654550548..08ff75094 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/I18n.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/I18n.java @@ -27,15 +27,15 @@ * * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; + +import java.util.regex.Matcher; +import java.util.regex.Pattern; import com.sun.jbi.alerter.Alerter; import com.sun.jbi.alerter.AlerterImpl; import com.sun.jbi.alerter.NotificationEvent; -import java.util.regex.Pattern; - import com.sun.jbi.common.util.LocalizationSupport; -import java.util.regex.Matcher; /** * I18n utility diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/InboundConfiguration.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/InboundConfiguration.java old mode 100755 new mode 100644 similarity index 92% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/InboundConfiguration.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/InboundConfiguration.java index a25e08e5e..46ebeb31c --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/InboundConfiguration.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/InboundConfiguration.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.util.ArrayList; import java.util.Collections; @@ -10,13 +10,14 @@ import javax.ws.rs.core.MediaType; import javax.wsdl.Definition; import javax.xml.namespace.QName; -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.inbound.InboundHttpListener; -import com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; -import com.sun.jbi.restbc.jbiadapter.util.JsonUtil; -import com.sun.jbi.restbc.jbiadapter.util.PropertiesUtil; -import com.sun.jbi.restbc.jbiadapter.wsdl.RestOperation; -import com.sun.jersey.api.uri.UriTemplate; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.inbound.InboundHttpListener; +import net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; +import net.openesb.jbi.restbc.jbiadapter.util.JsonUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.wsdl.RestOperation; + +import org.glassfish.jersey.uri.UriTemplate; /** * InboundConfiguration.java @@ -70,6 +71,7 @@ public class InboundConfiguration { this.serviceName = serviceName; this.endpointName = endpointName; this.endpointIdentifier = endpointIdentifier; + httpListenerName = PropertiesUtil.safeGetProperty(p, HTTP_LISTENER_NAME_PROP, InboundHttpListener.DEFAULT_LISTENER); String appConfigName = endpointIdentifier.getApplicationConfigurationName(); diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/JerseyClientWrapper.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/JerseyClientWrapper.java old mode 100755 new mode 100644 similarity index 74% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/JerseyClientWrapper.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/JerseyClientWrapper.java index 76e966ac8..466289967 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/JerseyClientWrapper.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/JerseyClientWrapper.java @@ -1,16 +1,5 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; -import com.sun.jbi.restbc.jbiadapter.descriptor.Filter; -import com.sun.jbi.restbc.jbiadapter.util.*; -import com.sun.jbi.restbc.jbiadapter.wsdl.RestOperation; -import com.sun.jersey.api.client.Client; -import com.sun.jersey.api.client.ClientRequest; -import com.sun.jersey.api.client.ClientResponse; -import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter; -import com.sun.jersey.api.uri.UriTemplate; -import com.sun.jersey.api.uri.UriBuilderImpl; -import com.sun.jersey.client.urlconnection.HTTPSProperties; -import com.sun.jersey.client.urlconnection.URLConnectionClientHandler; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStream; @@ -22,6 +11,7 @@ import java.util.Map; import java.util.UUID; import java.util.logging.Level; import java.util.logging.Logger; + import javax.activation.DataHandler; import javax.activation.DataSource; import javax.jbi.messaging.NormalizedMessage; @@ -29,13 +19,33 @@ import javax.mail.util.ByteArrayDataSource; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; +import javax.ws.rs.client.Client; +import javax.ws.rs.client.ClientBuilder; +import javax.ws.rs.client.ClientRequestFilter; +import javax.ws.rs.client.Entity; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.client.WebTarget; import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.Response; import javax.ws.rs.core.UriBuilder; import javax.wsdl.Definition; import javax.xml.namespace.QName; import javax.xml.transform.Source; import javax.xml.transform.dom.DOMSource; +import net.openesb.jbi.restbc.jbiadapter.descriptor.Filter; +import net.openesb.jbi.restbc.jbiadapter.util.BeanUtil; +import net.openesb.jbi.restbc.jbiadapter.util.JbiMessageUtil; +import net.openesb.jbi.restbc.jbiadapter.util.JsonUtil; +import net.openesb.jbi.restbc.jbiadapter.util.MediaTypeUtil; +import net.openesb.jbi.restbc.jbiadapter.util.NMPropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PathUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.wsdl.RestOperation; + +import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature; +import org.glassfish.jersey.uri.UriTemplate; + /** * JerseyClientWrapper.java * @@ -59,7 +69,7 @@ public final class JerseyClientWrapper { return instance; } - public ClientRequest buildClientRequest( + public Invocation buildClientRequest( RestComponent component, NormalizedMessage requestMsg, OutboundConfiguration outboundConfig) throws Exception { @@ -79,7 +89,7 @@ public final class JerseyClientWrapper { UriTemplate uriTemplate = new UriTemplate(url); String resultURL = uriTemplate.createURI(pathParams); - UriBuilder uriBuilder = UriBuilderImpl.fromUri(resultURL); + UriBuilder uriBuilder = UriBuilder.fromUri(resultURL); // build params String paramStyle = PropertiesUtil.safeGetProperty(requestMsg, NMProps.NM_PARAM_STYLE_PROP); @@ -165,29 +175,34 @@ public final class JerseyClientWrapper { } // create ClientRequest.Builder - ClientRequest.Builder requestBuilder = ClientRequest.create(); + Client client = ClientBuilder.newClient(); + WebTarget target = client.target(uriBuilder.build().toString()); + target = register(target, requestMsg, outboundConfig); + + + Invocation.Builder invocationBuilder = target.request(); boolean isContentTypeSet = false; if (contentType.length() > 0) { - requestBuilder.type(contentType); + invocationBuilder.header("Content-Type", contentType); isContentTypeSet = true; } boolean isDateSet = false; if (date.length() > 0) { - requestBuilder.header("Date", date); + invocationBuilder.header("Date", date); isDateSet = true; } boolean isAcceptSet = false; for (MediaType acceptType : acceptMediaTypes) { - requestBuilder.accept(acceptType); + invocationBuilder.accept(acceptType); isAcceptSet = true; } boolean isAcceptLanguageSet = false; for (String acceptLanguage : acceptLanguages) { - requestBuilder.acceptLanguage(acceptLanguage); + invocationBuilder.acceptLanguage(acceptLanguage); isAcceptLanguageSet = true; } @@ -215,11 +230,12 @@ public final class JerseyClientWrapper { continue; } - requestBuilder.header(header.getKey(), header.getValue()); + invocationBuilder.header(header.getKey(), header.getValue()); } + URI uri = uriBuilder.build(); - ClientRequest clientRequest = requestBuilder.build(uri, requestMethod); + Invocation invocation = null; // set security if necessary if (uri.getScheme() != null && uri.getScheme().equalsIgnoreCase("https")) { // NOI18N @@ -235,9 +251,9 @@ public final class JerseyClientWrapper { } }; } - - HTTPSProperties prop = new HTTPSProperties(hostnameVerifier, sslContext); - clientRequest.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, prop); + //LDE : todo + //HTTPSProperties prop = new HTTPSProperties(hostnameVerifier, sslContext); + //WebTarget.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, prop); } else { String msg = I18n.loc("RESTBC-7081: SSLContext is unavailable to make HTTPS Request");//NOI18N @@ -253,7 +269,8 @@ public final class JerseyClientWrapper { String msg = I18n.lf("RESTBC-1081: ignored reading payload for {0} method", requestMethod);//NOI18N logger.finest(msg); } - return clientRequest; + invocation = invocationBuilder.build(requestMethod); + return invocation; } // use the entity as payload @@ -265,8 +282,9 @@ public final class JerseyClientWrapper { logger.finest(msg); } String entityString = (String) entity; - clientRequest.setEntity(entityString); - return clientRequest; + invocation = invocationBuilder.build(requestMethod, Entity.text(entityString)); + //clientRequest.setEntity(entityString); + return invocation; } else if (entity instanceof org.w3c.dom.Node) { if (logger.isLoggable(Level.FINEST)) { String msg = I18n.lf("RESTBC-1083: sending entity located in NM property for the request as a DOMSource object");//NOI18N @@ -275,18 +293,18 @@ public final class JerseyClientWrapper { org.w3c.dom.Node entityNode = (org.w3c.dom.Node) entity; DOMSource domSource = new DOMSource(entityNode); if (isContentTypeSet && PathUtil.isJSONMediaType(contentType)) { - String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(domSource); - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = - com.sun.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); + String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(domSource, outboundConfig.isStripNamespaces()); + net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = + net.openesb.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); if (jsonObject != null) { - clientRequest.setEntity(jsonObject.toString()); + invocation =invocationBuilder.build(requestMethod, Entity.json(jsonObject.toString())); } else { - clientRequest.setEntity(xmlPayloadAsString); + invocation =invocationBuilder.build(requestMethod, Entity.json(xmlPayloadAsString)); } } else { - clientRequest.setEntity(JbiMessageUtil.convertXmlToString(domSource)); + invocation =invocationBuilder.build(requestMethod, Entity.xml(JbiMessageUtil.convertXmlToString(domSource))); } - return clientRequest; + return invocation; } else if (entity instanceof Source) { if (logger.isLoggable(Level.FINEST)) { String msg = I18n.lf("RESTBC-1084: sending entity located in NM property for the request as a Source object");//NOI18N @@ -294,18 +312,18 @@ public final class JerseyClientWrapper { } Source entitySource = (Source) entity; if (isContentTypeSet && PathUtil.isJSONMediaType(contentType)) { - String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(entitySource); - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = - com.sun.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); + String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(entitySource, outboundConfig.isStripNamespaces()); + net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = + net.openesb.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); if (jsonObject != null) { - clientRequest.setEntity(jsonObject.toString()); + invocation =invocationBuilder.build(requestMethod, Entity.json(jsonObject.toString())); } else { - clientRequest.setEntity(xmlPayloadAsString); + invocation =invocationBuilder.build(requestMethod, Entity.json(xmlPayloadAsString)); } } else { - clientRequest.setEntity(JbiMessageUtil.convertXmlToString(entitySource)); + invocation =invocationBuilder.build(requestMethod, Entity.xml(JbiMessageUtil.convertXmlToString(entitySource))); } - return clientRequest; + return invocation; } } @@ -315,32 +333,34 @@ public final class JerseyClientWrapper { if (requestPayload instanceof Source) { Source xmlPayload = (Source) requestPayload; if (isContentTypeSet && PathUtil.isJSONMediaType(contentType)) { - String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(xmlPayload); - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = - com.sun.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); + String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(xmlPayload, outboundConfig.isStripNamespaces()); + net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = + net.openesb.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); if (jsonObject != null) { - clientRequest.setEntity(jsonObject.toString()); + invocation = invocationBuilder.build(requestMethod, Entity.json(jsonObject.toString())); } else { - clientRequest.setEntity(xmlPayloadAsString); + invocation = invocationBuilder.build(requestMethod, Entity.json((xmlPayloadAsString))); } } else { - clientRequest.setEntity(JbiMessageUtil.convertXmlToString(xmlPayload)); + invocation = invocationBuilder.build(requestMethod, Entity.xml(JbiMessageUtil.convertXmlToString(xmlPayload))); } } else { DataHandler streamPayload = (DataHandler) requestPayload; - clientRequest.setEntity(streamPayload.getInputStream()); + //LDE : todo + //invocation = invocationBuilder.build(requestMethod, streamPayload.getInputStream()); } } - return clientRequest; + return invocation; + } public void buildNormalizedReplyMessage(NormalizedMessage replyMsg, - ClientRequest clientRequest, - ClientResponse clientResponse, + String method, + Response clientResponse, OutboundConfiguration outboundConfig) throws Exception { - String method = clientRequest.getMethod(); + replyMsg.setProperty(NMProps.NM_RESPONSE_STATUS_PROP, clientResponse.getStatus()); @@ -348,15 +368,16 @@ public final class JerseyClientWrapper { replyMsg.setProperty(NMProps.NM_RESPONSE_URL_PROP, clientResponse.getLocation().toString()); } - if (clientResponse.getType() != null) { - replyMsg.setProperty(NMProps.NM_RESPONSE_CONTENT_TYPE_PROP, MediaTypeUtil.mediaTypeToString(clientResponse.getType())); + if (clientResponse.getHeaderString("Content-Type") != null) { + replyMsg.setProperty(NMProps.NM_RESPONSE_CONTENT_TYPE_PROP, MediaTypeUtil.mediaTypeToString(clientResponse.getMediaType())); } - Map headers = NMPropertiesUtil.multivaluedMapToMap(clientResponse.getHeaders()); + Map headers = NMPropertiesUtil.multivaluedMapToMap(clientResponse.getStringHeaders()); replyMsg.setProperty(NMProps.NM_RESPONSE_HEADERS_PROP, JsonUtil.buildJson(headers)); NMPropertiesUtil.setDynamicNMProperties(replyMsg, NMProps.NM_RESPONSE_HEADERS_PROP, headers); - InputStream inputStream = clientResponse.getEntity(InputStream.class); + //LDE : todo + InputStream inputStream = (InputStream)clientResponse.getEntity(); RestOperation restOp = outboundConfig.getRestOp(); Definition definition = outboundConfig.getDefinition(); @@ -364,8 +385,8 @@ public final class JerseyClientWrapper { // has WSDL configuration Source replyContent = null; - if (inputStream != null && clientResponse.getType() != null && !method.equalsIgnoreCase("head")) { - MediaType mediaType = clientResponse.getType(); + if (inputStream != null && clientResponse.getMediaType() != null && !method.equalsIgnoreCase("head")) { + MediaType mediaType = clientResponse.getMediaType(); if (PathUtil.isXMLMediaType(mediaType) && !outboundConfig.isForwardAsAttachment()) { // this is XML content and don't forward as attachment replyContent = JbiMessageUtil.createJbiWrappedMsg(inputStream, restOp, definition, true); @@ -378,8 +399,8 @@ public final class JerseyClientWrapper { sb.append(currentString); currentString = reader.readLine(); } - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new com.sun.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); - String xmlString = com.sun.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); + net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); + String xmlString = net.openesb.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); replyContent = JbiMessageUtil.createJbiWrappedMsg(xmlString, restOp, definition, false); } else { // treat as attachment @@ -404,8 +425,8 @@ public final class JerseyClientWrapper { } catch (IllegalArgumentException iae) { // ignore } - if (inputStream != null && clientResponse.getType() != null && !method.equalsIgnoreCase("head")) { - MediaType mediaType = clientResponse.getType(); + if (inputStream != null && clientResponse.getMediaType() != null && !method.equalsIgnoreCase("head")) { + MediaType mediaType = clientResponse.getMediaType(); if (PathUtil.isXMLMediaType(mediaType) && !outboundConfig.isForwardAsAttachment()) { // this is XML content and don't forward as attachment replyContent = JbiMessageUtil.createJbiWrappedMsg(msgType, inputStream); @@ -418,13 +439,13 @@ public final class JerseyClientWrapper { sb.append(currentString); currentString = reader.readLine(); } - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new com.sun.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); - String xmlString = com.sun.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); + net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); + String xmlString = net.openesb.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); replyContent = JbiMessageUtil.createJbiWrappedMsg(msgType, new ByteArrayInputStream(xmlString.getBytes())); } else { // treat as attachment - DataSource ds = new ByteArrayDataSource(inputStream, MediaTypeUtil.mediaTypeToString(clientResponse.getType())); + DataSource ds = new ByteArrayDataSource(inputStream, MediaTypeUtil.mediaTypeToString(clientResponse.getMediaType())); DataHandler dataHandler = new DataHandler(ds); String uuid = UUID.randomUUID().toString(); @@ -440,12 +461,14 @@ public final class JerseyClientWrapper { } } - - public ClientResponse makeRequest(ClientRequest request, + + + public WebTarget register(WebTarget webTarget, NormalizedMessage requestMsg, OutboundConfiguration outboundConfig) throws Exception { - Client client = new Client(new URLConnectionClientHandler(new HttpProxyURLConnectionFactory())); + //LDE : what? + //Client client = new Client(new URLConnectionClientHandler(new HttpProxyURLConnectionFactory())); // add basic auth filter String basicAuthUsername = PropertiesUtil.safeGetProperty(requestMsg, NMProps.NM_BASICAUTH_USERNAME_PROP); @@ -459,18 +482,19 @@ public final class JerseyClientWrapper { } if (basicAuthUsername.length() > 0 && basicAuthPassword.length() > 0) { - client.addFilter(new HTTPBasicAuthFilter(basicAuthUsername, basicAuthPassword)); + webTarget.register(HttpAuthenticationFeature.basic(basicAuthUsername, basicAuthPassword)); } - if (logger.isLoggable(Level.FINEST)) { - logger.finest(getClientRequestAsString(request)); - } + //LDE : todo + //if (logger.isLoggable(Level.FINEST)) { + // logger.finest(getClientRequestAsString(request.)); + //} // apply all custom filters for (Filter filter : outboundConfig.getEndpointIdentifier().getFilters()) { try { Class filterClass = outboundConfig.getServiceUnit().loadFilterClass(filter.getClassName()); - if (!com.sun.jersey.api.client.filter.ClientFilter.class.isAssignableFrom(filterClass)) { + if (!ClientRequestFilter.class.isAssignableFrom(filterClass)) { String msg = I18n.lf("RESTBC-6085: filter class {0} is not a subclass of com.sun.jersey.api.client.filter.ClientFilter, skipping ...", filter.getClassName());//NOI18N logger.warning(msg); continue; @@ -483,7 +507,7 @@ public final class JerseyClientWrapper { BeanUtil.setProperty(filterObject, key, val); } - client.addFilter((com.sun.jersey.api.client.filter.ClientFilter) filterObject); + webTarget.register((ClientRequestFilter) filterObject); } catch (Exception e) { String msg = I18n.lf("RESTBC-6086: unable to instantiate filter class {0} skipping ..., {1}", filter.getClassName(), e);//NOI18N @@ -493,22 +517,21 @@ public final class JerseyClientWrapper { } - ClientResponse response = client.handle(request); + //LDE toto + //if (logger.isLoggable(Level.FINEST)) { + // logger.finest(getClientResponseAsString(response)); + //} - if (logger.isLoggable(Level.FINEST)) { - logger.finest(getClientResponseAsString(response)); - } - - return response; + return webTarget; } - +/* private String getClientRequestAsString(ClientRequest request) { StringBuilder sb = new StringBuilder(); try { sb.append("Client Request: \n"); - sb.append(" URI = " + request.getURI() + "\n"); + sb.append(" URI = " + request.getUri()+ "\n"); sb.append(" Method = " + request.getMethod() + "\n"); - sb.append(" Headers = " + request.getMetadata() + "\n"); + sb.append(" Headers = " + request.getHeaders()+ "\n"); } catch (Exception e) { logger.log(Level.WARNING, "error logging client request", e); } @@ -519,12 +542,12 @@ public final class JerseyClientWrapper { StringBuilder sb = new StringBuilder(); try { sb.append("Client Response: \n"); - sb.append(" Status = " + response.getResponseStatus() + " \n"); - sb.append(" Type = " + MediaTypeUtil.mediaTypeToString(response.getType()) + " \n"); + sb.append(" Status = " + response.getStatus()+ " \n"); + sb.append(" Type = " + MediaTypeUtil.mediaTypeToString(response.getMediaType()) + " \n"); sb.append(" Headers = " + response.getHeaders() + " \n"); } catch (Exception e) { logger.log(Level.WARNING, "error logging client response", e); } return sb.toString(); - } -} + }*/ +} \ No newline at end of file diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/MessageProcessor.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/MessageProcessor.java old mode 100755 new mode 100644 similarity index 85% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/MessageProcessor.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/MessageProcessor.java index 172371b47..58e03e1b2 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/MessageProcessor.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/MessageProcessor.java @@ -1,4 +1,6 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; + +import java.util.logging.Logger; import javax.jbi.component.ComponentContext; import javax.jbi.messaging.ExchangeStatus; @@ -6,14 +8,17 @@ import javax.jbi.messaging.InOnly; import javax.jbi.messaging.InOut; import javax.jbi.messaging.MessageExchange; import javax.jbi.messaging.NormalizedMessage; +import javax.ws.rs.client.Invocation; +import javax.ws.rs.core.Response; + +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; + +import org.glassfish.jersey.client.ClientRequest; +import org.glassfish.jersey.client.ClientResponse; import com.sun.jbi.common.qos.ServiceQuality; import com.sun.jbi.common.qos.messaging.BaseMessagingChannel; import com.sun.jbi.common.qos.messaging.MessagingChannel; -import com.sun.jersey.api.client.ClientRequest; -import com.sun.jersey.api.client.ClientResponse; - -import java.util.logging.Logger; /** @@ -108,16 +113,26 @@ public class MessageProcessor implements Runnable { NormalizedMessage requestMsg = inOut.getInMessage(); + //TODO process request JerseyClientWrapper clientWrapper = JerseyClientWrapper.getInstance(); - ClientRequest clientRequest = clientWrapper.buildClientRequest(component, requestMsg, - outboundConfig); + // build method + String requestMethod = PropertiesUtil.safeGetProperty(requestMsg, NMProps.NM_METHOD_PROP); + if (requestMethod.length() == 0) { + requestMethod = outboundConfig.getMethod(); + } - ClientResponse clientResponse = clientWrapper.makeRequest(clientRequest, requestMsg, - outboundConfig); + Invocation clientRequest = clientWrapper.buildClientRequest(component, requestMsg, + outboundConfig); + + Response clientResponse = clientRequest.invoke(); + // Response clientResponse = clientWrapper.makeRequest(clientRequest, requestMsg, + // outboundConfig); NormalizedMessage replyMsg = inOut.createMessage(); - clientWrapper.buildNormalizedReplyMessage(replyMsg, clientRequest, clientResponse, outboundConfig); + + + clientWrapper.buildNormalizedReplyMessage(replyMsg, requestMethod, clientResponse, outboundConfig); inOut.setOutMessage(replyMsg); @@ -161,20 +176,20 @@ public class MessageProcessor implements Runnable { } NormalizedMessage requestMsg = inOnly.getInMessage(); - + /* JerseyClientWrapper clientWrapper = JerseyClientWrapper.getInstance(); + + WebTarget target = clientWrapper.buildClientRequest(component, requestMsg, outboundConfig); - ClientRequest clientRequest = clientWrapper.buildClientRequest(component, requestMsg, outboundConfig); - - ClientResponse clientResponse = clientWrapper.makeRequest(clientRequest, requestMsg, + Response clientResponse = clientWrapper.makeRequest(target, requestMsg, outboundConfig); if (clientResponse.getStatus() >= 400) { - Exception e = new Exception("client response " + clientResponse.getResponseStatus()); + Exception e = new Exception("client response " + clientResponse.getStatus()); inOnly.setError(e); - } else { + } else {*/ inOnly.setStatus(ExchangeStatus.DONE); - } + /*}*/ } catch (Exception e) { String msg = I18n.loc("RESTBC-7075: error when processing MessageExchange: id={0}, {1}", inOnly.getExchangeId(), e);//NOI18N diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/NMProps.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/NMProps.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/NMProps.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/NMProps.java index 632b18e84..8fc40f7b4 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/NMProps.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/NMProps.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; /** * NMProps.java diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutboundConfiguration.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutboundConfiguration.java old mode 100755 new mode 100644 similarity index 89% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutboundConfiguration.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutboundConfiguration.java index 43cde80dc..5da408e44 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutboundConfiguration.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutboundConfiguration.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.util.ArrayList; import java.util.Collections; @@ -10,11 +10,11 @@ import java.util.Properties; import javax.ws.rs.core.MediaType; import javax.wsdl.Definition; -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; -import com.sun.jbi.restbc.jbiadapter.util.JsonUtil; -import com.sun.jbi.restbc.jbiadapter.util.PropertiesUtil; -import com.sun.jbi.restbc.jbiadapter.wsdl.RestOperation; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; +import net.openesb.jbi.restbc.jbiadapter.util.JsonUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.wsdl.RestOperation; /** * OutboundConfiguration.java @@ -35,6 +35,7 @@ public class OutboundConfiguration { private final static String BASICAUTH_USERNAME_PROP = "basic-auth-username"; private final static String BASICAUTH_PASSWORD_PROP = "basic-auth-password"; private final static String MSG_TYPE = "message-type"; + private final static String STRIP_NAMESPACES = "strip-namespaces"; private String url; private String method; @@ -54,6 +55,8 @@ public class OutboundConfiguration { private RestOperation restOp; private Definition definition; private EndpointIdentifier endpointIdentifier; + // This property is only used in the case of a JSON output + private boolean stripNamespaces = false; public OutboundConfiguration(Properties p, ServiceUnit serviceUnit, @@ -65,6 +68,7 @@ public class OutboundConfiguration { this.restOp = restOp; this.definition = definition; this.endpointIdentifier = endpointIdentifier; + String appConfigName = endpointIdentifier.getApplicationConfigurationName(); if (appConfigName != null && appConfigName.length() > 0) { @@ -95,6 +99,8 @@ public class OutboundConfiguration { basicAuthPassword = PropertiesUtil.applyApplicationVariables(basicAuthPassword, runtimeConfig.retrieveApplicationVariablesMap()); msgType = PropertiesUtil.safeGetProperty(p, MSG_TYPE); + stripNamespaces = Boolean.parseBoolean(PropertiesUtil.safeGetProperty(p, STRIP_NAMESPACES, "false")); + } /** @@ -208,5 +214,11 @@ public class OutboundConfiguration { public EndpointIdentifier getEndpointIdentifier() { return endpointIdentifier; } + /** + * @return the stripNamespaces + */ + public boolean isStripNamespaces() { + return stripNamespaces; + } } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java old mode 100755 new mode 100644 similarity index 80% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java index af0f45144..2214432d4 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/OutstandingMsgExchangeContext.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; /** * OutstandingMsgExchangeContext.java diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java index 6ea343707..b23ad570d --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/PropertyServiceUnitConfig.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.io.File; import java.io.FileInputStream; @@ -13,9 +13,9 @@ import javax.jbi.component.ComponentContext; import javax.jbi.servicedesc.ServiceEndpoint; import javax.xml.namespace.QName; -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; -import com.sun.jbi.restbc.jbiadapter.util.PropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; /** * PropertyServiceUnitConfig.java diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/Receiver.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/Receiver.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/Receiver.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/Receiver.java index 559e774ca..fe8571711 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/Receiver.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/Receiver.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; @@ -7,15 +7,14 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadFactory; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.jbi.component.ComponentContext; import javax.jbi.messaging.MessageExchange; import javax.jbi.messaging.MessagingException; -import com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; - -import java.util.logging.Level; -import java.util.logging.Logger; +import net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; /** * Receiver.java @@ -89,6 +88,7 @@ public class Receiver implements Runnable /*, NotificationListener */ { thisThread.interrupt(); + //TODO shudown listeners /* try { runtimeConfig.removeNotificationListener(this); diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestBootstrap.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestBootstrap.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestBootstrap.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestBootstrap.java index 67cf1dd26..696e5abf2 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestBootstrap.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestBootstrap.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.util.logging.Level; import java.util.logging.Logger; @@ -10,10 +10,11 @@ import javax.jbi.management.DeploymentException; import javax.jbi.management.MBeanNames; import javax.management.ObjectName; +import net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; + import com.sun.jbi.common.qos.config.ComponentConfig; import com.sun.jbi.common.qos.config.ConfigPersistence; import com.sun.jbi.common.util.MBeanHelper; -import com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; /** * RestBootstrap.java @@ -87,3 +88,4 @@ public class RestBootstrap implements Bootstrap { } } } + diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestComponent.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestComponent.java old mode 100755 new mode 100644 similarity index 55% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestComponent.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestComponent.java index 0be001146..f219a82b4 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestComponent.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestComponent.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.io.File; import java.util.HashMap; @@ -20,22 +20,21 @@ import javax.net.ssl.KeyManager; import javax.net.ssl.SSLContext; import javax.net.ssl.TrustManager; +import net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator; +import net.openesb.jbi.restbc.jbiadapter.inbound.InboundHttpListener; +import net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; +import net.openesb.jbi.restbc.jbiadapter.security.X509KeyManagerImpl; +import net.openesb.jbi.restbc.jbiadapter.security.X509TrustManagerImpl; + +import org.glassfish.jersey.servlet.ServletContainer; import org.w3c.dom.Document; import org.w3c.dom.DocumentFragment; -import com.sun.grizzly.SSLConfig; -import com.sun.grizzly.http.servlet.ServletAdapter; import com.sun.jbi.common.qos.config.ComponentConfig; import com.sun.jbi.common.qos.config.ConfigPersistence; import com.sun.jbi.configuration.RuntimeConfigurationHelper; -import com.sun.jbi.restbc.jbiadapter.inbound.CharsetResponseFilter; -import com.sun.jbi.restbc.jbiadapter.inbound.ContentLengthResponseFilter; -import com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator; -import com.sun.jbi.restbc.jbiadapter.inbound.InboundHttpListener; -import com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig; -import com.sun.jbi.restbc.jbiadapter.security.X509KeyManagerImpl; -import com.sun.jbi.restbc.jbiadapter.security.X509TrustManagerImpl; -import com.sun.jersey.spi.container.servlet.ServletContainer; +import org.glassfish.grizzly.ssl.SSLContextConfigurator; +import org.glassfish.grizzly.ssl.SSLEngineConfigurator; /** * RestComponent.java @@ -47,92 +46,113 @@ public class RestComponent implements Component, ComponentLifeCycle { /* * 1-20 */ - private static final Logger logger = Logger.getLogger(RestComponent.class.getName()); - - + private static final Logger logger = Logger.getLogger(RestComponent.class + .getName()); + // SSL system properties private static final String KEYSTORE_PROP = "javax.net.ssl.keyStore"; // NOI18N private static final String KEYSTORE_PASS_PROP = "javax.net.ssl.keyStorePassword"; // NOI18N private static final String TRUSTSTORE_PROP = "javax.net.ssl.trustStore"; // NOI18N private static final String TRUSTSTORE_PASS_PROP = "javax.net.ssl.trustStorePassword"; // NOI18N - - private static final String KEYSTORE_PATH = "keystore.jks"; // NOI18N + + private static final String KEYSTORE_PATH = "keystore.jks"; // NOI18N private static final String TRUSTSTORE_PATH = "truststore.jks"; // NOI18N - - private Map listeners = new HashMap (); - + + private Map listeners = new HashMap(); + private ComponentContext context; private RestSUManager suManager; private RuntimeConfig runtimeConfig; private Receiver receiver; private ComponentConfig compCfg; - //private MBeanHelper mbeanHelper; + // private MBeanHelper mbeanHelper; private RuntimeConfigurationHelper mRuntimeConfigHelper; - + private InboundDelegator inboundDelegator; - + // security private SSLContext sslContext = null; - - //////// - // - // Component Interface Methods - // - //////// - /* (non-Javadoc) + // ////// + // + // Component Interface Methods + // + // ////// + + /* + * (non-Javadoc) + * * @see javax.jbi.component.Component#getLifeCycle() */ public ComponentLifeCycle getLifeCycle() { return this; } - /* (non-Javadoc) - * @see javax.jbi.component.Component#getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint) + /* + * (non-Javadoc) + * + * @see + * javax.jbi.component.Component#getServiceDescription(javax.jbi.servicedesc + * .ServiceEndpoint) */ public Document getServiceDescription(ServiceEndpoint se) { // TODO Auto-generated method stub return null; } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.jbi.component.Component#getServiceUnitManager() */ public ServiceUnitManager getServiceUnitManager() { return suManager; } - /* (non-Javadoc) - * @see javax.jbi.component.Component#isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint, javax.jbi.messaging.MessageExchange) + /* + * (non-Javadoc) + * + * @see javax.jbi.component.Component#isExchangeWithConsumerOkay(javax.jbi. + * servicedesc.ServiceEndpoint, javax.jbi.messaging.MessageExchange) */ - public boolean isExchangeWithConsumerOkay(ServiceEndpoint se, MessageExchange me) { + public boolean isExchangeWithConsumerOkay(ServiceEndpoint se, + MessageExchange me) { // TODO Auto-generated method stub return false; } - /* (non-Javadoc) - * @see javax.jbi.component.Component#isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint, javax.jbi.messaging.MessageExchange) + /* + * (non-Javadoc) + * + * @see javax.jbi.component.Component#isExchangeWithProviderOkay(javax.jbi. + * servicedesc.ServiceEndpoint, javax.jbi.messaging.MessageExchange) */ - public boolean isExchangeWithProviderOkay(ServiceEndpoint se, MessageExchange me) { + public boolean isExchangeWithProviderOkay(ServiceEndpoint se, + MessageExchange me) { // TODO Auto-generated method stub return false; } - /* (non-Javadoc) - * @see javax.jbi.component.Component#resolveEndpointReference(org.w3c.dom.DocumentFragment) + /* + * (non-Javadoc) + * + * @see javax.jbi.component.Component#resolveEndpointReference(org.w3c.dom. + * DocumentFragment) */ public ServiceEndpoint resolveEndpointReference(DocumentFragment df) { // TODO Auto-generated method stub return null; } - //////// + // ////// // - // ComponentLifeCycle Interface Methods + // ComponentLifeCycle Interface Methods // - //////// - - /* (non-Javadoc) + // ////// + + /* + * (non-Javadoc) + * * @see javax.jbi.component.ComponentLifeCycle#getExtensionMBeanName() */ public ObjectName getExtensionMBeanName() { @@ -140,62 +160,72 @@ public class RestComponent implements Component, ComponentLifeCycle { return null; } - /* (non-Javadoc) - * @see javax.jbi.component.ComponentLifeCycle#init(javax.jbi.component.ComponentContext) + /* + * (non-Javadoc) + * + * @see javax.jbi.component.ComponentLifeCycle#init(javax.jbi.component. + * ComponentContext) */ public void init(ComponentContext context) throws JBIException { if (logger.isLoggable(Level.FINEST)) { - String msg = I18n.lf("RESTBC-1001: ComponentLifeCycle.init() called.");//NOI18N + String msg = I18n + .lf("RESTBC-1001: ComponentLifeCycle.init() called.");// NOI18N logger.finest(msg); } - + this.context = context; this.suManager = new RestSUManager(this, context); this.inboundDelegator = InboundDelegator.getInstance(this); - + compCfg = ComponentConfig.parse(context.getInstallRoot()); ConfigPersistence.loadConfig(compCfg, context.getWorkspaceRoot()); runtimeConfig = new RuntimeConfig(context, compCfg); - - //mbeanHelper = new MBeanHelper(context); - //mbeanHelper.registerMBean(RuntimeConfigurationMBean.CONFIGURATION_EXTENSION, runtimeConfig); - + + // mbeanHelper = new MBeanHelper(context); + // mbeanHelper.registerMBean(RuntimeConfigurationMBean.CONFIGURATION_EXTENSION, + // runtimeConfig); try { MBeanNames mbeanNames = context.getMBeanNames(); - ObjectName runtimeConfigMBeanObjName = mbeanNames.createCustomComponentMBeanName("Configuration"); - mRuntimeConfigHelper = new RuntimeConfigurationHelper(runtimeConfigMBeanObjName, context.getMBeanServer()); + ObjectName runtimeConfigMBeanObjName = mbeanNames + .createCustomComponentMBeanName("Configuration"); + mRuntimeConfigHelper = new RuntimeConfigurationHelper( + runtimeConfigMBeanObjName, context.getMBeanServer()); mRuntimeConfigHelper.registerMBean(runtimeConfig); } catch (Exception e) { throw new JBIException(e); } - initSSLContext(); - + //initSSLContext(); + // start receiving from NMR receiver = new Receiver(this, context, suManager, runtimeConfig); receiver.startReceiving(); - + // send alert - String[] info = I18n.locStr("RESTBC-5001: Initialized {0} successfully", + String[] info = I18n.locStr( + "RESTBC-5001: Initialized {0} successfully", context.getComponentName()); logger.info(info[2]); I18n.alertInfo(info); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.jbi.component.ComponentLifeCycle#shutDown() */ public void shutDown() throws JBIException { if (logger.isLoggable(Level.FINEST)) { - String msg = I18n.lf("RESTBC-1002: ComponentLifeCycle.shutdown() called.");//NOI18N + String msg = I18n + .lf("RESTBC-1002: ComponentLifeCycle.shutdown() called.");// NOI18N logger.finest(msg); } - + if (context != null) { context.getDeliveryChannel().close(); } - + shutdownMBeans(); - + // send alert String[] info = I18n.locStr("RESTBC-5002: Shut down {0} successfully", context.getComponentName()); @@ -203,26 +233,29 @@ public class RestComponent implements Component, ComponentLifeCycle { I18n.alertInfo(info); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.jbi.component.ComponentLifeCycle#start() */ public void start() throws JBIException { if (logger.isLoggable(Level.FINEST)) { - String msg = I18n.lf("RESTBC-1003: ComponentLifeCycle.start() called.");//NOI18N + String msg = I18n + .lf("RESTBC-1003: ComponentLifeCycle.start() called.");// NOI18N logger.finest(msg); } - + try { startHttpListener(); startHttpsListener(); - + } catch (Throwable t) { String msg = I18n.loc("RESTBC-7003: {0} failed to start {1}", context.getComponentName(), t.getMessage()); logger.log(Level.SEVERE, msg, t); throw new JBIException(msg, t); } - + // send alert String[] info = I18n.locStr("RESTBC-5003: Start {0} successfully", context.getComponentName()); @@ -230,52 +263,53 @@ public class RestComponent implements Component, ComponentLifeCycle { I18n.alertInfo(info); } - /* (non-Javadoc) + /* + * (non-Javadoc) + * * @see javax.jbi.component.ComponentLifeCycle#stop() */ public void stop() throws JBIException { if (logger.isLoggable(Level.FINEST)) { - String msg = I18n.lf("RESTBC-1004: ComponentLifeCycle.stop() called.");//NOI18N + String msg = I18n + .lf("RESTBC-1004: ComponentLifeCycle.stop() called.");// NOI18N logger.finest(msg); } try { if (receiver != null) { receiver.stopReceiving(); } - + stopListeners(); - + } catch (Throwable t) { String msg = I18n.loc("RESTBC-7004: {0} failed to stop {1}", context.getComponentName(), t.getMessage()); logger.log(Level.SEVERE, msg, t); throw new JBIException(msg, t); } - + // send alert String[] info = I18n.locStr("RESTBC-5004: Stop {0} successfully", context.getComponentName()); logger.info(info[2]); I18n.alertInfo(info); } - - //////// - // - // other methods - // - //////// - + + /** + * Initialise SSL configuration + */ private void initSSLContext() { try { String installRoot = context.getInstallRoot(); File installRootFile = new File(installRoot); if (!installRootFile.isDirectory()) { - String msg = I18n.loc("RESTBC-6001: Unable to initialize SSLContext, install root is not a directory {0}", - installRootFile.toString()); + String msg = I18n + .loc("RESTBC-6001: Unable to initialize SSLContext, install root is not a directory {0}", + installRootFile.toString()); logger.log(Level.WARNING, msg); return; } - + // keystore file File keystoreFile = null; String keystoreSysProp = System.getProperty(KEYSTORE_PROP); @@ -285,12 +319,13 @@ public class RestComponent implements Component, ComponentLifeCycle { keystoreFile = new File(keystoreSysProp); } if (!keystoreFile.isFile()) { - String msg = I18n.loc("RESTBC-6002: Unable to initialize SSLContext, keystore file is not a file {0}", - keystoreFile.toString()); + String msg = I18n + .loc("RESTBC-6002: Unable to initialize SSLContext, keystore file is not a file {0}", + keystoreFile.toString()); logger.log(Level.WARNING, msg); return; } - + // truststore file File truststoreFile = null; String truststoreSysProp = System.getProperty(TRUSTSTORE_PROP); @@ -300,95 +335,114 @@ public class RestComponent implements Component, ComponentLifeCycle { truststoreFile = new File(truststoreSysProp); } if (!truststoreFile.isFile()) { - String msg = I18n.loc("RESTBC-6003: Unable to initialize SSLContext, truststore file is not a file {0}", - truststoreFile.toString()); + String msg = I18n + .loc("RESTBC-6003: Unable to initialize SSLContext, truststore file is not a file {0}", + truststoreFile.toString()); logger.log(Level.WARNING, msg); return; } - + // keystore password char[] keystorePassword = null; - String keystorePasswordSysProp = System.getProperty(KEYSTORE_PASS_PROP); - if (keystorePasswordSysProp == null || keystorePasswordSysProp.length() == 0) { - keystorePassword = runtimeConfig.getKeystorePassword().toCharArray(); + String keystorePasswordSysProp = System + .getProperty(KEYSTORE_PASS_PROP); + if (keystorePasswordSysProp == null + || keystorePasswordSysProp.length() == 0) { + keystorePassword = runtimeConfig.getKeystorePassword() + .toCharArray(); } else { keystorePassword = keystorePasswordSysProp.toCharArray(); } - + // truststore password char[] truststorePassword = null; - String truststorePasswordSysProp = System.getProperty(TRUSTSTORE_PASS_PROP); - if (truststorePasswordSysProp == null || truststorePasswordSysProp.length() == 0) { - truststorePassword = runtimeConfig.getTruststorePassword().toCharArray(); + String truststorePasswordSysProp = System + .getProperty(TRUSTSTORE_PASS_PROP); + if (truststorePasswordSysProp == null + || truststorePasswordSysProp.length() == 0) { + truststorePassword = runtimeConfig.getTruststorePassword() + .toCharArray(); } else { truststorePassword = truststorePasswordSysProp.toCharArray(); } - - String msg = I18n.loc("RESTBC-4001: Initializing Keystore at location {0}", keystoreFile.toString()); + + String msg = I18n.loc( + "RESTBC-4001: Initializing Keystore at location {0}", + keystoreFile.toString()); logger.info(msg); - KeyManager[] keyManager = new KeyManager[] { - new X509KeyManagerImpl(keystoreFile, keystorePassword) - }; - - String msg2 = I18n.loc("RESTBC-4002: Initializing Truststore at location {0}", truststoreFile.toString()); + KeyManager[] keyManager = new KeyManager[]{new X509KeyManagerImpl( + keystoreFile, keystorePassword)}; + + String msg2 = I18n.loc( + "RESTBC-4002: Initializing Truststore at location {0}", + truststoreFile.toString()); logger.info(msg2); - TrustManager[] trustManager = new TrustManager[] { - new X509TrustManagerImpl(truststoreFile, truststorePassword) - }; - - sslContext = SSLContext.getInstance("SSL"); // NOI18N + TrustManager[] trustManager = new TrustManager[]{new X509TrustManagerImpl( + truststoreFile, truststorePassword)}; + + sslContext = SSLContext.getInstance("SSL"); // NOI18N sslContext.init(keyManager, trustManager, null); - + } catch (Exception e) { - String msg = I18n.loc("RESTBC-6004: Unable to initialize SSLContext {0}", + String msg = I18n.loc( + "RESTBC-6004: Unable to initialize SSLContext {0}", e.getMessage()); logger.log(Level.WARNING, msg, e); return; } } - + private void shutdownMBeans() throws JBIException { - //mbeanHelper.unregisterMBean(RuntimeConfigurationMBean.CONFIGURATION_EXTENSION); + // mbeanHelper.unregisterMBean(RuntimeConfigurationMBean.CONFIGURATION_EXTENSION); try { mRuntimeConfigHelper.unregisterMBean(); } catch (Exception e) { throw new JBIException(e); } } - + /* * start HTTP listener */ private void startHttpListener() throws Exception { - InboundHttpListener defaultHttpListener = new InboundHttpListener(InboundHttpListener.DEFAULT_LISTENER, - runtimeConfig.getDefaultHttpListenerPort(), runtimeConfig.getDefaultHttpListenerThreads(), null); - - // install root JAXRS-POJO - ServletAdapter adapter = new ServletAdapter(); - final Map initParams = new HashMap(); - initParams.put("com.sun.jersey.config.property.resourceConfigClass", "com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResourceApplication"); - initParams.put("com.sun.jersey.spi.container.ContainerResponseFilters", - CharsetResponseFilter.class.getName() + ';' + - ContentLengthResponseFilter.class.getName()); - - for (Map.Entry e : initParams.entrySet()) { - adapter.addInitParameter(e.getKey(), e.getValue()); - } - - adapter.setServletInstance(ServletContainer.class.newInstance()); - - adapter.setContextPath("/"); - - defaultHttpListener.registerContext("/", adapter); - + // HttpServer httpServer = new HttpServer(); + // NetworkListener networkListener = new + // NetworkListener("jaxws-listener", "0.0.0.0", PORT); + InboundHttpListener defaultHttpListener = new InboundHttpListener( + InboundHttpListener.DEFAULT_LISTENER, + runtimeConfig.getDefaultHttpListenerPort(), + runtimeConfig.getDefaultHttpListenerThreads(), null); + + // install root JAXRS-POJO +// ServletAdapter adapter = new ServletAdapter(); +// final Map initParams = new HashMap(); +// +// initParams +// .put("com.sun.jersey.config.property.resourceConfigClass", +// "com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResourceApplication"); +// initParams.put("com.sun.jersey.spi.container.ContainerResponseFilters", +// "com.sun.jbi.restbc.jbiadapter.inbound.CharsetResponseFilter"); +// +// for (Map.Entry e : initParams.entrySet()) { +// adapter.addInitParameter(e.getKey(), e.getValue()); +// } +// +// adapter.setServletInstance(ServletContainer.class.newInstance()); +// +// adapter.setContextPath("/"); +// +// defaultHttpListener.registerContext("/", adapter); defaultHttpListener.start(); - listeners.put(defaultHttpListener.getListenerName(), defaultHttpListener); - - String msg = I18n.loc("RESTBC-4003: Started listener {0} at port {1}", defaultHttpListener.getListenerName(), defaultHttpListener.getPort()); + listeners.put(defaultHttpListener.getListenerName(), + defaultHttpListener); + + String msg = I18n.loc("RESTBC-4003: Started listener {0} at port {1}", + defaultHttpListener.getListenerName(), + defaultHttpListener.getPort()); logger.info(msg); } - + /* * start HTTPS listener */ @@ -396,12 +450,13 @@ public class RestComponent implements Component, ComponentLifeCycle { String installRoot = context.getInstallRoot(); File installRootFile = new File(installRoot); if (!installRootFile.isDirectory()) { - String msg = I18n.loc("RESTBC-6005: Unable to initialize SSLConfig, install root is not a directory {0}", - installRootFile.toString()); + String msg = I18n + .loc("RESTBC-6005: Unable to initialize SSLConfig, install root is not a directory {0}", + installRootFile.toString()); logger.log(Level.WARNING, msg); return; } - + // keystore file File keystoreFile = null; String keystoreSysProp = System.getProperty(KEYSTORE_PROP); @@ -411,12 +466,13 @@ public class RestComponent implements Component, ComponentLifeCycle { keystoreFile = new File(keystoreSysProp); } if (!keystoreFile.isFile()) { - String msg = I18n.loc("RESTBC-6006: Unable to initialize SSLConfig, keystore file is not a file {0}", - keystoreFile.toString()); + String msg = I18n + .loc("RESTBC-6006: Unable to initialize SSLConfig, keystore file is not a file {0}", + keystoreFile.toString()); logger.log(Level.WARNING, msg); return; } - + // truststore file File truststoreFile = null; String truststoreSysProp = System.getProperty(TRUSTSTORE_PROP); @@ -426,65 +482,107 @@ public class RestComponent implements Component, ComponentLifeCycle { truststoreFile = new File(truststoreSysProp); } if (!truststoreFile.isFile()) { - String msg = I18n.loc("RESTBC-6007: Unable to initialize SSLConfig, truststore file is not a file {0}", - truststoreFile.toString()); + String msg = I18n + .loc("RESTBC-6007: Unable to initialize SSLConfig, truststore file is not a file {0}", + truststoreFile.toString()); logger.log(Level.WARNING, msg); return; } - + // keystore password String keystorePassword = null; String keystorePasswordSysProp = System.getProperty(KEYSTORE_PASS_PROP); - if (keystorePasswordSysProp == null || keystorePasswordSysProp.length() == 0) { + if (keystorePasswordSysProp == null + || keystorePasswordSysProp.length() == 0) { keystorePassword = runtimeConfig.getKeystorePassword(); } else { keystorePassword = keystorePasswordSysProp; } - + // truststore password String truststorePassword = null; - String truststorePasswordSysProp = System.getProperty(TRUSTSTORE_PASS_PROP); - if (truststorePasswordSysProp == null || truststorePasswordSysProp.length() == 0) { + String truststorePasswordSysProp = System + .getProperty(TRUSTSTORE_PASS_PROP); + if (truststorePasswordSysProp == null + || truststorePasswordSysProp.length() == 0) { truststorePassword = runtimeConfig.getTruststorePassword(); } else { truststorePassword = truststorePasswordSysProp; } - - SSLConfig sslConfig = new SSLConfig(); - sslConfig.setKeyStoreFile(keystoreFile.getAbsolutePath()); - sslConfig.setKeyStorePass(keystorePassword); - sslConfig.setTrustStoreFile(truststoreFile.getAbsolutePath()); - sslConfig.setTrustStorePass(truststorePassword); - - InboundHttpListener defaultHttpsListener = new InboundHttpListener(InboundHttpListener.DEFAULT_LISTENER_SSL, - runtimeConfig.getDefaultHttpsListenerPort(), runtimeConfig.getDefaultHttpsListenerThreads(), sslConfig); - - // install root JAXRS-POJO - ServletAdapter adapter = new ServletAdapter(); - final Map initParams = new HashMap(); - initParams.put("com.sun.jersey.config.property.resourceConfigClass", "com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResourceApplication"); - initParams.put("com.sun.jersey.spi.container.ContainerResponseFilters", "com.sun.jbi.restbc.jbiadapter.inbound.CharsetResponseFilter"); + SSLContextConfigurator sslContextConfigurator = new SSLContextConfigurator(); + sslContextConfigurator.setKeyStoreFile(keystoreFile.getAbsolutePath()); + sslContextConfigurator.setKeyStorePass(keystorePassword); + sslContextConfigurator.setTrustStoreFile(truststoreFile.getAbsolutePath()); + sslContextConfigurator.setTrustStorePass(truststorePassword); + sslContextConfigurator.setSecurityProtocol("TLSv1.2"); + + SSLEngineConfigurator sslEngineConfigurator = + new SSLEngineConfigurator(sslContextConfigurator); - for (Map.Entry e : initParams.entrySet()) { - adapter.addInitParameter(e.getKey(), e.getValue()); - } - - adapter.setServletInstance(ServletContainer.class.newInstance()); - - adapter.setContextPath("/"); - - defaultHttpsListener.registerContext("/", adapter); + sslEngineConfigurator + .setClientMode(false) + .setNeedClientAuth(runtimeConfig.isEnableClientAuth()) + .setWantClientAuth(runtimeConfig.isEnableClientAuth()); + + InboundHttpListener defaultHttpsListener = new InboundHttpListener( + InboundHttpListener.DEFAULT_LISTENER_SSL, + runtimeConfig.getDefaultHttpsListenerPort(), + runtimeConfig.getDefaultHttpsListenerThreads(), sslEngineConfigurator); defaultHttpsListener.start(); listeners.put(defaultHttpsListener.getListenerName(), defaultHttpsListener); - - String msg = I18n.loc("RESTBC-4003: Started listener {0} at port {1}", defaultHttpsListener.getListenerName(), defaultHttpsListener.getPort()); - logger.info(msg); + + String msg = + I18n.loc("RESTBC-4003: Started listener {0} at port {1}", + defaultHttpsListener.getListenerName(), + defaultHttpsListener.getPort()); logger.info(msg); + + /* + * SSLConfig sslConfig = new SSLConfig(); + * sslConfig.setKeyStoreFile(keystoreFile.getAbsolutePath()); + * sslConfig.setKeyStorePass(keystorePassword); + * sslConfig.setTrustStoreFile(truststoreFile.getAbsolutePath()); + * sslConfig.setTrustStorePass(truststorePassword); + * + * InboundHttpListener defaultHttpsListener = new + * InboundHttpListener(InboundHttpListener.DEFAULT_LISTENER_SSL, + * runtimeConfig.getDefaultHttpsListenerPort(), + * runtimeConfig.getDefaultHttpsListenerThreads(), sslConfig); + * + * // install root JAXRS-POJO ServletAdapter adapter = new + * ServletAdapter(); final Map initParams = new + * HashMap(); + * + * initParams.put("com.sun.jersey.config.property.resourceConfigClass", + * "com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResourceApplication" + * ); + * initParams.put("com.sun.jersey.spi.container.ContainerResponseFilters" + * , "com.sun.jbi.restbc.jbiadapter.inbound.CharsetResponseFilter"); + * + * for (Map.Entry e : initParams.entrySet()) { + * adapter.addInitParameter(e.getKey(), e.getValue()); } + * + * adapter.setServletInstance(ServletContainer.class.newInstance()); + * + * adapter.setContextPath("/"); + * + * defaultHttpsListener.registerContext("/", adapter); + * + * defaultHttpsListener.start(); + * listeners.put(defaultHttpsListener.getListenerName(), + * defaultHttpsListener); + * + * String msg = + * I18n.loc("RESTBC-4003: Started listener {0} at port {1}", + * defaultHttpsListener.getListenerName(), + * defaultHttpsListener.getPort()); logger.info(msg); + */ } - + private void stopListeners() { - Iterator> iter = listeners.entrySet().iterator(); + Iterator> iter = listeners + .entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = iter.next(); InboundHttpListener listener = entry.getValue(); @@ -492,28 +590,30 @@ public class RestComponent implements Component, ComponentLifeCycle { try { listener.stop(); } catch (Exception e) { - String msg = I18n.loc("RESTBC-7005: {0} failed to stop HTTP listener {1}, {2}", - context.getComponentName(), listener.getListenerName(), e.getMessage()); + String msg = I18n + .loc("RESTBC-7005: {0} failed to stop HTTP listener {1}, {2}", + context.getComponentName(), + listener.getListenerName(), e.getMessage()); logger.log(Level.SEVERE, msg, e); continue; } } } - + public InboundHttpListener getInboundHttpListener(String listenerName) { return listeners.get(listenerName); } - + public String getInboundHttpListenerNameByPort(int port) { for (InboundHttpListener listener : listeners.values()) { if (listener.getPort() == port) { return listener.getListenerName(); } } - + return null; } - + public SSLContext getSslContext() { return sslContext; } @@ -521,13 +621,13 @@ public class RestComponent implements Component, ComponentLifeCycle { public RuntimeConfig getRuntimeConfig() { return runtimeConfig; } - + public RestSUManager getRestServiceUnitManager() { return suManager; } - + public ComponentContext getComponentContext() { return context; } - + } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestSUManager.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestSUManager.java old mode 100755 new mode 100644 similarity index 86% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestSUManager.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestSUManager.java index cc504695b..abf08809f --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/RestSUManager.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/RestSUManager.java @@ -1,5 +1,6 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; +import java.util.List; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import java.util.logging.Level; @@ -8,11 +9,15 @@ import java.util.logging.Logger; import javax.jbi.component.ComponentContext; import javax.jbi.component.ServiceUnitManager; import javax.jbi.management.DeploymentException; -import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MediaType; import javax.xml.namespace.QName; +import net.openesb.jbi.restbc.jbiadapter.inbound.InboundHttpListener; +import net.openesb.jbi.restbc.jbiadapter.inbound.ServiceUnitResourceConfig; + import com.sun.jbi.management.message.DefaultJBITaskMessageBuilder; import com.sun.jbi.management.message.JBITaskMessageBuilder; +import java.util.Iterator; /** * RestSUManager.java @@ -25,6 +30,7 @@ public class RestSUManager implements ServiceUnitManager { * 31-50 */ private static final Logger logger = Logger.getLogger(RestSUManager.class.getName()); + private static final String COMP_SUFFIX_NAME = "sun-rest-binding"; //NOI18N private RestComponent component; private ComponentContext context; @@ -158,7 +164,14 @@ public class RestSUManager implements ServiceUnitManager { ServiceUnit su = serviceUnits.get(serviceUnitName); if (su != null) { try { - su.start(); + Iterator ite = su.getInboundsConfigurations().iterator(); + if (ite.hasNext()) { + String listenerName = ite.next().getHttpListenerName(); + InboundHttpListener inboundHttpListener = component.getInboundHttpListener(listenerName); + inboundHttpListener.registerContext(getSUContextPath(su), new ServiceUnitResourceConfig(su)); + + su.start(); + } } catch (Exception ex) { String msg = I18n.loc("RESTBC-7034: Error starting Service Unit {0} {1}", serviceUnitName, ex);//NOI18N logger.severe(msg); @@ -186,6 +199,15 @@ public class RestSUManager implements ServiceUnitManager { } } + /** + * Give the Service Unit context path. + * + * @param su Service Unit + * @return Service unit context path + */ + protected String getSUContextPath(ServiceUnit su){ + return "/"+su.getServiceUnitName().substring(0, su.getServiceUnitName().length()-(COMP_SUFFIX_NAME.length()+1)); + } /* (non-Javadoc) * @see javax.jbi.component.ServiceUnitManager#stop(java.lang.String) @@ -201,7 +223,14 @@ public class RestSUManager implements ServiceUnitManager { ServiceUnit su = serviceUnits.get(serviceUnitName); if (su != null) { try { - su.stop(); + Iterator ite = su.getInboundsConfigurations().iterator(); + if (ite.hasNext()) { + String listenerName = ite.next().getHttpListenerName(); + InboundHttpListener inboundHttpListener = component.getInboundHttpListener(listenerName); + inboundHttpListener.unregisterContext(getSUContextPath(su)); + + su.stop(); + } } catch (Exception ex) { String msg = I18n.loc("RESTBC-7036: Error stopping Service Unit {0} {1}", serviceUnitName, ex);//NOI18N logger.severe(msg); @@ -255,9 +284,11 @@ public class RestSUManager implements ServiceUnitManager { return null; } - public InboundConfiguration findInboundConfiguration(String listenerName, HttpHeaders headers, String method, String path) { + + + public InboundConfiguration findInboundConfiguration(String listenerName, MediaType contentType, List acceptMediaTypes, String method, String path) { for (ServiceUnit su : serviceUnits.values()) { - InboundConfiguration inboundConfig = su.findInboundConfiguration(listenerName, headers, method, path); + InboundConfiguration inboundConfig = su.findInboundConfiguration(listenerName, contentType, acceptMediaTypes, method, path); if (inboundConfig != null) { return inboundConfig; } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnit.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnit.java old mode 100755 new mode 100644 similarity index 83% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnit.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnit.java index c6a9d5deb..37b4fee89 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnit.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnit.java @@ -1,9 +1,10 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import java.io.File; import java.net.URL; import java.net.URLClassLoader; import java.util.ArrayList; +import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -12,20 +13,22 @@ import java.util.logging.Logger; import javax.jbi.JBIException; import javax.jbi.component.ComponentContext; -import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MediaType; import javax.xml.namespace.QName; -import org.xml.sax.EntityResolver; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.descriptor.Provides; +import net.openesb.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; +import net.openesb.jbi.restbc.jbiadapter.inbound.JaxrsPojoServiceUnit; +import net.openesb.jbi.restbc.jbiadapter.util.PathUtil; +import net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint; +import net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLServiceUnitConfig; + import org.apache.xml.resolver.CatalogManager; import org.apache.xml.resolver.tools.CatalogResolver; +import org.xml.sax.EntityResolver; + -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.descriptor.Provides; -import com.sun.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; -import com.sun.jbi.restbc.jbiadapter.inbound.JaxrsPojoServiceUnit; -import com.sun.jbi.restbc.jbiadapter.util.PathUtil; -import com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint; -import com.sun.jbi.restbc.jbiadapter.wsdl.WSDLServiceUnitConfig; /** * ServiceUnit.java @@ -211,6 +214,9 @@ public class ServiceUnit { public String getServiceUnitName() { return serviceUnitName; } + public String getServiceUnitRootPath() { + return serviceUnitRootPath; + } public synchronized OutboundConfiguration findActivatedEndpointOutbound(QName serviceName, String endpointName, QName operationName) { for (ServiceUnitConfig suConfig : suConfigs) { @@ -235,14 +241,42 @@ public class ServiceUnit { return null; } - public synchronized InboundConfiguration findInboundConfiguration(String listenerName, HttpHeaders headers, String method, String path) { + /** + * Give all the inbounds configurations for the serviceUnit + * + * @return serviceUnit inbounds configurations. + */ + public synchronized Collection getInboundsConfigurations(){ + List inboundsConfigs = new ArrayList(); + + for (ServiceUnitConfig suConfig : suConfigs) { + if (suConfig instanceof PropertyServiceUnitConfig) { + PropertyServiceUnitConfig propertySUConfig = (PropertyServiceUnitConfig) suConfig; + if (!propertySUConfig.isOutbound() && propertySUConfig.getInboundConfiguration() != null) { + inboundsConfigs.add(propertySUConfig.getInboundConfiguration()); + } + + } else if (suConfig instanceof WSDLEndpoint) { + WSDLEndpoint wsdlEndpoint = (WSDLEndpoint) suConfig; + if (!wsdlEndpoint.isOutbound() && wsdlEndpoint.getInboundsConfigs() != null) { + inboundsConfigs.addAll( wsdlEndpoint.getInboundsConfigs()); + } + + } + } + + return inboundsConfigs; + } + + + public synchronized InboundConfiguration findInboundConfiguration(String listenerName, MediaType contentType, List acceptMediaTypes, String method, String path) { for (ServiceUnitConfig suConfig : suConfigs) { if (suConfig instanceof PropertyServiceUnitConfig) { PropertyServiceUnitConfig propertySUConfig = (PropertyServiceUnitConfig) suConfig; if (!propertySUConfig.isOutbound()) { InboundConfiguration inboundConfig = propertySUConfig.getInboundConfiguration(); if (inboundConfig.getHttpListenerName().equals(listenerName)) { - if (PathUtil.matchInboundConfiguration(inboundConfig, headers, method, path)) { + if (PathUtil.matchInboundConfiguration(inboundConfig, contentType, acceptMediaTypes, method, path)) { return inboundConfig; } } @@ -251,7 +285,7 @@ public class ServiceUnit { } else if (suConfig instanceof WSDLEndpoint) { WSDLEndpoint wsdlEndpoint = (WSDLEndpoint) suConfig; if (!wsdlEndpoint.isOutbound()) { - InboundConfiguration inboundConfig = wsdlEndpoint.findInboundConfig(listenerName, headers, method, path); + InboundConfiguration inboundConfig = wsdlEndpoint.findInboundConfig(listenerName, contentType, acceptMediaTypes, method, path); if (inboundConfig != null) { return inboundConfig; } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnitConfig.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnitConfig.java old mode 100755 new mode 100644 similarity index 88% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnitConfig.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnitConfig.java index e34c7a3d4..a64de21ee --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/ServiceUnitConfig.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/ServiceUnitConfig.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter; +package net.openesb.jbi.restbc.jbiadapter; import javax.xml.namespace.QName; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java index 3b2e56af1..4f20a8b48 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/ConfigurationException.java @@ -28,7 +28,7 @@ * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; /** * An exception occurred in handling the SU JBI descriptor diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Consumes.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Consumes.java old mode 100755 new mode 100644 similarity index 89% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Consumes.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Consumes.java index 1468b6876..63b847aa7 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Consumes.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Consumes.java @@ -28,7 +28,7 @@ * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; import java.util.ArrayList; import java.util.Collections; @@ -39,11 +39,11 @@ import javax.xml.namespace.QName; /** * Represents a service unit descriptor entry for , for example for * - * * */ diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java index f1caeac1a..1ad7aafd0 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/EndpointIdentifier.java @@ -28,7 +28,7 @@ * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; import java.util.List; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Filter.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Filter.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Filter.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Filter.java index de4bbbe06..f798c72c9 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Filter.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Filter.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; import java.util.Collections; import java.util.HashMap; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Provides.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Provides.java old mode 100755 new mode 100644 similarity index 91% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Provides.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Provides.java index d12e2808b..d9ff44644 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/Provides.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/Provides.java @@ -28,7 +28,7 @@ * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; import java.util.ArrayList; import java.util.Collections; @@ -39,11 +39,11 @@ import javax.xml.namespace.QName; /** * Represents a service unit descriptor entry for , for example for * - * + * interface-name=â€ifns:Test2PortType†+ * service-name=â€servicens:PartnerLink†+ * endpoint-name=â€Test2ServerRoleâ€/> * */ public class Provides implements EndpointIdentifier { diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java index b8d09f281..cb0295ac4 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/descriptor/RestSUDescriptor.java @@ -28,7 +28,7 @@ * END_HEADER - DO NOT EDIT */ -package com.sun.jbi.restbc.jbiadapter.descriptor; +package net.openesb.jbi.restbc.jbiadapter.descriptor; import java.io.File; import java.io.IOException; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundDelegator.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundDelegator.java old mode 100755 new mode 100644 similarity index 82% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundDelegator.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundDelegator.java index 08398a578..4e6f46db5 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/InboundDelegator.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundDelegator.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; +package net.openesb.jbi.restbc.jbiadapter.inbound; import java.io.BufferedReader; import java.io.ByteArrayInputStream; @@ -24,33 +24,37 @@ import javax.jbi.messaging.MessageExchangeFactory; import javax.jbi.messaging.NormalizedMessage; import javax.jbi.servicedesc.ServiceEndpoint; import javax.mail.util.ByteArrayDataSource; -import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.container.ContainerRequestContext; import javax.ws.rs.core.MediaType; +import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.ResponseBuilder; import javax.ws.rs.core.SecurityContext; import javax.ws.rs.core.UriInfo; -import javax.ws.rs.core.Response.ResponseBuilder; import javax.wsdl.Definition; import javax.wsdl.OperationType; import javax.xml.namespace.QName; import javax.xml.transform.Source; +import net.openesb.jbi.restbc.jbiadapter.I18n; +import net.openesb.jbi.restbc.jbiadapter.InboundConfiguration; +import net.openesb.jbi.restbc.jbiadapter.NMProps; +import net.openesb.jbi.restbc.jbiadapter.RestComponent; +import net.openesb.jbi.restbc.jbiadapter.org.json.JSONObject; +import net.openesb.jbi.restbc.jbiadapter.org.json.XML; +import net.openesb.jbi.restbc.jbiadapter.util.JbiMessageUtil; +import net.openesb.jbi.restbc.jbiadapter.util.JsonUtil; +import net.openesb.jbi.restbc.jbiadapter.util.MediaTypeUtil; +import net.openesb.jbi.restbc.jbiadapter.util.NMPropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PathUtil; +import net.openesb.jbi.restbc.jbiadapter.util.PropertiesUtil; +import net.openesb.jbi.restbc.jbiadapter.wsdl.RestOperation; + +import org.glassfish.jersey.uri.UriTemplate; + import com.sun.jbi.common.qos.ServiceQuality; import com.sun.jbi.common.qos.messaging.BaseMessagingChannel; import com.sun.jbi.common.qos.messaging.MessagingChannel; -import com.sun.jbi.restbc.jbiadapter.I18n; -import com.sun.jbi.restbc.jbiadapter.InboundConfiguration; -import com.sun.jbi.restbc.jbiadapter.NMProps; -import com.sun.jbi.restbc.jbiadapter.RestComponent; -import com.sun.jbi.restbc.jbiadapter.util.JbiMessageUtil; -import com.sun.jbi.restbc.jbiadapter.util.JsonUtil; -import com.sun.jbi.restbc.jbiadapter.util.MediaTypeUtil; -import com.sun.jbi.restbc.jbiadapter.util.NMPropertiesUtil; -import com.sun.jbi.restbc.jbiadapter.util.PathUtil; -import com.sun.jbi.restbc.jbiadapter.util.PropertiesUtil; -import com.sun.jbi.restbc.jbiadapter.wsdl.RestOperation; -import com.sun.jersey.api.uri.UriTemplate; -import javax.jbi.messaging.Fault; /** * InboundDelegator.java @@ -83,21 +87,41 @@ public class InboundDelegator { return instance; } + public ResponseBuilder delegateRequest(ContainerRequestContext requestContext) throws Exception { + + return delegateRequest( + requestContext.getMethod(), + requestContext.getUriInfo(), + requestContext.getHeaders(), + requestContext.getMediaType(), + requestContext.getAcceptableMediaTypes(), + requestContext.getAcceptableLanguages(), + requestContext.getSecurityContext(), + requestContext.getEntityStream() + ); + } public ResponseBuilder delegateRequest( String method, UriInfo uriInfo, - HttpHeaders headers, + MultivaluedMap headers, + MediaType mediaType, + List acceptableMediaTypes, + List acceptableLanguages, SecurityContext security, InputStream payload) throws Exception { - URI requestURI = uriInfo.getRequestUri(); + URI requestURI = uriInfo.getRequestUri(); int port = requestURI.getPort(); String listenerName = component.getInboundHttpListenerNameByPort(port); String path = requestURI.getPath(); + //test + path = path.substring(1); + path = path.substring(path.indexOf("/")); + InboundConfiguration inboundConfig = - component.getRestServiceUnitManager().findInboundConfiguration(listenerName, headers, method, path); + component.getRestServiceUnitManager().findInboundConfiguration(listenerName, mediaType, acceptableMediaTypes, method, path); if (inboundConfig == null) { String msg = I18n.loc("RESTBC-7111: Request URL {0} does not match any ServiceUnit with listenerName={1}", requestURI.toString(), listenerName);//NOI18N logger.severe(msg); @@ -130,8 +154,7 @@ public class InboundDelegator { // has WSDL configuration Source requestContent = null; - if (payload != null && headers.getMediaType() != null) { - MediaType mediaType = headers.getMediaType(); + if (payload != null && mediaType != null) { if (PathUtil.isXMLMediaType(mediaType) && !inboundConfig.isForwardAsAttachment()) { // this is XML content and don't forward as attachment requestContent = JbiMessageUtil.createJbiWrappedMsg(payload, restOp, definition, false); @@ -144,8 +167,12 @@ public class InboundDelegator { sb.append(currentString); currentString = reader.readLine(); } - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new com.sun.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); - String xmlString = com.sun.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); + String xmlString = ""; + //If not a GET method + if(!sb.toString().isEmpty()){ + JSONObject jsonObject = new JSONObject(sb.toString()); + xmlString = XML.toString(jsonObject); + } requestContent = JbiMessageUtil.createJbiWrappedMsg(xmlString, restOp, definition, false); } else { // treat as attachment @@ -170,8 +197,7 @@ public class InboundDelegator { } catch (IllegalArgumentException iae) { // ignore } - if (payload != null && headers.getMediaType() != null) { - MediaType mediaType = headers.getMediaType(); + if (payload != null && mediaType != null) { if (PathUtil.isXMLMediaType(mediaType) && !inboundConfig.isForwardAsAttachment()) { // this is XML content and don't forward as attachment requestContent = JbiMessageUtil.createJbiWrappedMsg(msgType, payload); @@ -184,8 +210,8 @@ public class InboundDelegator { sb.append(currentString); currentString = reader.readLine(); } - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = new com.sun.jbi.restbc.jbiadapter.org.json.JSONObject(sb.toString()); - String xmlString = com.sun.jbi.restbc.jbiadapter.org.json.XML.toString(jsonObject); + JSONObject jsonObject = new JSONObject(sb.toString()); + String xmlString = XML.toString(jsonObject); requestContent = JbiMessageUtil.createJbiWrappedMsg(msgType, new ByteArrayInputStream(xmlString.getBytes())); } else { // treat as attachment @@ -207,8 +233,8 @@ public class InboundDelegator { // populate NM properties requestMsg.setProperty(NMProps.NM_URL_PROP, requestURI.toString()); requestMsg.setProperty(NMProps.NM_METHOD_PROP, method); - if (payload != null && headers.getMediaType() != null) { - requestMsg.setProperty(NMProps.NM_CONTENT_TYPE_PROP, MediaTypeUtil.mediaTypeToString(headers.getMediaType())); + if (payload != null && mediaType != null) { + requestMsg.setProperty(NMProps.NM_CONTENT_TYPE_PROP, MediaTypeUtil.mediaTypeToString(mediaType)); } // querys @@ -231,20 +257,20 @@ public class InboundDelegator { NMPropertiesUtil.setDynamicNMProperties(requestMsg, NMProps.NM_PATH_PARAMS_PROP, pathParamMap); // headers - Map headerMap = NMPropertiesUtil.multivaluedMapToMap(headers.getRequestHeaders()); + Map headerMap = NMPropertiesUtil.multivaluedMapToMap(headers); requestMsg.setProperty(NMProps.NM_HEADERS_PROP, JsonUtil.buildJson(headerMap)); NMPropertiesUtil.setDynamicNMProperties(requestMsg, NMProps.NM_HEADERS_PROP, headerMap); // accept-types List acceptTypeList = new ArrayList (); - for (MediaType entry : headers.getAcceptableMediaTypes()) { + for (MediaType entry : acceptableMediaTypes) { acceptTypeList.add(MediaTypeUtil.mediaTypeToString(entry)); } requestMsg.setProperty(NMProps.NM_ACCEPT_TYPES_PROP, JsonUtil.buildJson(acceptTypeList)); // accept-languages List acceptLanguageList = new ArrayList (); - for (Locale entry : headers.getAcceptableLanguages()) { + for (Locale entry : acceptableLanguages) { acceptLanguageList.add(entry.toString()); } requestMsg.setProperty(NMProps.NM_ACCEPT_LANGUAGES_PROP, JsonUtil.buildJson(acceptLanguageList)); @@ -308,17 +334,15 @@ public class InboundDelegator { boolean isContentTypeSet = false; if (responsePayload != null) { // NOI18N - String content = ""; - boolean isDataHandler = false; - if (responsePayload instanceof Source) { Source xmlPayload = (Source) responsePayload; - - List acceptableMediaTypes = headers.getAcceptableMediaTypes(); - if (acceptableMediaTypes.isEmpty()) { + + if (acceptableMediaTypes.size() == 0) { // if accept header not present, return entity as XML if (!method.equalsIgnoreCase("head")) { - content = JbiMessageUtil.convertXmlToString(xmlPayload); + responseBuilder.entity(JbiMessageUtil.convertXmlToString(xmlPayload)); + } else { + responseBuilder.entity(""); } responseBuilder.type(MediaType.APPLICATION_XML_TYPE); isContentTypeSet = true; @@ -326,7 +350,9 @@ public class InboundDelegator { for (MediaType acceptableMediaType : acceptableMediaTypes) { if (PathUtil.isXMLMediaType(acceptableMediaType)) { if (!method.equalsIgnoreCase("head")) { - content = JbiMessageUtil.convertXmlToString(xmlPayload); + responseBuilder.entity(JbiMessageUtil.convertXmlToString(xmlPayload)); + } else { + responseBuilder.entity(""); } String retMediaType = acceptableMediaType.isWildcardType() ? "application" : acceptableMediaType.getType(); String retMediaSubType = acceptableMediaType.isWildcardSubtype() ? "xml" : acceptableMediaType.getSubtype(); @@ -338,13 +364,16 @@ public class InboundDelegator { String xmlPayloadAsString = JbiMessageUtil.convertXmlToString(xmlPayload, inboundConfig.isStripNamespaces()); - com.sun.jbi.restbc.jbiadapter.org.json.JSONObject jsonObject = - com.sun.jbi.restbc.jbiadapter.org.json.XML.toJSONObject(xmlPayloadAsString); + JSONObject jsonObject = XML.toJSONObject(xmlPayloadAsString); if (jsonObject != null) { - content = jsonObject.toString(); + jsonObject = jsonObject.getJSONObject(JSONObject.getNames(jsonObject)[0]); //Primer objet not require + responseBuilder.entity(jsonObject.toString()); } else { - content = xmlPayloadAsString; + //TODO + responseBuilder.entity(xmlPayloadAsString); } + } else { + responseBuilder.entity(""); } String retMediaType = acceptableMediaType.isWildcardType() ? "application" : acceptableMediaType.getType(); String retMediaSubType = acceptableMediaType.isWildcardSubtype() ? "json" : acceptableMediaType.getSubtype(); @@ -353,7 +382,9 @@ public class InboundDelegator { break; } else { if (!method.equalsIgnoreCase("head")) { - content = JbiMessageUtil.convertXmlToString(xmlPayload); + responseBuilder.entity(JbiMessageUtil.convertXmlToString(xmlPayload)); + } else { + responseBuilder.entity(""); } break; } @@ -363,7 +394,8 @@ public class InboundDelegator { if (!method.equalsIgnoreCase("head")) { DataHandler streamPayload = (DataHandler) responsePayload; responseBuilder.entity(streamPayload.getInputStream()); - isDataHandler = true; + } else { + responseBuilder.entity(""); } } @@ -380,11 +412,6 @@ public class InboundDelegator { } } } - - if (! isDataHandler) { - responseBuilder.entity(content); - responseBuilder.header("X-Content-Length", Integer.toString(content.length())); - } } Map responseHeaderMap = NMPropertiesUtil.getDynamicNMProperties(replyMsg, NMProps.NM_RESPONSE_HEADERS_PROP); diff --git a/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java new file mode 100644 index 000000000..590ce9470 --- /dev/null +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/InboundHttpListener.java @@ -0,0 +1,105 @@ +package net.openesb.jbi.restbc.jbiadapter.inbound; + +import java.net.URI; +import java.util.HashMap; +import java.util.Map; +import javax.ws.rs.core.Application; + +import javax.ws.rs.core.UriBuilder; + +import org.glassfish.grizzly.http.server.HttpHandler; +import org.glassfish.grizzly.http.server.HttpServer; +import org.glassfish.grizzly.http.server.NetworkListener; +import org.glassfish.grizzly.http.server.ServerConfiguration; +import org.glassfish.grizzly.ssl.SSLEngineConfigurator; +import org.glassfish.grizzly.threadpool.ThreadPoolConfig; +import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory; +import org.glassfish.jersey.server.ContainerFactory; +import org.glassfish.jersey.server.ResourceConfig; + +/** + * InboundHttpListener.java + * + * @author Edward Chou + */ +public class InboundHttpListener { + + public static final String DEFAULT_LISTENER = "default-listener"; // NOI18N + public static final String DEFAULT_LISTENER_SSL = "default-listener-ssl"; // NOI18N + + private final String listenerName; + private final int port; + private final HttpServer webServer; + + private Map contextMap = new HashMap(); + + private static URI getBaseURI(int port) { + return UriBuilder.fromUri("http://localhost/") + .host(NetworkListener.DEFAULT_NETWORK_HOST) + .port(port) + .build(); + } + + public InboundHttpListener(String listenerName, int port, int numThreads, SSLEngineConfigurator sslEngineConfigurator) { + this.listenerName = listenerName; + this.port = port; + + ThreadPoolConfig config = ThreadPoolConfig.defaultConfig(). + setCorePoolSize(numThreads). + setMaxPoolSize(numThreads); + webServer = GrizzlyHttpServerFactory.createHttpServer(getBaseURI(port), false); + + // assign the thread pool + NetworkListener listener = webServer.getListeners().iterator().next(); + listener.getTransport().setWorkerThreadPoolConfig(config); + + // Assign security if needed + if (sslEngineConfigurator != null) { + listener.setSecure(true); + listener.setSSLEngineConfig(sslEngineConfigurator); + } + } + + public void start() throws Exception { + webServer.start(); + } + + public void stop() throws Exception { + webServer.shutdownNow(); + } + + public synchronized void registerContext(String context, Application application) throws Exception { + if (contextMap.containsKey(context)) { + throw new Exception("context already exists: " + context); + } + final ServerConfiguration config = webServer.getServerConfiguration(); + HttpHandler handler = ContainerFactory.createContainer(HttpHandler.class, application); + config.addHttpHandler(handler, context); + + contextMap.put(context, handler); + } + + public synchronized void unregisterContext(String context) throws Exception { + HttpHandler removedValue = contextMap.remove(context); + if (removedValue == null) { + throw new Exception("context did not exist: " + context); + } + + webServer.getServerConfiguration().removeHttpHandler(removedValue); + } + + /** + * @return the listenerName + */ + public String getListenerName() { + return listenerName; + } + + /** + * @return the port + */ + public int getPort() { + return port; + } + +} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java old mode 100755 new mode 100644 similarity index 89% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java index 21b86613b..29d07ea24 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/JaxrsPojoServiceUnit.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.inbound; +package net.openesb.jbi.restbc.jbiadapter.inbound; import java.io.File; import java.io.FileInputStream; @@ -13,10 +13,10 @@ import java.util.logging.Logger; import javax.jbi.component.ComponentContext; import javax.xml.namespace.QName; -import com.sun.grizzly.http.servlet.ServletAdapter; -import com.sun.jbi.restbc.jbiadapter.RestComponent; -import com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig; -import com.sun.jersey.spi.container.servlet.ServletContainer; +import net.openesb.jbi.restbc.jbiadapter.RestComponent; +import net.openesb.jbi.restbc.jbiadapter.ServiceUnitConfig; + +import org.glassfish.jersey.servlet.ServletContainer; /** * JaxrsPojoServiceUnit.java @@ -78,9 +78,10 @@ public class JaxrsPojoServiceUnit implements ServiceUnitConfig { throw new Exception("cannot find listener with name: " + listenerName); } + //TODO // register contextRoot - ServletAdapter servletAdapter = createServletAdapter(); - listener.registerContext(contextRoot, servletAdapter); + // ServletAdapter servletAdapter = createServletAdapter(); + // listener.registerContext(contextRoot, servletAdapter); } public void stop() throws Exception { @@ -99,7 +100,7 @@ public class JaxrsPojoServiceUnit implements ServiceUnitConfig { } - private ServletAdapter createServletAdapter() throws Exception { + /* private ServletAdapter createServletAdapter() throws Exception { ServletAdapter adapter = new ServletAdapter(); final Map initParams = new HashMap(); @@ -115,7 +116,7 @@ public class JaxrsPojoServiceUnit implements ServiceUnitConfig { adapter.setContextPath(contextRoot); return adapter; - } + }*/ /* (non-Javadoc) * @see com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig#getEndpointName() diff --git a/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java new file mode 100644 index 000000000..c0378890f --- /dev/null +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/inbound/ServiceUnitResourceConfig.java @@ -0,0 +1,100 @@ +package net.openesb.jbi.restbc.jbiadapter.inbound; + +import java.io.PrintWriter; +import java.io.StringWriter; +import java.util.Collection; +import java.util.logging.Level; +import java.util.logging.Logger; + +import javax.ws.rs.container.ContainerRequestContext; +import javax.ws.rs.core.Response; +import javax.ws.rs.core.Response.ResponseBuilder; + +import net.openesb.jbi.restbc.jbiadapter.I18n; +import net.openesb.jbi.restbc.jbiadapter.InboundConfiguration; +import net.openesb.jbi.restbc.jbiadapter.ServiceUnit; + +import org.glassfish.jersey.process.Inflector; +import org.glassfish.jersey.server.ResourceConfig; +import org.glassfish.jersey.server.model.Resource; +import org.glassfish.jersey.server.model.ResourceMethod; + +/** + * Service resource for service units. + * + * @author Loic DASSONVILLE (ldassonville at gmail.com) + * @author David BRASSELY (brasseld at gmail.com) + * @author OpenESB Community + * + */ +public class ServiceUnitResourceConfig extends ResourceConfig { + + /* + * 101-110 + */ + private final static Logger logger = Logger.getLogger(ServiceUnitResourceConfig.class.getName()); + + /** + * Generate a JBI REST resource configuration for the given Service Unit. + * + * @param serviceUnit ServiceUnit to generate resource configuration. + * + */ + public ServiceUnitResourceConfig(ServiceUnit serviceUnit) { + Collection configurations = serviceUnit.getInboundsConfigurations(); + + for (InboundConfiguration inboundConfiguration : configurations) { + final Resource resource = build(inboundConfiguration); + registerResources(resource); + } + } + + private Resource build(InboundConfiguration inboundConfiguration) { + final Resource.Builder resourceBuilder = Resource.builder(); + resourceBuilder.path(inboundConfiguration.getPathTemplate().getTemplate()); + + final ResourceMethod.Builder methodBuilder = resourceBuilder.addMethod(inboundConfiguration.getMethod()); + methodBuilder.produces(inboundConfiguration.getProduceMediaTypes()) + .handledBy(new Inflector() { + + @Override + public Response apply(ContainerRequestContext containerRequestContext) { + + if (logger.isLoggable(Level.FINEST)) { + StringBuilder sb = new StringBuilder(); + sb.append("\n"); + sb.append(" URI: ").append(containerRequestContext.getUriInfo().getRequestUri().toString()).append("\n"); + sb.append(" Method: ").append(containerRequestContext.getMethod()).append("\n"); + sb.append(" Headers: ").append(containerRequestContext.getHeaders()).append("\n"); + + String msg = I18n.lf("RESTBC-1101: Inbound Request: {0}", sb.toString());//NOI18N + logger.finest(msg); + } + + InboundDelegator inboundDelegator = InboundDelegator.getInstance(); + if (inboundDelegator == null) { + String msg = I18n.loc("RESTBC-7101: Inbound delegator not initialized yet"); + logger.severe(msg); + ResponseBuilder responseBuilder = Response.serverError(); + responseBuilder.entity(msg); + return responseBuilder.build(); + } + + try { + ResponseBuilder responseBuilder = inboundDelegator.delegateRequest(containerRequestContext); + return responseBuilder.build(); + } catch (Exception e) { + + StringWriter sw = new StringWriter(); + e.printStackTrace(new PrintWriter(sw)); + //TODO + String msg = I18n.lf("RESTBC-???: Inbound Request error: {0}", sw.toString());//NOI18N + logger.severe(msg); + return Response.serverError().entity(msg).build(); + } + } + }); + + return resourceBuilder.build(); + } +} diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java index 9a1df770b..b0220c9bf --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfig.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.mbeans; +package net.openesb.jbi.restbc.jbiadapter.mbeans; import java.io.File; import java.io.FileInputStream; @@ -34,10 +34,11 @@ import javax.management.openmbean.TabularData; import javax.management.openmbean.TabularDataSupport; import javax.management.openmbean.TabularType; +import net.openesb.jbi.restbc.jbiadapter.I18n; + import com.sun.jbi.common.qos.config.AbstractConfigMBean; import com.sun.jbi.common.qos.config.ComponentConfig; import com.sun.jbi.component.jbiext.KeyStoreUtilClient; -import com.sun.jbi.restbc.jbiadapter.I18n; /** * RuntimeConfigImpl.java @@ -60,7 +61,7 @@ public class RuntimeConfig extends AbstractConfigMBean implements RuntimeConfigM private String truststorePassword = "changeit"; private String keystorePassword = "changeit"; private boolean enableHostnameVerifier = false; - + private boolean enableClientAuth = false; private ComponentContext ctx; @@ -281,6 +282,24 @@ public class RuntimeConfig extends AbstractConfigMBean implements RuntimeConfigM persistCfg(); this.enableHostnameVerifier = enableHostnameVerifier; } + + @Override + public Boolean isEnableClientAuth() { + String strVal = getConfig().getProperty(ENABLE_CLIENT_AUTH).getValue(); + try { + enableClientAuth = Boolean.valueOf(strVal); + } catch (Exception e){ + // ignore + } + return enableClientAuth; + } + + @Override + public void setEnableClientAuth(Boolean enableClientAuth) { + getConfig().getProperty(ENABLE_CLIENT_AUTH).setValue(String.valueOf(enableClientAuth)); + persistCfg(); + this.enableClientAuth = enableClientAuth; + } /** * @return the keystorePassword @@ -834,5 +853,5 @@ public class RuntimeConfig extends AbstractConfigMBean implements RuntimeConfigM public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException{ broadcasterSupport.removeNotificationListener(listener, filter, handback); } - + } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java index cb1eac56b..c00fcc99d --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/mbeans/RuntimeConfigMBean.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.mbeans; +package net.openesb.jbi.restbc.jbiadapter.mbeans; import java.util.Map; @@ -24,6 +24,7 @@ public interface RuntimeConfigMBean { public static final String TRUSTSTORE_PASSWORD = "TruststorePassword"; public static final String KEYSTORE_PASSWORD = "KeystorePassword"; public static final String ENABLE_HOSTNAME_VERIFIER = "EnableHostnameVerifier"; + public static final String ENABLE_CLIENT_AUTH = "EnableClientAuth"; // Appliation configurations and application variables public static final String CONFIG_APPLICATON_VARIABLES = "ApplicationVariables"; @@ -57,7 +58,8 @@ public interface RuntimeConfigMBean { public String getKeystorePassword(); public void setKeystorePassword(String keystorePassword); - + public Boolean isEnableClientAuth(); + public void setEnableClientAuth(Boolean enableClientAuth); /** * This operation adds a new application variable. If a variable with the same name diff --git a/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/msgs.properties b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/msgs.properties new file mode 100644 index 000000000..93b4f4c11 --- /dev/null +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/msgs.properties @@ -0,0 +1,336 @@ +# DO NOT EDIT +# THIS FILE IS GENERATED AUTOMATICALLY FROM JAVA SOURCES/CLASSES + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1001 = ComponentLifeCycle.init() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1002 = ComponentLifeCycle.shutdown() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1003 = ComponentLifeCycle.start() called. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-1004 = ComponentLifeCycle.stop() called. + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-1021 = Bootstrap init called. + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1031 = ServiceUnitManager.deploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1032 = ServiceUnitManager.init() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1033 = ServiceUnitManager.init() successful serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1034 = ServiceUnitManager.shutdown() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1035 = ServiceUnitManager.start() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1036 = ServiceUnitManager.stop() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-1037 = ServiceUnitManager.undeploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1051 = ServiceUnit.start() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1052 = ServiceUnit.stop() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-1053 = ServiceUnit.shutdown() called serviceUnitName\={0} + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1061 = creating NMR Receiver\: threadPoolSize\={0}, maxTheadPoolSize\={1}, maxWaitMillis\={2}, + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1062 = starting NMR Receiver + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1063 = stopping NMR Receiver + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-1064 = received a MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.inbound.ServiceUnitResourceConfig.1 +RESTBC-1101 = Inbound Request\: {0} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1121 = WSDLEndpoint.start() + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1122 = WSDLEndpoint.stop() + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-1123 = WSDLEndpoint.shutdown() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1131 = PropertyServiceUnitConfig.start() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1132 = PropertyServiceUnitConfig.stop() + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-1133 = PropertyServiceUnitConfig.shutdown() + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1202 = Application Configuration deleted {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1204 = New application variable added {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-1205 = Application variable deleted {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4001 = Initializing Keystore at location {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4002 = Initializing Truststore at location {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-4003 = Started listener {0} at port {1} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-4121 = activating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-4122 = deactivating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-4131 = activating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-4132 = deactivating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5001 = Initialized {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5002 = Shut down {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5003 = Start {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-5004 = Stop {0} successfully + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-5031 = Deployed ServiceUnit {0}. + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6001 = Unable to initialize SSLContext, install root is not a directory {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6002 = Unable to initialize SSLContext, keystore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6003 = Unable to initialize SSLContext, truststore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6004 = Unable to initialize SSLContext {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6005 = Unable to initialize SSLConfig, install root is not a directory {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6006 = Unable to initialize SSLConfig, keystore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-6007 = Unable to initialize SSLConfig, truststore file is not a file {0} + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6051 = unable to instantiate PropertyServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6052 = unable to instantiate JaxrsPojoServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit +RESTBC-6053 = unable to instantiate WSDLServiceUnitConfig ServiceUnit + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7003 = {0} failed to start {1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7004 = {0} failed to stop {1} + +# net.openesb.jbi.restbc.jbiadapter.RestComponent +RESTBC-7005 = {0} failed to stop HTTP listener {1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7021 = Failed to parse component descriptor\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7022 = Failed to initialize component bootstrap\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap +RESTBC-7023 = Failed to register component bootstrap\: {0} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7031 = Duplicate ServiceUnit {0}, cannot proceed with deployment. + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7032 = Error shutting down Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7033 = Cannot find Service Unit {0} to shutdown + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7034 = Error starting Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7035 = Cannot find Service Unit {0} to start + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7036 = Error stopping Service Unit {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.RestSUManager +RESTBC-7037 = Cannot find Service Unit {0} to stop + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-7061 = Error during DeliveryChannel.accept() {0} + +# net.openesb.jbi.restbc.jbiadapter.Receiver +RESTBC-7062 = Error during Receiver.run() {0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7071 = error processing MessageExchange\: id\={0}, {1} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7072 = unsupported MEP\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7073 = Inbound MEP should not get here\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7074 = cannot find corresponding endpoint for this MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7075 = error when processing MessageExchange\: id\={0}, {1} + +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor +RESTBC-7076 = got ERROR status for MessageExchange\: id\={0} + +# net.openesb.jbi.restbc.jbiadapter.inbound.ServiceUnitResourceConfig.1 +RESTBC-7101 = Inbound delegator not initialized yet + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7111 = Request URL {0} does not match any ServiceUnit with listenerName\={1} + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7112 = Unexcepted error\: unable to match request path with a inbound configuration + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7113 = Inbound request timed-out after {0} ms + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7114 = Error during inbound request {0} + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7115 = Incorrect return status for inbound request + +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator +RESTBC-7116 = Unsupported MEP type {0} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7121 = http-listener-name\={0} specified in the inbound configuration for WSDL operation {1} does not match an existing HTTP Listener. + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7122 = unable to activate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +RESTBC-7123 = unable to deactivate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7131 = http-listener-name\={0} specified in the inbound configuration for PropertyConfiguration does not match an existing HTTP Listener. + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7132 = unable to activate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7133 = unable to deactivate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} + +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +RESTBC-7134 = {0} property cannot be empty. + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7201 = Application Config already exists {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7202 = Invalid item size for Application Config {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7203 = Invalid key for composite data for Application Config {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7204 = Application Configuration does not exist for delete {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7205 = Application Configuration does not exist for set {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7206 = Invalid item size for app config {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7207 = Invalid key for composite data for app config + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7208 = Unable to construct composite data for app config {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7209 = Application variable name already exists {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7210 = Invalid item size for app variable {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7211 = Invalid key for composite data for app variable {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7212 = Invalid app variable composite data no value field {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7213 = Invalid app variable composite data no type field + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7214 = Application variable does not exist for delete {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7215 = Application variable does not exist for set {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7216 = Invalid item size for app variable + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7219 = Invalid app variable composite data no type field {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7220 = Unable to construct composite data for app variable + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7221 = Invalid app config composite data null url + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7224 = Failed to persist application variables {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7225 = Failed to load application variables {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7226 = Failed to persist application configurations {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7227 = Failed to load application configurations {0} {1} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7228 = Failed during mbean initialization {0} + +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +RESTBC-7521 = Exception while persisting configuration changes. + diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CDL.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CDL.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CDL.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CDL.java index 12e387c17..960acb2fd --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CDL.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CDL.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Cookie.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Cookie.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Cookie.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Cookie.java index 9e1c39c89..177fd0231 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Cookie.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Cookie.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CookieList.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CookieList.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CookieList.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CookieList.java index 62c756753..716028d43 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/CookieList.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/CookieList.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTP.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTP.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTP.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTP.java index af36b3c8d..fddbe3389 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTP.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTP.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTPTokener.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTPTokener.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTPTokener.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTPTokener.java index ccbc2c90d..3fb8b7a8d --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/HTTPTokener.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/HTTPTokener.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONArray.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONArray.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONArray.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONArray.java index c0d510c85..0489634c9 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONArray.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONArray.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONException.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONException.java old mode 100755 new mode 100644 similarity index 94% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONException.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONException.java index 02e3c5fc7..2cca30d16 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONException.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONException.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /** * The JSONException is thrown by the JSON.org classes when things are amiss. diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONML.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONML.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONML.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONML.java index 0d6c7c526..41fbda0e8 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONML.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONML.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2008 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONObject.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONObject.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONObject.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONObject.java index 55d3d486a..bef9de7cb --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONObject.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONObject.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONString.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONString.java old mode 100755 new mode 100644 similarity index 92% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONString.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONString.java index c9c13fc18..b77e953fd --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONString.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONString.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /** * The JSONString interface allows a toJSONString() * method so that a class can change the behavior of diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONStringer.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONStringer.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONStringer.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONStringer.java index 1803796e7..aac6c53b2 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONStringer.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONStringer.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2006 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONTokener.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONTokener.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONTokener.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONTokener.java index 18b7e7e49..a91e304ea --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONTokener.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONTokener.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; import java.io.BufferedReader; import java.io.IOException; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONWriter.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONWriter.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONWriter.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONWriter.java index a843592a9..81f9c7403 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/JSONWriter.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/JSONWriter.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; import java.io.IOException; import java.io.Writer; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Test.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Test.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Test.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Test.java index 1385ceb26..4366e4559 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/Test.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/Test.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; import java.util.Collection; import java.util.Iterator; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XML.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XML.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XML.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XML.java index 131675d2a..654a8dd52 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XML.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XML.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XMLTokener.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XMLTokener.java old mode 100755 new mode 100644 similarity index 99% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XMLTokener.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XMLTokener.java index 8c1482efd..c274973df --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/org/json/XMLTokener.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/org/json/XMLTokener.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.org.json; +package net.openesb.jbi.restbc.jbiadapter.org.json; /* Copyright (c) 2002 JSON.org diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/ProxySettings.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/ProxySettings.java old mode 100755 new mode 100644 similarity index 95% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/ProxySettings.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/ProxySettings.java index 07be6f8b6..f2c709598 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/ProxySettings.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/ProxySettings.java @@ -1,5 +1,5 @@ -package com.sun.jbi.restbc.jbiadapter.security; +package net.openesb.jbi.restbc.jbiadapter.security; /** * diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java index 10e68c001..007e521e5 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509KeyManagerImpl.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.security; +package net.openesb.jbi.restbc.jbiadapter.security; import java.io.File; import java.io.FileInputStream; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java index a10023812..3f0401c24 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/security/X509TrustManagerImpl.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.security; +package net.openesb.jbi.restbc.jbiadapter.security; import java.io.File; import java.io.FileInputStream; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/BeanUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/BeanUtil.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/BeanUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/BeanUtil.java index c2d580284..8e9864dc1 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/BeanUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/BeanUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.lang.reflect.Method; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JbiMessageUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JbiMessageUtil.java old mode 100755 new mode 100644 similarity index 91% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JbiMessageUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JbiMessageUtil.java index 2c46d8f83..869ebf3f2 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JbiMessageUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JbiMessageUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; @@ -26,19 +26,22 @@ import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; +import net.openesb.jbi.restbc.jbiadapter.wsdl.RestOperation; + import org.w3c.dom.Document; import org.w3c.dom.Element; +import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.Text; import org.xml.sax.InputSource; import org.xml.sax.SAXException; +import com.sun.jbi.common.xml.XmlUtil; import com.sun.jbi.nms.wsdl11wrapper.HelperFactory; import com.sun.jbi.nms.wsdl11wrapper.WrapperBuilder; import com.sun.jbi.nms.wsdl11wrapper.impl.NodeListImpl; import com.sun.jbi.nms.wsdl11wrapper.util.WrapperUtil; -import com.sun.jbi.restbc.jbiadapter.wsdl.RestOperation; /** * JbiMessageUtil.java @@ -108,13 +111,15 @@ public class JbiMessageUtil { try { Document doc = getDocument(msg.getContent()); + payloadSource = new DOMSource(test(doc)); + /* Node payload; - + // Check to see if this message is wrapped NodeList parts = doc.getDocumentElement().getElementsByTagNameNS(WSDL_WRAPPER_URI, "part"); if (parts.getLength() > 0) { - payload = parts.item(0).getFirstChild(); + payload = parts.item(0); if (WrapperUtil.isNodeXopInclude(payload)) { String attachmentId = WrapperUtil.getXopContentId(payload); DataHandler dataHandler = msg.getAttachment(attachmentId); @@ -123,11 +128,9 @@ public class JbiMessageUtil { } else { // no wrapper, just return the document - payload = doc; + payload = doc.getFirstChild(); } - - payloadSource = new DOMSource(payload); - + */ } catch (Exception e) { logger.log(Level.WARNING, "unable to unwrap JBI wrapped message", e); } @@ -135,6 +138,38 @@ public class JbiMessageUtil { return payloadSource; } + + private static Node test(Document doc) throws Exception{ + + NodeList parts = doc.getDocumentElement().getElementsByTagNameNS(WSDL_WRAPPER_URI, "part"); + Node part = parts.item(0); + NodeList partsChild = part.getChildNodes(); + + DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); + DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); + + String type =doc.getDocumentElement().getAttribute("type"); + type = type.contains(":") ? type.substring(type.indexOf(":")+1) : type; + + // root elements + Document res = docBuilder.newDocument(); + //Element rootElement = res.getDocumentElement(); //createElement(type); + //res.appendChild(rootElement); + for(int partIdx=0 ; partIdx 0){ + XmlUtil.print(new DOMSource( res.getChildNodes().item(0))); + return res.getChildNodes().item(0); + } + + //doc.appendChild(rootElement); + //XmlUtil.print(new DOMSource(res)); + return res; + } + public static Source createJbiWrappedMsg(QName msgType, InputStream payload) { Source content = null; @@ -408,7 +443,7 @@ public class JbiMessageUtil { public static String convertXmlToString(Source source, boolean stripNamespaces) throws Exception { ByteArrayOutputStream baos = new ByteArrayOutputStream(); Transformer transformer = TransformerFactory.newInstance().newTransformer(); -// transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); + transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes"); transformer.transform(source, new StreamResult(baos)); String xmlPayload = baos.toString(); diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JsonUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JsonUtil.java old mode 100755 new mode 100644 similarity index 93% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JsonUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JsonUtil.java index 48e23a4eb..93844b7a6 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/JsonUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/JsonUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.io.StringWriter; import java.util.ArrayList; @@ -8,11 +8,11 @@ import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; -import org.codehaus.jackson.map.ObjectMapper; -import org.codehaus.jackson.map.type.CollectionType; -import org.codehaus.jackson.map.type.MapType; -import org.codehaus.jackson.map.type.TypeFactory; -import org.codehaus.jackson.type.JavaType; +import com.fasterxml.jackson.databind.JavaType; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.type.CollectionType; +import com.fasterxml.jackson.databind.type.MapType; +import com.fasterxml.jackson.databind.type.TypeFactory; /** * JsonUtil.java diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/MediaTypeUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/MediaTypeUtil.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/MediaTypeUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/MediaTypeUtil.java index 85e3bbf05..0270efa7d --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/MediaTypeUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/MediaTypeUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.util.Map; import java.util.regex.Matcher; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java index 6625c2d27..6a601e12c --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/NMPropertiesUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.util.HashMap; import java.util.List; @@ -14,7 +14,8 @@ import javax.ws.rs.core.MultivaluedMap; * @author Edward Chou */ public class NMPropertiesUtil { - + + /* * convert javax.ws.rs.core.MultivaluedMap to java.util.Map */ diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PathUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PathUtil.java old mode 100755 new mode 100644 similarity index 90% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PathUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PathUtil.java index 6e9b27926..75729e043 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PathUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PathUtil.java @@ -1,13 +1,14 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.util.HashMap; import java.util.List; -import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; -import com.sun.jbi.restbc.jbiadapter.InboundConfiguration; -import com.sun.jersey.api.uri.UriTemplate; +import net.openesb.jbi.restbc.jbiadapter.InboundConfiguration; + +import org.glassfish.jersey.uri.UriTemplate; + /** * PathUtil.java @@ -27,7 +28,8 @@ public class PathUtil { */ public static boolean matchInboundConfiguration( InboundConfiguration inboundConfig, - HttpHeaders headers, + MediaType contentType, + List acceptMediaTypes, String method, String path) { @@ -43,7 +45,6 @@ public class PathUtil { } // match consume types - MediaType contentType = headers.getMediaType(); if (contentType != null) { boolean matchConsumeType = false; for (MediaType consumeType : inboundConfig.getConsumeMediaTypes()) { @@ -59,7 +60,6 @@ public class PathUtil { // match produce types boolean matchProduceType = false; - List acceptMediaTypes = headers.getAcceptableMediaTypes(); if (acceptMediaTypes.size() == 0) { matchProduceType = true; } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PropertiesUtil.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PropertiesUtil.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PropertiesUtil.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PropertiesUtil.java index da504d1c3..ed683ffe7 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/util/PropertiesUtil.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/util/PropertiesUtil.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.util; +package net.openesb.jbi.restbc.jbiadapter.util; import java.util.Map; import java.util.Properties; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestAddress.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestAddress.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestAddress.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestAddress.java index 903921587..d6d9631cd --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestAddress.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestAddress.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.Serializable; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestBinding.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestBinding.java old mode 100755 new mode 100644 similarity index 97% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestBinding.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestBinding.java index 6b289828f..b1fe43b1e --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestBinding.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestBinding.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.Serializable; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestConstants.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestConstants.java old mode 100755 new mode 100644 similarity index 93% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestConstants.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestConstants.java index 3400233c1..626b2441d --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestConstants.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestConstants.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import javax.xml.namespace.QName; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java index 8628e2077..fcd5227e2 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtSerializer.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.PrintWriter; import java.io.Serializable; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java old mode 100755 new mode 100644 similarity index 89% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java index a51e6cd89..ffe02e086 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestExtensionRegistry.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import javax.wsdl.extensions.ExtensionRegistry; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestOperation.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestOperation.java old mode 100755 new mode 100644 similarity index 98% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestOperation.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestOperation.java index 867a86c27..35a2f3400 --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/RestOperation.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/RestOperation.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.Serializable; diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java old mode 100755 new mode 100644 similarity index 88% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java index 918d86951..4780d0fce --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLEndpoint.java @@ -1,7 +1,9 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.ByteArrayInputStream; +import java.util.Collection; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Properties; import java.util.logging.Level; @@ -10,22 +12,22 @@ import java.util.logging.Logger; import javax.jbi.JBIException; import javax.jbi.component.ComponentContext; import javax.jbi.servicedesc.ServiceEndpoint; -import javax.ws.rs.core.HttpHeaders; +import javax.ws.rs.core.MediaType; import javax.wsdl.Definition; import javax.xml.namespace.QName; +import net.openesb.jbi.restbc.jbiadapter.I18n; +import net.openesb.jbi.restbc.jbiadapter.InboundConfiguration; +import net.openesb.jbi.restbc.jbiadapter.OutboundConfiguration; +import net.openesb.jbi.restbc.jbiadapter.RestComponent; +import net.openesb.jbi.restbc.jbiadapter.ServiceUnit; +import net.openesb.jbi.restbc.jbiadapter.ServiceUnitConfig; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.util.PathUtil; + import org.w3c.dom.Document; import org.w3c.dom.Element; -import com.sun.jbi.restbc.jbiadapter.I18n; -import com.sun.jbi.restbc.jbiadapter.InboundConfiguration; -import com.sun.jbi.restbc.jbiadapter.OutboundConfiguration; -import com.sun.jbi.restbc.jbiadapter.RestComponent; -import com.sun.jbi.restbc.jbiadapter.ServiceUnit; -import com.sun.jbi.restbc.jbiadapter.ServiceUnitConfig; -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.util.PathUtil; - /** * WSDLEndpoint.java * @@ -130,10 +132,19 @@ public class WSDLEndpoint implements ServiceUnitConfig { return null; } - public InboundConfiguration findInboundConfig(String listenerName, HttpHeaders headers, String method, String path) { + /** + * Return WSDL inbounds configurations. + * + * @return inbounds configuration. + */ + public Collection getInboundsConfigs(){ + return inboundConfigs.values(); + } + + public InboundConfiguration findInboundConfig(String listenerName, MediaType contentType, List acceptMediaTypes, String method, String path) { for (InboundConfiguration inboundConfig : inboundConfigs.values()) { if (inboundConfig.getHttpListenerName().equals(listenerName)) { - if (PathUtil.matchInboundConfiguration(inboundConfig, headers, method, path)) { + if (PathUtil.matchInboundConfiguration(inboundConfig, contentType, acceptMediaTypes, method, path)) { return inboundConfig; } } diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java old mode 100755 new mode 100644 similarity index 96% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java rename to ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java index 9dac5288c..188172fed --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java +++ b/ojc-core/restbc/jbiadapter/src/main/java/net/openesb/jbi/restbc/jbiadapter/wsdl/WSDLServiceUnitConfig.java @@ -1,4 +1,4 @@ -package com.sun.jbi.restbc.jbiadapter.wsdl; +package net.openesb.jbi.restbc.jbiadapter.wsdl; import java.io.File; import java.util.ArrayList; @@ -24,13 +24,14 @@ import javax.xml.namespace.QName; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; +import net.openesb.jbi.restbc.jbiadapter.RestComponent; +import net.openesb.jbi.restbc.jbiadapter.ServiceUnit; +import net.openesb.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; +import net.openesb.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; + import org.w3c.dom.Document; import org.xml.sax.EntityResolver; -import com.sun.jbi.restbc.jbiadapter.RestComponent; -import com.sun.jbi.restbc.jbiadapter.ServiceUnit; -import com.sun.jbi.restbc.jbiadapter.descriptor.EndpointIdentifier; -import com.sun.jbi.restbc.jbiadapter.descriptor.RestSUDescriptor; import com.sun.wsdl4j.ext.WSDL4JExt; /** diff --git a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/msgs.properties b/ojc-core/restbc/jbiadapter/src/main/resources/net/openesb/jbi/restbc/jbiadapter/msgs.properties old mode 100755 new mode 100644 similarity index 55% rename from ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/msgs.properties rename to ojc-core/restbc/jbiadapter/src/main/resources/net/openesb/jbi/restbc/jbiadapter/msgs.properties index 6161d45fc..c2347d33c --- a/ojc-core/restbc/jbiadapter/src/com/sun/jbi/restbc/jbiadapter/msgs.properties +++ b/ojc-core/restbc/jbiadapter/src/main/resources/net/openesb/jbi/restbc/jbiadapter/msgs.properties @@ -1,375 +1,369 @@ # DO NOT EDIT # THIS FILE IS GENERATED AUTOMATICALLY FROM JAVA SOURCES/CLASSES -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-1001 = ComponentLifeCycle.init() called. -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-1002 = ComponentLifeCycle.shutdown() called. -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-1003 = ComponentLifeCycle.start() called. -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-1004 = ComponentLifeCycle.stop() called. -# com.sun.jbi.restbc.jbiadapter.RestBootstrap +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap RESTBC-1021 = Bootstrap init called. -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1031 = ServiceUnitManager.deploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1032 = ServiceUnitManager.init() called serviceUnitName\={0}, serviceUnitRootPath\={1} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1033 = ServiceUnitManager.init() successful serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1034 = ServiceUnitManager.shutdown() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1035 = ServiceUnitManager.start() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1036 = ServiceUnitManager.stop() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-1037 = ServiceUnitManager.undeploy() called serviceUnitName\={0}, serviceUnitRootPath\={1} -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-1051 = ServiceUnit.start() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-1052 = ServiceUnit.stop() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-1053 = ServiceUnit.shutdown() called serviceUnitName\={0} -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-1061 = creating NMR Receiver\: threadPoolSize\={0}, maxTheadPoolSize\={1}, maxWaitMillis\={2}, -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-1062 = starting NMR Receiver -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-1063 = stopping NMR Receiver -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-1064 = received a MessageExchange\: id\={0} -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-1081 = ignored reading payload for {0} method -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-1082 = sending entity located in NM property for the request as a String object -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-1083 = sending entity located in NM property for the request as a DOMSource object -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-1084 = sending entity located in NM property for the request as a Source object -# com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource +# net.openesb.jbi.restbc.jbiadapter.inbound.ServiceUnitResourceConfig.1 RESTBC-1101 = Inbound Request\: {0} -# com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource -RESTBC-1102 = Inbound Response\: {0} - -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-1121 = WSDLEndpoint.start() -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-1122 = WSDLEndpoint.stop() -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-1123 = WSDLEndpoint.shutdown() -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-1131 = PropertyServiceUnitConfig.start() -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-1132 = PropertyServiceUnitConfig.stop() -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-1133 = PropertyServiceUnitConfig.shutdown() -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-1202 = Application Configuration deleted {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-1204 = New application variable added {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-1205 = Application variable deleted {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-4001 = Initializing Keystore at location {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-4002 = Initializing Truststore at location {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-4003 = Started listener {0} at port {1} -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-4121 = activating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-4122 = deactivating endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1} -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-4131 = activating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-4132 = deactivating endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-5001 = Initialized {0} successfully -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-5002 = Shut down {0} successfully -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-5003 = Start {0} successfully -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-5004 = Stop {0} successfully -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-5031 = Deployed ServiceUnit {0}. -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6001 = Unable to initialize SSLContext, install root is not a directory {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6002 = Unable to initialize SSLContext, keystore file is not a file {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6003 = Unable to initialize SSLContext, truststore file is not a file {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6004 = Unable to initialize SSLContext {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6005 = Unable to initialize SSLConfig, install root is not a directory {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6006 = Unable to initialize SSLConfig, keystore file is not a file {0} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-6007 = Unable to initialize SSLConfig, truststore file is not a file {0} -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-6051 = unable to instantiate PropertyServiceUnitConfig ServiceUnit -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-6052 = unable to instantiate JaxrsPojoServiceUnitConfig ServiceUnit -# com.sun.jbi.restbc.jbiadapter.ServiceUnit +# net.openesb.jbi.restbc.jbiadapter.ServiceUnit RESTBC-6053 = unable to instantiate WSDLServiceUnitConfig ServiceUnit -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6081 = Skipping Content-Type specified in Headers NM property, since Content-Type is already specified. -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6082 = Skipping Accept specified in Headers NM property, since Accept is already specified. -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6083 = Skipping Accept-Language specified in Headers NM property, since Accept-Language is already specified. -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6084 = Skipping Date specified in Headers NM property, since Date is already specified. -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6085 = filter class {0} is not a subclass of com.sun.jersey.api.client.filter.ClientFilter, skipping ... -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-6086 = unable to instantiate filter class {0} skipping ..., {1} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-7003 = {0} failed to start {1} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-7004 = {0} failed to stop {1} -# com.sun.jbi.restbc.jbiadapter.RestComponent +# net.openesb.jbi.restbc.jbiadapter.RestComponent RESTBC-7005 = {0} failed to stop HTTP listener {1}, {2} -# com.sun.jbi.restbc.jbiadapter.RestBootstrap +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap RESTBC-7021 = Failed to parse component descriptor\: {0} -# com.sun.jbi.restbc.jbiadapter.RestBootstrap +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap RESTBC-7022 = Failed to initialize component bootstrap\: {0} -# com.sun.jbi.restbc.jbiadapter.RestBootstrap +# net.openesb.jbi.restbc.jbiadapter.RestBootstrap RESTBC-7023 = Failed to register component bootstrap\: {0} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7031 = Duplicate ServiceUnit {0}, cannot proceed with deployment. -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7032 = Error shutting down Service Unit {0} {1} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7033 = Cannot find Service Unit {0} to shutdown -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7034 = Error starting Service Unit {0} {1} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7035 = Cannot find Service Unit {0} to start -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7036 = Error stopping Service Unit {0} {1} -# com.sun.jbi.restbc.jbiadapter.RestSUManager +# net.openesb.jbi.restbc.jbiadapter.RestSUManager RESTBC-7037 = Cannot find Service Unit {0} to stop -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-7061 = Error during DeliveryChannel.accept() {0} -# com.sun.jbi.restbc.jbiadapter.Receiver +# net.openesb.jbi.restbc.jbiadapter.Receiver RESTBC-7062 = Error during Receiver.run() {0} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7071 = error processing MessageExchange\: id\={0}, {1} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7072 = unsupported MEP\: id\={0} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7073 = Inbound MEP should not get here\: id\={0} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7074 = cannot find corresponding endpoint for this MessageExchange\: id\={0} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7075 = error when processing MessageExchange\: id\={0}, {1} -# com.sun.jbi.restbc.jbiadapter.MessageProcessor +# net.openesb.jbi.restbc.jbiadapter.MessageProcessor RESTBC-7076 = got ERROR status for MessageExchange\: id\={0} -# com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper +# net.openesb.jbi.restbc.jbiadapter.JerseyClientWrapper RESTBC-7081 = SSLContext is unavailable to make HTTPS Request -# com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource +# net.openesb.jbi.restbc.jbiadapter.inbound.ServiceUnitResourceConfig.1 RESTBC-7101 = Inbound delegator not initialized yet -# com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource -RESTBC-7102 = Error while serving inbound request {0} - -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7111 = Request URL {0} does not match any ServiceUnit with listenerName\={1} -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7112 = Unexcepted error\: unable to match request path with a inbound configuration -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7113 = Inbound request timed-out after {0} ms -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7114 = Error during inbound request {0} -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7115 = Incorrect return status for inbound request -# com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator +# net.openesb.jbi.restbc.jbiadapter.inbound.InboundDelegator RESTBC-7116 = Unsupported MEP type {0} -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-7121 = http-listener-name\={0} specified in the inbound configuration for WSDL operation {1} does not match an existing HTTP Listener. -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-7122 = unable to activate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} -# com.sun.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint +# net.openesb.jbi.restbc.jbiadapter.wsdl.WSDLEndpoint RESTBC-7123 = unable to deactivate endpoint for WSDLEndpoint\: serviceName\={0}, endpointName\={1}, {2} -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-7131 = http-listener-name\={0} specified in the inbound configuration for PropertyConfiguration does not match an existing HTTP Listener. -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-7132 = unable to activate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-7133 = unable to deactivate endpoint for PropertyServiceUnitConfig\: serviceName\={0}, endpointName\={1}, {2} -# com.sun.jbi.restbc.jbiadapter.PropertyServiceUnitConfig +# net.openesb.jbi.restbc.jbiadapter.PropertyServiceUnitConfig RESTBC-7134 = {0} property cannot be empty. -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7201 = Application Config already exists {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7202 = Invalid item size for Application Config {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7203 = Invalid key for composite data for Application Config {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7204 = Application Configuration does not exist for delete {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7205 = Application Configuration does not exist for set {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7206 = Invalid item size for app config {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7207 = Invalid key for composite data for app config -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7208 = Unable to construct composite data for app config {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7209 = Application variable name already exists {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7210 = Invalid item size for app variable {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7211 = Invalid key for composite data for app variable {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7212 = Invalid app variable composite data no value field {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7213 = Invalid app variable composite data no type field -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7214 = Application variable does not exist for delete {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7215 = Application variable does not exist for set {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7216 = Invalid item size for app variable -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7219 = Invalid app variable composite data no type field {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7220 = Unable to construct composite data for app variable -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7221 = Invalid app config composite data null url -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7224 = Failed to persist application variables {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7225 = Failed to load application variables {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7226 = Failed to persist application configurations {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7227 = Failed to load application configurations {0} {1} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7228 = Failed during mbean initialization {0} -# com.sun.jbi.restbc.jbiadapter.mbeans.RuntimeConfig +# net.openesb.jbi.restbc.jbiadapter.mbeans.RuntimeConfig RESTBC-7521 = Exception while persisting configuration changes. diff --git a/ojc-core/restbc/jbiadapter/test/com/sun/jbi/restbc/jbiadapter/util/JsonUtilTest.java b/ojc-core/restbc/jbiadapter/test/com/sun/jbi/restbc/jbiadapter/util/JsonUtilTest.java deleted file mode 100755 index 7a03d4ffe..000000000 --- a/ojc-core/restbc/jbiadapter/test/com/sun/jbi/restbc/jbiadapter/util/JsonUtilTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.sun.jbi.restbc.jbiadapter.util; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - - -public class JsonUtilTest extends TestCase { - - - public JsonUtilTest(String testName) { - super(testName); - } - - @Override - protected void setUp() throws Exception { - super.setUp(); - } - - @Override - protected void tearDown() throws Exception { - super.tearDown(); - } - - public void testParseJsonPairs() throws Exception { - - } - - public static Test suite() { - TestSuite suite = new TestSuite(JsonUtilTest.class); - - return suite; - } - -} \ No newline at end of file diff --git a/ojc-core/restbc/nbactions.xml b/ojc-core/restbc/nbactions.xml old mode 100755 new mode 100644 diff --git a/ojc-core/restbc/packaging-full/pom.xml b/ojc-core/restbc/packaging-full/pom.xml new file mode 100644 index 000000000..c08b714fc --- /dev/null +++ b/ojc-core/restbc/packaging-full/pom.xml @@ -0,0 +1,280 @@ + + + + + + + package-common + open-jbi-components + 1.1 + ../../build-common/package-common + + 4.0.0 + restbc-full-installer + OpenESB - Components - RESTBC - Packaging Full + Creates an installable jar for the Rest Binding Component + ${restbc.artifact.version} + + + + META-INF + src/main/resources + true + + *.xml + + + + ./ + src/main/resources + false + + config.properties + *.jks + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + ${project.artifactId}-fetch-deps + generate-sources + + copy-dependencies + + + ${project.build.outputDirectory}/lib + true + + net.open-esb.components, + net.open-esb.components.restbc, + net.open-esb.external.hulp, + org.glassfish.grizzly, + org.glassfish.jersey.core, + org.glassfish.jersey.containers, + org.glassfish.jersey.bundles.repackaged, + org.glassfish.hk2, + com.fasterxml.jackson.core, + com.fasterxml.jackson.dataformat, + javax.ws.rs + + + + + + + + maven-surefire-plugin + + true + + + + maven-jar-plugin + + + ${project.build.outputDirectory}/META-INF/MANIFEST.MF + + + + + + + org.apache.felix + maven-bundle-plugin + + + bundle-manifest + process-classes + + manifest + + + + + + sun-rest-binding + REST Binding Component + Implementation of Rest Binding Component + ${OSGI_VERSION} + <_removeheaders>${OSGI_MANIFEST_REMOVE_HEADERS}, Export-Package + + *;-noimport:=true + + + lib/restbc-jbiadapter.jar, + lib/componentsl.jar, + lib/common-util.jar, + lib/wsdl4j.jar, + lib/wsdl4jext.jar, + lib/customized-xmlbeans.jar, + lib/resolver.jar, + lib/qos.jar, + lib/jersey-bundle.jar, + lib/grizzly-servlet-webserver.jar, + lib/asm.jar, + lib/jackson-core.jar, + lib/jackson-dataformat-xml.jar, + lib/jackson-annotations.jar, + lib/jackson-databind.jar, + lib/jackson-module-jaxb-annotations.jar, + lib/jsr311-api.jar, + lib/net.sf.hulp.meas.itf.jar, + lib/net.sf.hulp.meas.impl.jar + + + javax.activation.*, + javax.jbi.*, + javax.mail.*, + javax.management.*, + javax.naming.*, + javax.net.ssl.*, + javax.servlet;version="2.5", + javax.servlet.http;version="2.5", + javax.servlet.jsp;resolution:=optional, + javax.servlet.resources;resolution:=optional;version="2.5", + javax.xml.namespace, + javax.xml.parsers.*, + javax.xml.transform.*, + javax.xml.xpath.*, + org.osgi.framework.*, + org.w3c.dom.*, + org.xml.sax.*, + org.glassfish.openesb.api.message, + org.glassfish.openesb.api.service + + com.sun.jbi.restbc.jbiadapter.inbound.ComponentBundleActivator + + + + + + + + + + net.open-esb.components.restbc + restbc-jbiadapter + ${project.version} + + + open-jbi-components + wsdl4j + + + open-jbi-components + wsdl4jext + + + open-jbi-components + customized-xmlbeans + + + open-jbi-components + resolver + + + open-jbi-components + componentsl + + + open-jbi-components + qos + + + open-jbi-components + common-util + + + org.glassfish.jersey.containers + jersey-container-grizzly2-http + ${jersey.version} + + + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + ${jersey.version} + + + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + net.sf.hulp.meas + net.sf.hulp.meas.itf + + + + sun-rest-binding + 2.14 + 2.4.2 + + diff --git a/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xml.old b/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xml.old new file mode 100644 index 000000000..664302631 --- /dev/null +++ b/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xml.old @@ -0,0 +1,14 @@ + + + + 10 + 5 + + \ No newline at end of file diff --git a/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xsd.old b/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xsd.old new file mode 100644 index 000000000..88976e319 --- /dev/null +++ b/ojc-core/restbc/packaging-full/src/main/resources/componentConfiguration.xsd.old @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ojc-core/restbc/packaging/src/config.properties b/ojc-core/restbc/packaging-full/src/main/resources/config.properties old mode 100755 new mode 100644 similarity index 100% rename from ojc-core/restbc/packaging/src/config.properties rename to ojc-core/restbc/packaging-full/src/main/resources/config.properties diff --git a/ojc-core/restbc/packaging-full/src/main/resources/jbi.xml b/ojc-core/restbc/packaging-full/src/main/resources/jbi.xml new file mode 100644 index 000000000..85e8101b5 --- /dev/null +++ b/ojc-core/restbc/packaging-full/src/main/resources/jbi.xml @@ -0,0 +1,209 @@ + + + + + + + ${component.name} + REST Binding Component + + + net.openesb.jbi.restbc.jbiadapter.RestComponent + + + lib/restbc-jbiadapter.jar + lib/componentsl.jar + lib/common-util.jar + lib/wsdl4j.jar + lib/wsdl4jext.jar + lib/customized-xmlbeans.jar + lib/resolver.jar + lib/qos.jar + lib/itf.jar + + + lib/jersey-client.jar + lib/jersey-container-grizzly2-http.jar + lib/jersey-container-grizzly2-servlet.jar + lib/jersey-common.jar + lib/jersey-container-servlet-core.jar + lib/jersey-container-servlet.jar + lib/jersey-server.jar + lib/jersey-guava.jar + + + lib/grizzly-framework.jar + lib/grizzly-http-server.jar + lib/grizzly-http-servlet.jar + lib/grizzly-http.jar + + + lib/jackson-core.jar + lib/jackson-annotations.jar + lib/jackson-dataformat-xml.jar + lib/jackson-databind.jar + + + lib/hk2-api.jar + lib/hk2-locator.jar + lib/hk2-utils.jar + + + lib/javax.ws.rs-api.jar + + net.openesb.jbi.restbc.jbiadapter.RestBootstrap + + lib/restbc-jbiadapter.jar + lib/common-util.jar + lib/componentsl.jar + lib/qos.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + com.sun.jbi.restbc.jbiadapter.RestBootstrap + com.sun.jbi.restbc.jbiadapter.RestComponent + com.sun.jbi.restbc.jbiadapter.RestSUManager + com.sun.jbi.restbc.jbiadapter.ServiceUnit + com.sun.jbi.restbc.jbiadapter.Receiver + com.sun.jbi.restbc.jbiadapter.MessageProcessor + com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper + com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource + com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator + + + + + diff --git a/ojc-core/restbc/packaging/src/keystore.jks b/ojc-core/restbc/packaging-full/src/main/resources/keystore.jks old mode 100755 new mode 100644 similarity index 100% rename from ojc-core/restbc/packaging/src/keystore.jks rename to ojc-core/restbc/packaging-full/src/main/resources/keystore.jks diff --git a/ojc-core/restbc/packaging/src/restbc-config.properties b/ojc-core/restbc/packaging-full/src/main/resources/restbc-config.properties old mode 100755 new mode 100644 similarity index 92% rename from ojc-core/restbc/packaging/src/restbc-config.properties rename to ojc-core/restbc/packaging-full/src/main/resources/restbc-config.properties index d5b8e39fc..a2dcb0254 --- a/ojc-core/restbc/packaging/src/restbc-config.properties +++ b/ojc-core/restbc/packaging-full/src/main/resources/restbc-config.properties @@ -9,6 +9,7 @@ /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='NmrMaxThreadPoolSize']/@displayDescription=Maximum number of threads in ThreadPoolExecutor for processing NMR messages. /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='TruststorePassword']/@displayDescription=Truststore Password /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableHostnameVerifier']/@displayName=enable/disable javax.net.ssl.HostnameVerifier +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableClientAuth']/@displayName=enable/disable SSL Client Auth /jbi\:jbi/jbi\:component/jbi\:identification/jbi\:description=REST Binding Component /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpListenerThreads']/@displayName=Default HTTP Listener Threads /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='configurationName']/@displayDescription=Name of the Application Configuration object @@ -23,3 +24,4 @@ /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='url']/@displayName=URL /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpsListenerThreads']/@displayDescription=Default HTTPS Listener Threads /jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableHostnameVerifier']/@displayDescription=enable/disable javax.net.ssl.HostnameVerifier, if set to false, verify() method always return true +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableClientAuth']/@displayDescription=enable/disable SSL Client Auth diff --git a/ojc-core/restbc/packaging/src/truststore.jks b/ojc-core/restbc/packaging-full/src/main/resources/truststore.jks old mode 100755 new mode 100644 similarity index 100% rename from ojc-core/restbc/packaging/src/truststore.jks rename to ojc-core/restbc/packaging-full/src/main/resources/truststore.jks diff --git a/ojc-core/restbc/packaging/.classpath b/ojc-core/restbc/packaging/.classpath new file mode 100644 index 000000000..6e8059399 --- /dev/null +++ b/ojc-core/restbc/packaging/.classpath @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ojc-core/restbc/packaging/.gitignore b/ojc-core/restbc/packaging/.gitignore new file mode 100644 index 000000000..c645e86bc --- /dev/null +++ b/ojc-core/restbc/packaging/.gitignore @@ -0,0 +1,2 @@ +target/ +/target diff --git a/ojc-core/restbc/packaging/nbactions.xml b/ojc-core/restbc/packaging/nbactions.xml old mode 100755 new mode 100644 diff --git a/ojc-core/restbc/packaging/pom.xml b/ojc-core/restbc/packaging/pom.xml old mode 100755 new mode 100644 index d0597ba52..9730343e2 --- a/ojc-core/restbc/packaging/pom.xml +++ b/ojc-core/restbc/packaging/pom.xml @@ -8,13 +8,13 @@ # in compliance with the License. # # You can obtain a copy of the license at - # https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. + # https://net.open-esb.components.dev.java.net/public/CDDLv1.0.html. # See the License for the specific language governing # permissions and limitations under the License. # # When distributing Covered Code, include this CDDL # HEADER in each file and include the License file at - # https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. + # https://net.open-esb.components.dev.java.net/public/CDDLv1.0.html. # If applicable add the following below this CDDL HEADER, # with the fields enclosed by brackets "[]" replaced with # your own identifying information: Portions Copyright @@ -35,16 +35,15 @@ ../../build-common/package-common 4.0.0 - open-jbi-components restbc-installer - sun-rest-binding ${restbc.artifact.version} + OpenESB - Components - RESTBC - Packaging Creates an installable jar for the Rest Binding Component META-INF - src + src/main/resources true *.xml @@ -52,7 +51,7 @@ ./ - src + src/main/resources false config.properties @@ -60,54 +59,9 @@ + - - maven-antrun-plugin - - - ${project.artifactId}-generate-i18n-descriptors - process-resources - - run - - - - - - - - - - - - - - - - - - ${project.artifactId}-rename-jars - process-classes - - run - - - - - - - - - - + maven-dependency-plugin @@ -172,14 +126,17 @@ lib/customized-xmlbeans.jar, lib/resolver.jar, lib/qos.jar, - lib/jersey-bundle.jar, - lib/grizzly-servlet-webserver.jar, - lib/asm.jar, - lib/jackson-core-asl.jar, - lib/jackson-mapper-asl.jar, - lib/jsr311-api.jar, + lib/jersey-bundle.jar, + lib/grizzly-servlet-webserver.jar, + lib/asm.jar, + lib/jackson-core.jar, + lib/jackson-dataformat-xml.jar, + lib/jackson-annotations.jar, + lib/jackson-databind.jar, + lib/jackson-module-jaxb-annotations.jar, + lib/jsr311-api.jar, lib/net.sf.hulp.meas.itf.jar, - lib/net.sf.hulp.meas.impl.jar + lib/net.sf.hulp.meas.impl.jar javax.activation.*, @@ -203,8 +160,8 @@ org.glassfish.openesb.api.service com.sun.jbi.restbc.jbiadapter.inbound.ComponentBundleActivator - @@ -214,70 +171,57 @@ - open-jbi-components - restjbiadapter - true + net.open-esb.components.restbc + restbc-jbiadapter + ${project.version} open-jbi-components wsdl4j - true open-jbi-components wsdl4jext - true open-jbi-components customized-xmlbeans - true open-jbi-components resolver - true open-jbi-components componentsl - true open-jbi-components qos - true open-jbi-components common-util + + + org.glassfish.jersey.containers + jersey-container-grizzly2-http + ${jersey.version} + + + org.glassfish.jersey.containers + jersey-container-grizzly2-servlet + ${jersey.version} + + + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.dataformat + jackson-dataformat-xml + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} net.sf.hulp.meas net.sf.hulp.meas.itf - true - 2.1-SNAPSHOT - - - net.sf.hulp.meas - net.sf.hulp.meas.impl - true - 2.1-SNAPSHOT + + sun-rest-binding + 2.14 + 2.4.2 + diff --git a/ojc-core/restbc/packaging/src/jbi.xml b/ojc-core/restbc/packaging/src/jbi.xml deleted file mode 100755 index 1e6cc3826..000000000 --- a/ojc-core/restbc/packaging/src/jbi.xml +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - sun-rest-binding - REST Binding Component - - - com.sun.jbi.restbc.jbiadapter.RestComponent - - lib/restbc-jbiadapter.jar - lib/componentsl.jar - lib/common-util.jar - lib/wsdl4j.jar - lib/wsdl4jext.jar - lib/customized-xmlbeans.jar - lib/resolver.jar - lib/qos.jar - lib/jersey-bundle.jar - lib/jsr311-api.jar - lib/asm.jar - lib/grizzly-servlet-webserver.jar - lib/jackson-core-asl.jar - lib/jackson-mapper-asl.jar - - com.sun.jbi.restbc.jbiadapter.RestBootstrap - - lib/restbc-jbiadapter.jar - lib/common-util.jar - lib/componentsl.jar - lib/qos.jar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - com.sun.jbi.restbc.jbiadapter.RestBootstrap - com.sun.jbi.restbc.jbiadapter.RestComponent - com.sun.jbi.restbc.jbiadapter.RestSUManager - com.sun.jbi.restbc.jbiadapter.ServiceUnit - com.sun.jbi.restbc.jbiadapter.Receiver - com.sun.jbi.restbc.jbiadapter.MessageProcessor - com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper - com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource - com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator - - - - - diff --git a/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xml.old b/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xml.old new file mode 100644 index 000000000..664302631 --- /dev/null +++ b/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xml.old @@ -0,0 +1,14 @@ + + + + 10 + 5 + + \ No newline at end of file diff --git a/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xsd.old b/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xsd.old new file mode 100644 index 000000000..88976e319 --- /dev/null +++ b/ojc-core/restbc/packaging/src/main/resources/componentConfiguration.xsd.old @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ojc-core/restbc/packaging/src/main/resources/config.properties b/ojc-core/restbc/packaging/src/main/resources/config.properties new file mode 100644 index 000000000..72defb96b --- /dev/null +++ b/ojc-core/restbc/packaging/src/main/resources/config.properties @@ -0,0 +1,18 @@ + +# path to keystore location, relative to component install root +keystore=keystore.jks + +# password to access the keystore +keystore-password=changeit + +# path to truststore location, relative to component install root +truststore=truststore.jks + +# password to access the keystore +truststore-password=changeit + +# enable/disable javax.net.ssl.HostnameVerifier, if set to false, verify() method always return true +hostname-verifier=false + +# default listener port, defaults to 9696 +default-listener-port=9696 diff --git a/ojc-core/restbc/packaging/src/main/resources/jbi.xml b/ojc-core/restbc/packaging/src/main/resources/jbi.xml new file mode 100644 index 000000000..051dd6870 --- /dev/null +++ b/ojc-core/restbc/packaging/src/main/resources/jbi.xml @@ -0,0 +1,188 @@ + + + + + + + ${component.name} + REST Binding Component + + + net.openesb.jbi.restbc.jbiadapter.RestComponent + + lib/restbc-jbiadapter.jar + lib/componentsl.jar + lib/common-util.jar + lib/wsdl4j.jar + lib/wsdl4jext.jar + lib/customized-xmlbeans.jar + lib/resolver.jar + lib/qos.jar + lib/jersey-container-grizzly2-http.jar + lib/jersey-container-grizzly2-servlet.jar + lib/grizzly-servlet-webserver.jar + lib/itf.jar + + lib/jackson-core.jar + lib/jackson-annotations.jar + lib/jackson-dataformat-xml.jar + lib/jackson-databind.jar + lib/jackson-module-jaxb-annotations.jar + + net.openesb.jbi.restbc.jbiadapter.RestBootstrap + + lib/restbc-jbiadapter.jar + lib/common-util.jar + lib/componentsl.jar + lib/qos.jar + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + com.sun.jbi.restbc.jbiadapter.RestBootstrap + com.sun.jbi.restbc.jbiadapter.RestComponent + com.sun.jbi.restbc.jbiadapter.RestSUManager + com.sun.jbi.restbc.jbiadapter.ServiceUnit + com.sun.jbi.restbc.jbiadapter.Receiver + com.sun.jbi.restbc.jbiadapter.MessageProcessor + com.sun.jbi.restbc.jbiadapter.JerseyClientWrapper + com.sun.jbi.restbc.jbiadapter.inbound.JerseyRootResource + com.sun.jbi.restbc.jbiadapter.inbound.InboundDelegator + + + + + diff --git a/ojc-core/restbc/packaging/src/main/resources/keystore.jks b/ojc-core/restbc/packaging/src/main/resources/keystore.jks new file mode 100644 index 000000000..c40846550 Binary files /dev/null and b/ojc-core/restbc/packaging/src/main/resources/keystore.jks differ diff --git a/ojc-core/restbc/packaging/src/main/resources/restbc-config.properties b/ojc-core/restbc/packaging/src/main/resources/restbc-config.properties new file mode 100644 index 000000000..a2dcb0254 --- /dev/null +++ b/ojc-core/restbc/packaging/src/main/resources/restbc-config.properties @@ -0,0 +1,27 @@ +#Default I18n properties bundle +#Tue Oct 27 16:59:04 PDT 2009 +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='KeystorePassword']/@displayDescription=Keystore Password +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpsListenerPort']/@displayDescription=Default HTTPS Listener Port +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='TruststorePassword']/@displayName=Truststore Password +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpListenerPort']/@displayDescription=Default HTTP Listener Port +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='NmrThreadPoolSize']/@displayDescription=Number of core threads in ThreadPoolExecutor for processing NMR messages. +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='NmrMaxThreadPoolSize']/@displayName=NMR Max Thread Pool Size +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='NmrMaxThreadPoolSize']/@displayDescription=Maximum number of threads in ThreadPoolExecutor for processing NMR messages. +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='TruststorePassword']/@displayDescription=Truststore Password +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableHostnameVerifier']/@displayName=enable/disable javax.net.ssl.HostnameVerifier +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableClientAuth']/@displayName=enable/disable SSL Client Auth +/jbi\:jbi/jbi\:component/jbi\:identification/jbi\:description=REST Binding Component +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpListenerThreads']/@displayName=Default HTTP Listener Threads +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='configurationName']/@displayDescription=Name of the Application Configuration object +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='KeystorePassword']/@displayName=Keystore Password +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='url']/@displayDescription=HTTP URL +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpsListenerPort']/@displayName=Default HTTPS Listener Port +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpListenerThreads']/@displayDescription=Default HTTP Listener Threads +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='configurationName']/@displayName=Name +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpListenerPort']/@displayName=Default HTTP Listener Port +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpsListenerThreads']/@displayName=Default HTTPS Listener Threads +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='NmrThreadPoolSize']/@displayName=NMR Core Thread Pool Size +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:ApplicationConfiguration/cfg\:Property[@name\='url']/@displayName=URL +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='DefaultHttpsListenerThreads']/@displayDescription=Default HTTPS Listener Threads +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableHostnameVerifier']/@displayDescription=enable/disable javax.net.ssl.HostnameVerifier, if set to false, verify() method always return true +/jbi\:jbi/jbi\:component/cfg\:Configuration/cfg\:PropertyGroup/cfg\:Property[@name\='EnableClientAuth']/@displayDescription=enable/disable SSL Client Auth diff --git a/ojc-core/restbc/packaging/src/main/resources/truststore.jks b/ojc-core/restbc/packaging/src/main/resources/truststore.jks new file mode 100644 index 000000000..c40846550 Binary files /dev/null and b/ojc-core/restbc/packaging/src/main/resources/truststore.jks differ diff --git a/ojc-core/restbc/pom.xml b/ojc-core/restbc/pom.xml old mode 100755 new mode 100644 index 00cf3a235..92fa775c9 --- a/ojc-core/restbc/pom.xml +++ b/ojc-core/restbc/pom.xml @@ -8,13 +8,13 @@ # in compliance with the License. # # You can obtain a copy of the license at - # https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. + # https://net.open-esb.components.dev.java.net/public/CDDLv1.0.html. # See the License for the specific language governing # permissions and limitations under the License. # # When distributing Covered Code, include this CDDL # HEADER in each file and include the License file at - # https://open-jbi-components.dev.java.net/public/CDDLv1.0.html. + # https://net.open-esb.components.dev.java.net/public/CDDLv1.0.html. # If applicable add the following below this CDDL HEADER, # with the fields enclosed by brackets "[]" replaced with # your own identifying information: Portions Copyright @@ -27,26 +27,34 @@ # # END_HEADER - DO NOT EDIT --> - + + 4.0.0 + ojc-common open-jbi-components 1.1 ../build-common/ojc-common - 4.0.0 - open-jbi-components - restbc-top + + net.open-esb.components.restbc + parent pom - restbc-top + + OpenESB - Components - RESTBC ${restbc.artifact.version} - Top-level Build for restbc-top - - install - + Rest Binding Component + - jbiadapter packaging + packaging-full + + + sun-rest-binding + 2.14 + 2.4.2 + diff --git a/ojc-core/sapbc/sapbcimpl/pom.xml b/ojc-core/sapbc/sapbcimpl/pom.xml index a4f02d555..9d86134a0 100755 --- a/ojc-core/sapbc/sapbcimpl/pom.xml +++ b/ojc-core/sapbc/sapbcimpl/pom.xml @@ -112,11 +112,6 @@ sapjco - - jbicompsplatform - compileconf - test - jmock jmock diff --git a/ojc-core/scriptse/core/pom.xml b/ojc-core/scriptse/core/pom.xml index 6b56e3a07..9609957c8 100755 --- a/ojc-core/scriptse/core/pom.xml +++ b/ojc-core/scriptse/core/pom.xml @@ -40,11 +40,6 @@ - - jbicompsplatform - compileconf - ${jbicomps.currentVersion} - open-jbi-components wsdlmodel diff --git a/ojc-core/scriptse/scriptseimpl/pom.xml b/ojc-core/scriptse/scriptseimpl/pom.xml index e5480abd9..f386b97a3 100755 --- a/ojc-core/scriptse/scriptseimpl/pom.xml +++ b/ojc-core/scriptse/scriptseimpl/pom.xml @@ -41,18 +41,10 @@ ${scriptse.artifact.version} top level build for scriptse - - jbicompsplatform - compileconf - open-jbi-components componentsl - - jbicompsplatform - compileconf - open-jbi-components crl diff --git a/ojc-core/smtpbc/packaging/pom.xml b/ojc-core/smtpbc/packaging/pom.xml index b50af9422..c8ee66fa8 100755 --- a/ojc-core/smtpbc/packaging/pom.xml +++ b/ojc-core/smtpbc/packaging/pom.xml @@ -138,7 +138,8 @@ lib/xsdmodel.jar, lib/slf4j-simple.jar, lib/encoderframework.jar, - lib/slf4j-api.jar + lib/slf4j-api.jar, + lib/javax.mail-api.jar javax.xml.namespace, @@ -159,6 +160,11 @@ + + javax.mail + javax.mail-api + 1.5.5 + open-jbi-components smtpbcimpl diff --git a/ojc-core/smtpbc/smtpbcimpl/pom.xml b/ojc-core/smtpbc/smtpbcimpl/pom.xml index ef2d01851..bc83b1760 100755 --- a/ojc-core/smtpbc/smtpbcimpl/pom.xml +++ b/ojc-core/smtpbc/smtpbcimpl/pom.xml @@ -94,6 +94,11 @@ + + javax.mail + javax.mail-api + 1.5.5 + open-jbi-components componentsl diff --git a/ojc-core/snmpbc/snmpengine/pom.xml b/ojc-core/snmpbc/snmpengine/pom.xml index 121003e4d..ca109dd8d 100755 --- a/ojc-core/snmpbc/snmpengine/pom.xml +++ b/ojc-core/snmpbc/snmpengine/pom.xml @@ -81,10 +81,6 @@ - - jbicompsplatform - compileconf - jdmk jdmkrt diff --git a/ojc-core/swiftbc/swiftbcimpl/pom.xml b/ojc-core/swiftbc/swiftbcimpl/pom.xml index bec64bf38..6da28ca6f 100755 --- a/ojc-core/swiftbc/swiftbcimpl/pom.xml +++ b/ojc-core/swiftbc/swiftbcimpl/pom.xml @@ -95,10 +95,6 @@ open-jbi-components encoder-fw - - jbicompsplatform - compileconf - open-jbi-components xsdmodel diff --git a/pom.xml b/pom.xml old mode 100755 new mode 100644