continuum-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Tilman.Ros...@swisscom.com>
Subject RE: JBoss Support
Date Thu, 15 Feb 2007 17:51:39 GMT
allright here we go:
with these two datasources things start moving the right direction

derby-users-ds.xml:

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
     <!-- The jndi name of the DataSource, it is prefixed with java:/
-->
     <!-- Datasources are not available outside the virtual machine -->
     <jndi-name>users</jndi-name>
     <!-- for in-process persistent db, saved when jboss stops. The
     org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db
shutdown -->
 
<connection-url>jdbc:derby:database/users;create=true</connection-url>
     <!-- The driver class -->
     <driver-class>org.apache.derby.jdbc.EmbeddedDriver</driver-class>
     <!-- The login and password -->
     <user-name>sa</user-name>
     <password></password>
     <!-- The minimum connections in a pool/sub-pool. Pools are lazily
constructed on first use -->
     <min-pool-size>5</min-pool-size>
     <!-- The maximum connections in a pool/sub-pool -->
     <max-pool-size>20</max-pool-size>
     <!-- The time before an unused connection is destroyed -->
     <idle-timeout-minutes>5</idle-timeout-minutes>
     <!-- Whether to check all statements are closed when the connection
is returned to the pool,
          this is a debugging feature that should be turned off in
production -->
     <track-statements/>
  </local-tx-datasource>
</datasources>

and derby-continuum-ds.xml

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
  <local-tx-datasource>
     <!-- The jndi name of the DataSource, it is prefixed with java:/
-->
     <!-- Datasources are not available outside the virtual machine -->
     <jndi-name>continuum</jndi-name>
     <!-- for in-process persistent db, saved when jboss stops. The
     org.jboss.jdbc.DerbyDatabase mbean is necessary for properly db
shutdown -->
 
<connection-url>jdbc:derby:database/continuum;create=true</connection-ur
l>
     <!-- The driver class -->
     <driver-class>org.apache.derby.jdbc.EmbeddedDriver</driver-class>
     <!-- The login and password -->
     <user-name>sa</user-name>
     <password></password>
     <!-- The minimum connections in a pool/sub-pool. Pools are lazily
constructed on first use -->
     <min-pool-size>5</min-pool-size>
     <!-- The maximum connections in a pool/sub-pool -->
     <max-pool-size>20</max-pool-size>
     <!-- The time before an unused connection is destroyed -->
     <idle-timeout-minutes>5</idle-timeout-minutes>
     <!-- Whether to check all statements are closed when the connection
is returned to the pool,
          this is a debugging feature that should be turned off in
production -->
     <track-statements/>
  </local-tx-datasource>
</datasources>

and the database is built under JBOSS_HOME/bin

But hold on, the next exception is here (rather long)

2007-02-15 18:48:08,681 ERROR
[com.opensymphony.xwork.config.providers.InterceptorBuilder] Unable to
find interceptor class referenced by ref-name pssCommonStack
2007-02-15 18:48:08,681 ERROR
[com.opensymphony.xwork.config.providers.InterceptorBuilder] Unable to
find interceptor class referenced by ref-name pssCommonStack
2007-02-15 18:48:09,242 ERROR [org.jboss.web.localhost.Engine]
StandardWrapperValve[default]: Servlet.service() for servlet default
threw exception
java.lang.NoSuchMethodError:
org.apache.commons.collections.IteratorUtils.emptyIterator()Lorg/apache/
commons/collections/ResettableIterator;
	at
org.apache.commons.configuration.PropertyConverter.toIterator(PropertyCo
nverter.java:632)
	at
org.apache.commons.configuration.HierarchicalConfiguration.setProperty(H
ierarchicalConfiguration.java:559)
	at
org.apache.commons.configuration.ConfigurationUtils.copy(ConfigurationUt
ils.java:143)
	at
org.apache.commons.configuration.ConfigurationUtils.convertToHierarchica
l(ConfigurationUtils.java:191)
	at
org.apache.commons.configuration.CombinedConfiguration$ConfigData.getTra
nsformedRoot(CombinedConfiguration.java:629)
	at
org.apache.commons.configuration.CombinedConfiguration.constructCombined
Node(CombinedConfiguration.java:533)
	at
org.apache.commons.configuration.CombinedConfiguration.getRootNode(Combi
nedConfiguration.java:437)
	at
