Hello,
I get the same error, I am using Eclipse 3.21 with Hibernate 3.2.2, Struts 1.3.5, Spring 2.0.2 and many other open source in a big projet. I have the Exadel plugin installed and others.
The most simple HQL request <=> "select o from MyEntity as o" throwed the above exception. No more info from nowhere.
ANTL is a parser used to analyse the HQL request, and I knew the problem was coming from it but how and why ?
I was using antlr 2.7.7, I tryed antlr 2.7.6, 2.7.5 ..., nothing changed. There was only one antlr like jar in my classpth.
So, I took my project and put antlr to the top of my classpath and all worked fine.
Under Eclipse, Right click on your projet, property menu, Java Build path and look at the order and export table, put antlr jar at the top of the list.
If you are doing a J2EE project, play with the J2EE module depency.
If no path is describe nowhere, try to rename the antlr jar as aaaaaa.jar in oder to have it first when project will load the jar.
I must presume, because I am not sure, that one of my Eclipse plugin is mounting an antlr jar and is causing this classpath issue.
best regards,
Renaud.
|