Error reporting of undeclared data-sources from persistence.xml with the file path and such -------------------------------------------------------------------------------------------
Key: GERONIMO-3770 URL: https://issues.apache.org/jira/browse/GERONIMO-3770 Project: Geronimo Issue Type: Improvement Security Level: public (Regular issues) Components: usability Affects Versions: 2.1 Reporter: Jacek Laskowski When persistence.xml uses <jta-data-source>jdbc/sample</jta-data-source> and no other files are in ear the following error is printed out: Error: Unable to distribute ear-ejb-beanname.ear: Unable to resolve reference "JtaDataSourceWrapper" in gbean default/ear-ejb-beanname/1200851914187/car?EJBModule=ear-ejb-beanname-ejb.jar,J2EEApplication=default/ear-ejb-beanname/1200851914187/car,PersistenceUnitModule=ear-ejb-beanname-ejb.j ar,j2eeType=PersistenceUnit,name=ear-ejb-beanname-ejbPU to a gbean matching the pattern [?name=jdbc/sample#org.apache.geronimo.naming.ResourceSource] due to: No matches for referencePatterns: [?name=jdbc/sample#org.apache.geronimo.naming.ResourceSource] It could be better off if a user faced a message like this: Unable to resolve "jdbc/sample" declared in persistence.xml (path=ejb-module.jar/META-INF/persistence.xml) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.