org.apache.commons.configuration.HierarchicalConfiguration.fetchNodeList
(HierarchicalConfiguration.java:721)
	at
org.apache.commons.configuration.HierarchicalConfiguration.getProperty(H
ierarchicalConfiguration.java:284)
	at
org.apache.commons.configuration.CombinedConfiguration.getProperty(Combi
nedConfiguration.java:511)
	at
org.apache.commons.configuration.AbstractConfiguration.resolveContainerS
tore(AbstractConfiguration.java:1222)
	at
org.apache.commons.configuration.AbstractConfiguration$1.lookup(Abstract
Configuration.java:324)
	at
org.apache.commons.configuration.interpol.ConfigurationInterpolator.look
up(ConfigurationInterpolator.java:281)
	at
org.apache.commons.lang.text.StrSubstitutor.resolveVariable(StrSubstitut
or.java:655)
	at
org.apache.commons.lang.text.StrSubstitutor.substitute(StrSubstitutor.ja
va:587)
	at
org.apache.commons.lang.text.StrSubstitutor.substitute(StrSubstitutor.ja
va:521)
	at
org.apache.commons.lang.text.StrSubstitutor.replace(StrSubstitutor.java:
263)
	at
org.apache.commons.configuration.PropertyConverter.interpolate(PropertyC
onverter.java:684)
	at
org.apache.commons.configuration.AbstractConfiguration.interpolate(Abstr
actConfiguration.java:432)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder.interpolate
(DefaultConfigurationBuilder.java:592)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$Configurati
onDeclaration.interpolate(DefaultConfigurationBuilder.java:1008)
	at
org.apache.commons.configuration.beanutils.XMLBeanDeclaration.getBeanPro
perties(XMLBeanDeclaration.java:291)
	at
org.apache.commons.configuration.beanutils.BeanHelper.initBean(BeanHelpe
r.java:159)
	at
org.apache.commons.configuration.beanutils.DefaultBeanFactory.initBeanIn
stance(DefaultBeanFactory.java:106)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$FileConfigu
rationProvider.initBeanInstance(DefaultConfigurationBuilder.java:1186)
	at
org.apache.commons.configuration.beanutils.DefaultBeanFactory.createBean
(DefaultBeanFactory.java:62)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$Configurati
onProvider.getConfiguration(DefaultConfigurationBuilder.java:804)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$FileConfigu
rationProvider.getEmptyConfiguration(DefaultConfigurationBuilder.java:11
68)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$FileConfigu
rationProvider.getConfiguration(DefaultConfigurationBuilder.java:1143)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder$Configurati
onBeanFactory.createBean(DefaultConfigurationBuilder.java:1052)
	at
org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHel
per.java:243)
	at
org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHel
per.java:265)
	at
org.apache.commons.configuration.beanutils.BeanHelper.createBean(BeanHel
per.java:279)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder.createConfi
gurationAt(DefaultConfigurationBuilder.java:610)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder.initCombine
dConfiguration(DefaultConfigurationBuilder.java:555)
	at
org.apache.commons.configuration.DefaultConfigurationBuilder.getConfigur
ation(DefaultConfigurationBuilder.java:487)
	at
org.codehaus.plexus.registry.CommonsConfigurationRegistry.initialize(Com
monsConfigurationRegistry.java:326)
	at
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializePhase.e
xecute(InitializePhase.java:33)
	at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:130)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:143)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:133)
	at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:87)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:101)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:144)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:334)
	at
org.codehaus.plexus.security.configuration.UserConfiguration.contextuali
ze(UserConfiguration.java:158)
	at
org.codehaus.plexus.personality.plexus.lifecycle.phase.ContextualizePhas
e.execute(ContextualizePhase.java:39)
	at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:130)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:143)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:133)
	at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:87)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:101)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:313)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.find
Requirement(AbstractComponentComposer.java:235)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirementToField(FieldComponentComposer.java:67)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirement(FieldComponentComposer.java:58)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.asse
mbleComponent(AbstractComponentComposer.java:144)
	at
org.codehaus.plexus.component.composition.DefaultComponentComposerManage
r.assembleComponent(DefaultComponentComposerManager.java:73)
	at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.
