Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

JPA Console - Missing table: MockSecureEntity

$
0
0

Hello

 

I have spent quiet some time now trying to get the JPA console working on my IDEA 12 installation. At first i struggled with classpath issues but i think that is resolved now. What happens now is that whatever i try to query i get a Hibernate exception stating I am missing the table MockSecurityEntity. The only relevant topic i can find on this is a post on this forum, http://devnet.jetbrains.com/message/5246165#5246165 . The asker of that question came to the conclusion that it was a classpath issue for him. Unfortunately I don’t know if it is for me, since i added jboss-seam.jar which MockSecurityEntity is a part of.

 

What i cant get my head around is why a Seam unit test would get in the way.

 

MockSecurityEntity is not referenced from any files in my project. The project also deploys without trouble.

 

Question:

Do anyone know how to solve it? If yes, do you know why a seam unit test would cause this error?

 

Error log:

java.lang.RuntimeException: org.hibernate.HibernateException: Missing table: MockSecureEntity

at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1080)

at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:116)

at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:317)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)

at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)

at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)

at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)

at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)

in JpaFacadeImpl.createEntityManagerFactory(JpaFacadeImpl.java:16)


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>