Boa tarde caros amigos, estou com o seguinte erro.
26/08/2009 11:41:22 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SistemaControleDeViagem' did not find a matching property.
26/08/2009 11:41:22 org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
26/08/2009 11:41:22 org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
26/08/2009 11:41:23 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
26/08/2009 11:41:23 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
26/08/2009 11:41:23 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 633 ms
26/08/2009 11:41:23 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
26/08/2009 11:41:23 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
26/08/2009 11:41:23 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
26/08/2009 11:41:23 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_13-b01-FCS) for context '/SistemaControleDeViagem'
26/08/2009 11:41:23 com.sun.faces.config.ConfigureListener contextInitialized
WARNING: JSF1059: WARNING! The com.sun.faces.verifyObjects feature is to aid developers not using tools. It shouldn''t be enabled if using an IDE, or if this application is being deployed for production as it will impact application start times.
26/08/2009 11:41:24 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
26/08/2009 11:41:24 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
26/08/2009 11:41:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 984 ms
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/galileo/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SistemaControleDeViagem/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/galileo/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SistemaControleDeViagem/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/apache-tomcat-6.0.20/lib/jsf-impl.jar!/META-INF/mojarra_ext.taglib.xml
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/galileo/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SistemaControleDeViagem/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/galileo/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SistemaControleDeViagem/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
26/08/2009 11:41:25 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/C:/galileo/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/SistemaControleDeViagem/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
26/08/2009 11:41:25 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassNotFoundException: javax.persistence.Persistence
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at br.gov.ce.srh.siscontv.model.JPAUtilSicv.<init>(JPAUtilSicv.java:14)
at br.gov.ce.srh.siscontv.model.JPAUtilSicv.getInstace(JPAUtilSicv.java:23)
at br.gov.ce.srh.siscontv.MB.PessoaMB.<init>(PessoaMB.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:185)
at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:105)
at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:230)
at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:61)
at org.apache.el.parser.AstValue.getValue(AstValue.java:107)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
at javax.faces.component.UIData.getValue(UIData.java:614)
at javax.faces.component.UIData.getDataModel(UIData.java:1129)
at javax.faces.component.UIData.setRowIndex(UIData.java:451)
at com.sun.faces.renderkit.html_basic.TableRenderer.encodeBegin(TableRenderer.java:77)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:813)
at javax.faces.component.UIData.encodeBegin(UIData.java:967)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:928)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
at java.lang.Thread.run(Unknown Source)
Alguém, poderia me ajudar ?
a linha que da erro é a seguinte:
private JPAUtilSicv(){
factory = Persistence.createEntityManagerFactory("BDSERV");
}
e esse método é utilizado por:
public static JPAUtilSicv getInstace(){
if (me == null){
me = new JPAUtilSicv();
}
return me;
}
onde eu tenho na mesma classe chamada JPAUtilSicv
public EntityManager createEntityManager(){
EntityManager em = factory.createEntityManager();
em.getTransaction().begin();
return em;
}
…
alguma luz ?