execute(CompositionPhase.java:46)
	at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:130)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:143)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:133)
	at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:87)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:101)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:313)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.find
Requirement(AbstractComponentComposer.java:235)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirementToField(FieldComponentComposer.java:67)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirement(FieldComponentComposer.java:58)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.asse
mbleComponent(AbstractComponentComposer.java:144)
	at
org.codehaus.plexus.component.composition.DefaultComponentComposerManage
r.assembleComponent(DefaultComponentComposerManager.java:73)
	at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.
execute(CompositionPhase.java:46)
	at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:130)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:143)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:133)
	at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:87)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:101)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:313)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.find
Requirement(AbstractComponentComposer.java:235)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirementToField(FieldComponentComposer.java:67)
	at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignR
equirement(FieldComponentComposer.java:58)
	at
org.codehaus.plexus.component.composition.AbstractComponentComposer.asse
mbleComponent(AbstractComponentComposer.java:144)
	at
org.codehaus.plexus.component.composition.DefaultComponentComposerManage
r.assembleComponent(DefaultComponentComposerManager.java:73)
	at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.
execute(CompositionPhase.java:46)
	at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif
ecycleHandler.java:130)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComp
onentLifecycle(AbstractComponentManager.java:143)
	at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCom
ponentInstance(AbstractComponentManager.java:133)
	at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g
etComponent(ClassicSingletonComponentManager.java:87)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:101)
	at
org.codehaus.plexus.DefaultComponentLookupManager.lookup(DefaultComponen
tLookupManager.java:144)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer
.java:340)
	at
org.codehaus.plexus.xwork.PlexusObjectFactory.lookup(PlexusObjectFactory
.java:408)
	at
org.codehaus.plexus.xwork.PlexusObjectFactory.loadComponentWithPlexus(Pl
exusObjectFactory.java:364)
	at
org.codehaus.plexus.xwork.PlexusObjectFactory.lookup(PlexusObjectFactory
.java:344)
	at
org.codehaus.plexus.xwork.PlexusObjectFactory.buildBean(PlexusObjectFact
ory.java:189)
	at
org.codehaus.plexus.xwork.PlexusObjectFactory.buildInterceptor(PlexusObj
ectFactory.java:117)
	at
com.opensymphony.xwork.config.providers.InterceptorBuilder.constructInte
rceptorReference(InterceptorBuilder.java:48)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.lookupI
nterceptorReference(XmlConfigurationProvider.java:702)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInt
erceptorStack(XmlConfigurationProvider.java:569)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInt
erceptorStacks(XmlConfigurationProvider.java:582)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInt
erceptors(XmlConfigurationProvider.java:603)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPack
age(XmlConfigurationProvider.java:204)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadCon
figurationFile(XmlConfigurationProvider.java:676)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadCon
figurationFile(XmlConfigurationProvider.java:679)
	at
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(Xm
lConfigurationProvider.java:91)
	at
com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(DefaultCo
nfiguration.java:85)
	at
com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(Conf
igurationManager.java:54)
	at
com.opensymphony.xwork.DefaultActionProxy.<init>(DefaultActionProxy.java
:57)
	at
com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(Defau
ltActionProxyFactory.java:46)
	at
com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(Dispat
cherUtils.java:216)
	at
com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDisp
atcher.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.
java:118)
	at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j
ava:52)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(Action
ContextCleanUp.java:88)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:75)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:186)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
	at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipa
lValve.java:66)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
	at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:150)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
	at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:54)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
	at java.lang.Thread.run(Thread.java:595)



-----Original Message-----
From: Hilco Wijbenga [mailto:hilco.wijbenga@gmail.com] 
Sent: Thursday, February 15, 2007 6:39 PM
To: continuum-dev@maven.apache.org
Subject: Re: JBoss Support

On 2/15/07, Thierry Lach <thierry.lach@gmail.com> wrote:
> Can you post the contents of your derby-ds.xml file please?  I'm 
> guessing that the example I used for the Continuum+on_JBoss example 
> isn't correct enough for continuum.

See http://docs.codehaus.org/display/MAVENUSER/Archiva+on+JBoss

There used to be something similar for Continuum. I think your JNDI name
is wrong; all the silly stuff (comp/env/jdbc/) will be added by JBoss
... IIRC, it's been a while. :-)

Mime
View raw message