1 Reply Latest reply on Jun 12, 2006 1:00 PM by zoetsekas

    createEntityManagerFactory throws "Incompatible object argum

    zoetsekas Newbie

      2006-06-02 15:48:54,773 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      2006-06-02 15:48:54,851 INFO [org.apache.myfaces.config.FacesConfigurator] Reading config /WEB-INF/faces-config.xml
      2006-06-02 15:48:55,039 DEBUG [javax.faces.application.ApplicationFactory] New ApplicationFactory instance created
      2006-06-02 15:48:55,039 ERROR [org.apache.myfaces.util.LocaleUtils] Locale name null or empty, ignoring
      2006-06-02 15:48:56,211 INFO [org.apache.myfaces.webapp.StartupServletContextListener] ServletContext 'C:\Projects\JBoss\JBoss-4.0.4\server\all\.\tmp\deploy\tmp25767PRS_WEB_APPLICATION-exp.war\' initialized.
      2006-06-02 15:48:56,211 DEBUG [org.jboss.web.tomcat.filters.ReplyHeaderFilter] Adding header name: X-Powered-By='Servlet 2.4; JBoss-4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)/Tomcat-5.5'
      2006-06-02 15:48:56,242 DEBUG [javax.faces.webapp.FacesServlet] init begin
      2006-06-02 15:48:56,242 DEBUG [javax.faces.webapp.FacesServlet] init end
      2006-06-02 15:48:56,258 DEBUG [org.jboss.web.tomcat.tc5.TomcatDeployer] Initialized: {WebApplication: /C:/Projects/JBoss/JBoss-4.0.4/server/all/tmp/deploy/tmp25767PRS_WEB_APPLICATION-exp.war/, URL: file:/C:/Projects/JBoss/JBoss-4.0.4/server/all/tmp/deploy/tmp25767PRS_WEB_APPLICATION-exp.war/, classLoader: java.net.FactoryURLClassLoader@16f6006:24076294} jboss.web:j2eeType=WebModule,name=//localhost/PRS_WEB_APPLICATION,J2EEApplication=none,J2EEServer=none
      2006-06-02 15:48:56,258 DEBUG [org.jboss.web.WebModule] Started jboss.web.deployment:war=PRS_WEB_APPLICATION.war,id=-1126674767
      2006-06-02 15:48:56,258 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.web.deployment:war=PRS_WEB_APPLICATION.war,id=-1126674767 dependent components: []
      2006-06-02 15:48:56,289 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: PRS_WEB_APPLICATION.war
      2006-06-02 15:48:56,289 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/Projects/JBoss/JBoss-4.0.4/server/all/deploy/PRS_WEB_APPLICATION.war
      2006-06-02 15:49:02,226 DEBUG [javax.faces.webapp.FacesServlet] service begin
      2006-06-02 15:49:02,289 DEBUG [org.jboss.web.tomcat.tc5.jasper.TagLibCache] Scanning for tlds in: file:/C:/Projects/JBoss/JBoss-4.0.4/server/all/deploy/jbossweb-tomcat55.sar/jsf-libs/myfaces-impl.jar
      2006-06-02 15:49:04,023 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
      2006-06-02 15:49:04,023 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
      2006-06-02 15:49:04,023 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
      2006-06-02 15:49:04,023 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
      2006-06-02 15:49:04,133 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PRS_WEB_APPLICATION].[jsp]] Servlet.service() for servlet jsp threw exception
      java.lang.VerifyError: (class: org/hibernate/ejb/Ejb3Configuration, method: createEntityManagerFactory signature: (Ljava/util/Properties;Ljava/util/Map;)Ljavax/persistence/EntityManagerFactory;) Incompatible object argument for function call
      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:113)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:60)
      at prs.PiElementController.(PiElementController.java:21)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at java.lang.Class.newInstance0(Class.java:350)
      at java.lang.Class.newInstance(Class.java:303)
      at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
      at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
      at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)
      at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
      at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:569)
      at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
      at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
      at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:378)
      at javax.faces.component.UIData.getValue(UIData.java:779)
      at javax.faces.component.UIData.createDataModel(UIData.java:545)
      at javax.faces.component.UIData.getDataModel(UIData.java:534)
      at javax.faces.component.UIData.getRowCount(UIData.java:103)
      at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:124)
      at org.apache.myfaces.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:94)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:319)
      at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:343)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:251)
      at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55)
      at org.apache.jsp.piElement.List_jsp._jspx_meth_h_dataTable_0(List_jsp.java:257)
      at org.apache.jsp.piElement.List_jsp._jspx_meth_h_form_0(List_jsp.java:171)
      at org.apache.jsp.piElement.List_jsp._jspx_meth_f_view_0(List_jsp.java:121)
      at org.apache.jsp.piElement.List_jsp._jspService(List_jsp.java:84)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      2006-06-02 15:49:04,133 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PRS_WEB_APPLICATION].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
      javax.faces.FacesException: (class: org/hibernate/ejb/Ejb3Configuration, method: createEntityManagerFactory signature: (Ljava/util/Properties;Ljava/util/Map;)Ljavax/persistence/EntityManagerFactory;) Incompatible object argument for function call
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.apache.jasper.JasperException: (class: org/hibernate/ejb/Ejb3Configuration, method: createEntityManagerFactory signature: (Ljava/util/Properties;Ljava/util/Map;)Ljavax/persistence/EntityManagerFactory;) Incompatible object argument for function call
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:415)
      ... 21 more