Issue 1:
Bertrand Fovez opened SPR-6494 and commented

The tag <import resource="..."/> acts differently in version 3.0.0 and 2.5.6.

For example, consider these two xml configuration files, located in a package "context".

File: dependent-context.xml

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<bean id="myBean" class="java.lang.String" />

</beans>

File: super-context.xml

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<import resource="dependent-context.xml" />

</beans>

We load the latter, using the following:

new ClassPathXmlApplicationContext("context/super-context.xml");

Here is the log using Spring 2.5.6.SEC01:

11:47:58,903 INFO [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@19efb05: display name [org.springframework.context.support.ClassPathXmlApplicationContext@19efb05]; startup date [Wed Dec 02 11:47:58 CET 2009]; root of context hierarchy

11:47:58,949 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [context/super-context.xml]

11:47:59,027 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [context/dependent-context.xml]

11:47:59,059 INFO [ClassPathXmlApplicationContext] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@19efb05]: org.springframework.beans.factory.support.DefaultListableBeanFactory@47393f

11:47:59,059 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@47393f: defining beans [myBean]; root of factory hierarchy

Note that the dependent-context.xml file is loaded as "class path resource [context/dependent-context.xml]"

Here is the log using Spring 3.0.0.RC3:

12:06:57,312 INFO [ClassPathXmlApplicationContext] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@8814e9: startup date [Wed Dec 02 12:06:57 CET 2009]; root of context hierarchy

12:06:57,608 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from class path resource [context/super-context.xml]

12:06:57,686 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from URL [file:/C:/Workspace/__Test/target/classes/context/dependent-context.xml]

12:06:57,795 INFO [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1a9334: defining beans [myBean]; root of factory hierarchy

Note that the dependent-context.xml file is new loaded as "URL [file:/C:/Workspace/__Test/target/classes/context/dependent-context.xml]"

If the two file are located in different folders on the file system, as it is often the case, the loading fails.

This difference generates several major regressions in our existing projects.

Affects: 3.0 RC3

Issue Links:

#11159 Regression about the suppport of the tag ("duplicates")

Issue 2:
Patrick Crocker opened SPR-7361 and commented

We are currently working on an enterprise project for one of our biggest clients. We are using Spring 2.0 and Spring Web Flow 1.0 Rc4. While deploying the application to Oracle 9ias 10.1.2.0.2 in our development environment, we encountered the following error. We experienced the same error in Spring 2.0 RC2 and it was fixed in Spring 2.0 RC3 by Rick Evans. The ticket No is SPR - 2290. Kindly fix the bug. I will attach the XMLParser Oracle uses so you guys can test it. This is a critical error and we are unable to move forward.

EXCEPTION FROM THE LOG FILE:

06/10/11 17:58:18 Started

06/10/11 17:58:21 drlm: jsp: init

06/10/11 17:58:21 drlm: context: init

06/10/11 17:58:21 drlm: Loading Spring root WebApplicationContext

06/10/11 17:58:52 drlm: Error initializing servlet

org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/drlm-servlet.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'

Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'

at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)

at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)

at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)

at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)

at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)

at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)

at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)

at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)

at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)

at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)

at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)

at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)

at com.evermind.server.Application.getHttpApplication(Application.java:890)

at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)

at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)

at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)

at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)

at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)

at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)

at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)

at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)

at java.lang.Thread.run(Thread.java:534)

06/10/11 17:58:52 drlm: Error preloading servlet

javax.servlet.ServletException: Error initializing servlet

at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)

at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)

at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)

at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)

at com.evermind.server.Application.getHttpApplication(Application.java:890)

at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)

at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)

at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)

at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)

at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)

at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)

at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)

at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)

at java.lang.Thread.run(Thread.java:534)

06/10/11 17:58:52 drlm: drlm: init

06/10/11 17:58:52 drlm: Loading WebApplicationContext for Spring FrameworkServlet 'drlm'

06/10/11 17:58:52 drlm: Error initializing servlet

org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/drlm-servlet.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'

Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'

at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)

at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)

at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)

at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)

at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)

at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)

at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)

at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)

at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)

at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)

at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)

at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)

at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)

at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)

at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)

at com.evermind.server.Application.getHttpApplication(Application.java:890)

at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)

at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)

at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)

at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)

at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)

at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)

at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)

at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)

at java.lang.Thread.run(Thread.java:534)

06/10/11 17:58:52 drlm: Error preloading servlet

javax.servlet.ServletException: Error initializing servlet

at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)

at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)

at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)

at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)

at com.evermind.server.Application.getHttpApplication(Application.java:890)

at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)

at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)

at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)

at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)

at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)

at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)

at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)

at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)

at java.lang.Thread.run(Thread.java:534)

06/10/11 17:58:52 drlm: dwr-invoker: init

06/10/11 17:58:53 drlm: Started

drlm-servlet.xml file:

<?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:flow="http://www.springframework.org/schema/webflow-config"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

http://www.springframework.org/schema/webflow-config

http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd">

<!--

DispatcherServlet application context for Device Registration and Listing Application web tier.

-->

uk.ltd.getahead.dwr.DWRServlet
dwr-invoker
true

flowController
drlmMainMenuController

<flow:executor id="flowExecutor" registry-ref="flowRegistry" repository-type="continuation"/>

<flow:registry id="flowRegistry">

<flow:location path="file:html/WEB-INF/flows/**/*-flow.xml"/>

</flow:registry>

</beans>

Affects: 2.0 final