-
Notifications
You must be signed in to change notification settings - Fork 2
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
Comments
Dear Serhiy, Batoo JPA since it is in incubation changing so fast. 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. |
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 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 java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06] |
OK. Let me check the app... |
Thank you for the report Sveryovka. The changes are committed to the repository. |
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. |
Would you turn DEBUG in org.batoo.jpa in log and post the log? |
sveryovka, Have you had a chance to check that? |
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) [ 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,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 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 |
sveryovka, Thank you taking time to submit the logs. However, I cannot really replicate the problem here. Would it be a good idea either:
I see no other way to advance on the issue, and I really do not let this go. Regards, |
I am really appreciated for your feedback and your willingness to help. 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. |
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. |
You should have an access to my dropbox shared folder. |
sveryovka, Thank you, got the zip. I'll look into it as soon as I can. |
Dear sveryovka, I am sorry but with the JBoss you provided too, I cannot replicate the problem and it works fine. I suspect this might be a locale issue. |
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 |
Although this works for me, there is a better way to handle deploymen that is underway. |
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
The text was updated successfully, but these errors were encountered: