dude,

you've only got a one column primary key; you don't need the TeamPK.java
class; get rid of it; it's only used if you have a composite PK in your er
model;

when you get rid of the PK class, then change the ejb-jar.xml file to the
following:
don't have anything set for 
        <prim-key-class></prim-key-class>

Try this and see how u go; if it doesnt work then answer the following
questions and email me again:

Q1. Did you create your teams via the .sql script?
Q2. What is you <commit-option> value set at in you
conf\default\standardjboss.xml?

Chris Tragas
-----------------------------------------
[EMAIL PROTECTED]
-----------------------------------------
www.atomicmedia.com
-----------------------------------------




> -----Original Message-----
> From: Shamis, Leonid [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 04, 2001 4:16 PM
> To: '[EMAIL PROTECTED]'
> Subject: [JBoss-user] Object with primary key not found in storage.
> PLEASE HELP!
> 
> 
> > Hello,
> > 
> > Please help me to find the problem, as I really reached a deadlock.
> > 
> > I have TEAM CMP EntityBean. After I deploy the ejb-jar file 
> and want to
> > test 
> > finding the entities in the TEAM table in the database by 
> primary key I
> > get the error:
> >     
> > >>>>        javax.ejb.ObjectNotFoundException: Object with 
> primary key WB not
> > found in storage    <<<<
> > 
> > I know for sure that there is entity with primary key "WB" 
> in the table.
> > 
> > Please find enclosed the complete package in a zip file 
> with the following
> > content:
> > 
> > META-INF\Manifest.mf                        <- files needed 
> for deployment below
> > META-INF\jboss.xml
> > META-INF\jaws.xml
> > META-INF\ejb-jar.xml
> > team\ejb\Team.java                  <- ejb source files below
> > team\ejb\TeamBean.java
> > team\ejb\TeamHome.java
> > team\ejb\TeamPK.java
> > team\ejb\Team.class
> > team\ejb\TeamBean.class
> > team\ejb\TeamPK.class
> > team\ejb\TeamHome.class
> > util\TeamDetails.java
> > util\TeamDetails.class
> > team-ejb.jar                                <- ejb-jar file 
> ready for deployment
> > create_team_table.sql                       <- script for 
> creating the TEAM
> > table (Oracle 8)
> > insert_team_data.sql                        <- script for 
> inserting data to the
> > TEAM table (Oracle 8)
> > buildEJB.txt                                <- build script 
> (sorry, I didn't
> > migrate to Ant yet)
> > packageEJB.txt                              <- script for 
> packaging the
> > ejb-jar file
> > buildClient.txt                             <- script for 
> compiling test
> > program (TestTeams.java)
> > runClient.txt                               <- script for 
> activating test
> > program (TestTeams.java)
> > CreateTeams.class                   <- java program for 
> inserting data
> > to the TEAM table (or use insert_team_data.sql)
> > CreateTeams.java
> > TestTeams.class                     <- test program that attempts to
> > call findByPrimaryKey(...)
> > TestTeams.java
> > TestTeams.log                               <- the log file 
> with the error
> > message
> > team_table_query.log                        <- query that 
> displays the data in
> > the TEAM table.
> > 
> Note: script files with extension .txt are actually windows 
> batch files
> renamed because of restriction of the mail server.
> 
> >   <<team-ejb-all.zip>> 
> >     (15.2KB)
> > 
> > Your help will be much appreciated.
> > 
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to