Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / October 2003

Tip: Looking for answers? Try searching our database.

EJBException, causedBy: javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00942: table or view does not exist

Thread view: 
psamuel - 31 Oct 2003 18:29 GMT
EJBException, causedBy:javax.ejb.FinderException: Find failed:
java.sql.SQLException: ORA-00942: table or view does not exist

I get this error when I try to access (read) the table through an
entity bean (CMP).
I am using Jboss 3.2.2 and CMP 2.x and xdoclet tags to generate the
code.
When I check the jbosscmp-jdbc.xml, I am not seeing "<table-name>"
tag. But I have @ejb.persistence table-name="GROUP_NAME"
    @jboss.persistence table-name="GROUP_NAME" as tags defined in the
code.

Please help!

Thanks in advance!
psamuel
Marek Lange - 31 Oct 2003 22:07 GMT
psamuel schrieb:
> EJBException, causedBy:javax.ejb.FinderException: Find failed:
> java.sql.SQLException: ORA-00942: table or view does not exist
[quoted text clipped - 6 lines]
>      @jboss.persistence table-name="GROUP_NAME" as tags defined in the
> code.

I think the @jboss.persistence tag is not necessary in your case. Try
using @ejb.persistence table-name="GROUP_NAME". Is JBoss creating the
tables (did you set createTable="true" in your build file) or did you
create the table?

This always worked for me:
* @ejb.bean
*    type="CMP"
*    cmp-version="2.x"
*    name="Group"
*    jndi-name="GroupHome"
*    view-type="local"
*    primkey-field="groupId"
* @ejb.persistence table-name="UM_GROUP"

-marek


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.