<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gviczai" rel="nofollow">Viczai Gábor</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7130?redirect=false" rel="nofollow">SPR-7130</a></strong> and commented</p>
<p dir="auto">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.</p>
<p dir="auto">EXCEPTION FROM THE LOG FILE:</p>
<hr>
<p dir="auto">06/10/11 17:58:18 Started<br>
06/10/11 17:58:21 drlm: jsp: init<br>
06/10/11 17:58:21 drlm: context: init<br>
06/10/11 17:58:21 drlm: Loading Spring root WebApplicationContext<br>
06/10/11 17:58:52 drlm: Error initializing servlet<br>
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'<br>
Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)<br>
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)<br>
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)<br>
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)<br>
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)<br>
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)<br>
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)<br>
at javax.servlet.GenericServlet.init(GenericServlet.java:258)<br>
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: Error preloading servlet<br>
javax.servlet.ServletException: Error initializing servlet<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: drlm: init<br>
06/10/11 17:58:52 drlm: Loading WebApplicationContext for Spring FrameworkServlet 'drlm'<br>
06/10/11 17:58:52 drlm: Error initializing servlet<br>
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'<br>
Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)<br>
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)<br>
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)<br>
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)<br>
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)<br>
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)<br>
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)<br>
at javax.servlet.GenericServlet.init(GenericServlet.java:258)<br>
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: Error preloading servlet<br>
javax.servlet.ServletException: Error initializing servlet<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: dwr-invoker: init<br>
06/10/11 17:58:53 drlm: Started</p>
<p dir="auto">drlm-servlet.xml file:</p>
<hr>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xmlns:flow="<a href="http://www.springframework.org/schema/webflow-config" rel="nofollow">http://www.springframework.org/schema/webflow-config</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a><br>
<a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a><br>
<a href="http://www.springframework.org/schema/webflow-config" rel="nofollow">http://www.springframework.org/schema/webflow-config</a><br>
<a href="http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd"&gt;</a></p>
<p dir="auto">&lt;!--</p>
<ul dir="auto">
<li>
<p dir="auto">DispatcherServlet application context for Device Registration and Listing Application web tier.<br>
--&gt;</p>
- Message source for this context, loaded from localized "messages_xx" files.
<ul dir="auto">
<li>Could also reside in the root application context, as it is generic,</li>
<li>but is currently just used within DRLM's web tier.<br>
--&gt;</li>
</ul>

	



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







		
		 
 

flowController
				  drlmMainMenuController                                 


    

	



	
	


<p dir="auto">&lt;flow:executor id="flowExecutor" registry-ref="flowRegistry" repository-type="continuation"/&gt;</p>

<p dir="auto">&lt;flow:registry id="flowRegistry"&gt;<br>
&lt;flow:location path="file:html/WEB-INF/flows/**/*-flow.xml"/&gt;<br>
&lt;/flow:registry&gt;</p>




	
	
	



	
</li>
</ul>
<p dir="auto">&lt;/beans&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398068315" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6979" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6979/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6979">#6979</a> oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType' in spring-util.xsd. We are unable to start OC4j Server.</li>
</ul>
<p dir="auto">9 votes, 10 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=perfnorm" rel="nofollow">Jasper Rosenberg</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2887?redirect=false" rel="nofollow">SPR-2887</a></strong> and commented</p>
<p dir="auto">This is in regards to forum thread: <a href="http://forum.springframework.org/showthread.php?t=31932" rel="nofollow">http://forum.springframework.org/showthread.php?t=31932</a></p>
<p dir="auto">Basically, I was looking for a way to factor out some common values of two lists.  I was able to solve it ultimately by declaring the common list as a org.springframework.beans.factory.config.ListFactoryBean, and then having the shared lists declare the common list as a parent with the "sourceList" property of the child set to merge.  This works but isn't very friendly for an operation that doesn't seem like it should be infrequent.  One proposed solution in the forum thread was to add support for "abstract" and "parent" attributes to util:list.  That would allow my current solution to at least be a bit terser.</p>
<p dir="auto">Unfortunately, I don't think this really covers the general case very well, since what if someone wanted to merge in more than just one list?  The bean inheritence model doesn't support multiple parents, so you would be back to square one...</p>
<p dir="auto">org.springframework.beans.factory.config.PropertiesFactoryBean handles this pretty nicely with its support for the "propertiesArray" property.</p>
<p dir="auto">I suppose whatever the solution ultimately is should also be applied to Maps and Sets if applicable.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15701/AListAggregationFactoryBean.java" rel="nofollow">AListAggregationFactoryBean.java</a> (<em>1.02 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15702/ClassListAggregationFactoryBean.java" rel="nofollow">ClassListAggregationFactoryBean.java</a> (<em>584 bytes</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/14048/patch.txt" rel="nofollow">patch.txt</a> (<em>5.93 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398100553" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11189" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11189/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11189">#11189</a> Introduce 'merge' attribute for util namespace collection elements (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">16 votes, 18 watchers</p>