I had the same problem with JBoss 3.2.5, and I will try to explain you how to fix it.
Your problem is that the EJB-QL command contains Enter in the select command:
select distinct object(p) from Player p
where p.salary between ?1 and ?2
Try to change the select command to look like this (write the select command in only one line) :
select distinct object(p) from Player p where p.salary between ?1 and ?2
That worked. Thanks for your help Daniels.
But now I am getting the following error :
WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=local/LeagueEJB,service=EJBRuntimeErrorException: java.lang.NoSuchMethodError Cause: java.lang.NoSuchMethodError at org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:99)
Possibly this is some simple problem and I may need to look into the code - but please let me know if you know offhand the cause and/or solution.
Again, appreciate the help.