geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay D. McHugh (JIRA)" <>
Subject [jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
Date Thu, 12 Apr 2007 17:49:18 GMT


Jay D. McHugh updated GERONIMO-3017:

    Attachment: jpa-war-src-2.tar.bz2

Here is a better version of the test.

Point your browser at http://localhost:8080/jpa-war/TestServlet

It sends output to the log/console as it:
- creates an entity
- persists the entity
- refinds the entity
- creates a new entity manager (everything up until here works)
- refinds the entity using the new entity manager (this fails)

The browser will show 'factory test successful' if everything works and will show 'factory
test failed' if any of the steps fails.

The compiled war file is include (or you can repackage it yourself)

> Web Apps (WAR files) that directly contain JPA entities cannot be deployed
> --------------------------------------------------------------------------
>                 Key: GERONIMO-3017
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: persistence
>    Affects Versions: 2.0-M5
>            Reporter: Jay D. McHugh
>         Assigned To: Jay D. McHugh
>         Attachments: geronimo-3017-2.patch, geronimo-jira-3017.patch, jpa-war-src-2.tar.bz2,
jpa-war-src.tar.bz2, jpa-war.war
> There is still a find and parse problem with persistence.xml in war files.
> It seems to work if you have your jpa entities in a jar file.
> But, if you have a WEB-INF/lib/META-INF/persistence.xml file, it finds it and dies with
a substring error.
> I have not tested to see if this is a problem for WAR files contained in an EAR.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message