5 Replies Latest reply on Dec 7, 2006 1:41 PM by Brian Stansberry

    how to use with EJB3Standalone container inside eclipse for

    fake fake Newbie

      hey all,

      I can get my treecache-service.xml file to properly deploy in jboss, but how do i get the same mbean to load with the EBJ3Standalone container. I would like to do this to get it working smoothly with my junit tests. the xml file is not deployed automatically if it is in the classpath, and calling EJB3StandaloneBootstrap.deployXmlResource("treecache-service.xml"); produces the error:

      java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:treecache-service.xml@5,43
      ...
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: No cursor for mbean

      Any idea how i can get this to work?

      thanks

        • 1. Re: how to use with EJB3Standalone container inside eclipse
          fake fake Newbie

          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?

          • 2. Re: how to use with EJB3Standalone container inside eclipse
            Brian Stansberry Master

            Try bypassing the create/start/stop/destroy methods (which are meant to be invoked from within JBoss AS) and instead use createService/startService, etc.

            I haven't tried this, but per http://docs.jboss.org/nightly/microkernel/docs/gettingstarted/en/html/basics.html#d0e268 this should be something like:

            <bean name="jboss.cache:service=TestTreeCache" class="org.jboss.cache.TreeCache">
             <create method="createService"/>
             <start method="startService"/>
             <stop method="stopService"/>
             <destroy method="destroyService"/>
            </bean>
            


            Good luck getting all the configurations injected; in JBC 1.x configuration isn't particularly microcontainer friendly. (That's much improved in JBC 2.0.0.) You're kind of breaking new ground here; I haven't head of anyone launching a cache from within the embeddable container. I'll try to help you out as I can.

            • 3. Re: how to use with EJB3Standalone container inside eclipse
              fake fake Newbie

              ok, here is my deployment descriptor:

              <?xml version="1.0" encoding="UTF-8" ?>
              <deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd"
               xmlns="urn:jboss:bean-deployer:2.0">
              
               <bean name="jboss.cache:service=TestTreeCache"
               class="org.jboss.cache.TreeCache">
               <!--depends>jboss:service=Naming</depends>
               <depends>jboss:service=TransactionManager</depends-->
              
               <create method="createService" />
               <start method="startService" />
               <stop method="stopService" />
               <destroy method="destroyService" />
               <property name="transactionManagerLookupClass">
               org.jboss.cache.DummyTransactionManagerLookup
               </property>
               <property name="nodeLockingScheme">PESSIMISTIC</property>
               <property name="isolationLevel">REPEATABLE_READ</property>
               <property name="cacheMode">LOCAL</property>
               <property name="initialStateRetrievalTimeout">5000</property>
               <property name="syncReplTimeout">10000</property>
               <property name="lockAcquisitionTimeout">15000</property>
              
               <property name="evictionPolicyClass">
               org.jboss.cache.eviction.LRUPolicy
               </property>
              
               <property name="evictionPolicyConfig">
               <!--config>
               <attribute name="wakeUpIntervalSeconds">2</attribute>
               <region name="/_default_">
               <attribute name="maxNodes">0</attribute>
               <attribute name="timeToLiveSeconds">0</attribute>
               <attribute name="maxAgeSeconds">0</attribute>
               </region>
               </config-->
              
               </property>
              
               </bean>
              </deployment>
              


              As you can see, the depends and eviction policy < config> are commented out as they cause other problems. here is the error i get using the above:
              RROR 07-12 10:46:29,171 (AbstractController.java:incrementState:350) -Error installing to Configured: name=jboss.cache:service=TestTreeCache state=Instantiated
              java.lang.IllegalArgumentException: Null value metadata
               at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:496)
               at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoint(Configurator.java:443)
               at org.jboss.kernel.plugins.config.Configurator.getPropertySetterJoinPoints(Configurator.java:407)
               at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getPropertySetterJoinPoints(AbstractKernelConfigurator.java:120)
               at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$ConfigureAction.installAction(KernelControllerContextActions.java:443)
               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.deployXmlResource(EJB3StandaloneBootstrap.java:88)
               at com.mpi.tvaar.BaseTestCase.startupEmbeddedContainer(BaseTestCase.java:78)
               at com.###.BaseTestCase.setUp(BaseTestCase.java:62)
               at com.###.AggregateFetcherTest.setUp(AggregateFetcherTest.java:30)
               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 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 07-12 10:46:29,265 (BeanXMLDeployer.java:deploy:98) -Deploying file:/C:/.../test-treecache-test.xml took 265 milliseconds
              


              and from the junit window:
              java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
              
              *** DEPLOYMENTS IN ERROR: Name -> Error
              jboss.cache:service=TestTreeCache -> java.lang.IllegalArgumentException: Null value metadata
              
               at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:95)
               at com.###.BaseTestCase.startupEmbeddedContainer(BaseTestCase.java:78)
               at com.###.BaseTestCase.setUp(BaseTestCase.java:62)
               at com.###.cache.AggregateFetcherTest.setUp(AggregateFetcherTest.java:30)
               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 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)
              Caused by: java.lang.IllegalStateException: Incompletely deployed:
              
              *** DEPLOYMENTS IN ERROR: Name -> Error
              jboss.cache:service=TestTreeCache -> java.lang.IllegalArgumentException: Null value metadata
              
               at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
               at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
               at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:90)
               ... 14 more
              
              


              So first of all, this null metadata thing is confusing me, I don't know what it means.

              Second of all, if i leave in the < config> element for the eviction policy, it gives me:
              
              java.lang.RuntimeException: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/.../test-treecache-test.xml@30,12
               at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:95)
               at com.###.BaseTestCase.startupEmbeddedContainer(BaseTestCase.java:78)
               at com.###.BaseTestCase.setUp(BaseTestCase.java:62)
               at com.###.AggregateFetcherTest.setUp(AggregateFetcherTest.java:30)
               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 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)
              Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/.../test-treecache-test.xml@30,12
               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:128)
               at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:132)
               at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:85)
               at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:88)
               ... 14 more
              Caused by: org.jboss.xb.binding.JBossXBRuntimeException: {urn:jboss:bean-deployer:2.0}config not found as a child of {urn:jboss:bean-deployer:2.0}property
               at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:195)
               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:299)
               at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
               at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
               at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
               at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
               at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
               at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
               at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
               at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:124)
               ... 17 more
              


              It doesnt seem to be picking up the element. i tried putting CDATA around the < config> ... < /config> part, but that just made the config = null, as if it wasnt present.

              Anyways, that is where I'm at now.

              • 4. Re: how to use with EJB3Standalone container inside eclipse
                fake fake Newbie

                Also, i forgot to mention that a bare-bones deployment works, something like:

                <bean name="jboss.cache:service=TestTreeCache" class="org.jboss.cache.TreeCache">
                 <create method="createService"/>
                 <start method="startService"/>
                 <stop method="stopService"/>
                 <destroy method="destroyService"/>
                
                 <property name="nodeLockingScheme">PESSIMISTIC</property>
                 <property name="isolationLevel">REPEATABLE_READ</property>
                 <property name="cacheMode">LOCAL</property>
                 <property name="initialStateRetrievalTimeout">5000</property>
                 <property name="syncReplTimeout">10000</property>
                 <property name="lockAcquisitionTimeout">15000</property>
                
                </bean>
                


                will launch:
                DEBUG 07-12 11:21:41,000 (BeanXMLDeployer.java:deploy:91) -Parsing file:/C:/.../test-treecache-test.xml took 16 milliseconds
                WARN 07-12 11:21:41,109 (Log4JLogger.java:warn:104) -No transaction manager lookup class has been defined. Transactions cannot be used
                DEBUG 07-12 11:21:41,109 (Log4JLogger.java:debug:84) -Not using an EvictionPolicy
                INFO 07-12 11:21:41,140 (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 07-12 11:21:41,156 (Log4JLogger.java:debug:84) -cache mode is local, will not create the channel
                


                • 5. Re: how to use with EJB3Standalone container inside eclipse
                  Brian Stansberry Master

                  Probably better to just comment out the whole "property" element for evictionPolicyConfig rather than just the value.

                  Perhaps if you post on the Microcontainer forum http://www.jboss.com/index.html?module=bb&op=viewforum&f=228 someone can give you a tip on how to configure a property of type Element. (Do a good search first for an already provided answer though!!)