Skip to Content
0
Former Member
Apr 19, 2007 at 11:48 AM

AppLockingTechnicalLockException with Entity beans

13 Views

I have an EJB project with entity beans. Datasource is Oracle.

Functionality was find earlier, but after a refactoring, I keep receiving error

com.sap.engine.services.applocking.exception.AppLockingTechnicalLockException: Table EMPLOYEEBEAN not found in catalog

at com.sap.engine.services.applocking.TableLockingImpl.getTable(TableLockingImpl.java:628)

My ejb-jar.xml and persistent.xml hasn't changed (except the path to the java classes for the Ejbs in the ejb-jar.xml). The table name for the entity bean is set differently in persistent.xml

<entity-bean>

<ejb-name>EmployeeBean</ejb-name>

<table-name>TMP_EMPLOYEES</table-name>

Why does container try to lock record in EMPLOYEEBEAN table? When I disable automatic locking, the container receives an SQL exception "... table does not exist ..". So somehow, it is using EMPLOYEEBEAN as the table instead of TMP_EMPLOYEE.

Can someone help me with that?