openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chuongpham <chuonglep...@gmail.com>
Subject OpenJPA 2.0 and Glassfish 3.1 issue
Date Mon, 11 Apr 2011 19:38:03 GMT
I get an error when running OpenJPA 2.0 within Glassfish 3.1 server. The full
stacktrace of the error is:

WARNING: A system exception occurred during an invocation on EJB BookService
method public com.ckd.model.BookModel 

com.ckd.business.BookService.find(java.lang.Long)
javax.ejb.EJBException
	at
com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5194)
	at
com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5092)
	at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
	at 

com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
	at $Proxy156.find(Unknown Source)
	at
com.ckd.business.__EJB31_Generated__BookService__Intf____Bean__.find(Unknown
Source)
	at com.ckd.presentation.BookBean.init(BookBean.java:64)
	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:597)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider$2.run(GlassFishInjectionProvider.java:386)
	at java.security.AccessController.doPrivileged(Native Method)
	at 

org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:380)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:310)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:233)
	at
com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
	at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
	at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
	at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
	at
com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
	at
com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
	at
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	at
com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:99)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:158)
	at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:62)
	at com.sun.el.parser.AstNot.getValue(AstNot.java:59)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
	at
org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
	at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
	at
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:413)
	at
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:117)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
	at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
	at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
	at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
	at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
	at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
	at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
	at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
	at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:662)
Caused by:  org.apache.openjpa.persistence.ArgumentException: An error
occurred 

while processing registered class "class com.ckd.model.BookModel".
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1646)
	at
org.apache.openjpa.meta.ClassMetaData.getPCSubclasses(ClassMetaData.java:370)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.findBaseClassMapping(MappingRepository.java:1531)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:403)
	at
org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:762)
	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:651)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:411)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1241)
	at
org.apache.openjpa.kernel.DelegatingBroker.newObjectId(DelegatingBroker.java:308)
	at
org.apache.openjpa.persistence.EntityManagerImpl.find(EntityManagerImpl.java:477)
	at
com.sun.enterprise.container.common.impl.EntityManagerWrapper.find(EntityManagerWrapper.java:320)
	at com.ckd.business.BookService.find(BookService.java:47)
	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:597)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
	at
com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:46)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at
com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
	at
com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
	... 70 more
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader
unable to load resource 

[org.apache.openjpa.util.LongId], because it has not yet been started, or
was already stopped
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
	at com.ckd.model.BookModel.pcNewObjectIdInstance(BookModel.java)
	at org.apache.openjpa.enhance.PCRegistry.newObjectId(PCRegistry.java:138)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClass(MetaDataRepository.java:1693)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1643)
	... 112 more

SEVERE: Error Rendering View[/media/bookedit.xhtml]
com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred
performing resource injection on managed bean BookBean
	at
com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:229)
	at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
	at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
	at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
	at
com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
	at
com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
	at
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	at
com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:99)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:158)
	at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:62)
	at com.sun.el.parser.AstNot.getValue(AstNot.java:59)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
	at
org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
	at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
	at
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:413)
	at
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:117)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
	at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
	at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
	at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
	at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
	at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
	at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
	at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
	at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.faces.spi.InjectionProviderException:
com.sun.enterprise.container.common.spi.util.InjectionException: 

Exception attempting invoke lifecycle  method public void
com.ckd.presentation.BookBean.init()
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:235)
	at
com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
	... 56 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Exception attempting invoke lifecycle  method 

public void com.ckd.presentation.BookBean.init()
	at 

org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:397)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:310)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:233)
	... 57 more
Caused by: java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException
	at java.security.AccessController.doPrivileged(Native Method)
	at 

org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:380)
	... 59 more
Caused by: java.lang.reflect.InvocationTargetException
	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:597)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider$2.run(GlassFishInjectionProvider.java:386)
	... 61 more
Caused by: javax.ejb.EJBException
	at
com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5194)
	at
com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5092)
	at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
	at 

com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
	at $Proxy156.find(Unknown Source)
	at
com.ckd.business.__EJB31_Generated__BookService__Intf____Bean__.find(Unknown
Source)
	at com.ckd.presentation.BookBean.init(BookBean.java:64)
	... 66 more
Caused by:  org.apache.openjpa.persistence.ArgumentException: An error
occurred 

while processing registered class "class com.ckd.model.BookModel".
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1646)
	at
org.apache.openjpa.meta.ClassMetaData.getPCSubclasses(ClassMetaData.java:370)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.findBaseClassMapping(MappingRepository.java:1531)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:403)
	at
org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:762)
	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:651)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:411)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1241)
	at
org.apache.openjpa.kernel.DelegatingBroker.newObjectId(DelegatingBroker.java:308)
	at
org.apache.openjpa.persistence.EntityManagerImpl.find(EntityManagerImpl.java:477)
	at
