Showing posts with label WAS. Show all posts
Showing posts with label WAS. Show all posts

June 19, 2012

org.hibernate.hql.ast.QuerySyntaxException

Description: org.hibernate.hql.ast.QuerySyntaxException: Tablename is not mapped [SELECT id
FROM Tablename] when trying to run NamedQuery in JPA. 



Reason/Solution: Put simply, you are using the table name instead of the Entity class name mapped in persistence.xml. 


So if table USERS is mapped to entity class User, your query will need User and not USERS. 



November 05, 2007

CREATE_LISTENER_FAILED_4

Description: This is often encountered when you try to start your server (WAS). It is typically seen with RAD6.0. I never came across the problem with RAD 7.0.

Reason: Occurs when the server process related to a particular server instance is not terminated and you try to start the same server. So the applications running on the ports give a problem because the port is already occupied.

Solution: Go to task manager, and end the process in the name java.exe.

WARNING: If you have multiple servers running, you might risk ending some other server process.