looks sweet.

i do have the CMP working with the data-mapping but am unable to get a BMP together.

tell me this.  I am trying to use a BMPContainer and have added  a method to my 
EmployeeRemote which will allow my bean to return an outside EmployeeWrapper object 
for other business objects to use.  the wrapper class is included in my jar bundle.  
when i deploy the jar with openejb everything works fine, but, on startup the log file 
says that it can't find the BMP Container defined in my conf file.  Have I violated 
some agreements somehow by adding the outside class?

I'm using an example I found in J2EE Patterns, Best Practices and Design Strategies.  
tryin to get a javajob.
--

--------- Original Message ---------

DATE: Thu, 29 Apr 2004 22:32:28
From: David Blevins <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: 

>On Tue, Apr 27, 2004 at 12:07:49PM -0400, graham king wrote: 
>> I'm always hesitant to post for the sake of asking something
>> silly,but, I don't know where to begin to solve this.
>
>Don't worry about asking "silly" questions.  Odds are other people
>have the same question too.
>
>Excuse the delay in responses--we've been working hard on a Geronimo release:
>  
>  http://www.theserverside.com/news/thread.tss?thread_id=25613
>
>> From what I can tell (which I'm still not so sure how it all works)
>> is that my ejb-jar.xml file defines the ejb fields to use. These are
>> then mapped to my mysql.cmp_or_mapping.xml file.
>
>The CMP layout is basically as such:
>
>the openejb.conf points to local and remote database.xml files, the
>database.xml files point to the mapping.xml.  Seems kind of goofy I
>know, but that is the by product of using a third-party (Castor) for
>persistence; we don't have the control to offer a simpler view.
>
>Odds are, you simply have a disconnect somewhere in the chain.
>
>> Here's the exception that I've gotte:
>> java.rmi.RemoteException: The bean encountered a non-application exception.; nested 
>> exception is: 
>> java.rmi.RemoteException: Attempt to create an entity bean 
>> (DeploymentID="EmployeeBean") that can not be persisted.; nested exception is: 
>> org.exolab.castor.jdo.ClassNotPersistenceCapableException: The class 
>> com.thejanehuts.ejb.employee.EmployeeBean is not persistence capable: no mapping 
>> was defined for the class 
>
>"no mapping was defined for the class" is Castor JDO's way of saying
>"I can't find a Castor mapping file for your class"
>
>If you are any good with a wiki (I'm not), feel free to dump anything
>you get working into here http://wiki.codehaus.org/openejb for others
>to use too.
>
>-David
>



____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

Reply via email to