PDA

View Full Version : greenhouse error on tomcat



fastmap
May 3rd, 2012, 10:31 PM
Is this a Spring 3.1 issue?

Running greenhouse with mv clean install t7:run



org.springframework.beans.factory.parsing.BeanDefi nitionParsingException: Config
uration problem: Failed to import bean definitions from relative location [secur
ity-oauth-provider.xml]
Offending resource: class path resource [com/springsource/greenhouse/config/secu
rity.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefi
nitionStoreException: Line 18 in XML document from class path resource [com/spri
ngsource/greenhouse/config/security-oauth-provider.xml] is invalid; nested excep
tion is org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 113; cvc-co
mplex-type.3.2.2: Attribute 'authentication-failed-url' is not allowed to appear
in element 'oauth:provider'.
at org.springframework.beans.factory.parsing.FailFast ProblemReporter.err
or(FailFastProblemReporter.java:68)
at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderC
ontext.java:85)
at org.springframework.beans.factory.parsing.ReaderCo ntext.error(ReaderC
ontext.java:76)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentRe
ader.importBeanDefinitionResource(DefaultBeanDefin itionDocumentReader.java:271)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentRe
ader.parseDefaultElement(DefaultBeanDefinitionDocu mentReader.java:196)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentRe
ader.parseBeanDefinitions(DefaultBeanDefinitionDoc umentReader.java:181)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentRe
ader.doRegisterBeanDefinitions(DefaultBeanDefiniti onDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentRe
ader.registerBeanDefinitions(DefaultBeanDefinition DocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registe
rBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadB
eanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBea
nDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader .java:174)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader .java:209)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader .java:180)
at org.springframework.context.annotation.Configurati onClassBeanDefiniti
onReader.loadBeanDefinitionsFromImportedResources( ConfigurationClassBeanDefiniti
onReader.java:293)
at org.springframework.context.annotation.Configurati onClassBeanDefiniti
onReader.loadBeanDefinitionsForConfigurationClass( ConfigurationClassBeanDefiniti
onReader.java:118)
at org.springframework.context.annotation.Configurati onClassBeanDefiniti
onReader.loadBeanDefinitions(ConfigurationClassBea nDefinitionReader.java:105)
at org.springframework.context.annotation.Configurati onClassPostProcesso
r.processConfigBeanDefinitions(ConfigurationClassP ostProcessor.java:261)
at org.springframework.context.annotation.Configurati onClassPostProcesso
r.postProcessBeanDefinitionRegistry(ConfigurationC lassPostProcessor.java:178)
at org.springframework.context.support.AbstractApplic ationContext.invoke
BeanFactoryPostProcessors(AbstractApplicationConte xt.java:617)
at org.springframework.context.support.AbstractApplic ationContext.refres
h(AbstractApplicationContext.java:446)
at org.springframework.web.context.ContextLoader.conf igureAndRefreshWebA
pplicationContext(ContextLoader.java:384)
at org.springframework.web.context.ContextLoader.init WebApplicationConte
xt(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListe ner.contextInitiali
zed(ContextLoaderListener.java:111)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContex
t.java:4723)
at org.apache.catalina.core.StandardContext$1.call(St andardContext.java:
5226)
at org.apache.catalina.core.StandardContext$1.call(St andardContext.java:
5221)
at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.
java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor
.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException
: Line 18 in XML document from class path resource [com/springsource/greenhouse/
config/security-oauth-provider.xml] is invalid; nested exception is org.xml.sax.
SAXParseException; lineNumber: 18; columnNumber: 113; cvc-complex-type.3.2.2: At
tribute 'authentication-failed-url' is not allowed to appear in element 'oauth:p
rovider'.
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadB