[jboss-user] [JBossCache] - Re: how to use with EJB3Standalone container inside eclipse
kagey
do-not-reply at jboss.com
Tue Nov 28 23:12:01 EST 2006
Let me refine my problem. I'm trying to get a treecachembean deployed in the ejb3 embeddable container. I created this test deployment descriptor in the xml file embedded-jboss-beans.xml:
| <bean name="jboss.cache:service=TestTreeCache" class="org.jboss.cache.TreeCache">
| </bean>
|
and i get the following errors when the file is parsed:
| DEBUG 28-11 21:02:15,772 (ServiceMBeanSupport.java:jbossInternalCreate:256) -Creating TreeCache
| WARN 28-11 21:02:15,772 (Log4JLogger.java:warn:104) -No transaction manager lookup class has been defined. Transactions cannot be used
| DEBUG 28-11 21:02:15,788 (Log4JLogger.java:debug:84) -Not using an EvictionPolicy
| INFO 28-11 21:02:15,851 (Log4JLogger.java:info:94) -interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| DEBUG 28-11 21:02:15,866 (Log4JLogger.java:debug:84) -cache mode is local, will not create the channel
| DEBUG 28-11 21:02:15,866 (ServiceMBeanSupport.java:jbossInternalCreate:269) -Created jboss.cache:service=TreeCache-Group
| ERROR 28-11 21:02:15,882 (AbstractController.java:incrementState:350) -Error installing to Start: name=jboss.cache:service=TestTreeCache state=Create
| javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
| at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
| at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
| at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
| at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:582)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
| at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:380)
| at com.###.BaseTestCase.startupEmbeddedContainer(BaseTestCase.java:73)
| at com.###.BaseTestCase.setUp(BaseTestCase.java:62)
| at com.###.cache.AggregateFetcherTest.setUp(AggregateFetcherTest.java:29)
| at junit.framework.TestCase.runBare(TestCase.java:125)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| WARN 28-11 21:02:15,882 (ServiceMBeanSupport.java:destroy:225) -Error in destroy jboss.cache:service=TreeCache-Group
| javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
| at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
| at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source)
| at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
| at org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java:219)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.uninstallAction(KernelControllerContextActions.java:604)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.uninstall(KernelControllerContextActions.java:219)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java:58)
| at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:236)
| at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:605)
| at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:575)
| at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:510)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:351)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
| at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
| at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:380)
| at com.###.BaseTestCase.startupEmbeddedContainer(BaseTestCase.java:73)
| at com.###.BaseTestCase.setUp(BaseTestCase.java:62)
| at com.###.cache.AggregateFetcherTest.setUp(AggregateFetcherTest.java:29)
| at junit.framework.TestCase.runBare(TestCase.java:125)
| at junit.framework.TestResult$1.protect(TestResult.java:106)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.framework.TestResult.run(TestResult.java:109)
| at junit.framework.TestCase.run(TestCase.java:118)
| at junit.framework.TestSuite.runTest(TestSuite.java:208)
| at junit.framework.TestSuite.run(TestSuite.java:203)
| at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
| at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
| at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
| DEBUG 28-11 21:02:15,882 (BeanXMLDeployer.java:deploy:98) -Deploying file:/C:.../conf/test/embedded-jboss-beans.xml took 1406 milliseconds
|
so it seems to instantiate the actual object ok, but runs into problems when trying to locate ServiceController. Any ideas on how to fix this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989568#3989568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989568
More information about the jboss-user
mailing list