Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application is not working with batoo-jpa 0.1.6 #1

Open
s4gh opened this issue Oct 19, 2012 · 16 comments
Open

Application is not working with batoo-jpa 0.1.6 #1

s4gh opened this issue Oct 19, 2012 · 16 comments

Comments

@s4gh
Copy link

s4gh commented Oct 19, 2012

Hello,

I was following README but when I am trying to run application with batoo-jpa it gives me following error

javax.persistence.PersistenceException: Type is not managed: Course
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.getEntity(JpqlQuery.java:912)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructFrom(JpqlQuery.java:254)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructSelectQuery(JpqlQuery.java:651)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.construct(JpqlQuery.java:187)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.parse(JpqlQuery.java:1380)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:168)
org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:153)
org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:396)
...
com.example.bean.DataFactory.isDataCreated(DataFactory.java:282)
com.example.bean.DataFactory.createData(DataFactory.java:68)
com.example.bean.DataFactory.getDataMessage(DataFactory.java:289)

...

I am using JBoss As 7.1.1

Thanks,
Serhiy

@hceylan
Copy link
Member

hceylan commented Oct 19, 2012

Dear Serhiy,

Batoo JPA since it is in incubation changing so fast.
Would you please upgrade Batoo JPA vesions in pom to 0.1.7-SNAPSHOT and try again.

When the project is built then you can copy batoo-jpa.jar to JBoss component directory, you must preserve the name batoo-jpa-0.1.jar .

If you still cannot run it, please report back so that I can provide more help.

@s4gh
Copy link
Author

s4gh commented Oct 19, 2012

I have grabbed sources from git and run local build to bet 0.1.7-SNAPSHOT. But unfortunately with no luck. Same error message:

12:17:02,197 SEVERE javax.enterprise.resource.webcontainer.jsf.application Error Rendering View[/home.xhtml]: javax.el.ELException: /WEB-INF/templates/template.xhtml: Cannot parse query: Type is not managed: Course
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:90) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-1015:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
Caused by: javax.persistence.PersistenceException: Cannot parse query: Type is not managed: Course
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:494) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerImpl.createQuery(EntityManagerImpl.java:375) [batoo-jpa-0.1.jar:]
at org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:425) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.proxies.EntityManager$454798756$Proxy$_$$WeldClientProxy.createQuery(EntityManager$454798756$Proxy$$$_WeldClientProxy.java) [weld-core-1.1.5.AS71.Final.jar:]
at com.example.bean.DataFactory.isDataCreated(DataFactory.java:282) [classes:]
at com.example.bean.DataFactory.createData(DataFactory.java:68) [classes:]
at com.example.bean.DataFactory.getDataMessage(DataFactory.java:289) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:133) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:299) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:127) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:46) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 34 more
Caused by: javax.persistence.PersistenceException: Type is not managed: Course
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.getEntity(JpqlQuery.java:912) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructFrom(JpqlQuery.java:254) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructSelectQuery(JpqlQuery.java:651) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.construct(JpqlQuery.java:187) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.parse(JpqlQuery.java:1380) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:168) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:153) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:455) [batoo-jpa-0.1.jar:]
... 71 more

12:17:02,292 ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/HelloJSF].[Faces Servlet] Servlet.service() for servlet Faces Servlet threw exception: javax.persistence.PersistenceException: Type is not managed: Course
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.getEntity(JpqlQuery.java:912) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructFrom(JpqlQuery.java:254) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructSelectQuery(JpqlQuery.java:651) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.construct(JpqlQuery.java:187) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.parse(JpqlQuery.java:1380) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:168) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:153) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:455) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerImpl.createQuery(EntityManagerImpl.java:375) [batoo-jpa-0.1.jar:]
at org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:425) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.proxies.EntityManager$454798756$Proxy$_$$WeldClientProxy.createQuery(EntityManager$454798756$Proxy$$$_WeldClientProxy.java) [weld-core-1.1.5.AS71.Final.jar:]
at com.example.bean.DataFactory.isDataCreated(DataFactory.java:282) [classes:]
at com.example.bean.DataFactory.createData(DataFactory.java:68) [classes:]
at com.example.bean.DataFactory.getDataMessage(DataFactory.java:289) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:133) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:299) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:127) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:46) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-1015:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]

at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]

@hceylan
Copy link
Member

hceylan commented Oct 19, 2012

OK. Let me check the app...

@hceylan
Copy link
Member

hceylan commented Oct 19, 2012

Thank you for the report Sveryovka.

The changes are committed to the repository.
Please pull the changes follow the updated README.

@s4gh
Copy link
Author

s4gh commented Oct 19, 2012

Well, I've grabbed latest sources, took empty JBoss, deployed module and application (manually) but still same issue. Maybe you can suggest some things I can check to troubleshoot this issue.

@hceylan
Copy link
Member

hceylan commented Oct 19, 2012

