Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSD Exception when starting on OC4j #98

Open
GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments
Open

XSD Exception when starting on OC4j #98

GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

When starting application on Oracle OC4J



Operation failed with error: Configuration problem: Failed to import bean 
definitions from URL location 
[classpath:/META-INF/spring/dal-application-context.xml] Offending resource: 
ServletContext resource [/WEB-INF/spring-config/base-context.xml]; nested 
exception is 
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: 
Configuration problem: Failed to import bean definitions from URL location 
[classpath:/META-INF/spring/spring-cache-application-context.xml] Offending 
resource: class path resource [META-INF/spring/dal-application-context.xml]; 
nested exception is 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 10 
in XML document from class path resource 
[META-INF/spring/spring-cache-application-context.xml] is invalid; nested 
exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 
'annotation' 


Server version is 10.1.3.1
Spring 3.0

XML Config:
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:ehcache="http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring"
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop 
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring 
http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcac
he-spring-1.2.xsd">

    <!-- START ehcache -->
    <ehcache:annotation-driven />

    <ehcache:config cache-manager="cacheManager">
        <ehcache:evict-expired-elements interval="60" />
    </ehcache:config>

    <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
        <property name="configLocation"  value="classpath:/META-INF/spring/ehcache.xml"/>
        <property name="shared" value="true" />
    </bean>
   <!--  END ehcache -->    
</beans>

Original issue reported on code.google.com by [email protected] on 7 Jun 2012 at 7:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant