JBossWS SVN: r9337 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2009-02-20 07:24:17 -0500 (Fri, 20 Feb 2009)
New Revision: 9337
Modified:
stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss500.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
Log:
[JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -66,3 +66,6 @@
# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
org/jboss/test/ws/jaxws/jbws2527/**
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -60,3 +60,6 @@
# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
org/jboss/test/ws/jaxws/jbws2527/**
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -60,3 +60,6 @@
# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
org/jboss/test/ws/jaxws/jbws2527/**
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss500.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -48,3 +48,5 @@
# [JBWS-2462] Address rewrite test fails in Metro integration
org/jboss/test/ws/jaxws/jbws2150/**
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -49,4 +49,7 @@
org/jboss/test/ws/jaxws/jbws2150/**
# [JBWS-2530] Review our testing approach and implement better one
-org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
\ No newline at end of file
+org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -50,3 +50,6 @@
# [JBWS-2530] Review our testing approach and implement better one
org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-20 11:15:55 UTC (rev 9336)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-20 12:24:17 UTC (rev 9337)
@@ -50,3 +50,6 @@
# [JBWS-2530] Review our testing approach and implement better one
org/jboss/test/ws/jaxws/samples/webserviceref/WebServiceRefClientTestCase.*
+
+# [JBWS-2532] Fix MTOM/XOP Content Type Testcase failure
+org/jboss/test/ws/jaxws/jbws2419/**
\ No newline at end of file
17 years, 2 months
JBossWS SVN: r9336 - in stack/cxf/trunk/modules: testsuite and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-02-20 06:15:55 -0500 (Fri, 20 Feb 2009)
New Revision: 9336
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/AbstractInvoker.java
stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
Log:
[JBWS-2478] Fixing AbstractInvoker and re-enabling tests
Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/AbstractInvoker.java
===================================================================
--- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/AbstractInvoker.java 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/AbstractInvoker.java 2009-02-20 11:15:55 UTC (rev 9336)
@@ -82,6 +82,8 @@
*
* @author Thomas.Diesler(a)jboss.org
* @author richard.opalka(a)jboss.com
+ *
+ * @see org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker
*/
public abstract class AbstractInvoker implements Invoker
{
@@ -279,13 +281,11 @@
return null;
}
Message m = exchange.getOutMessage();
- if (m == null && !exchange.isOneWay()) {
- throw new UnsupportedOperationException();
- /* TODO: below is the copy/paste from CXF 2.1.3 AbstractJAXWSMethodInvoker.java, should we enable it?
- Endpoint ep = exchange.get(Endpoint.class);
+ if (m == null && !exchange.isOneWay())
+ {
+ org.apache.cxf.endpoint.Endpoint ep = exchange.get(org.apache.cxf.endpoint.Endpoint.class);
m = ep.getBinding().createMessage();
exchange.setOutMessage(m);
- */
}
return m;
}
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -85,9 +85,6 @@
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -85,9 +85,6 @@
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -85,9 +85,6 @@
# [JBWS-2330] Failed to deploy service with multiple bindings
org/jboss/test/ws/jaxws/jbws2278/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -70,8 +70,5 @@
# [JBWS-2227] Investigate why multiple virtual hosts test fails on CXF
org/jboss/test/ws/jaxws/jbws1178/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -70,8 +70,5 @@
# [JBWS-2227] Investigate why multiple virtual hosts test fails on CXF
org/jboss/test/ws/jaxws/jbws1178/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -70,8 +70,5 @@
# [JBWS-2227] Investigate why multiple virtual hosts test fails on CXF
org/jboss/test/ws/jaxws/jbws1178/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-20 10:35:27 UTC (rev 9335)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-20 11:15:55 UTC (rev 9336)
@@ -70,8 +70,5 @@
# [JBWS-2227] Investigate why multiple virtual hosts test fails on CXF
org/jboss/test/ws/jaxws/jbws1178/**
-# [JBWS-2478] Investigate why WS-Security CXF tests are failing
-org/jboss/test/ws/jaxws/samples/wsse/SignEncryptTestCase.*
-
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
17 years, 2 months
JBossWS SVN: r9335 - stack/native/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-20 05:35:27 -0500 (Fri, 20 Feb 2009)
New Revision: 9335
Modified:
stack/native/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/native/trunk/modules/testsuite/test-excludes-jboss424.txt
Log:
[JBWS-2527] fixed on AS5x and above only
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 10:32:45 UTC (rev 9334)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 10:35:27 UTC (rev 9335)
@@ -41,3 +41,6 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
+
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 10:32:45 UTC (rev 9334)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 10:35:27 UTC (rev 9335)
@@ -26,3 +26,5 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/native/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/native/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 10:32:45 UTC (rev 9334)
+++ stack/native/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 10:35:27 UTC (rev 9335)
@@ -26,4 +26,5 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
-
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x and above)
+org/jboss/test/ws/jaxws/jbws2527/**
17 years, 2 months
JBossWS SVN: r9334 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-20 05:32:45 -0500 (Fri, 20 Feb 2009)
New Revision: 9334
Modified:
stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt
Log:
[JBWS-2527] works on AS5x only
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 10:03:36 UTC (rev 9333)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-20 10:32:45 UTC (rev 9334)
@@ -64,3 +64,5 @@
# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 10:03:36 UTC (rev 9333)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-20 10:32:45 UTC (rev 9334)
@@ -58,3 +58,5 @@
# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 10:03:36 UTC (rev 9333)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-20 10:32:45 UTC (rev 9334)
@@ -57,3 +57,6 @@
# [JBWS-981] @WebContext defined virtual hosts only being fixed for JBoss 5
org/jboss/test/ws/jaxws/jbws981/JBWS981TestCase.*
+
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
17 years, 2 months
JBossWS SVN: r9333 - stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/attachment.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2009-02-20 05:03:36 -0500 (Fri, 20 Feb 2009)
New Revision: 9333
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
Log:
[JBWS-2419] MTOM/XOP message use always "text/xml" for start-info regardless of content type associated with the content - Fixed
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java 2009-02-20 10:01:14 UTC (rev 9332)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java 2009-02-20 10:03:36 UTC (rev 9333)
@@ -27,6 +27,7 @@
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMultipart;
import javax.mail.internet.ParameterList;
+import javax.xml.soap.SOAPConstants;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPException;
@@ -57,10 +58,14 @@
public void encodeMultipartRelatedMessage() throws SOAPException, MessagingException
{
+ SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
+ boolean isSoap12 = SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE.equals(soapEnv.getElementQName().getNamespaceURI());
+ String soapType = isSoap12 ? MimeConstants.TYPE_SOAP12 : MimeConstants.TYPE_SOAP11;
+
ParameterList p = new ParameterList();
p.set("type", MimeConstants.TYPE_APPLICATION_XOP_XML);
p.set("start", MimeConstants.ROOTPART_CID);
- p.set("start-info", MimeConstants.START_INFO_XOP);
+ p.set("start-info", soapType);
MimeMultipart multipart = new MimeMultipart("related" + p);
MimeBodyPart rootPart = new MimeBodyPart();
@@ -71,12 +76,11 @@
* to marshall the message. In this way the root part can be lazily written to the output
* stream.
*/
- SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv, false);
rootPart.setText(envStr, "UTF-8");
rootPart.setContentID(MimeConstants.ROOTPART_CID);
- rootPart.setHeader(MimeConstants.CONTENT_TYPE, MimeConstants.TYPE_APPLICATION_XOP_XML + "; type=\"text/xml\"");
+ rootPart.setHeader(MimeConstants.CONTENT_TYPE, MimeConstants.TYPE_APPLICATION_XOP_XML + "; type=\"" + soapType + "\"");
rootPart.setHeader(MimeConstants.CONTENT_TRANSFER_ENCODING, MimeConstants.TEXT_8BIT_ENCODING);
multipart.addBodyPart(rootPart);
17 years, 2 months
JBossWS SVN: r9332 - framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2009-02-20 05:01:14 -0500 (Fri, 20 Feb 2009)
New Revision: 9332
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
Log:
[JBWS-2419] Removed references to MimeConstants
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java 2009-02-20 10:01:14 UTC (rev 9332)
@@ -31,7 +31,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
/**
@@ -51,7 +50,7 @@
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
@@ -60,7 +59,7 @@
contentType = new ContentType(ct[0]);
log.info("contentType="+contentType);
String startInfo = contentType.getParameter("start-info");
- if (startInfo.equals(MimeConstants.TYPE_SOAP11))
+ if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
{
return true;
}
@@ -83,7 +82,7 @@
soapMessage.saveChanges();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java 2009-02-20 10:01:14 UTC (rev 9332)
@@ -31,7 +31,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
/**
@@ -51,7 +50,7 @@
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
@@ -60,7 +59,7 @@
contentType = new ContentType(ct[0]);
log.info("contentType="+contentType);
String startInfo = contentType.getParameter("start-info");
- if (startInfo.equals(MimeConstants.TYPE_SOAP11))
+ if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
{
return true;
}
@@ -83,7 +82,7 @@
soapMessage.saveChanges();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java 2009-02-20 10:01:14 UTC (rev 9332)
@@ -31,7 +31,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
/**
@@ -51,7 +50,7 @@
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
@@ -60,7 +59,7 @@
contentType = new ContentType(ct[0]);
log.info("contentType="+contentType);
String startInfo = contentType.getParameter("start-info");
- if (startInfo.equals(MimeConstants.TYPE_SOAP12))
+ if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
{
return true;
}
@@ -83,7 +82,7 @@
soapMessage.saveChanges();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
Modified: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java 2009-02-20 10:01:14 UTC (rev 9332)
@@ -22,6 +22,7 @@
package org.jboss.test.ws.jaxws.jbws2419;
import javax.mail.internet.ContentType;
+import javax.mail.internet.ParseException;
import javax.xml.soap.MimeHeaders;
import javax.xml.soap.SOAPConstants;
import javax.xml.soap.SOAPException;
@@ -31,7 +32,6 @@
import javax.xml.ws.handler.soap.SOAPMessageContext;
import org.jboss.logging.Logger;
-import org.jboss.ws.core.soap.attachment.MimeConstants;
import org.jboss.wsf.common.handler.GenericSOAPHandler;
/**
@@ -51,7 +51,7 @@
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
@@ -60,7 +60,7 @@
contentType = new ContentType(ct[0]);
log.info("contentType="+contentType);
String startInfo = contentType.getParameter("start-info");
- if (startInfo.equals(MimeConstants.TYPE_SOAP12))
+ if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
{
return true;
}
@@ -83,7 +83,7 @@
soapMessage.saveChanges();
MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
- String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ String[] ct = mimeHeaders.getHeader("Content-Type");
ContentType contentType;
if (ct != null)
{
@@ -94,8 +94,12 @@
}
return false;
}
- catch (Exception ex)
+ catch (ParseException e)
{
+ throw new WebServiceException(e);
+ }
+ catch (SOAPException ex)
+ {
throw new WebServiceException(ex);
}
}
17 years, 2 months
JBossWS SVN: r9331 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws and 4 other directories.
by jbossws-commits@lists.jboss.org
Author: mageshbk(a)jboss.com
Date: 2009-02-20 03:57:31 -0500 (Fri, 20 Feb 2009)
New Revision: 9331
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
framework/trunk/testsuite/test/resources/jaxws/jbws2419/
framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/web.xml
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-2419] Added testcase to check the Content-Type and start-info
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2009-02-19 14:05:55 UTC (rev 9330)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2009-02-20 08:57:31 UTC (rev 9331)
@@ -638,8 +638,22 @@
<webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2412/WEB-INF">
<include name="wsdl/*"/>
</webinf>
- </war>
-
+ </war>
+
+ <!-- jaxws-jbws2419 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2419.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2419/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml"/>
+ </classes>
+ </war>
+
<!-- jaxws-jbws2449 -->
<jar jarfile="${tests.output.dir}/test-libs/jaxws-jbws2449.jar">
<fileset dir="${tests.output.dir}/test-classes">
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,119 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.activation.DataHandler;
+import javax.wsdl.Binding;
+import javax.wsdl.Definition;
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.handler.Handler;
+import javax.xml.ws.soap.SOAPBinding;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test SOAP 1.2 and SOAP 1.1 MTOM/XOP request/response content type and start-info
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 20-Feb-2009
+ */
+public class JBWS2419TestCase extends JBossWSTest
+{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2419";
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS2419TestCase.class, "jaxws-jbws2419.war");
+ }
+
+ public void testSOAP12ClientAccess() throws Exception
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap12?wsdl");
+ QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP12EndpointBeanService");
+ Service service = Service.create(wsdlURL, qname);
+ SOAP12Endpoint port = (SOAP12Endpoint)service.getPort(SOAP12Endpoint.class);
+
+ BindingProvider provider = (BindingProvider)port;
+ List<Handler> handlerChain = new ArrayList<Handler>();
+ handlerChain.addAll(provider.getBinding().getHandlerChain());
+ handlerChain.add(new SOAP12ClientHandler());
+ provider.getBinding().setHandlerChain(handlerChain);
+ ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
+
+ DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
+ Object nsURI = getContent(response);
+ assertEquals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, nsURI);
+ }
+
+ public void testSOAP11ClientAccess() throws Exception
+ {
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap11?wsdl");
+ QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP11EndpointBeanService");
+ Service service = Service.create(wsdlURL, qname);
+ SOAP11Endpoint port = (SOAP11Endpoint)service.getPort(SOAP11Endpoint.class);
+
+ BindingProvider provider = (BindingProvider)port;
+ List<Handler> handlerChain = new ArrayList<Handler>();
+ handlerChain.addAll(provider.getBinding().getHandlerChain());
+ handlerChain.add(new SOAP11ClientHandler());
+ provider.getBinding().setHandlerChain(handlerChain);
+ ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
+
+ DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
+ Object nsURI = getContent(response);
+ assertEquals(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, nsURI);
+ }
+
+ protected Object getContent(DataHandler dh) throws IOException
+ {
+ Object content = dh.getContent();
+
+ // Metro returns an ByteArrayInputStream
+ if (content instanceof InputStream)
+ {
+ try
+ {
+ BufferedReader br = new BufferedReader(new InputStreamReader((InputStream)content));
+ return br.readLine();
+ }
+ finally
+ {
+ ((InputStream)content).close();
+ }
+ }
+ return content;
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.attachment.MimeConstants;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.1 client side handler
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP11ClientHandler extends GenericSOAPHandler
+{
+ private static Logger log = Logger.getLogger(SOAP11ClientHandler.class);
+
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ log.info("handleInbound");
+
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ try
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ String startInfo = contentType.getParameter("start-info");
+ if (startInfo.equals(MimeConstants.TYPE_SOAP11))
+ {
+ return true;
+ }
+ }
+ catch(Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ }
+ return false;
+ }
+
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("handleOutbound");
+
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ soapMessage.saveChanges();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+ return true;
+ }
+ return false;
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.ws.BindingType;
+
+@WebService(name = "SOAP11Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+@SOAPBinding(style = Style.RPC)
+@BindingType(SOAP11HTTP_BINDING)
+
+public interface SOAP11Endpoint
+{
+ @XmlMimeType("text/plain")
+ public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_BINDING;
+
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+import javax.annotation.Resource;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.soap.MTOM;
+
+import org.jboss.logging.Logger;
+
+@WebService(name="SOAP11Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
+ endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP11Endpoint")
+@BindingType(SOAP11HTTP_BINDING)
+@MTOM
+@HandlerChain(file = "jaxws-server-handlers1.xml")
+public class SOAP11EndpointBean implements SOAP11Endpoint
+{
+ private static Logger log = Logger.getLogger(SOAP11EndpointBean.class);
+
+ @Resource
+ public WebServiceContext context;
+
+ @XmlMimeType("text/plain")
+ public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
+ {
+ try
+ {
+ String name = (String)data.getContent();
+ String type = (String)data.getContentType();
+ log.info("User " + name + " requested namespace with content type ["+ type +"]");
+
+ SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
+ SOAPMessage soapMessage = msgContext.getMessage();
+ SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
+ String nsURI = soapEnvelope.getNamespaceURI();
+
+ log.info(nsURI);
+
+ return new DataHandler(nsURI, "text/plain");
+ }
+ catch (IOException e)
+ {
+ throw new WebServiceException(e);
+ }
+ catch (SOAPException ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.attachment.MimeConstants;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.1 server side handler
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP11ServerHandler extends GenericSOAPHandler
+{
+ private static Logger log = Logger.getLogger(SOAP11ServerHandler.class);
+
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ log.info("handleInbound");
+
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ try
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ String startInfo = contentType.getParameter("start-info");
+ if (startInfo.equals(MimeConstants.TYPE_SOAP11))
+ {
+ return true;
+ }
+ }
+ catch(Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ }
+ return false;
+ }
+
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("handleOutbound");
+
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ soapMessage.saveChanges();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+ return true;
+ }
+ return false;
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.attachment.MimeConstants;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.2 client side handler
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP12ClientHandler extends GenericSOAPHandler
+{
+ private static Logger log = Logger.getLogger(SOAP12ClientHandler.class);
+
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ log.info("handleInbound");
+
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ try
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ String startInfo = contentType.getParameter("start-info");
+ if (startInfo.equals(MimeConstants.TYPE_SOAP12))
+ {
+ return true;
+ }
+ }
+ catch(Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ }
+ return false;
+ }
+
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("handleOutbound");
+
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ soapMessage.saveChanges();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+ return true;
+ }
+ return false;
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.ws.BindingType;
+
+@WebService(name = "SOAP12Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+@SOAPBinding(style = Style.RPC)
+@BindingType(SOAP12HTTP_BINDING)
+
+public interface SOAP12Endpoint
+{
+ @XmlMimeType("text/plain")
+ public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,83 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING;
+
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+import javax.annotation.Resource;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.soap.MTOM;
+
+import org.jboss.logging.Logger;
+
+@WebService(name="SOAP12Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
+ endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP12Endpoint")
+@BindingType(SOAP12HTTP_BINDING)
+@MTOM
+@HandlerChain(file = "jaxws-server-handlers2.xml")
+public class SOAP12EndpointBean implements SOAP12Endpoint
+{
+ private static Logger log = Logger.getLogger(SOAP12EndpointBean.class);
+
+ @Resource
+ public WebServiceContext context;
+
+ @XmlMimeType("text/plain")
+ public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
+ {
+ try
+ {
+ String name = (String)data.getContent();
+ String type = (String)data.getContentType();
+ log.info("User " + name + " requested namespace with content type ["+ type +"]");
+
+ SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
+ SOAPMessage soapMessage = msgContext.getMessage();
+ SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
+ String nsURI = soapEnvelope.getNamespaceURI();
+
+ log.info(nsURI);
+
+ return new DataHandler(nsURI, "text/plain");
+ }
+ catch (IOException e)
+ {
+ throw new WebServiceException(e);
+ }
+ catch (SOAPException ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,102 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.attachment.MimeConstants;
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.2 server side handler
+ *
+ * @author mageshbk(a)jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP12ServerHandler extends GenericSOAPHandler
+{
+ private static Logger log = Logger.getLogger(SOAP12ServerHandler.class);
+
+ public boolean handleInbound(MessageContext msgContext)
+ {
+ log.info("handleInbound");
+
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ try
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ String startInfo = contentType.getParameter("start-info");
+ if (startInfo.equals(MimeConstants.TYPE_SOAP12))
+ {
+ return true;
+ }
+ }
+ catch(Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ }
+ return false;
+ }
+
+ protected boolean handleOutbound(MessageContext msgContext)
+ {
+ log.info("handleOutbound");
+
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ soapMessage.saveChanges();
+
+ MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+ String[] ct = mimeHeaders.getHeader(MimeConstants.CONTENT_TYPE);
+ ContentType contentType;
+ if (ct != null)
+ {
+ contentType = new ContentType(ct[0]);
+ log.info("contentType="+contentType);
+ if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+ return true;
+ }
+ return false;
+ }
+ catch (Exception ex)
+ {
+ throw new WebServiceException(ex);
+ }
+ }
+}
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <handler>
+ <handler-name> SOAP11ServerHandler </handler-name>
+ <handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP11ServerHandler </handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <handler>
+ <handler-name> SOAP12ServerHandler </handler-name>
+ <handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP12ServerHandler </handler-class>
+ </handler>
+ </handler-chain>
+
+</handler-chains>
\ No newline at end of file
Property changes on: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/web.xml 2009-02-20 08:57:31 UTC (rev 9331)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>TestSOAP12Service</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP12EndpointBean</servlet-class>
+ </servlet>
+
+ <servlet>
+ <servlet-name>TestSOAP11Service</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP11EndpointBean</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>TestSOAP12Service</servlet-name>
+ <url-pattern>/soap12/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>TestSOAP11Service</servlet-name>
+ <url-pattern>/soap11/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Property changes on: framework/trunk/testsuite/test/resources/jaxws/jbws2419/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
17 years, 2 months
JBossWS SVN: r9330 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-19 09:05:55 -0500 (Thu, 19 Feb 2009)
New Revision: 9330
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
Log:
[JBWS-2527] updating excludes for AS 4x
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-19 10:22:44 UTC (rev 9329)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-19 14:05:55 UTC (rev 9330)
@@ -93,3 +93,6 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
+
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-19 10:22:44 UTC (rev 9329)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-19 14:05:55 UTC (rev 9330)
@@ -93,3 +93,6 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
+
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-19 10:22:44 UTC (rev 9329)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-19 14:05:55 UTC (rev 9330)
@@ -93,3 +93,6 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
+
+# [JBWS-2527] BeanFactory not initialized or already closed (fixed on AS 5.x series only)
+org/jboss/test/ws/jaxws/jbws2527/**
17 years, 2 months
JBossWS SVN: r9329 - in stack/cxf/trunk/modules: testsuite and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-19 05:22:44 -0500 (Thu, 19 Feb 2009)
New Revision: 9329
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java
stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
Log:
[JBWS-2527] fixing issue
Modified: stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java
===================================================================
--- stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java 2009-02-19 10:22:44 UTC (rev 9329)
@@ -22,6 +22,7 @@
package org.jboss.wsf.stack.cxf.client;
import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
import org.apache.cxf.jaxws.ServiceImpl;
import org.jboss.wsf.spi.WSFException;
import org.jboss.wsf.spi.metadata.j2ee.serviceref.UnifiedServiceRefMetaData;
@@ -120,6 +121,8 @@
// Get the URL to the wsdl
URL wsdlURL = serviceRef.getWsdlLocation();
+ BusFactory.setThreadDefaultBus(null); // cleanup thread locals before constructing Service
+
// Generic javax.xml.ws.Service
if (serviceClass == Service.class)
{
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss422.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -93,6 +93,3 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss423.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -93,6 +93,3 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss424.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -93,6 +93,3 @@
# [JBWS-2491] Enable JAXWS 2.1 WebServiceContext methods
org/jboss/test/ws/jaxws/jbws2257/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss500.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -75,6 +75,3 @@
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -75,6 +75,3 @@
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -75,6 +75,3 @@
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-19 08:02:23 UTC (rev 9328)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2009-02-19 10:22:44 UTC (rev 9329)
@@ -75,6 +75,3 @@
# [JBWS-2480] Soap attachments are dropped on server response
org/jboss/test/ws/jaxws/jbws1283/**
-
-# [JBWS-2527] BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
-org/jboss/test/ws/jaxws/jbws2527/**
17 years, 2 months
JBossWS SVN: r9328 - in framework/trunk/hudson/hudson-home/jobs: CXF-Source-Distro-AS-4.2.2-JDK6 and 6 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-02-19 03:02:23 -0500 (Thu, 19 Feb 2009)
New Revision: 9328
Added:
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.2-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.2-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.3-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.3-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.4-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.4-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.0-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.0-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.1-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.1-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.1.0-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.1.0-JDK6/config.xml
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-6.0.0-JDK6/
framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-6.0.0-JDK6/config.xml
Log:
[JBWS-2516] adding missing jobs
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.2-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.2-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.2-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-4.2.2-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss422
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-4.2.2/workspace/JBossAS-4.2.2/build/output/(a)hudson.jboss422.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss422.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss422
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-4.2.2 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.3-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.3-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.3-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-4.2.3-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss423
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-4.2.3/workspace/JBossAS-4.2.3/build/output/(a)hudson.jboss423.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss423.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss423
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-4.2.3 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.4-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.4-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-4.2.4-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-4.2.4-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss424
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-4.2.4/workspace/JBossAS-4.2.4/build/output/(a)hudson.jboss424.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss424.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss424
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-4.2.4 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.0-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.0-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.0-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-5.0.0-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss500
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-5.0.0/workspace/JBossAS-5.0.0/build/output/(a)hudson.jboss500.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss500.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss500
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-5.0.0 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.1-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.1-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.0.1-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-5.0.1-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss501
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-5.0.1/workspace/JBossAS-5.0.1/build/output/(a)hudson.jboss501.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss501.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss501
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-5.0.1 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.1.0-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.1.0-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-5.1.0-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-5.1.0-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss510
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-5.1.0/workspace/JBossAS-5.1.0/build/output/(a)hudson.jboss510.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss510.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss510
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-5.1.0 with JDK6</description>
+ <actions class="vector"/>
+</project>
Added: framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-6.0.0-JDK6/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-6.0.0-JDK6/config.xml (rev 0)
+++ framework/trunk/hudson/hudson-home/jobs/CXF-Source-Distro-AS-6.0.0-JDK6/config.xml 2009-02-19 08:02:23 UTC (rev 9328)
@@ -0,0 +1,129 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <builders class="vector">
+ <hudson.tasks.Shell>
+ <command>
+#
+# Module settings
+#
+MODULE=CXF-Source-Distro-AS-6.0.0-JDK6
+
+WORKSPACE=`pwd`
+FRAMEWORKDIR=$WORKSPACE/framework
+STACKDIR=$WORKSPACE/stack-cxf
+JBOSS_TARGET=jboss600
+JBOSS_BINDADDR=(a)jboss.bind.address@
+JBOSS_INSTANCE=@hudson.home@/jobs/AS-6.0.0/workspace/JBossAS-6.0.0/build/output/(a)hudson.jboss600.build@
+ENVIRONMENT="-Dmaven.opts=-U -Djboss.bind.address=(a)jboss.bind.address@ -Djbossws.integration.target=$JBOSS_TARGET -Djboss600.home=$JBOSS_INSTANCE"
+
+#
+# Verify JDK1.6 availablility
+#
+if [ "java.home.jdk16" = "@java.home.jdk16@" ]; then
+ echo "Please point java.home.jdk16 (ant.properties) to your JDK1.6 installation"
+ exit 1
+else
+ JAVA_HOME="@java.home.jdk16@"
+fi
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+
+#
+# Build distro
+#
+cd $STACKDIR
+cp profiles.xml.example profiles.xml
+mvn -Ptestsuite clean
+ant $ENVIRONMENT build-src-dist
+
+#
+# Deploy distro
+#
+cd target
+rm -rf jbossws-cxf-src-dist
+unzip jbossws-cxf-src-dist.zip
+cd jbossws-cxf-src-dist
+ant $ENVIRONMENT deploy-jboss600
+
+# remove obsolete logs
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log
+rm -f $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+
+#
+# start jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE start $JBOSS_BINDADDR
+
+# Was it successfully started?
+$FRAMEWORKDIR/hudson/jboss/bin/http-spider.sh $JBOSS_BINDADDR:8080 $WORKSPACE
+if [ -e $WORKSPACE/spider.failed ]; then
+ tail -n 100 $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log
+ $FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
+ exit 1
+fi
+
+#
+# log dependency tree
+#
+mvn -Ptestsuite,$JBOSS_TARGET dependency:tree | tee $WORKSPACE/dependency-tree.txt
+
+#
+# execute tests
+#
+mvn $ENVIRONMENT -Ptestsuite,hudson,$JBOSS_TARGET test 2>&1 | tee $WORKSPACE/tests.log
+cat $WORKSPACE/tests.log | egrep FIXME\|FAILED | sort -u | tee $WORKSPACE/fixme.txt
+cat $STACKDIR/modules/testsuite/test-excludes-$JBOSS_TARGET.txt $WORKSPACE/fixme.txt | egrep "\[\S*]" > $WORKSPACE/errata-$JBOSS_TARGET.txt
+
+#
+# stop jbossas
+#
+$FRAMEWORKDIR/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/boot.log $WORKSPACE/jboss-boot.log
+cp $JBOSS_INSTANCE/server/@jboss.server.instance(a)/log/server.log $WORKSPACE/jboss-server.log
+</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers class="vector">
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>stack-cxf/target/jbossws-cxf-src-dist/modules/testsuite/**/target/surefire-reports/TEST-*.xml</testResults>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients>@hudson.mail.recipients@</recipients>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers class="vector"/>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.framework.url@</remote>
+ <local>framework</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ <hudson.scm.SubversionSCM-ModuleLocation>
+ <remote>@hudson.cxf.url@</remote>
+ <local>stack-cxf</local>
+ </hudson.scm.SubversionSCM-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <url>http://fisheye.jboss.com/browse/JBossWS/</url>
+ <rootModule></rootModule>
+ </browser>
+ </scm>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <enableRemoteTrigger>false</enableRemoteTrigger>
+ <triggers class="vector"/>
+ <logRotator>
+ <daysToKeep>28</daysToKeep>
+ <numToKeep>-1</numToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <description>Build and test jbossws-cxf-(a)version.id@ source distribution against AS-6.0.0 with JDK6</description>
+ <actions class="vector"/>
+</project>
17 years, 2 months