You need the TX thing or it won't work. You'll have to add it to here also: xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
It would be something like: http://www.springframework.org/schema/tx<http://www.springframework.org/schema/beans> http://www.springframework.org/schema/tx/spring-tx-3.0.xsd<http://www.springframework.org/schema/beans/spring-beans-3.0.xsd> Don't quote me on the exactness of that though. So it ends up being something like: xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd http://www.springframework.org/schema/tx<http://www.springframework.org/schema/beans> http://www.springframework.org/schema/tx/spring-tx-3.0.xsd<http://www.springframework.org/schema/beans/spring-beans-3.0.xsd> " On Tue, Nov 23, 2010 at 10:11 AM, Bryan Wooten <[email protected]>wrote: > No <tx:annotation-driven transaction-manager="transactionManager"/> > > > > This has confused me greatly. > > > > If I have > > > > <bean id="transactionManager" > class="org.springframework.orm.jpa.JpaTransactionManager"> > > <property name="entityManagerFactory" ref="entityManagerFactory"/> > > </bean> > > > > <tx:annotation-driven transaction-manager="transactionManager"/> > > > > in my deployerConfigContext.xml cas.war won't deploy, I get this error: > > > > 2010-11-23 08:08:37,191 ERROR > [org.springframework.web.context.ContextLoader] - <Context initialization > failed> > > org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 295 in XML document from ServletContext resource > [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is > org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard > is strict, but no declaration can be found for element > 'tx:annotation-driven'. > > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396) > > > > I have this in my deployer config: > > > > <beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:tx="http://www.springframework.org/schema/tx" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:p="http://www.springframework.org/schema/p" > > xmlns:sec="http://www.springframework.org/schema/security" > > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-3.0.xsd > > http://www.springframework.org/schema/security > http://www.springframework.org/schema/security/spring-security-3.0.xsd"> > > > > *From:* Scott Battaglia [mailto:[email protected]] > *Sent:* Tuesday, November 23, 2010 7:16 AM > > *To:* [email protected] > *Subject:* Re: [cas-user] Service Manager Debug Session > > > > You've got older versions of the CAS jars in your lib. But you said you're > using 3.4.3.1. In theory that shouldn't be a problem, but I'm curious as to > the discrepancy. > > Have you previously posted your deployConfigContext.xml? (I can't recall). > Did you add the > > <tx:annotation-driven transaction-manager="transactionManager"/> > > > stuff? > > > > On Tue, Nov 23, 2010 at 9:04 AM, Bryan Wooten <[email protected]> > wrote: > > Here is the list of all the files from my war overlay file in WEB-INF/lib > dir (the original source was downloaded from the 3.4.3.1 zip file) > > > > I am testing with Tomcat6, Oracle10g on Solaris. > > > > activation-1.1.jar junit-3.8.1.jar > > antlr-2.7.6.jar log4j-1.2.15.jar > > aopalliance-1.0.jar ognl-2.7.3.jar > > asm-3.1.jar opensaml-1.1b.jar > > aspectjrt-1.6.7.jar perf4j-0.9.12-log4jonly.jar > > aspectjweaver-1.6.7.jar > person-directory-api-1.5.0-RC6.jar > > cas-client-core-3.1.10.jar > person-directory-impl-1.5.0-RC6.jar > > cas-server-core-3.4.2.jar quartz-1.6.1.jar > > cas-server-support-ldap-3.4.2.jar slf4j-api-1.5.8.jar > > cglib-2.2.jar slf4j-log4j12-1.5.8.jar > > commons-codec-1.4.jar spring-aop-3.0.1.RELEASE.jar > > commons-collections-3.1.jar spring-asm-3.0.1.RELEASE.jar > > commons-collections-3.2.1.jar > spring-beans-3.0.1.RELEASE.jar > > commons-dbcp-1.4.jar > spring-binding-2.0.8.RELEASE.jar > > commons-jexl-1.1.jar > spring-context-3.0.1.RELEASE.jar > > commons-lang-2.1.jar > spring-context-support-3.0.1.RELEASE.jar > > commons-lang-2.4.jar > spring-core-3.0.1.RELEASE.jar > > commons-pool-1.5.4.jar > spring-expression-3.0.1.RELEASE.jar > > dom4j-1.6.1.jar > spring-jdbc-3.0.1.RELEASE.jar > > hibernate-annotations-3.5.0-CR-2.jar spring-js-2.0.8.RELEASE.jar > > hibernate-commons-annotations-3.2.0.Beta1.jar > spring-ldap-core-1.3.0.RELEASE.jar > > hibernate-core-3.5.0-CR-2.jar > spring-ldap-core-tiger-1.3.0.RELEASE.jar > > hibernate-entitymanager-3.5.0-CR-2.jar spring-orm-3.0.1.RELEASE.jar > > hibernate-jpa-2.0-api-1.0.0-CR-1.jar > spring-security-cas-client-3.0.1.RELEASE.jar > > hibernate-validator-4.0.2.GA.jar > spring-security-config-3.0.1.RELEASE.jar > > inspektr-audit-1.0.0.GA.jar > spring-security-core-3.0.1.RELEASE.jar > > inspektr-common-1.0.0.GA.jar > spring-security-web-3.0.1.RELEASE.jar > > inspektr-error-1.0.0.GA.jar spring-tx-3.0.1.RELEASE.jar > > inspektr-support-spring-1.0.0.GA.jar spring-web-3.0.1.RELEASE.jar > > javassist-3.7.ga.jar > spring-webflow-2.0.8.RELEASE.jar > > javassist-3.9.0.GA.jar > spring-webmvc-3.0.1.RELEASE.jar > > jaxb-api-2.1.jar standard-1.1.2.jar > > jaxb-impl-2.1.12.jar stax-api-1.0-2.jar > > jaxb-impl-2.1.3.jar validation-api-1.0.0.GA.jar > > jcl-over-slf4j-1.5.8.jar xml-apis-1.0.b2.jar > > jdom-1.0.jar xmldsig-1.0.jar > > jstl-1.1.2.jar xmlsec-1.4.3.jar > > jta-1.1.jar > > > > Here is the related part of my deployer config xml file: > > > > <sec:user-service id="userDetailsService"> > > <sec:user name="xxxxxxxx" password="notused" > authorities="ROLE_ADMIN" /> > > </sec:user-service> > > > > <bean id="serviceRegistryDao" > class="org.jasig.cas.services.JpaServiceRegistryDaoImpl" > > p:entityManagerFactory-ref="entityManagerFactory" > > > > <bean id="entityManagerFactory" > class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> > > <property name="dataSource" ref="dataSource"/> > > <property name="jpaVendorAdapter"> > > <bean > class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> > > <property name="generateDdl" value="true"/> > > <property name="showSql" value="true" /> > > </bean> > > </property> > > <property name="jpaProperties"> > > <props> > > <prop > key="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</prop> > > <prop key="hibernate.hbm2ddl.auto">update</prop> > > </props> > > </property> > > </bean> > > > > <bean > > id="dataSource" > > class="org.apache.commons.dbcp.BasicDataSource" > > p:driverClassName="oracle.jdbc.driver.OracleDriver" > > > > p:url="jdbc:oracle:thin:@xxx.acs.utah.edu:1234:cas " > > > > p:username="name" > > p:password="password" > > p:defaultAutoCommit="true" > > p:defaultTransactionIsolation="2" > > > > And my cas.properties: > > > > > > cas.securityContext.serviceProperties.service= > http://xxx.acs.utah.edu:8080/cas/services/j_acegi_cas_security_check > > # Names of roles allowed to access the CAS service manager > > cas.securityContext.serviceProperties.adminRoles=ROLE_ADMIN > > cas.securityContext.casProcessingFilterEntryPoint.loginUrl= > http://xxx.acs.utah.edu:8080/cas/login > > cas.securityContext.ticketValidator.casServerUrlPrefix= > http://xxx.acs.utah.edu:8080/cas > > cas.themeResolver.defaultThemeName=default > > cas.viewResolver.basename=default_views > > host.name=cas > > database.hibernate.dialect=org.hibernate.dialect.Oracle10gDialect > > > > > > Thanks, > > > > Bryan > > > > *From:* Scott Battaglia [mailto:[email protected]] > *Sent:* Monday, November 22, 2010 7:46 PM > > > *To:* [email protected] > > *Subject:* Re: [cas-user] Service Manager Debug Session > > > > If you want, try posting the list of files in your cas/WEB-INF/lib > directory. It might contain something useful. > > > > Its very strange that Hibernate isn't working for you. > > > > On Mon, Nov 22, 2010 at 9:10 PM, Bryan Wooten <[email protected]> > wrote: > > Thanks scott, iam out to dinner now, i'll lt you know tomorrow. Thanks for > all your help. I know i have some dang cofig issue :( > > Sent from my Windows Mobile® phone. > ------------------------------ > > *From: *Scott Battaglia <[email protected]> > *Sent: *Monday, November 22, 2010 5:33 PM > *To: *[email protected] <[email protected]> > > > *Subject: *Re: [cas-user] Service Manager Debug Session > > I just tried it locally using CAS 3.4.4-SNAPSHOT with an HSQL DB and > everything worked fine. > > > > Which version of Hibernate are you using? > > > > On Mon, Nov 22, 2010 at 5:47 PM, Corey Scholefield <[email protected]> wrote: > > Greetings Bryan… > > > > FWIW, we’ve just launched a stack like this, on CAS 3.4.2.1, and all > Service Manager functions work OK: > > > > CAS->Tomcat 6->Oracle 11->RedHat EL 5 > > > > We’re using JPATicketRegistry… > > > > Corey S. > > > > I've tried (All CAS 3.4.3.1): > > CAS->Glassfish->Oracle->Solaris > > CAS->Tomcat6->Oracle->Redhat > > CAS->Tomcat6->Oracle->Solaris > > > > I guess my next option is to try the above with mySQL? Am I building with > the wrong version of Hibernate? > > > > Cheers, > > > > Bryan > > -- > > 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 > > > > -- > > 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 > > > > -- > > 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 > > > > -- > > 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 > > -- 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
