jsf - Unable to resolve org.eclipse.persistence.exceptions.EntityManagerSetupException -
i trying run maven project, able deploy project after deploying project when click function perform operation shows following exception:
root cause: exception [eclipselink-28013] (eclipse persistence services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.entitymanagersetupexception exception description: attempted deploy persistenceunit [dbunit] while being in wrong state [deployfailed]. close factories persistenceunit.
i have tried redeploying , restarting glassfish not resolve issue. more information posting persistence.xml
file , server log
persistence.xml <?xml version="1.0" encoding="utf-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> <persistence-unit name="ec-assignment" transaction-type="jta"> <provider>org.eclipse.persistence.jpa.persistenceprovider</provider> <jta-data-source>jdbc/assignment2</jta-data-source> <class>org.beginningee6.book.book</class> <class>org.beginningee6.book.cd</class> <class>org.beginningee6.book.item</class> <class>org.beginningee6.book.customer.customer</class> <properties> <property name="eclipselink.ddl-generation" value="drop-and-create-tables"/> <property name="eclipselink.logging.level" value="info"/> </properties> </persistence-unit> </persistence>
and following server log
file
[#|2013-05-19t13:53:58.855+1000|warning|glassfish3.0.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_threadid=129;_threadname=thread-1;|standardwrappervalve[faces servlet]: pwc1406: servlet.service() servlet faces servlet threw exception javax.ejb.ejbexception @ com.sun.ejb.containers.basecontainer.processsystemexception(basecontainer.java:5119) @ com.sun.ejb.containers.basecontainer.completenewtx(basecontainer.java:5017) @ com.sun.ejb.containers.basecontainer.postinvoketx(basecontainer.java:4805) @ com.sun.ejb.containers.basecontainer.postinvoke(basecontainer.java:2004) @ com.sun.ejb.containers.basecontainer.postinvoke(basecontainer.java:1955) @ com.sun.ejb.containers.ejblocalobjectinvocationhandler.invoke(ejblocalobjectinvocationhandler.java:198) @ com.sun.ejb.containers.ejblocalobjectinvocationhandlerdelegate.invoke(ejblocalobjectinvocationhandlerdelegate.java:84) @ com.sun.proxy.$proxy157.findbookitems(unknown source) @ org.beginningee6.book.__ejb31_generated__itemejb__intf____bean__.findbookitems(unknown source) @ org.beginningee6.book.itemcontroller.getbookitemlist(itemcontroller.java:148) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ javax.el.beanelresolver.getvalue(beanelresolver.java:302) @ javax.el.compositeelresolver.getvalue(compositeelresolver.java:175) @ com.sun.faces.el.facescompositeelresolver.getvalue(facescompositeelresolver.java:72) @ com.sun.el.parser.astvalue.getvalue(astvalue.java:116) @ com.sun.el.parser.astvalue.getvalue(astvalue.java:163) @ com.sun.el.valueexpressionimpl.getvalue(valueexpressionimpl.java:219) @ com.sun.faces.facelets.el.tagvalueexpression.getvalue(tagvalueexpression.java:102) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:190) @ javax.faces.component.componentstatehelper.eval(componentstatehelper.java:178) @ javax.faces.component.uidata.getvalue(uidata.java:554) @ javax.faces.component.uidata.getdatamodel(uidata.java:1248) @ javax.faces.component.uidata.setrowindex(uidata.java:447) @ com.sun.faces.renderkit.html_basic.tablerenderer.encodebegin(tablerenderer.java:81) @ javax.faces.component.uicomponentbase.encodebegin(uicomponentbase.java:823) @ javax.faces.component.uidata.encodebegin(uidata.java:937) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1611) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1616) @ javax.faces.component.uicomponent.encodeall(uicomponent.java:1616) @ com.sun.faces.application.view.faceletviewhandlingstrategy.renderview(faceletviewhandlingstrategy.java:380) @ com.sun.faces.application.view.multiviewhandler.renderview(multiviewhandler.java:126) @ com.sun.faces.lifecycle.renderresponsephase.execute(renderresponsephase.java:127) @ com.sun.faces.lifecycle.phase.dophase(phase.java:101) @ com.sun.faces.lifecycle.lifecycleimpl.render(lifecycleimpl.java:139) @ javax.faces.webapp.facesservlet.service(facesservlet.java:313) @ org.apache.catalina.core.standardwrapper.service(standardwrapper.java:1523) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:279) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:188) @ org.apache.catalina.core.standardpipeline.invoke(standardpipeline.java:641) @ com.sun.enterprise.web.webpipeline.invoke(webpipeline.java:97) @ com.sun.enterprise.web.pesessionlockingstandardpipeline.invoke(pesessionlockingstandardpipeline.java:85) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:185) @ org.apache.catalina.connector.coyoteadapter.doservice(coyoteadapter.java:325) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:226) @ com.sun.enterprise.v3.services.impl.containermapper.service(containermapper.java:165) @ com.sun.grizzly.http.processortask.invokeadapter(processortask.java:791) @ com.sun.grizzly.http.processortask.doprocess(processortask.java:693) @ com.sun.grizzly.http.processortask.process(processortask.java:954) @ com.sun.grizzly.http.defaultprotocolfilter.execute(defaultprotocolfilter.java:170) @ com.sun.grizzly.defaultprotocolchain.executeprotocolfilter(defaultprotocolchain.java:135) @ com.sun.grizzly.defaultprotocolchain.execute(defaultprotocolchain.java:102) @ com.sun.grizzly.defaultprotocolchain.execute(defaultprotocolchain.java:88) @ com.sun.grizzly.http.httpprotocolchain.execute(httpprotocolchain.java:76) @ com.sun.grizzly.protocolchaincontexttask.docall(protocolchaincontexttask.java:53) @ com.sun.grizzly.selectionkeycontexttask.call(selectionkeycontexttask.java:57) @ com.sun.grizzly.contexttask.run(contexttask.java:69) @ com.sun.grizzly.util.abstractthreadpool$worker.dowork(abstractthreadpool.java:330) @ com.sun.grizzly.util.abstractthreadpool$worker.run(abstractthreadpool.java:309) @ java.lang.thread.run(thread.java:722) caused by: javax.persistence.persistenceexception: exception [eclipselink-28013] (eclipse persistence services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.entitymanagersetupexception exception description: attempted deploy persistenceunit [ec-assignment] while being in wrong state [deployfailed]. close factories persistenceunit. @ org.eclipse.persistence.internal.jpa.entitymanagersetupimpl.deploy(entitymanagersetupimpl.java:307) @ org.eclipse.persistence.internal.jpa.entitymanagerfactoryimpl.getserversession(entitymanagerfactoryimpl.java:151) @ org.eclipse.persistence.internal.jpa.entitymanagerfactoryimpl.createentitymanagerimpl(entitymanagerfactoryimpl.java:207) @ org.eclipse.persistence.internal.jpa.entitymanagerfactoryimpl.createentitymanager(entitymanagerfactoryimpl.java:202) @ com.sun.enterprise.container.common.impl.entitymanagerwrapper._getdelegate(entitymanagerwrapper.java:197) @ com.sun.enterprise.container.common.impl.entitymanagerwrapper.createnamedquery(entitymanagerwrapper.java:521) @ org.beginningee6.book.itemejb.findbookitems(itemejb.java:31) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ org.glassfish.ejb.security.application.ejbsecuritymanager.runmethod(ejbsecuritymanager.java:1056) @ org.glassfish.ejb.security.application.ejbsecuritymanager.invoke(ejbsecuritymanager.java:1128) @ com.sun.ejb.containers.basecontainer.invokebeanmethod(basecontainer.java:5292) @ com.sun.ejb.ejbinvocation.invokebeanmethod(ejbinvocation.java:615) @ com.sun.ejb.containers.interceptors.aroundinvokechainimpl.invokenext(interceptormanager.java:797) @ com.sun.ejb.ejbinvocation.proceed(ejbinvocation.java:567) @ com.sun.ejb.containers.interceptors.systeminterceptorproxy.doaround(systeminterceptorproxy.java:157) @ com.sun.ejb.containers.interceptors.systeminterceptorproxy.aroundinvoke(systeminterceptorproxy.java:139) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:601) @ com.sun.ejb.containers.interceptors.aroundinvokeinterceptor.intercept(interceptormanager.java:858) @ com.sun.ejb.containers.interceptors.aroundinvokechainimpl.invokenext(interceptormanager.java:797) @ com.sun.ejb.containers.interceptors.interceptormanager.intercept(interceptormanager.java:367) @ com.sun.ejb.containers.basecontainer.__intercept(basecontainer.java:5264) @ com.sun.ejb.containers.basecontainer.intercept(basecontainer.java:5252) @ com.sun.ejb.containers.ejblocalobjectinvocationhandler.invoke(ejblocalobjectinvocationhandler.java:190) ... 56 more caused by: exception [eclipselink-28013] (eclipse persistence services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.entitymanagersetupexception exception description: attempted deploy persistenceunit [ec-assignment] while being in wrong state [deployfailed]. close factories persistenceunit. @ org.eclipse.persistence.exceptions.entitymanagersetupexception.cannotdeploywithoutpredeploy(entitymanagersetupexception.java:170) ... 85 more |#]
any appreciated.
i resolved above error changing persistence unit
name. possible use of multiple names. still when rid of exception new error has been occurred. following error :
root cause java.lang.verifyerror: expecting stackmap frame @ branch target 18 in method org.beginningee6.book.item._persistence_isattributefetched(ljava/lang/string;)z @ offset
i researched , found adding -xx:-usesplitverifier
can solve problem. added variable still can not rid of error.
Comments
Post a Comment