I am building an application using Spring roo which deploys perfectly to Tomcat, but I also have a requirement to deploy it to JBoss. After battling through some issues with the persistence.xml file being loaded by JBoss I have gotten things to load without errors, but now when trying to access the normal roo generated JSPs all of my entities throw an error saying:
What could be causing this?Code:16:37:22,546 ERROR [STDERR] java.lang.IllegalArgumentException: org.hibernate.hq l.ast.QuerySyntaxException: Predicate is not mapped [select o from Predicate o] 16:37:22,546 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:601) 16:37:22,546 ERROR [STDERR] at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:96) 16:37:22,546 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:37:22,546 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:37:22,546 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:37:22,546 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597) 16:37:22,546 ERROR [STDERR] at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) 16:37:22,546 ERROR [STDERR] at $Proxy438.createQuery(Unknown Source) 16:37:22,546 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ...truncated...


Reply With Quote