Results 1 to 6 of 6

Thread: Spring Roo and JBoss

Threaded View

  1. #1

    Default Spring Roo and JBoss

    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:

    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...
    What could be causing this?
    Last edited by jej2003; Nov 2nd, 2009 at 04:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •