Hi,
First off, all you need to do to respond to the OpenJPA Users mailing list
is to address the e-mail with [email protected].  You can also use
utilities like nabble [1] or markmail [2] for monitoring and responding to
the Users and Dev mailing lists.  There is more information on the various
OpenJPA mailing lists on our website [3].

Back to your problem...  Have you tried specifying this Common.jar via the
<jar-file> element in the persistence.xml?  This would tell OpenJPA where to
look for referenced Entity classes.

FYI, it has been our understanding that finding Entity classes via the
Manifest in referenced jar files is not a spec requirement.  It sounds like
a "nice to have".  But, let's see if we can get you running with WAS and
OpenJPA.

Thanks,
Kevin

[1]  http://n2.nabble.com/OpenJPA-f208410.html
[2]  http://openjpa.markmail.org/
[3]  http://openjpa.apache.org/mailing-lists.html

On Mon, Apr 12, 2010 at 8:57 PM, Lu, Shengyuan <shengyuan.lu@
wincor-nixdorf.com> wrote:

>  Hi Kevin,
>
>
>
>   Thanks for answering my question on mail list!
>
>   Sorry to send a private mail to solve my OpenJPA problem. I post a
> problem about ‘*problem:entity could not be instantiated*’(
> http://mail-archives.apache.org/mod_mbox/openjpa-users/201004.mbox/%[email protected]%3e).
> I don’t know how to reply the mail-list.
>
>   My hibernate JPA works fine on *JBoss5* rather than *Websphere7*.
>
>   The DAO class is located on *ATMP.ear/DBAccessor.jar*, while the model 
> *WkstDeviceinfo*.java is on *Common.jar* which is referenced in 
> *DBAccessor.jar/META-INF/MANIFEST.MF*
>
>  Any advices are appreciated! Thank you very much!
>
>
>
> Regards,
>
> Michael
>
>
>
>   Here is orm.xml:
>
>
>
> *<?xml version="1.0" encoding="UTF-8"?>*
>
> *<entity-mappings version="1.0" xmlns="
> http://java.sun.com/xml/ns/persistence/orm"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://java.sun.com/xml/ns/persistence/orm
> http://java.sun.com/xml/ns/persistence/orm_1_0.xsd";>*
>
> *   <!-- DB listeners for WkstDeviceinfo -->*
>
> *   <entity class="com.wn.atmp.db.entity.device.WkstDeviceinfo">*
>
> *        <entity-listeners>*
>
> *            <!-- listeners -->*
>
> *            <entity-listener class="com.wn.atmp.event.ATMPTriggerEvents">
> *
>
> *                <post-persist method-name="triggerDeviceChangedEvent"/>*
>
> *                <post-update  method-name="triggerDeviceChangedEvent"/>*
>
> *                <!-- entity-listeners, pre-persist, post-persist,
> pre-remove, post-remove,*
>
> *                pre-update, post-update, post-load -->*
>
> *            </entity-listener>*
>
> *        </entity-listeners>*
>
> *    </entity>*
>
> *</entity-mappings>***
>
>
>

Reply via email to