Please refer to the documentation at 
[http://jasig.github.io/cas/4.1.x/index.html].

Specifically you will find the Hazelcast ticket registry info at 
[http://jasig.github.io/cas/4.1.x/installation/Hazelcast-Ticket-Registry.html].

The CAS add ons module for the Hazelcast ticket registry should not be used 
with CAS 4.1 since it is not part of the main distribution.

-Jj



On 10/20/15, 15:54, "Jonas Steinberg" <[email protected]> wrote:

>I receive this error when restarting cas-4.1.0 in tomcat7:
>
>15:07:00.314 [pool-2-thread-1] ERROR 
>org.springframework.web.context.ContextLoader - Context initialization failed
>org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 2 
>in XML document from ServletContext resource 
>[/WEB-INF/spring-configuration/ticketRegistry.xml] is invalid; nested 
>exception is org.xml.sax.SAXParseException; systemId: 
>http://hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd; lineNumber: 2; 
>columnNumber: 35; s4s-elt-character: Non-whitespace characters are not allowed 
>in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 
>Moved Permanently'.
>
>
>
>The ticketRegistry.xml it refers to is:
>
><?xml version="1.0" encoding="UTF-8"?>
><beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:hz="http://www.hazelcast.com/schema/spring";
>       xsi:schemaLocation="http://www.springframework.org/schema/beans
>                           
> http://www.springframework.org/schema/beans/spring-beans.xsd
>                           http://www.hazelcast.com/schema/spring
>                           
> http://hazelcast.com/schema/spring/hazelcast-spring-3.1.xsd";>
>
>    <hz:hazelcast id="hazelcast">
>        <hz:config>
>            <hz:properties>
>                <hz:property name="hazelcast.logging.type">slf4j</hz:property>
>                <hz:property 
> name="hazelcast.max.no.heartbeat.seconds">5</hz:property>
>            </hz:properties>
>            <hz:network port="5701" port-auto-increment="true">
>                <hz:join>
>                    <hz:multicast enabled="false"/>
>                    <hz:tcp-ip enabled="true">
>                        <hz:members>${hz.cluster.members}</hz:members>
>                    </hz:tcp-ip>
>                </hz:join>
>            </hz:network>
>            <hz:map name="tickets"
>                            max-idle-seconds="${tgt.timeToKillInSeconds:7200}"
>                            max-size-policy="USED_HEAP_PERCENTAGE"
>                            max-size="85"
>                            eviction-policy="LRU"
>                            eviction-percentage="10"/>
>        </hz:config>
>    </hz:hazelcast>
>
>    <cas:hazelcast-ticket-registry hazelcast-instance="hazelcast"
>                                   
> tgt-entries-ttl-seconds="${tgt.maxTimeToLiveInSeconds:28800}"
>                                   
> st-entries-ttl-seconds="${st.timeToKillInSeconds:10}"/>
>
></beans>
>
>This is all built automatically in maven via the following dependency:
>
>https://github.com/unicon-cas-addons/cas-addon-hazelcast-ticket-registry
>
>As I said the unicon add-on builds the ticketRegistry.xml file via maven, 
>hence I have no idea what the error could be?!  This is not the first time 
>this error has been received:
>
>See:
>
>http://stackoverflow.com/questions/31806034/spring-tomcat-non-whitespace-characters-are-not-allowed-in-schema-elements-s
>
>-- 
>You are currently subscribed to [email protected] as: [email protected]
>To unsubscribe, change settings or access archives, see 
>http://www.ja-sig.org/wiki/display/JSG/cas-user


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to