continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deng Ching <och...@apache.org>
Subject Re: Continuum failing to start on Tomcat
Date Mon, 16 Nov 2009 01:54:12 GMT
Hmm, something went wrong during the initialization of the components. Could
you paste or attach the entire stack trace for the error? Usually the root
cause is the one at the very bottom.

Thanks,
Deng

On Fri, Nov 13, 2009 at 7:31 PM, Malcolm Wong Ho
<MalcolmWH@smartcall.co.za>wrote:

> Fixed up the context.xml. Using Continuum 1.2.3 (GA).
>
> Getting new error:
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'repositoryMetadataBuilder': Initialization of bean
> failed; nested exception is
> org.springframework.beans.TypeMismatchException: Failed to convert
> property value of type [java.lang.String] to required type
> [java.lang.Class] for property 'role'; nested exception is
> java.lang.IllegalArgumentException: Cannot find class
> [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>        at org.springframework.beans.factory.support.AbstractBeanFactory
> $1.getObject(AbstractBeanFactory.java:264)
>        at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getTypeForFactoryBean(AbstractBeanFactory.java:1198)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryBean(AbstractAutowireCapableBeanFactory.java:625)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.isTypeMatch(AbstractBeanFactory.java:450)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:223)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:303)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:942)
>        at
>
> org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:224)
>        at
>
> org.apache.maven.continuum.notification.manager.spring.NotifierFactoryBean.getObject(NotifierFactoryBean.java:51)
>        at
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport
> $1.run(FactoryBeanRegistrySupport.java:121)
>         at java.security.AccessController.doPrivileged(Native Method)
>        at
>
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
>        at
>
> org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:98)
>        at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:223)
>        at
>
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>        at org.springframework.beans.factory.support.AbstractBeanFactory
> $1.getObject(AbstractBeanFactory.java:264)
>        at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>        at
>
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
>        at
>
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
>        at
>
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
>        at
>
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
>        at
>
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
>        at
>
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
>        at
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
>        at
>
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
>        at
>
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>        at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>        at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>        at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>        at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>        at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint
> $Worker.run(JIoEndpoint.java:454)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: org.springframework.beans.TypeMismatchException: Failed to
> convert property value of type [java.lang.String] to required type
> [java.lang.Class] for property 'role'; nested exception is
> java.lang.IllegalArgumentException: Cannot find class
> [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
>        at
>
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1287)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1248)
>         at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
>         ... 58 more
> Caused by: java.lang.IllegalArgumentException: Cannot find class
> [org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder]
>        at
> org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:271)
>        at
>
> org.springframework.beans.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63)
>        at
>
> org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:374)
>        at
>
> org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:350)
>        at
>
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:173)
>        at
>
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
>        at
>
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
>        ... 62 more
> Caused by: java.lang.ClassNotFoundException:
> org.apache.maven.artifact.repository.metadata.RepositoryMetadataBuilder
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>        at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>        at org.springframework.util.ClassUtils.forName(ClassUtils.java:249)
>        at
> org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:268)
>        ... 68 more
>
>
>
>
> On Fri, 2009-11-13 at 18:21 +0800, Deng Ching wrote:
> > Hi,
> >
> > How did you configure your JNDI resources?
> > It looks like Continuum is either loading the wrong continuum.xml file or
> > the contents of your ${appserver.base}/conf/continuum.xml file contains
> the
> > JNDI resources configuration..
> >
> > Thanks,
> > Deng
> >
> > On Fri, Nov 13, 2009 at 6:01 PM, Malcolm Wong Ho
> > <MalcolmWH@smartcall.co.za>wrote:
> >
> > > Continuum failing to start on Tomcat, error below:
> > >
> > > 2009-11-13 11:30:56,123 [http-9080-1] ERROR
> > > org.apache.continuum.configuration.DefaultContinuumConfiguration  -
> > > Expected root element 'continuum-configuration' but found
> > > 'Context' (position: START_TAG seen <Context path="/continuum"
> > > docBase="webapps/continuum.war">... @1:59)
> > > org.codehaus.plexus.util.xml.pull.XmlPullParserException: Expected root
> > > element 'continuum-configuration' but found 'Context' (position:
> > > START_TAG seen <Context path="/continuum"
> > > docBase="webapps/continuum.war">... @1:59)
> > >        at
> > >
> > >
> org.apache.continuum.configuration.model.io.xpp3.ContinuumConfigurationModelXpp3Reader.parseContinuumConfigurationModel(ContinuumConfigurationModelXpp3Reader.java:562)
> > >        at
> > >
> > >
> org.apache.continuum.configuration.model.io.xpp3.ContinuumConfigurationModelXpp3Reader.read(ContinuumConfigurationModelXpp3Reader.java:977)
> > >        at
> > >
> > >
> org.apache.continuum.configuration.model.io.xpp3.ContinuumConfigurationModelXpp3Reader.read(ContinuumConfigurationModelXpp3Reader.java:991)
> > >        at
> > >
> > >
> org.apache.continuum.configuration.DefaultContinuumConfiguration.reload(DefaultContinuumConfiguration.java:123)
> > >        at
> > >
> > >
> org.apache.continuum.configuration.DefaultContinuumConfiguration.initialize(DefaultContinuumConfiguration.java:69)
> > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >        at
> > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >        at
> > >
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1412)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1373)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> > >        at java.security.AccessController.doPrivileged(Native Method)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> > >        at org.springframework.beans.factory.support.AbstractBeanFactory
> > > $1.getObject(AbstractBeanFactory.java:264)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1244)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1008)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> > >        at java.security.AccessController.doPrivileged(Native Method)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> > >        at org.springframework.beans.factory.support.AbstractBeanFactory
> > > $1.getObject(AbstractBeanFactory.java:264)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
> > >        at
> > >
> > >
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
> > >        at
> > >
> > >
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
> > >        at
> > >
> > >
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
> > >        at
> > >
> > >
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
> > >        at
> > >
> > >
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
> > >        at
> > >
> > >
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
> > >        at
> > >
> > >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
> > >        at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
> > >        at
> > >
> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1249)
> > >        at
> > >
> > >
> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
> > >        at
> > >
> > >
> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
> > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> > >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> > >        at
> > >
> > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> > >        at
> > >
> > >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > >        at
> > >
> > >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> > >        at
> > >
> > >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> > >        at
> > >
> > >
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
> > >        at
> > >
> > >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> > >        at
> > >
> > >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> > >        at
> > >
> > >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> > >        at
> > >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> > >        at
> > >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
> > >        at org.apache.coyote.http11.Http11Protocol
> > > $Http11ConnectionHandler.process(Http11Protocol.java:583)
> > >        at org.apache.tomcat.util.net.JIoEndpoint
> > > $Worker.run(JIoEndpoint.java:454)
> > >        at java.lang.Thread.run(Thread.java:619)
> > >
> > >
> > >
> > > Tomcat Version: Apache Tomcat/6.0.20
> > > JVM Version: 1.6.0_17-b04
> > > OS Name: Linux
> > >
> > >
> > >
> #####################################################################################
> > > This e-mail message has been scanned for Viruses and Content and
> cleared
> > > by MailMarshal
> > >
> > >
> #####################################################################################
> > >
>
>
> #####################################################################################
> This e-mail message has been scanned for Viruses and Content and cleared
> by MailMarshal
>
> #####################################################################################
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message