Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Starting OpenJPA during container startup

Enrico Goosen

2008-06-24

Replies: Find Java Web Hosting

Author LoginPost Reply

I'm experiencing a problem in my web application and the problem seems to be
that OpenJPA hasn't completely initialized when the first request comes in
from a client.
In fact OpenJPA is only started when Spring injects the
EntityManagerFactory.
How do I get OpenJPA to startup when my webapp is being loaded by the
servlet container? (Tomcat 6)
We use Tomcat 6 for our testing environment, and Weblogic 9.2 for
production.

Here's the exception:
ERRORJun 24 16:59:17 An error occurred while parsing the query filter
"SELECT tblCdedes from TblCdedes tblCdedes where tblCdedes.cdetypTxt =
:cdetypTxt". Error message: The name "TblCdedes" is not a recognized entity
or identifier. Perhaps you meant TblCtcprs, which is a close match. Known
entity names: [TblAmdctl, TblAdr, TblFndmst, TblBrk, TblFnd, TblPdtbnf,
TblFndanvhst, TblItmdes, TblTrklnk, TblBrkbrn, TblTrkdet, TblCtcprs,
TblLnkfnd, TblCtcelccmc, TblPdtcde, TblFndnmehst, TblRlectcfnd, TblTrkitm,
TblFndbal, TblPdtbnfcde, TblFndctbhst]; nested exception is
<openjpa-1.1.0-r422266:657916 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "SELECT tblCdedes from TblCdedes tblCdedes where
tblCdedes.cdetypTxt = :cdetypTxt". Error message: The name "TblCdedes" is
not a recognized entity or identifier. Perhaps you meant TblCtcprs, which is
a close match. Known entity names: [TblAmdctl, TblAdr, TblFndmst, TblBrk,
TblFnd, TblPdtbnf, TblFndanvhst, TblItmdes, TblTrklnk, TblBrkbrn, TblTrkdet,
TblCtcprs, TblLnkfnd, TblCtcelccmc, TblPdtcde, TblFndnmehst, TblRlectcfnd,
TblTrkitm, TblFndbal, TblPdtbnfcde, TblFndctbhst]
--
Sent from the OpenJPA Users mailing list archive at Nabble.com.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.