← Back to team overview

dhis2-devs team mailing list archive

Re: snapshot version dhis2 deploy error

 

Hi,

my guess is that you are building from source and need to do mvn clean
first. You have the 217 jar files still in target folder.

Lars
On Feb 2, 2015 1:36 PM, "Morten Olav Hansen" <mortenoh@xxxxxxxxx> wrote:

> Just guessing here... but it could be that you have two versions of dhis
> in your webapps folder? try and clean it out and make sure you only have
> one dhis war file in the webapps directory
>
> --
> Morten
>
> On Mon, Feb 2, 2015 at 9:36 PM, easy <lin_xd@xxxxxxx> wrote:
>
>> hi,all, I have updated to the newest version,and build successful,deploy
>> to tomcat-8.0.14, got error:
>> ----
>>  Deploying web application archive
>> D:\tool\apache-tomcat-8.0.14-windows-x64\apache-tomcat-8.0.14\webap
>> ps\dhis.war
>> * ERROR 2015-02-02 22:33:16,833 Context initialization failed
>> (ContextLoader.java [localhost-startStop
>> -1])
>> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
>> Configuration problem: Only
>> one AsyncAnnotationBeanPostProcessor may exist within the context.
>> Offending resource: URL
>> [jar:file:/D:/tool/apache-tomcat-8.0.14-windows-x64/apache-tomcat-8.0.14/webap
>>
>> ps/dhis/WEB-INF/lib/dhis-support-external-2.19-SNAPSHOT.jar!/META-INF/dhis/beans.xml]
>>         at
>> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemRepo
>> rter.java:70)
>>         at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>>         at
>> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:72)
>>         at
>> org.springframework.scheduling.config.AnnotationDrivenBeanDefinitionParser.parse(Annotation
>> DrivenBeanDefinitionParser.java:91)
>>         at
>> org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport
>> .java:74)
>>         at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanD
>> efinitionParserDelegate.java:1424)
>>         at
>> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanD
>> efinitionParserDelegate.java:1414)
>>         at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefiniti
>> ons(DefaultBeanDefinitionDocumentReader.java:187)
>>         at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDef
>> initions(DefaultBeanDefinitionDocumentReader.java:141)
>>         at
>> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefin
>> itions(DefaultBeanDefinitionDocumentReader.java:110)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBe
>> anDefinitionReader.java:508)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBean
>> DefinitionReader.java:391)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDe
>> finitionReader.java:335)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDe
>> finitionReader.java:303)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
>> AbstractBeanDefinitionReader.java:180)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
>> AbstractBeanDefinitionReader.java:216)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
>> AbstractBeanDefinitionReader.java:187)
>>         at
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWeb
>> ApplicationContext.java:125)
>>         at
>> org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWeb
>> ApplicationContext.java:94)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactor
>> y(AbstractRefreshableApplicationContext.java:129)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(Abstr
>> actApplicationContext.java:540)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationC
>> ontext.java:454)
>>         at
>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(Cont
>> extLoader.java:403)
>>         at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:
>> 306)
>>         at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListe
>> ner.java:106)
>>         at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4797)
>>         at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5221)
>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
>>         at
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
>>         at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1703)
>>         at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>>         at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>         at java.lang.Thread.run(Thread.java:745)
>> 02-Feb-2015 22:33:16.849 SEVERE [localhost-startStop-1]
>> org.apache.catalina.core.StandardContext.start
>> Internal Error listenerStart
>> 02-Feb-2015 22:33:16.974 INFO [localhost-startStop-1]
>> org.apache.catalina.util.SessionIdGeneratorBase.
>> createSecureRandom Creation of SecureRandom instance for session ID
>> generation using [SHA1PRNG] took [
>> 125] milliseconds.
>> 02-Feb-2015 22:33:16.974 SEVERE [localhost-startStop-1]
>> org.apache.catalina.core.StandardContext.start
>> Internal Context [/dhis] startup failed due to previous errors....
>> --
>>
>> what's wrong with this?
>>
>>
>>
>>
>>
>> --
>> 此致
>>
>>   easy
>>
>> 莫愁前路无知己,天下谁人不识君。
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

References