[jboss-user] [JBoss Seam] - Datasource problem

jimcarrey do-not-reply at jboss.com
Mon Oct 2 08:36:00 EDT 2006


Hi,
I am using Seam / Embeddable EJB container with Tomact. 
I get a strange error when the Embeddable EJB tries to initialise telling me it has already initialised the datasource. Any ideas appreciated?
Here is the stack trace:


INFO  02-10 12:37:40,000 (Log4JLogger.java:info:94)  -starting the embedded EJB
container
WARN  02-10 12:37:40,578 (BeanSchemaBinding.java:init:227)  -You should use the
2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
INFO  02-10 12:37:41,093 (LocalTxDataSource.java:bindConnectionFactory:117)  -Bo
und datasource to JNDI name 'java:/refappDS'
java.lang.RuntimeException: java.lang.IllegalStateException: Already installed r
efappDSBootstrap
        at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB
3StandaloneBootstrap.java:95)
        at org.jboss.seam.core.Ejb.deploy(Ejb.java:58)
        at org.jboss.seam.core.Ejb.startup(Ejb.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
        at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
        at org.jboss.seam.Component.newInstance(Component.java:1312)
        at org.jboss.seam.Component.getInstance(Component.java:1263)
        at org.jboss.seam.Component.getInstance(Component.java:1253)
        at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
        at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:10
4)
        at org.jboss.seam.init.Initialization.init(Initialization.java:196)
        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j
ava:32)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3692)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
127)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:910)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:873)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.IllegalStateException: Already installed refappDSBootstrap
        at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:149)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
(AbstractKernelDeployer.java:291)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
s(AbstractKernelDeployer.java:261)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
tractKernelDeployer.java:117)
        at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXM
LDeployer.java:95)
        at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB
3StandaloneBootstrap.java:88)
        ... 41 more
ERROR 02-10 12:37:41,515 (Log4JLogger.java:error:119)  -Exception sending contex
t initialized event to listener instance of class org.jboss.seam.servlet.SeamLis
tener
java.lang.RuntimeException: java.lang.IllegalStateException: Already installed r
efappDSBootstrap
        at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB
3StandaloneBootstrap.java:95)
        at org.jboss.seam.core.Ejb.deploy(Ejb.java:58)
        at org.jboss.seam.core.Ejb.startup(Ejb.java:39)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
        at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
        at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
        at org.jboss.seam.Component.newInstance(Component.java:1312)
        at org.jboss.seam.Component.getInstance(Component.java:1263)
        at org.jboss.seam.Component.getInstance(Component.java:1253)
        at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
        at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:10
4)
        at org.jboss.seam.init.Initialization.init(Initialization.java:196)
        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.j
ava:32)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3692)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
127)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:910)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:873)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.IllegalStateException: Already installed refappDSBootstrap
        at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
oller.java:149)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
(AbstractKernelDeployer.java:291)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
s(AbstractKernelDeployer.java:261)
        at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
tractKernelDeployer.java:117)
        at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXM
LDeployer.java:95)
        at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB
3StandaloneBootstrap.java:88)
        ... 41 more
INFO  02-10 12:37:41,531 (Log4JLogger.java:info:94)  -stopping the embedded EJB
container
java.lang.NullPointerException
        at org.jboss.seam.core.Ejb.shutdown(Ejb.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
        at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:211)

        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
        at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:134)
        at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.jav
a:37)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:3733)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:43
06)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
155)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:910)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:873)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
WARN  02-10 12:37:41,578 (Log4JLogger.java:warn:109)  -Could not destroy compone
nt: org.jboss.seam.core.ejb
java.lang.NullPointerException
        at org.jboss.seam.core.Ejb.shutdown(Ejb.java:66)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
        at org.jboss.seam.contexts.Contexts.callDestroyMethod(Contexts.java:211)

        at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:189)
        at org.jboss.seam.contexts.Lifecycle.endApplication(Lifecycle.java:134)
        at org.jboss.seam.servlet.SeamListener.contextDestroyed(SeamListener.jav
a:37)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:3733)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:43
06)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
155)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:910)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:873)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:680
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975475#3975475

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975475



More information about the jboss-user mailing list