com.sun.enterprise.container.common.impl.EntityManagerWrapper.find(EntityManagerWrapper.java:320)
	at com.ckd.business.BookService.find(BookService.java:47)
	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:597)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
	at
com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:46)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at
com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
	at
com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
	... 70 more
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader
unable to load resource 

[org.apache.openjpa.util.LongId], because it has not yet been started, or
was already stopped
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
	at com.ckd.model.BookModel.pcNewObjectIdInstance(BookModel.java)
	at org.apache.openjpa.enhance.PCRegistry.newObjectId(PCRegistry.java:138)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClass(MetaDataRepository.java:1693)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1643)
	... 112 more

WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for
servlet Faces Servlet threw exception
com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred
performing resource injection on managed bean BookBean
	at
com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:229)
	at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
	at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
	at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
	at
com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
	at
com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
	at
com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
	at
com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
	at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:99)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:158)
	at com.sun.el.parser.AstEmpty.getValue(AstEmpty.java:62)
	at com.sun.el.parser.AstNot.getValue(AstNot.java:59)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219)
	at
org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55)
	at
com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
	at
javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
	at
javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:413)
	at
com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:117)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
	at
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
	at
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
	at
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
	at
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
	at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
	at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
	at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
	at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
	at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
	at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
	at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
	at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
	at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
	at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
	at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
	at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
	at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
	at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
	at java.lang.Thread.run(Thread.java:662)
Caused by: com.sun.faces.spi.InjectionProviderException:
com.sun.enterprise.container.common.spi.util.InjectionException: 

Exception attempting invoke lifecycle  method public void
com.ckd.presentation.BookBean.init()
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:235)
	at
com.sun.faces.mgbean.BeanBuilder.invokePostConstruct(BeanBuilder.java:223)
	... 56 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Exception attempting invoke lifecycle  method 

public void com.ckd.presentation.BookBean.init()
	at 

org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:397)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:310)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider.invokePostConstruct(GlassFishInjectionProvider.java:233)
	... 57 more
Caused by: java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException
	at java.security.AccessController.doPrivileged(Native Method)
	at 

org.glassfish.faces.integration.GlassFishInjectionProvider.invokeLifecycleMethod(GlassFishInjectionProvider.java:380)
	... 59 more
Caused by: java.lang.reflect.InvocationTargetException
	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:597)
	at
org.glassfish.faces.integration.GlassFishInjectionProvider$2.run(GlassFishInjectionProvider.java:386)
	... 61 more
Caused by: javax.ejb.EJBException
	at
com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:5194)
	at
com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5092)
	at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
	at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
	at 

com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
	at $Proxy156.find(Unknown Source)
	at
com.ckd.business.__EJB31_Generated__BookService__Intf____Bean__.find(Unknown
Source)
	at com.ckd.presentation.BookBean.init(BookBean.java:64)
	... 66 more
Caused by:  org.apache.openjpa.persistence.ArgumentException: An error
occurred 

while processing registered class "class com.ckd.model.BookModel".
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1646)
	at
org.apache.openjpa.meta.ClassMetaData.getPCSubclasses(ClassMetaData.java:370)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.findBaseClassMapping(MappingRepository.java:1531)
	at
org.apache.openjpa.jdbc.meta.MappingRepository.prepareMapping(MappingRepository.java:403)
	at
org.apache.openjpa.meta.MetaDataRepository.preMapping(MetaDataRepository.java:762)
	at
org.apache.openjpa.meta.MetaDataRepository.resolve(MetaDataRepository.java:651)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:411)
	at
org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:384)
	at org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1241)
	at
org.apache.openjpa.kernel.DelegatingBroker.newObjectId(DelegatingBroker.java:308)
	at
org.apache.openjpa.persistence.EntityManagerImpl.find(EntityManagerImpl.java:477)
	at
com.sun.enterprise.container.common.impl.EntityManagerWrapper.find(EntityManagerWrapper.java:320)
	at com.ckd.business.BookService.find(BookService.java:47)
	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:597)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
	at
org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
	at
com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5367)
	at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:46)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
	at
com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
	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:597)
	at
com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:862)
	at
com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:801)
	at
com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:371)
	at
com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5339)
	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5327)
	at
com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:214)
	... 70 more
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader
unable to load resource 

[org.apache.openjpa.util.LongId], because it has not yet been started, or
was already stopped
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
	at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
	at com.ckd.model.BookModel.pcNewObjectIdInstance(BookModel.java)
	at org.apache.openjpa.enhance.PCRegistry.newObjectId(PCRegistry.java:138)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClass(MetaDataRepository.java:1693)
	at
org.apache.openjpa.meta.MetaDataRepository.processRegisteredClasses(MetaDataRepository.java:1643)
	... 112 more

Has anyone seen this error before and what's the best way to resolve it.
Thanks.

--
View this message in context: http://openjpa.208410.n2.nabble.com/OpenJPA-2-0-and-Glassfish-3-1-issue-tp6262649p6262649.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message