- This topic has 1 reply, 2 voices, and was last updated 13 years, 9 months ago by
jkennedy.
-
AuthorPosts
-
prabhjot.singh.83MemberHi,
I am getting the below error in spring application context file in myeclipse:
Multiple annotations found at this line:
– Unable to locate Spring NamespaceHandler for element ‘ehcache:annotation-driven’ of schema namespace ‘http://ehcache-
spring-annotations.googlecode.com/svn/schema/ehcache-spring’
– cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘ehcache:annotation-
driven’.
– schema_reference.4: Failed to read schema document ‘http://ehcache-spring-annotations.googlecode.com/svn/schema/
ehcache-spring/ehcache-spring-1.1.xsd’, because 1) could not find the document; 2) the document could not be read; 3) the root element
of the document is not <xsd:schema>.My code runs and compiles fine but still the IDE shows that there is and error. Here is my application context code snapshot.
<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:aop=”http://www.springframework.org/schema/aop”
xmlns:ehcache=”http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring”
xmlns:jee=”http://www.springframework.org/schema/jee”
xmlns:context=”http://www.springframework.org/schema/context”
xmlns:lang=”http://www.springframework.org/schema/lang”
xsi:schemaLocation=”http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/lang
http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd”><!– ******************************************************************** –>
<!– This context file was generated and is not intended to be changed manually. –>
<!– ******************************************************************** –><bean id=”cacheManager” class=”org.springframework.cache.ehcache.EhCacheManagerFactoryBean”>
<property name=”configLocation”>
<value>classpath:ehcache.xml</value>
</property>
</bean><ehcache:annotation-driven cache-manager=”cacheManager” />
I am using myeclipse for spring version 8.6. Can some one please help me with this?
jkennedyMemberThis is due to a variance in the DTD that is packaged with MyEclipse for this file type. It was updated in MyEclipse 9.0.
Thanks,
Jack -
AuthorPosts