google-code-export / impala

Automatically exported from code.google.com/p/impala
1 stars 0 forks source link

Trouble with Spring 4.0.5 #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. This is dependencies.txt file:
compile from org.slf4j:jcl-over-slf4j:1.5.8
compile from log4j:log4j:1.2.15
compile from org.springframework:spring-core:4.0.5.RELEASE
compile from org.springframework:spring-beans:4.0.5.RELEASE
compile from org.springframework:spring-context:4.0.5.RELEASE
compile from org.springframework:spring-context-support:4.0.5.RELEASE
compile from org.springframework:spring-aop:4.0.5.RELEASE
compile from org.springframework:spring-expression:4.0.5.RELEASE
compile from org.springframework:spring-web:4.0.5.RELEASE
compile from aopalliance:aopalliance:1.0
runtime from cglib:cglib-nodep:2.2
runtime from org.slf4j:slf4j-api:1.5.8
runtime from org.slf4j:slf4j-log4j12:1.5.8
test from junit:junit:3.8.2
test from org.easymock:easymock:2.4 
test from org.easymock:easymockclassextension:2.4

What is the expected output? What do you see instead?
When run StartServer this is in console:
INFO : BaseLocationsRetriever - Property source: 
org.impalaframework.config.PrefixedCompositePropertySource@18429d6 - 
propertySources: 
[org.impalaframework.web.config.ContextPathAwareSystemPropertySource@1d6c962, 
org.impalaframework.config.SystemPropertiesPropertySource@3f7944, 
org.impalaframework.config.StaticPropertiesPropertySource@132781b, 
org.impalaframework.web.config.ServletContextPropertySource@6b4082]
INFO : BaseImpalaContextLoader - Impala context locations: 
[META-INF/impala-bootstrap.xml, META-INF/impala-web-bootstrap.xml, 
META-INF/impala-graph-bootstrap.xml, META-INF/impala-jmx-bootstrap.xml, 
META-INF/impala-web-listener-bootstrap.xml, 
META-INF/impala-web-path-mapper-bootstrap.xml]
INFO : BaseImpalaContextLoader - Loading bootstrap context from locations 
[META-INF/impala-bootstrap.xml, META-INF/impala-web-bootstrap.xml, 
META-INF/impala-graph-bootstrap.xml, META-INF/impala-jmx-bootstrap.xml, 
META-INF/impala-web-listener-bootstrap.xml, 
META-INF/impala-web-path-mapper-bootstrap.xml]
ERROR : log - Failed startup of context 
org.mortbay.jetty.webapp.WebAppContext@17ac3e5{/xxx,X:\STS\workspace-4.0.5.RELEA
SE\xxx\..\xxx\context}
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 146 
in XML document from class path resource [META-INF/impala-bootstrap.xml] is 
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 146; 
columnNumber: 63; cvc-complex-type.3.2.2: Attribute 'local' is not allowed to 
appear in element 'ref'.
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.createModuleManagementFacade(BaseImpalaContextLoader.java:265)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.initImpalaApplicationContext(BaseImpalaContextLoader.java:168)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.initWebApplicationContext(BaseImpalaContextLoader.java:80)
    at org.impalaframework.web.spring.loader.ImpalaContextLoaderListener.contextInitialized(ImpalaContextLoaderListener.java:44)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.impalaframework.web.StartJetty.main(StartJetty.java:65)
    at StartServer.main(StartServer.java:21)
Caused by: org.xml.sax.SAXParseException; lineNumber: 146; columnNumber: 63; 
cvc-complex-type.3.2.2: Attribute 'local' is not allowed to appear in element 
'ref'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:428)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    ... 22 more
WARN : log - Nested in 
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 146 
in XML document from class path resource [META-INF/impala-bootstrap.xml] is 
invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 146; 
columnNumber: 63; cvc-complex-type.3.2.2: Attribute 'local' is not allowed to 
appear in element 'ref'.:
org.xml.sax.SAXParseException; lineNumber: 146; columnNumber: 63; 
cvc-complex-type.3.2.2: Attribute 'local' is not allowed to appear in element 
'ref'.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:428)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.createModuleManagementFacade(BaseImpalaContextLoader.java:265)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.initImpalaApplicationContext(BaseImpalaContextLoader.java:168)
    at org.impalaframework.web.spring.loader.BaseImpalaContextLoader.initWebApplicationContext(BaseImpalaContextLoader.java:80)
    at org.impalaframework.web.spring.loader.ImpalaContextLoaderListener.contextInitialized(ImpalaContextLoaderListener.java:44)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.impalaframework.web.StartJetty.main(StartJetty.java:65)
    at StartServer.main(StartServer.java:21)
INFO : log - Started SelectChannelConnector@0.0.0.0:8080

What version of the product are you using? On what operating system?
Last Impala version, Spring 4.0.5, on Spring Tool Suite Version: 3.5.0.RELEASE

Original issue reported on code.google.com by homer13....@gmail.com on 10 Jun 2014 at 11:04

GoogleCodeExporter commented 9 years ago

Original comment by philzoio...@googlemail.com on 10 Jun 2014 at 11:14

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. I haven't yet starting working with Impala together 
with Spring 4.0 yet. I am hoping to do so in the next few weeks.

Appears from the error message to be some backward incompatible change that has 
been introduced to the Spring config XML, but will need more investigation to 
determine the exact cause.

Original comment by philzoio...@googlemail.com on 10 Jun 2014 at 11:17

GoogleCodeExporter commented 9 years ago
Just change impala-bootstrap.xml for new xsd schema 
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd

//
<bean id="classResourceFinders" 
class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<ref local="expandedModuleClassResourceFinder"/>
<ref local="jarModuleClassResourceFinder"/>
</list>
</property>
</bean>
<bean id="libraryResourceFinders" 
class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<ref local="expandedModuleLibraryResourceFinder"/>
</list>
</property>
</bean>
//

Original comment by homer13....@gmail.com on 10 Jun 2014 at 11:59

GoogleCodeExporter commented 9 years ago
FIXED! I guess... Replace "local" attribute with "bean"

Original comment by homer13....@gmail.com on 10 Jun 2014 at 12:22

Attachments:

GoogleCodeExporter commented 9 years ago
Good day! Can I join your group? I liked your project and I wanted to 
contribute to its development and design, I'm not the best java developer but I 
can help you fix small bugs.
P/S
Sorry for my bad English.

Original comment by homer13....@gmail.com on 22 Jun 2014 at 10:58

GoogleCodeExporter commented 9 years ago
That would be good - please could you contact me directly, and we can take it 
from there.

Original comment by philzoio...@googlemail.com on 23 Jun 2014 at 12:24

GoogleCodeExporter commented 9 years ago
Actually I didn't find yours email that's why I had write there. this is my 
google and skype account: homer13.06.90@gmail.com and abraham.homer.j.simpson. 
It's will be nice if you send me yours email address
P/S
Sorry for my bad English.)

Original comment by homer13....@gmail.com on 24 Jun 2014 at 8:01