On Wed, 8 Jun 2011, Kevin Richter wrote:

I have found: https://wiki.jasig.org/display/CASUM/Configuring
Ok, so far, so good.

After restarting tomcat I am now getting an error:

The Spring ContextLoaderListener we wrap threw on contextInitialized.
But for our having caught this error, the web application context would
not have initialized.
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 268 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'.


Line 268 is:
<tx:annotation-driven transaction-manager="transactionManager"/>


The head of WEB-INF/deployerConfigContext.xml is:
<beans xmlns="http://www.springframework.org/schema/beans";
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
      xmlns:tx="http://www.springframework.org/schema/tx";
      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";>

How you can see I have inserted this xmlns:tx line.


Are there any jar files missing?
Why is this tx:annotation-driven element not found?

You added:

      xmlns:tx="http://www.springframework.org/schema/tx";

but did not add:

  http://www.springframework.org/schema/tx 
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

to the xsi:schemaLocation definition. The final definition should look like:

<beans xmlns="http://www.springframework.org/schema/beans";
       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";
       xmlns:tx="http://www.springframework.org/schema/tx";
       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/tx/spring-tx-3.0.xsd";>


        Andy

--
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