Would you turn DEBUG in org.batoo.jpa in log and post the log?
Additionally seems like the entity classes are not found, I remember once
having this issue on Windows, are you on Windows?

@hceylan
Copy link
Member

hceylan commented Oct 23, 2012

sveryovka,

Have you had a chance to check that?

@s4gh
Copy link
Author

s4gh commented Oct 23, 2012

Sorry I was to busy at work. I have just checked this. Below you can see everything I was able to get from the log file related to BatooJPA. And answering one of your earlier question - yes, I am using Windows 7 (64 bit)

17:19:56,853 TRACE [org.jboss.as.jpa](MSC service thread 1-4) PersistenceUnitMetadataImpl(version=2.0) [
name: pu
jtaDataSource: java:jboss/datasources/ExampleDS
nonJtaDataSource: null
transactionType: JTA
provider: org.batoo.jpa.core.BatooPersistenceProvider
classes[
]
packages[
]
mappingFiles[
]
jarFiles[
]
validation-mode: AUTO
shared-cache-mode: NONE
properties[
org.batoo.jpa.ddl: DROP
jboss.as.jpa.providerModule: org.batoo
]]
17:19:58,678 TRACE [org.jboss.modules](MSC service thread 1-5) Finding class org.batoo.jpa.core.BatooPersistenceProvider from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:19:58,678 TRACE [org.jboss.modules](MSC service thread 1-5) Finding local class org.batoo.jpa.core.BatooPersistenceProvider from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:19:58,678 TRACE [org.jboss.modules](MSC service thread 1-5) Loading class org.batoo.jpa.core.BatooPersistenceProvider locally from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:19:58,678 TRACE [org.jboss.modules](MSC service thread 1-5) Attempting to define class org.batoo.jpa.core.BatooPersistenceProvider in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:19:58,678 TRACE [org.jboss.modules](MSC service thread 1-5) Attempting to define package org.batoo.jpa.core in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)

17:20:40,234 DEBUG org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery Parsed query successfully

| select c from Course c |
| |

| [(select (LSELECT (ST_ID_AS c))) (LFROM (ST_FROM (ST_ID_AS (LQUALIFIED Course) c) LJOINS)) ] |

17:20:40,238 TRACE org.jboss.modules Finding class org.batoo.jpa.core.impl.criteria.jpql.Aliased from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,239 TRACE org.jboss.modules Finding local class org.batoo.jpa.core.impl.criteria.jpql.Aliased from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,239 TRACE org.jboss.modules Loading class org.batoo.jpa.core.impl.criteria.jpql.Aliased locally from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,240 TRACE org.jboss.modules Attempting to define class org.batoo.jpa.core.impl.criteria.jpql.Aliased in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,240 TRACE org.jboss.modules Defined class org.batoo.jpa.core.impl.criteria.jpql.Aliased in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,241 TRACE org.jboss.modules Finding class org.batoo.jpa.core.impl.criteria.jpql.Qualified from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,241 TRACE org.jboss.modules Finding local class org.batoo.jpa.core.impl.criteria.jpql.Qualified from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,242 TRACE org.jboss.modules Loading class org.batoo.jpa.core.impl.criteria.jpql.Qualified locally from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,242 TRACE org.jboss.modules Attempting to define class org.batoo.jpa.core.impl.criteria.jpql.Qualified in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,243 TRACE org.jboss.modules Defined class org.batoo.jpa.core.impl.criteria.jpql.Qualified in Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,288 TRACE org.jboss.modules Finding class org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl from Module "deployment.HelloJSF.war:main" from Service Module Loader
17:20:40,288 TRACE org.jboss.modules Finding local class org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,289 TRACE org.jboss.modules Found previously loaded class org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,290 TRACE org.jboss.modules Finding class org.batoo.jpa.core.impl.manager.EntityManagerImpl from Module "deployment.HelloJSF.war:main" from Service Module Loader
17:20:40,290 TRACE org.jboss.modules Finding local class org.batoo.jpa.core.impl.manager.EntityManagerImpl from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,290 TRACE org.jboss.modules Found previously loaded class org.batoo.jpa.core.impl.manager.EntityManagerImpl from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,320 TRACE org.jboss.modules Finding class org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery from Module "deployment.HelloJSF.war:main" from Service Module Loader
17:20:40,321 TRACE org.jboss.modules Finding local class org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)
17:20:40,321 TRACE org.jboss.modules Found previously loaded class org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery from Module "org.batoo:main" from local module loader @4d299f0a (roots: D:\tmp\Batoo\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules)

