ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1066051 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
Date Tue, 01 Feb 2011 14:24:46 GMT
Author: veithen
Date: Tue Feb  1 14:24:46 2011
New Revision: 1066051

URL: http://svn.apache.org/viewvc?rev=1066051&view=rev
Log:
AXIOM-352: Added detection logic for Weblogic's StAX implementation.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java?rev=1066051&r1=1066050&r2=1066051&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/util/stax/dialect/StAXDialectDetector.java
Tue Feb  1 14:24:46 2011
@@ -229,6 +229,14 @@ public class StAXDialectDetector {
             return WoodstoxDialect.INSTANCE;
         } else if (title != null && title.indexOf("SJSXP") != -1) {
             return new SJSXPDialect(false);
+        } else if ("com.bea.core.weblogic.stax".equals(symbolicName)) {
+            // Weblogic's StAX implementation doesn't support CDATA section reporting and
there are
+            // a couple of additional test cases (with respect to BEA's reference implementation)
+            // that fail.
+            log.warn("Weblogic's StAX implementation is unsupported and some Axiom features
will not work " +
+            		"as expected! Please use Woodstox instead.");
+            // This is the best match we can return in this case.
+            return BEADialect.INSTANCE;
         } else if ("BEA".equals(vendor)) {
             return BEADialect.INSTANCE;
         } else if ("com.ibm.ws.prereq.banshee".equals(symbolicName)) {



Mime
View raw message