[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Attachment: jpa-war-src-2.tar.bz2 Reattaching test case with apache license granted > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: persistence >Affects Versions: 2.0-M5 >Reporter: Jay D. McHugh > Assigned To: Kevan Miller > Fix For: 2.0-M5 > > Attachments: geronimo-3017-2.patch, geronimo-jira-3017.patch, > jpa-war-src-2.tar.bz2, 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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] 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: https://issues.apache.org/jira/browse/GERONIMO-3017 > 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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Attachment: jpa-war-src.tar.bz2 maven source project for jpa-war > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > 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.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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Attachment: jpa-war.war This is a simple war file that attempts to install a persistence unit and do a basic test of connectivity if you go to: http://localhost:8080/jpa-war/TestServlet The page should return 'factory test successful' But the war cannot be deployed without the attached patch. > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > 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.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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Patch Info: [Patch Available] Marking this issue to indicate that it has a patch. > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > 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 > > > 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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Attachment: geronimo-3017-2.patch Here is a second patch with only the discovery code in it (debugging removed). > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > 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 > > > 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.
[jira] Updated: (GERONIMO-3017) Web Apps (WAR files) that directly contain JPA entities cannot be deployed
[ https://issues.apache.org/jira/browse/GERONIMO-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jay D. McHugh updated GERONIMO-3017: Attachment: geronimo-jira-3017.patch Here is a patch that I think works (still testing). - It definitely stops the substring error. - It appears to allow the entities to be processed. It should only affect the deployment of WAR files that directly contain JPA entities. And, it contains some debugging code to show what it is doing. > Web Apps (WAR files) that directly contain JPA entities cannot be deployed > -- > > Key: GERONIMO-3017 > URL: https://issues.apache.org/jira/browse/GERONIMO-3017 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: persistence >Affects Versions: 2.0 >Reporter: Jay D. McHugh > Attachments: geronimo-jira-3017.patch > > > 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.