0 Replies Latest reply on Oct 17, 2007 5:35 PM by muanis

    ex05_1 Problems on Cient_3

      I started getting some erros when executing Client_3, on console the following was logged:

      JPA-QL compliance requires select clause [FROM com.titan.domain.Cabin c WHERE c.id = 1]

      My setup:
      JBoss 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
      Patched by
      jboss-EJB-3.0_RC9-FD (http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063&release_id=447567)

      After some googling I found some notes, and according to Wolfgang Knauf
      in (http://www.jboss.org/?module=bb&op=viewtopic&t=90719), after RC8 there was some changes to Hibernate wich you need to include select clause for conforming to the specs.

      So, in the ex05_1 the TraveAgentBean must be edited in lines 51 and 62:

      // change line 51 and line 62 from
      // ... createQuery("FROM Cabin c WHERE c.id = 1") ...
      // to
      createQuery("SELECT c FROM Cabin c WHERE c.id = 1")


      This way Client_3 works smoothly, hope it helps others.

      muanis