Error when using TreeCacheProvider in JBoss 5
thejavafreak Dec 8, 2006 5:20 AMHi all,
I hit against this error when running EJB3, in JBoss5, running the 'all' configuration, and use TreeCacheProvider provider as caching provider.
17:18:57,277 ERROR [AbstractKernelController] Error installing to Start: name=pe rsistence.units:jar=ejb3.jar,unitName=department state=Create java.lang.NoClassDefFoundError: org/jboss/cache/PropertyConfigurator at org.hibernate.cache.TreeCacheProvider.start(TreeCacheProvider.java:68 ) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java: 183) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:1291) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con figuration.java:691) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFa ctory(HibernatePersistence.java:127) at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnit Deployment.java:237) 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:589) at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(Reflec tionUtils.java:55) at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke( ReflectMethodInfoImpl.java:108) at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethod JoinPoint.java:66) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis patchJoinPoint(KernelControllerContextAction.java:71) at org.jboss.kernel.plugins.dependency.LifecycleAction.installAction(Lif ecycleAction.java:147) at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.ins tall(KernelControllerContextAction.java:96) at org.jboss.dependency.plugins.AbstractControllerContextActions.install (AbstractControllerContextActions.java:51) at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra ctControllerContext.java:226) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:709) at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra ctController.java:429) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr actController.java:538) at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr actController.java:472) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:274) at org.jboss.dependency.plugins.AbstractController.install(AbstractContr oller.java:177) at org.jboss.kernel.plugins.dependency.AbstractKernelController.install( AbstractKernelController.java:83) at org.jboss.kernel.plugins.dependency.AbstractKernelController.install( AbstractKernelController.java:77) at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:1 41) at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.ja va:473) at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:324) at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.j ava:48) at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDep loy(AbstractSimpleDeployer.java:52) at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(Dep loyerWrapper.java:145) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy( MainDeployerImpl.java:440) at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainD eployerImpl.java:381) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr ofile(ProfileServiceBootstrap.java:366) at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootst rap(ProfileServiceBootstrap.java:246) at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot strap.java:89) at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl. java:401) at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.ja va:340) at org.jboss.Main.boot(Main.java:210) at org.jboss.Main$1.run(Main.java:508) at java.lang.Thread.run(Thread.java:619)
Could this be because of the not updated library between JBoss cache and Hibernate 3.2.1?
Can I call this as a bug? Or is there a workaround for this?
Thanks in advance