Announcement Announcement Module
Collapse
No announcement yet.
No declaration can be found for element 'tx:annotation-driven'. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No declaration can be found for element 'tx:annotation-driven'.

    Hi,
    I've got problem with tx:annotation-driven. I've already searched through this forum and stackoverflow.

    log: http://wklej.org/hash/429200fc916/

    It's a maven project. I wonder why there is no line "Found XML schema" for tx. The jar is in the classpath.

    Code:
    <?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:mvc="http://www.springframework.org/schema/mvc"
    	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"
    	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.1.xsd
            http://www.springframework.org/schema/mvc
            http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
            http://www.springframework.org/schema/tx/
            http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
    	http://www.springframework.org/schema/aop 
    	http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
    	http://www.springframework.org/schema/context
            http://www.springframework.org/schema/context/spring-context-3.1.xsd        
    ">
    	
    	<context:annotation-config />
    	<context:component-scan base-package="org.prinz" />
    	<aop:aspectj-autoproxy />
    
    	<tx:annotation-driven />
    </beans>
    What can I do with it?

  • #2
    Your declaration is wrong... It contains an additional /...

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

    Comment


    • #3
      lol... I haven't noticed that. One sign and so many problems. Thanks!

      Comment

      Working...
      X