0 Replies Latest reply on Jun 6, 2006 6:09 PM by Marcio Endo

    Embedded Container and TreeCache

    Marcio Endo Newbie

      Has anyone managed to install TreeCache in the Embedded Container (or is it possible at all)?

      I want to do some Unit Testing and one of my SLSB uses TreeCache as an MBean.

      I tried to deploy the TreeCache in the Embedded Stack with the following:

      <bean class="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache"></bean>
      


      But I get the following error while trying to bootstrap the EJB3StandaloneBootstrap:

      19:01:15,464 INFO [EJB3Container] startup()
      19:01:16,174 WARN [BeanSchemaBinding] You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      19:01:16,570 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/DefaultDS'
      19:01:16,575 INFO [LocalTxDataSource] Bound datasource to JNDI name 'java:/RosysDS'
      19:01:16,741 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
      19:01:16,776 INFO [InterceptorChainFactory] 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
      19:01:16,833 INFO [TreeCache] TreeCache: Not using an EvictionPolicy
      19:01:16,833 INFO [TreeCache] cache mode is local, will not create the channel
      19:01:16,858 ERROR [AbstractKernelController] Error installing to Start: name=jboss.cache:service=TreeCache state=Create
      javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
       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:585)
       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:333)
       at br.com.riskoffice.ejb3.EJB3Container.startup(EJB3Container.java:48)
       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:585)
       at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:205)
       at org.testng.SuiteRunner.run(SuiteRunner.java:146)
       at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
       at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
      19:01:16,900 WARN [TreeCache] Error in destroy jboss.cache:service=TreeCache-Group
      javax.management.InstanceNotFoundException: jboss.system:service=ServiceController
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
       at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
       at org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java:219)
       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:585)
       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:333)
       at br.com.riskoffice.ejb3.EJB3Container.startup(EJB3Container.java:48)
       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:585)
       at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
       at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
       at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
       at org.testng.SuiteRunner.privateRun(SuiteRunner.java:205)
       at org.testng.SuiteRunner.run(SuiteRunner.java:146)
       at org.testng.eclipse.runner.RemoteTestNG.run(RemoteTestNG.java:98)
       at org.testng.eclipse.runner.RemoteTestNG.main(RemoteTestNG.java:138)
      


      Thanks in advance.