Return-Path: Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: (qmail 58998 invoked from network); 27 Jul 2010 20:48:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jul 2010 20:48:50 -0000 Received: (qmail 37202 invoked by uid 500); 27 Jul 2010 20:48:50 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 37144 invoked by uid 500); 27 Jul 2010 20:48:50 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 37126 invoked by uid 99); 27 Jul 2010 20:48:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 20:48:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 20:48:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A0A442388A3B; Tue, 27 Jul 2010 20:47:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r979862 [4/19] - in /cxf/sandbox/oauth_1.0a: ./ api/ api/src/main/java/org/apache/cxf/ api/src/main/java/org/apache/cxf/endpoint/ api/src/main/java/org/apache/cxf/phase/ api/src/main/java/org/apache/cxf/ws/addressing/ api/src/main/java/org/... Date: Tue, 27 Jul 2010 20:47:12 -0000 To: commits@cxf.apache.org From: lmoren@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100727204723.A0A442388A3B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_policy/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_policy/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_policy/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_policy/pom.xml Tue Jul 27 20:46:55 2010 @@ -1,226 +1,202 @@ - - - 4.0.0 - org.apache.cxf.samples - wssec - 1.0 - WS-Security Demo - - [2,) - - - src - - - maven-compiler-plugin - - 1.5 - 1.5 - - - - org.apache.cxf - cxf-codegen-plugin - LATEST - - - generate-sources - generate-sources - - - - ${basedir}/wsdl/hello_world.wsdl - - - - - wsdl2java - - - - - - maven-antrun-plugin - - - copyxmlfiles - generate-sources - - run - - - - - - - - - - - - - - - - - - server - - test - - - org.codehaus.mojo - exec-maven-plugin - - - test - - exec - - - java - - -classpath - - demo.wssec.server.Server - - - - - - - - - - client - - test - - - org.codehaus.mojo - exec-maven-plugin - - - test - - java - - - demo.wssec.client.Client - - ${basedir}/wsdl/hello_world.wsdl - secure - - - - - - - - - - client.unauthenticated - - test - - - org.codehaus.mojo - exec-maven-plugin - - - test - - java - - - demo.wssec.client.Client - - ${basedir}/wsdl/hello_world_no_policy.wsdl - secure - - - - - - - - - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - - - - - org.apache.cxf - cxf-rt-frontend-jaxws - ${cxf.version} - - - org.apache.cxf - cxf-rt-transports-http - ${cxf.version} - - - org.apache.cxf - cxf-rt-transports-http-jetty - ${cxf.version} - - - - - org.apache.cxf - cxf-rt-ws-security - ${cxf.version} - - - org.apache.cxf - cxf-rt-ws-policy - ${cxf.version} - - - - - + + + 4.0.0 + org.apache.cxf.samples + wssec_ut_policy + WS-Security Demo + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + + + + ${project.version} + + + src + + + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.apache.cxf + cxf-codegen-plugin + ${project.version} + + + generate-sources + generate-sources + + + + ${basedir}/wsdl/hello_world.wsdl + + + + + wsdl2java + + + + + + maven-antrun-plugin + + + copyxmlfiles + generate-sources + + run + + + + + + + + + + + + + + + + + + server + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + exec + + + java + + -classpath + + demo.wssec.server.Server + + + + + + + + + + client + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + java + + + demo.wssec.client.Client + + ${basedir}/wsdl/hello_world.wsdl + secure + + + + + + + + + + client.unauthenticated + + test + + + org.codehaus.mojo + exec-maven-plugin + + + test + + java + + + demo.wssec.client.Client + + ${basedir}/wsdl/hello_world_no_policy.wsdl + secure + + + + + + + + + + + + org.apache.cxf + cxf-rt-frontend-jaxws + ${cxf.version} + + + org.apache.cxf + cxf-rt-transports-http + ${cxf.version} + + + org.apache.cxf + cxf-rt-transports-http-jetty + ${cxf.version} + + + + + org.apache.cxf + cxf-rt-ws-security + ${cxf.version} + + + org.apache.cxf + cxf-rt-ws-policy + ${cxf.version} + + + + + Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_sign/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_sign/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_sign/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/ws_security/ut_sign/pom.xml Tue Jul 27 20:46:55 2010 @@ -19,11 +19,16 @@ 4.0.0 org.apache.cxf.samples - wssec - 1.0 + wssec_ut_sign WS-Security Demo + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + + - [2,) + ${project.version} @@ -48,7 +53,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -115,35 +120,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,11 +20,16 @@ 4.0.0 org.apache.cxf.samples wsdl_first - 1.0 war WSDL first demo using Document/Literal Style + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + - [2,) + ${project.version} + ${basedir}/../.. @@ -40,7 +45,7 @@ maven-war-plugin - ../../etc/web.xml + ${cxf.release.base}/etc/web.xml wsdl @@ -72,7 +77,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -145,35 +150,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - @@ -197,6 +173,7 @@ junit junit 4.7 + compile Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_dynamic_client/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,14 @@ 4.0.0 org.apache.cxf.samples wsdl_first_dynamic_client - 1.0 CXF Dynamic Client Sample + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + - [2,) + ${project.version} install @@ -39,7 +43,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -109,35 +113,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_https/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_https/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_https/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_https/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,15 @@ 4.0.0 org.apache.cxf.samples wsdl_first_https - 1.0 WSDL first demo using HTTPS + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + + - [2,) + ${project.version} src @@ -38,7 +43,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -217,36 +222,6 @@ - - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_pure_xml/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_pure_xml/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_pure_xml/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_pure_xml/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,14 @@ 4.0.0 org.apache.cxf.samples wsdl_first_pure_xml - 1.0 WSDL first demo using BARE Style in XML Binding (pure XML over HTTP) + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + - [2,) + ${project.version} src @@ -38,7 +42,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -111,35 +115,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_rpclit/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_rpclit/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_rpclit/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_rpclit/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,11 +20,18 @@ 4.0.0 org.apache.cxf.samples wsdl_first_rpclit - 1.0 WSDL first demo using RPC-Literal Style + + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + + - [2,) + ${project.version} + src @@ -38,7 +45,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -111,35 +118,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_soap12/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_soap12/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_soap12/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_soap12/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,14 @@ 4.0.0 org.apache.cxf.samples wsdl_first_soap12 - 1.0 WSDL first demo using SOAP12 in Document/Literal Style + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + - [2,) + ${project.version} src @@ -38,7 +42,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -137,35 +141,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xml_wrapped/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xml_wrapped/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xml_wrapped/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xml_wrapped/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,15 @@ 4.0.0 org.apache.cxf.samples wsdl_first_xml_wrapped - 1.0 CXF sample using WRAPPED Style in XML Binding (pure XML over HTTP) + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + + - [2,) + ${project.version} src @@ -38,7 +43,7 @@ org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -137,35 +142,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml Tue Jul 27 20:46:55 2010 @@ -20,10 +20,14 @@ 4.0.0 org.apache.cxf.samples wsdl_first_xmlbeans - 1.0 WSDL first demo using Document/Literal Style and XMLBeans DataBinding + + org.apache.cxf.samples + cxf-samples + 2.3.0-SNAPSHOT + - [2,) + ${project.version} src @@ -46,16 +50,9 @@ - maven-compiler-plugin - - 1.5 - 1.5 - - - org.apache.cxf cxf-codegen-plugin - LATEST + ${project.version} generate-sources @@ -130,35 +127,6 @@ - - snapshots - - - apache-snapshots - Apache SNAPSHOT Repository - https://repository.apache.org/content/groups/snapshots-group/ - - true - - - false - - - - - - apache-snapshots - Apache Maven Plugin Snapshots - https://repository.apache.org/content/groups/snapshots-group/ - - false - - - true - - - - Modified: cxf/sandbox/oauth_1.0a/integration/jbi/src/main/java/org/apache/cxf/jbi/se/CXFServiceUnit.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/integration/jbi/src/main/java/org/apache/cxf/jbi/se/CXFServiceUnit.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/integration/jbi/src/main/java/org/apache/cxf/jbi/se/CXFServiceUnit.java (original) +++ cxf/sandbox/oauth_1.0a/integration/jbi/src/main/java/org/apache/cxf/jbi/se/CXFServiceUnit.java Tue Jul 27 20:46:55 2010 @@ -33,13 +33,13 @@ import javax.jbi.messaging.MessagingExce import javax.jbi.servicedesc.ServiceEndpoint; import javax.jws.WebService; import javax.xml.namespace.QName; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; +import org.xml.sax.InputSource; + import org.apache.cxf.Bus; import org.apache.cxf.BusException; import org.apache.cxf.common.i18n.Message; @@ -48,6 +48,7 @@ import org.apache.cxf.helpers.XMLUtils; import org.apache.cxf.jaxws.EndpointImpl; import org.apache.cxf.jaxws.EndpointUtils; import org.apache.cxf.jbi.ServiceConsumer; +import org.apache.cxf.staxutils.StaxUtils; import org.apache.cxf.transport.ConduitInitiatorManager; import org.apache.cxf.transport.jbi.JBITransportFactory; @@ -228,12 +229,10 @@ public class CXFServiceUnit { Class clz = classes.iterator().next(); ws = clz.getAnnotation(WebService.class); } - if (ws != null) { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - DocumentBuilder builder = factory.newDocumentBuilder(); - doc = builder.parse(ws.wsdlLocation()); - + if (ws != null) { + InputSource in = new InputSource(ws.wsdlLocation()); + StaxUtils.createXMLStreamReader(in); + doc = StaxUtils.read(in); } else { LOG.severe(new Message("SU.COULDNOT.GET.ANNOTATION", LOG).toString()); } Modified: cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/WorkManagerThreadPool.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/WorkManagerThreadPool.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/WorkManagerThreadPool.java (original) +++ cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/cxf/WorkManagerThreadPool.java Tue Jul 27 20:46:55 2010 @@ -24,7 +24,7 @@ import javax.resource.spi.work.WorkEvent import javax.resource.spi.work.WorkException; import javax.resource.spi.work.WorkManager; -import org.mortbay.thread.ThreadPool; +import org.eclipse.jetty.util.thread.ThreadPool; /** * The adapter for using Application Server's thread pool. Modified: cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java (original) +++ cxf/sandbox/oauth_1.0a/integration/jca/src/main/java/org/apache/cxf/jca/servant/EJBEndpoint.java Tue Jul 27 20:46:55 2010 @@ -41,8 +41,8 @@ import org.apache.cxf.jaxws.JaxWsServerF import org.apache.cxf.jca.cxf.WorkManagerThreadPool; import org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine; import org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory; -import org.mortbay.jetty.AbstractConnector; -import org.mortbay.jetty.nio.SelectChannelConnector; +import org.eclipse.jetty.server.AbstractConnector; +import org.eclipse.jetty.server.nio.SelectChannelConnector; public class EJBEndpoint { Propchange: cxf/sandbox/oauth_1.0a/maven-plugins/archetypes/cxf-jaxws-javafirst/ ('svn:mergeinfo' removed) Modified: cxf/sandbox/oauth_1.0a/maven-plugins/codegen-plugin/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/maven-plugins/codegen-plugin/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/maven-plugins/codegen-plugin/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/maven-plugins/codegen-plugin/pom.xml Tue Jul 27 20:46:55 2010 @@ -115,11 +115,11 @@ - ant + org.apache.ant ant - ant + org.apache.ant ant-nodeps Modified: cxf/sandbox/oauth_1.0a/parent/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/parent/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/parent/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/parent/pom.xml Tue Jul 27 20:46:55 2010 @@ -36,7 +36,7 @@ once brief false - + -ea -ea -Xlint:unchecked,deprecation,fallthrough,finally @@ -48,25 +48,31 @@ 1.3.2 - 1.0 - 5.3.1 + 1.1 + 5.3.2 10.2.2.0 2.1 2.1.13 2.1.13 + 2.2.1 + 2.2.1.1 + 2.2.1.1 1.0 - 6.1.21 + 7.1.5.v20100705 2009.1 1.7R1 1.3 + org.apache.geronimo.specs + geronimo-servlet_3.0_spec + 1.0 2.5.6 spring-test org.codehaus.woodstox woodstox-core-asl - 4.0.7 + 4.0.8 1.6.2 2.4.0 - 1.4.5 + 1.4.6 VALIDATION_AUTO @@ -75,7 +81,7 @@ cxf-pmd-ruleset.xml - + @@ -252,6 +258,7 @@ ${surefire.fork.vmargs} ${surefire.parallel.mode} + true ${cxf.validateServices} ${java.awt.headless} ${basedir}/target/test-classes/logging.properties @@ -326,6 +333,12 @@ + javax.ws.rs + jsr311-api + 1.1.1 + + + cglib cglib-nodep 2.1_3 @@ -415,14 +428,14 @@ 4aug2000r7-dev - ant + org.apache.ant ant - 1.6.5 + 1.8.1 - ant + org.apache.ant ant-nodeps - 1.6.5 + 1.8.1 com.sun.xml.parsers @@ -432,7 +445,7 @@ org.apache.servicemix.specs org.apache.servicemix.specs.jbi-api-1.0 - 1.3.0 + 1.5.0 provided @@ -510,29 +523,35 @@ org.slf4j slf4j-jdk14 - 1.5.8 + 1.6.1 org.slf4j slf4j-api - 1.5.8 + 1.6.1 - org.mortbay.jetty - jetty + org.eclipse.jetty + jetty-server ${jetty.version} - org.mortbay.jetty - servlet-api-2.5 - - - org.mortbay.jetty + javax.servlet servlet-api + org.eclipse.jetty + jetty-webapp + ${jetty.version} + + + org.eclipse.jetty + jetty-servlet + ${jetty.version} + + xalan xalan 2.7.1 @@ -798,7 +817,7 @@ commons-codec commons-codec - 1.3 + 1.4 commons-logging @@ -869,19 +888,19 @@ 1.1.1 - org.apache.geronimo.specs - geronimo-servlet_2.5_spec - 1.2 + ${servlet-api.group} + ${servlet-api.artifact} + ${servlet-api.version} org.apache.geronimo.specs geronimo-javamail_1.4_spec - 1.6 + 1.7.1 org.apache.geronimo.specs geronimo-activation_1.1_spec - 1.0.2 + 1.1 org.apache.geronimo.specs @@ -906,11 +925,11 @@ org.apache.geronimo.specs geronimo-ws-metadata_2.0_spec - 1.1.2 + 1.1.3 org.apache.geronimo.specs - geronimo-jaxws_2.1_spec + geronimo-jaxws_2.2_spec 1.0 @@ -948,7 +967,7 @@ commons-lang commons-lang - 2.4 + 2.5 org.bouncycastle @@ -1032,7 +1051,7 @@ org.apache.ws.commons.axiom axiom-api - 1.2.7 + 1.2.9 javax.mail @@ -1075,7 +1094,7 @@ org.apache.ws.commons.axiom axiom-impl - 1.2.7 + 1.2.9 javax.mail @@ -1142,7 +1161,7 @@ org.codehaus.woodstox woodstox-core-asl - 4.0.7 + 4.0.8 net.java.dev.msv @@ -1189,6 +1208,18 @@ + jdk15 + + 1.5 + + + ${jaxb22.version} + ${jaxb22.impl.version} + ${jaxb22.impl.version} + 1.5 + + + validateServices true @@ -1319,6 +1350,7 @@ org.apache.maven.plugins maven-eclipse-plugin + true setup.eclipse.project Modified: cxf/sandbox/oauth_1.0a/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/pom.xml Tue Jul 27 20:46:55 2010 @@ -161,6 +161,7 @@ rt integration maven-plugins + systests @@ -431,6 +432,11 @@ org.codehaus.mojo + properties-maven-plugin + 1.0-alpha-2 + + + org.codehaus.mojo build-helper-maven-plugin 1.5 @@ -488,6 +494,11 @@ org.apache.maven.plugins + maven-source-plugin + 2.1.2 + + + org.apache.maven.plugins maven-compiler-plugin 2.3.1 @@ -502,6 +513,29 @@ org.apache.maven.plugins maven-antrun-plugin 1.4 + + + ant-contrib + ant-contrib + 1.0b3 + + + ant + ant + + + + + org.apache.ant + ant-trax + 1.8.0 + + + org.apache.ant + ant-nodeps + 1.8.1 + + org.apache.maven.plugins Modified: cxf/sandbox/oauth_1.0a/rt/bindings/coloc/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/coloc/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/coloc/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/coloc/pom.xml Tue Jul 27 20:46:55 2010 @@ -79,7 +79,7 @@ org.apache.geronimo.specs - geronimo-jaxws_2.1_spec + geronimo-jaxws_2.2_spec Modified: cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DatabindingOutSetupInterceptor.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DatabindingOutSetupInterceptor.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DatabindingOutSetupInterceptor.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DatabindingOutSetupInterceptor.java Tue Jul 27 20:46:55 2010 @@ -33,6 +33,7 @@ import org.apache.cxf.helpers.DOMUtils; import org.apache.cxf.helpers.MapNamespaceContext; import org.apache.cxf.interceptor.Fault; import org.apache.cxf.interceptor.InterceptorChain; +import org.apache.cxf.interceptor.MessageSenderInterceptor; import org.apache.cxf.interceptor.StaxOutInterceptor; import org.apache.cxf.interceptor.WrappedOutInterceptor; import org.apache.cxf.message.Message; @@ -65,7 +66,6 @@ public class DatabindingOutSetupIntercep nsMap.addNamespace(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD); writer.setNamespaceContext(nsMap); } catch (XMLStreamException e) { - e.printStackTrace(); // ignore } message.setContent(XMLStreamWriter.class, writer); @@ -74,10 +74,9 @@ public class DatabindingOutSetupIntercep wrappedOut.addAfter(getId()); chain.add(wrappedOut); - XMLMessageOutInterceptor xmlOut = new XMLMessageOutInterceptor(Phase.PRE_LOGICAL); + final XMLMessageOutInterceptor xmlOut = new XMLMessageOutInterceptor(Phase.PRE_LOGICAL); xmlOut.addAfter(wrappedOut.getId()); chain.add(xmlOut); - Endpoint ep = message.getExchange().get(Endpoint.class); URIMapper mapper = (URIMapper) ep.getService().get(URIMapper.class.getName()); @@ -88,9 +87,18 @@ public class DatabindingOutSetupIntercep boolean putOrPost = verb.equals(HttpConstants.POST) || verb.equals(HttpConstants.PUT); if (putOrPost) { - chain.doIntercept(message); chain.add(new URIParameterOutInterceptor()); chain.add(new DocumentWriterInterceptor()); + chain.add(new AbstractPhaseInterceptor("remove-writer", + Phase.PREPARE_SEND) { + { + addAfter(xmlOut.getId()); + addBefore(MessageSenderInterceptor.class.getName()); + } + public void handleMessage(Message message) throws Fault { + message.removeContent(XMLStreamWriter.class); + } + }); chain.add(STAX_OUT); } else { chain.add(new URIParameterOutInterceptor()); Modified: cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DocumentWriterInterceptor.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DocumentWriterInterceptor.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DocumentWriterInterceptor.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/interceptor/DocumentWriterInterceptor.java Tue Jul 27 20:46:55 2010 @@ -22,6 +22,7 @@ import javax.xml.stream.XMLStreamExcepti import javax.xml.stream.XMLStreamWriter; import org.w3c.dom.Document; +import org.w3c.dom.Node; import org.apache.cxf.interceptor.Fault; import org.apache.cxf.message.Message; @@ -36,7 +37,8 @@ public class DocumentWriterInterceptor e } public void handleMessage(Message message) throws Fault { - Document doc = message.getContent(Document.class); + Node n = message.getContent(Node.class); + Document doc = (Document)n; XMLStreamWriter writer = message.getContent(XMLStreamWriter.class); try { Modified: cxf/sandbox/oauth_1.0a/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/http/src/test/java/org/apache/cxf/binding/http/bare/BareServiceTest.java Tue Jul 27 20:46:55 2010 @@ -187,7 +187,7 @@ public class BareServiceTest extends Abs HttpURLConnection c = (HttpURLConnection)url.openConnection(); c.setRequestMethod("GET"); - assertEquals("text/xml; charset=utf-8", c.getContentType()); + assertEquals("text/xml;charset=utf-8", c.getContentType().toLowerCase()); Document doc = DOMUtils.readXml(c.getErrorStream()); Message msg = new Message("SIMPLE_TYPE", IriDecoderHelper.BUNDLE); @@ -216,7 +216,7 @@ public class BareServiceTest extends Abs HttpURLConnection c = (HttpURLConnection)url.openConnection(); c.setRequestMethod("GET"); - assertEquals("text/xml; charset=utf-8", c.getContentType()); + assertEquals("text/xml;charset=utf-8", c.getContentType().toLowerCase()); Document doc = DOMUtils.readXml(c.getInputStream()); addNamespace("b", "http://bare.http.binding.cxf.apache.org/"); Modified: cxf/sandbox/oauth_1.0a/rt/bindings/jbi/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/jbi/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/jbi/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/jbi/pom.xml Tue Jul 27 20:46:55 2010 @@ -149,13 +149,15 @@ - * + javax.xml.stream*;version="[0.0,2)", + * org.apache.cxf.*;version=${project.version};-split-package:=merge-first, META-INF.cxf.binding.jbi <_failok>true + <_versionpolicy>[$(version;==;$(@)),$(version;+;$(@))) Modified: cxf/sandbox/oauth_1.0a/rt/bindings/soap/pom.xml URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/soap/pom.xml?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/soap/pom.xml (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/soap/pom.xml Tue Jul 27 20:46:55 2010 @@ -101,7 +101,7 @@ org.apache.mina mina-core 2.0.0-M6 - compile + provided Modified: cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/CheckFaultInterceptor.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/CheckFaultInterceptor.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/CheckFaultInterceptor.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/CheckFaultInterceptor.java Tue Jul 27 20:46:55 2010 @@ -62,7 +62,7 @@ public class CheckFaultInterceptor exten throw new SoapFault(new Message("XML_STREAM_EXC", LOG), e, message.getVersion().getSender()); } - if (message.getVersion().getFault().equals(xmlReader.getName())) { + if (message.getVersion().getFault().equals(xmlReader.getName()) && isRequestor(message)) { Endpoint ep = message.getExchange().get(Endpoint.class); message.getInterceptorChain().abort(); if (ep.getInFaultObserver() != null) { Modified: cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java Tue Jul 27 20:46:55 2010 @@ -23,8 +23,6 @@ import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; import javax.xml.stream.XMLStreamWriter; import org.w3c.dom.Document; @@ -35,6 +33,7 @@ import org.apache.cxf.binding.soap.Soap1 import org.apache.cxf.binding.soap.SoapFault; import org.apache.cxf.binding.soap.SoapMessage; import org.apache.cxf.common.logging.LogUtils; +import org.apache.cxf.helpers.XMLUtils; import org.apache.cxf.interceptor.Fault; import org.apache.cxf.phase.Phase; import org.apache.cxf.staxutils.StaxUtils; @@ -101,26 +100,20 @@ public class Soap11FaultOutInterceptor e sb.append(ste.getClassName() + "!" + ste.getMethodName() + "!" + ste.getFileName() + "!" + ste.getLineNumber() + "\n"); } - try { - Element detail = fault.getDetail(); - if (detail == null) { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - Document doc = factory.newDocumentBuilder().newDocument(); - Element stackTrace = doc.createElementNS(Soap11.SOAP_NAMESPACE, Fault.STACKTRACE); - stackTrace.setTextContent(sb.toString()); - detail = doc.createElementNS(Soap11.SOAP_NAMESPACE, "detail"); - fault.setDetail(detail); - detail.appendChild(stackTrace); - } else { - Element stackTrace = detail.getOwnerDocument().createElementNS( - Soap11.SOAP_NAMESPACE, Fault.STACKTRACE); - stackTrace.setTextContent(sb.toString()); - detail.appendChild(stackTrace); - } - } catch (ParserConfigurationException pe) { - // move on... - } + Element detail = fault.getDetail(); + if (detail == null) { + Document doc = XMLUtils.newDocument(); + Element stackTrace = doc.createElementNS(Soap11.SOAP_NAMESPACE, Fault.STACKTRACE); + stackTrace.setTextContent(sb.toString()); + detail = doc.createElementNS(Soap11.SOAP_NAMESPACE, "detail"); + fault.setDetail(detail); + detail.appendChild(stackTrace); + } else { + Element stackTrace = detail.getOwnerDocument().createElementNS( + Soap11.SOAP_NAMESPACE, Fault.STACKTRACE); + stackTrace.setTextContent(sb.toString()); + detail.appendChild(stackTrace); + } } if (fault.hasDetails()) { Modified: cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapOutInterceptor.java Tue Jul 27 20:46:55 2010 @@ -223,6 +223,9 @@ public class SoapOutInterceptor extends continue; } Object arg = objs.get(part); + if (arg == null) { + continue; + } objs.remove(part); if (!(startedHeader || preexistingHeaders)) { try { @@ -255,12 +258,11 @@ public class SoapOutInterceptor extends protected DataWriter getDataWriter(Message message) { Service service = ServiceModelUtil.getService(message.getExchange()); DataWriter dataWriter = service.getDataBinding().createWriter(XMLStreamWriter.class); - dataWriter.setAttachments(message.getAttachments()); - if (dataWriter == null) { throw new Fault(new org.apache.cxf.common.i18n.Message("NO_DATAWRITER", BUNDLE, service .getName())); } + dataWriter.setAttachments(message.getAttachments()); return dataWriter; } Modified: cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/jms/interceptor/SoapFaultFactory.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/jms/interceptor/SoapFaultFactory.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/jms/interceptor/SoapFaultFactory.java (original) +++ cxf/sandbox/oauth_1.0a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/jms/interceptor/SoapFaultFactory.java Tue Jul 27 20:46:55 2010 @@ -23,7 +23,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.xml.namespace.QName; -import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -34,6 +33,7 @@ import org.apache.cxf.binding.soap.SoapB import org.apache.cxf.binding.soap.SoapFault; import org.apache.cxf.binding.soap.SoapVersion; import org.apache.cxf.common.logging.LogUtils; +import org.apache.cxf.helpers.XMLUtils; import org.apache.cxf.interceptor.Fault; /** @@ -67,9 +67,7 @@ public class SoapFaultFactory { QName subCode = jmsFault.getSubCode(); fault.setSubCode(subCode); try { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - Document doc = factory.newDocumentBuilder().newDocument(); + Document doc = XMLUtils.newDocument(); Element detail = doc.createElementNS(Soap11.SOAP_NAMESPACE, "detail"); Element detailChild = doc.createElementNS(subCode.getNamespaceURI(), subCode.getLocalPart()); detailChild.setTextContent(fault.getReason()); @@ -91,24 +89,20 @@ public class SoapFaultFactory { if (null == detail) { return fault; } - - try { - setDetail(fault, detail); - } catch (Exception ex) { - LogUtils.log(LOG, Level.SEVERE, "MARSHAL_FAULT_DETAIL_EXC", ex); - ex.printStackTrace(); - } + setDetail(fault, detail); return fault; } - void setDetail(SoapFault fault, Object detail) throws Exception { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - Document doc = factory.newDocumentBuilder().newDocument(); - Element elem = null; - - elem = (Element)doc.getFirstChild(); - fault.setDetail(elem); + void setDetail(SoapFault fault, Object detail) { + Element el = null; + if (detail instanceof Element) { + el = (Element)detail; + } else if (detail instanceof Document) { + el = ((Document)detail).getDocumentElement(); + } + if (el != null) { + fault.setDetail(el); + } } public String toString(Fault f) { Modified: cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java (original) +++ cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java Tue Jul 27 20:46:55 2010 @@ -129,7 +129,7 @@ public class AttachmentSerializer { StringBuilder mimeBodyCt = new StringBuilder(); String bodyType = getHeaderValue("Content-Type", null); if (bodyType == null) { - mimeBodyCt.append("application/xop+xml; charset=") + mimeBodyCt.append((xop ? "application/xop+xml" : "text/xml") + "; charset=") .append(encoding) .append("; type=\"") .append(bodyCt) Modified: cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/DelegatingInputStream.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/DelegatingInputStream.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/DelegatingInputStream.java (original) +++ cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/attachment/DelegatingInputStream.java Tue Jul 27 20:46:55 2010 @@ -23,7 +23,7 @@ package org.apache.cxf.attachment; import java.io.IOException; import java.io.InputStream; -final class DelegatingInputStream extends InputStream { +public class DelegatingInputStream extends InputStream { private InputStream is; private AttachmentDeserializer deserializer; private boolean isClosed; Modified: cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionFragmentParser.java URL: http://svn.apache.org/viewvc/cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionFragmentParser.java?rev=979862&r1=979861&r2=979862&view=diff ============================================================================== --- cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionFragmentParser.java (original) +++ cxf/sandbox/oauth_1.0a/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionFragmentParser.java Tue Jul 27 20:46:55 2010 @@ -19,20 +19,17 @@ package org.apache.cxf.bus.extension; -import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; +import javax.xml.stream.XMLStreamException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; -import org.xml.sax.SAXException; +import org.apache.cxf.staxutils.StaxUtils; public class ExtensionFragmentParser { @@ -45,15 +42,8 @@ public class ExtensionFragmentParser { List getExtensions(InputStream is) { Document document = null; try { - DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - DocumentBuilder parser = factory.newDocumentBuilder(); - document = parser.parse(is); - } catch (ParserConfigurationException ex) { - throw new ExtensionException(ex); - } catch (SAXException ex) { - throw new ExtensionException(ex); - } catch (IOException ex) { + document = StaxUtils.read(is); + } catch (XMLStreamException ex) { throw new ExtensionException(ex); }