17:20:40,250 SEVERE javax.enterprise.resource.webcontainer.jsf.application Error Rendering View[/home.xhtml]: javax.el.ELException: /WEB-INF/templates/template.xhtml: Cannot parse query: Type is not managed: Course
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:90) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
Caused by: javax.persistence.PersistenceException: Cannot parse query: Type is not managed: Course
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:494) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerImpl.createQuery(EntityManagerImpl.java:375) [batoo-jpa-0.1.jar:]
at org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:425) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.proxies.EntityManager$454798756$Proxy$_$$WeldClientProxy.createQuery(EntityManager$454798756$Proxy$$$_WeldClientProxy.java) [weld-core-1.1.5.AS71.Final.jar:]
at com.example.bean.DataFactory.isDataCreated(DataFactory.java:282) [classes:]
at com.example.bean.DataFactory.createData(DataFactory.java:68) [classes:]
at com.example.bean.DataFactory.getDataMessage(DataFactory.java:289) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:133) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:299) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:127) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:46) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]
... 34 more
Caused by: javax.persistence.PersistenceException: Type is not managed: Course
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.getEntity(JpqlQuery.java:912) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructFrom(JpqlQuery.java:254) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructSelectQuery(JpqlQuery.java:651) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.construct(JpqlQuery.java:187) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.parse(JpqlQuery.java:1380) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:168) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:153) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:455) [batoo-jpa-0.1.jar:]
... 71 more

17:20:40,420 ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/HelloJSF].[Faces Servlet] Servlet.service() for servlet Faces Servlet threw exception: javax.persistence.PersistenceException: Type is not managed: Course
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.getEntity(JpqlQuery.java:912) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructFrom(JpqlQuery.java:254) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.constructSelectQuery(JpqlQuery.java:651) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.construct(JpqlQuery.java:187) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.parse(JpqlQuery.java:1380) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:168) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.criteria.jpql.JpqlQuery.(JpqlQuery.java:153) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerFactoryImpl.getJpqlQuery(EntityManagerFactoryImpl.java:455) [batoo-jpa-0.1.jar:]
at org.batoo.jpa.core.impl.manager.EntityManagerImpl.createQuery(EntityManagerImpl.java:375) [batoo-jpa-0.1.jar:]
at org.jboss.as.jpa.container.AbstractEntityManager.createQuery(AbstractEntityManager.java:425) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.proxies.EntityManager$454798756$Proxy$_$$WeldClientProxy.createQuery(EntityManager$454798756$Proxy$$$_WeldClientProxy.java) [weld-core-1.1.5.AS71.Final.jar:]
at com.example.bean.DataFactory.isDataCreated(DataFactory.java:282) [classes:]
at com.example.bean.DataFactory.createData(DataFactory.java:68) [classes:]
at com.example.bean.DataFactory.getDataMessage(DataFactory.java:289) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_06]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_06]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_06]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_06]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.ProducerMethod$1.produce(ProducerMethod.java:133) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:299) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:61) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:616) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:127) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:96) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:46) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.7-jbossorg-2.jar:]
at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:72) [jbossweb-7.0.13.Final.jar:]
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:227) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:302) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:304) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.7-jbossorg-2.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]

@hceylan
Copy link
Member

hceylan commented Oct 23, 2012

sveryovka,

Thank you taking time to submit the logs. However, I cannot really replicate the problem here. Would it be a good idea either:

  • Me setting up a Windows server on Amazon and sharing the VM with you?
  • You providing a remote desktop connection to your test environment?

I see no other way to advance on the issue, and I really do not let this go.

Regards,
Hasan Ceylan

@s4gh
Copy link
Author

s4gh commented Oct 24, 2012

I am really appreciated for your feedback and your willingness to help.
Unfortunately I can't provide remote desktop access for my PC. I can upload packaged JBoss (with installed) application on dropbox to verify whether exactly same app server + app will run on your side. This will mean that this is some problem with my environment. I will ask my coworkers to try this on their workstations. If this will not work we can think about next steps like Amazon.

Are you ok with this? If so do you have a Dropbox account? I need to know your email so that I could share packaged JBoss with you.

@hceylan
Copy link
Member

hceylan commented Oct 24, 2012

That's fine, do not worry about the remote desktop, I appreciate your help in return too.

Please do share the zipped JBoss with [email protected] Dropbox account.

@s4gh
Copy link
Author

s4gh commented Oct 25, 2012

You should have an access to my dropbox shared folder.

@hceylan
Copy link
Member

hceylan commented Oct 25, 2012

sveryovka,

Thank you, got the zip. I'll look into it as soon as I can.

@hceylan
Copy link
Member

hceylan commented Oct 27, 2012

Dear sveryovka,

I am sorry but with the JBoss you provided too, I cannot replicate the problem and it works fine.
Please try with another computer, if you continue to experience the problem please try with an English Windows Setup.

I suspect this might be a locale issue.

@s4gh
Copy link
Author

s4gh commented Nov 7, 2012

My locale is set to "US". The only custom option I had was "Use Ukrainian language for non-unicode application". But even after removing this custom option I am still getting same error. Also I've just noticed that there is another issue
#2
with exactly same problem I have.

@hceylan
Copy link
Member

hceylan commented Nov 12, 2012

Although this works for me, there is a better way to handle deploymen that is underway.
this should be resolved one the this issue has been resolved which is the top priority now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants