Bug 59619 - Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'
Summary: Failed to read schema document 'classpath:/schema/shibboleth-2.0-services.xsd'
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 7.0.69
Hardware: All All
: P2 blocker (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 16:57 UTC by Colin Hilbert
Modified: 2016-05-26 14:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Colin Hilbert 2016-05-23 16:57:07 UTC
http://marc.info/?t=146175486300004&r=1&w=2

Link to the discussion following this error.

Original email:

Tomcat version 7.0.69
Also happens on 7.0.68 and 7.0.67

I don’t get this error on 7.0.65

I have deployed an idp.war on tomcat
The idp.war has a service.xml file that looks like this at the beginning:


<srv:Services xmlns:srv="urn:mace:shibboleth:2.0:services"
          xmlns:attribute-afp="urn:mace:shibboleth:2.0:afp"
          xmlns:attribute-authority="urn:mace:shibboleth:2.0:attribute:authority"
          xmlns:attribute-resolver="urn:mace:shibboleth:2.0:resolver"
          xmlns:profile="urn:mace:shibboleth:2.0:idp:profile-handler"
          xmlns:relyingParty="urn:mace:shibboleth:2.0:relying-party"
          xmlns:resource="urn:mace:shibboleth:2.0:resource"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="urn:mace:shibboleth:2.0:services classpath:/schema/shibboleth-2.0-services.xsd
                              urn:mace:shibboleth:2.0:afp classpath:/schema/shibboleth-2.0-afp.xsd
                              urn:mace:shibboleth:2.0:attribute:authority classpath:/schema/shibboleth-2.0-attribute-authority.xsd
                              urn:mace:shibboleth:2.0:resolver classpath:/schema/shibboleth-2.0-attribute-resolver.xsd
                              urn:mace:shibboleth:2.0:idp:profile-handler classpath:/schema/shibboleth-2.0-idp-profile-handler.xsd
                              urn:mace:shibboleth:2.0:relying-party classpath:/schema/shibboleth-2.0-relying-party.xsd
                              urn:mace:shibboleth:2.0:resource classpath:/schema/shibboleth-2.0-resource.xsd”>

The stack complains that it cannot find the first schemaLocation listed but if I go to the deployed idp folder in tomcat idp/WEB-INF/lib/ there are jars there, one of which is shibboleth-common-1.2.1.jar

Which has the path /schema/ containing all those listed schemaLocations from the service.xml

I can move all the jars from idp/WE-INF/lib/ to tomcat7.0.69/lib/ and the exception goes away but I haven’t had to do this prior to .67
Comment 1 Mark Thomas 2016-05-26 14:00:12 UTC
Fixed in 7.0.x for 7.0.70 onwards.