Hello,
I'm trying to implement the Jpa Ticket Registry using the info found in the CAS
User Manual (https://wiki.jasig.org/display/CASUM/JpaTicketRegistry) and I am
running into some problems.
First I'm a little confused about the dependencies in the pom.xml.
In CAS 3.4.10 "${hibernate.core.version}" equals "3.6.0.Final". The most recent
version of hibernate-commons-annotations appears to be "3.3.0.ga" and the most
recent version of hibernate-annotations appears to be "3.5.6-Final".
It seemed to me that there should be a "3.6.0.Final" version of
hibernate-annotations so I did some searching and came across this
http://lists.jboss.org/pipermail/hibernate-dev/2010-November/005742.html To me
this means that hibernate-core should replace hibernate-annotations and
possibly hibernate-commons-annotations.
Could someone confirm what current dependencies are needed to implement the
JpaTicketRegistry in CAS?
As long as I set the appropriate versions for hibernate-commons-annotations and
hibernate-annotations the project does build successful. Tomcat however fails
to deploy the resulting cas.war.
When deploying I get the following messages from Tomcat.
2011-09-08 13:15:48,815 WARN
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Ignored XML
validation warning> org.xml.sax.SAXParseException; lineNumber: 9; columnNumber:
55; SchemaLocation: schemaLocation value =
'http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/tx' must have even number of URI's.
2011-09-08 13:15:48,823 ERROR [org.springframework.web.context.ContextLoader] -
<Context initialization failed>
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 40
in XML document from ServletContext resource
[/WEB-INF/spring-configuration/ticketRegistry.xml] is invalid; nested exception
is org.xml.sax.SAXParseException; lineNumber: 40; columnNumber: 69;
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
be found for element 'tx:annotation-driven'.
I would appreciate any help I can get on this. After I get the
JpaTicketRegistry working I would like to look at the EhcacheTicketRegistry as
well. I tried to implement Ehcache but ran into some problems. As Jpa seems to
be more officially supported I thought I would start with Jpa.
Thanks,
Jonathan
--
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