Hi Isura,

I tried it with no success. This is my dependency list in the pom. Code
worked without any issues when run standalone. Since I assume this should
be a dependency issue.

        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.identity.sso.saml</artifactId>
            <version>4.2.3</version>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-jcl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>opensaml.wso2</groupId>
                    <artifactId>opensaml2</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.opensaml</groupId>
            <artifactId>opensaml</artifactId>
            <version>2.2.3</version>
            <exclusions>
                <exclusion>
                    <groupId>org.opensaml</groupId>
                    <artifactId>openws</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>jargs</groupId>
                    <artifactId>jargs</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>xalan</groupId>
                    <artifactId>xalan</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>xerces</groupId>
                    <artifactId>xml-apis</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.opensaml</groupId>
            <artifactId>openws</artifactId>
            <version>1.4.2</version>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-api</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>log4j-over-slf4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-jcl</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>jcl-over-slf4j</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>jul-to-slf4j</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>xalan</groupId>
            <artifactId>xalan</artifactId>
            <version>2.7.1</version>
        </dependency>
        <dependency>
            <groupId>xerces</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.4.01</version>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>xerces-api</id>
            <url>http://www.eviware.com/repository/maven2/</url>
        </repository>
    </repositories>

Thanks.

Regards,
Prasad.


On Mon, Jul 7, 2014 at 12:01 PM, Isura Karunaratne <[email protected]> wrote:

> Hi prasad,
>
>       Following blog [1] will help you fix the issue. There is a comment
> regarding the exception above with a way to resolve the issue.
> [1]
> http://sureshatt.blogspot.com/2012/11/how-to-read-saml-20-response-with.html
>
> Regards
>
>
>
> On Mon, Jul 7, 2014 at 9:46 AM, Prasad Tissera <[email protected]> wrote:
>
>> Hi,
>>
>> I go the following exception when calling DefaultBootstrap.bootstrap()
>> method from org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil. Do you have
>> any idea?
>>
>> ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
>> bootstrapping the OpenSAML2 library
>> org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
>> configuration schema
>>         at
>> org.opensaml.xml.XMLConfigurator.<init>(XMLConfigurator.java:98)
>>         at
>> org.opensaml.xml.XMLConfigurator.<init>(XMLConfigurator.java:73)
>>         at
>> org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
>>         at
>> org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
>>         at
>> org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)
>>
>> Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to
>> read schema document 'null', because 1) could not find the document; 2) the
>> document could not be read; 3) the root element of the document is not
>> <xsd:schema>.
>>
>> ERROR {org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil} -  Error in
>> bootstrapping the OpenSAML2 library
>> org.opensaml.xml.ConfigurationException: Unable to read XMLTooling
>> configuration schema
>>         at
>> org.opensaml.xml.XMLConfigurator.<init>(XMLConfigurator.java:98)
>>         at
>> org.opensaml.xml.XMLConfigurator.<init>(XMLConfigurator.java:73)
>>         at
>> org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:182)
>>         at
>> org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:87)
>>         at
>> org.wso2.carbon.identity.sso.saml.util.SAMLSSOUtil.doBootstrap(SAMLSSOUtil.java:439)
>>
>>
>> --
>> Prasad Tissera
>> Software Engineer.
>> Mobile : +94777223444
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Isura Dilhara Karunaratne
> Software Engineer
>
> Mob +94 772 254 810
>
>


-- 
Prasad Tissera
Software Engineer.
Mobile : +94777223444
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to