wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes EJB-QL compile error: FROM not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB-QL compile error: FROM not found" Watch "EJB-QL compile error: FROM not found" New topic
Author

EJB-QL compile error: FROM not found

Matt Kim
Greenhorn

Joined: Mar 01, 2004
Posts: 26
Hi all,
I'm not sure if this is a container related issue or an EJB related issue.
I seem to be getting this error from Jboss:
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement ''; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: FROM not found)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:50)
The weird thing is... it's saying that the EJB-QL is in my entity bean called MessageCounter, but I don't have any EJB-QL statements in it.
Here is my XML file:
<entity>
<display-name>MessageCounter</display-name>
<ejb-name>MessageCounter</ejb-name>
<local-home>ca.jambo.jradio.ejb.entity.MessageCounterHome</local-home>
<local>ca.jambo.jradio.ejb.entity.MessageCounter</local>
<ejb-class>ca.jambo.jradio.ejb.entity.MessageCounterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>ca.jambo.jradio.ejb.pk.MessageCounterPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>MessageCounter</abstract-schema-name>
<cmp-field>
<field-name>messageId</field-name>
</cmp-field>
</entity>

Anybody have the same problem?
My setup is jboss-3.2.3, MySQL, and jBuilder as the IDE.
Regards,
Matt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB-QL compile error: FROM not found
 
Similar Threads
Jboss EJB-QL compile error: FROM not found
The return type of an ejbCreate(...) method must be the entity bean's primary key typ
CMP and sequence in oracle
Entity EJB & env-entry problem with WebLogic7
web.xml error