You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by co...@apache.org on 2014/03/28 15:21:13 UTC

svn commit: r1582757 - /webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java

Author: coheigea
Date: Fri Mar 28 14:21:13 2014
New Revision: 1582757

URL: http://svn.apache.org/r1582757
Log:
Another OSGi fix

Modified:
    webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java

Modified: webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java?rev=1582757&r1=1582756&r2=1582757&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java (original)
+++ webservices/wss4j/trunk/ws-security-stax/src/main/java/org/apache/wss4j/stax/WSSec.java Fri Mar 28 14:21:13 2014
@@ -42,6 +42,7 @@ import org.apache.xml.security.exception
 import org.apache.xml.security.stax.config.Init;
 import org.apache.xml.security.stax.ext.XMLSecurityConstants;
 import org.apache.xml.security.stax.impl.util.ConcreteLSInput;
+import org.apache.xml.security.utils.ClassLoaderUtils;
 import org.w3c.dom.ls.LSInput;
 import org.w3c.dom.ls.LSResourceResolver;
 import org.xml.sax.SAXException;
@@ -58,7 +59,7 @@ public class WSSec {
     static {
         WSProviderConfig.init();
         try {
-            Init.init(Loader.getResource("wss/wss-config.xml").toURI());
+            Init.init(ClassLoaderUtils.getResource("wss/wss-config.xml", WSSec.class).toURI());
             
             WSSConstants.setJaxbContext(
                     JAXBContext.newInstance(