Hi, The error is: No "persistence.xml" files were found in the CLASSPATH In Kitchensink app it is located at: https://github.com/isisaddons/isis-app-kitchensink/blob/b6adf9cac331daa7d7c1c4663b0e86e8d79e441a/dom/src/main/java/META-INF/persistence.xml So after compilation and packaging it is in kitchensink-app-dom.jar#/META-INF/persistence.xml
Make sure *.xml are copied to the classpath by your build tool - https://github.com/isisaddons/isis-app-kitchensink/blob/b6adf9cac331daa7d7c1c4663b0e86e8d79e441a/dom/pom.xml#L37 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Apr 20, 2015 at 3:32 PM, Marianne Hagaseth < [email protected]> wrote: > H! > How to fix this? > > In persistence.xml: <persistence-unit name="quickstart"> Same is set in > the DataNucleus defaults in eclipse. Enable auto-enhancement on dom-project > is set. > Changes made from kitchensink-demo. > > Best, > Marianne. > > 14:26:45,819 (main) INFO [DataNucleus.Enhancer] - DataNucleus Enhancer > (version 3.2.11) for API "JDO" using JRE "1.7" > 14:26:45,831 (main) ERROR [DataNucleus.Enhancer] - DataNucleus Enhancer > completed with an error. Please review the enhancer log (at DEBUG level) > for full details. Some classes may have been enhanced but some caused errors > No "persistence.xml" files were found in the CLASSPATH yet you specified > as input the name ("quickstart") of a "persistence-unit" to enhance. You > must have a valid "persistence.xml" file in the CLASSPATH in a valid > location to use this option. > org.datanucleus.enhancer.NucleusEnhanceException: No "persistence.xml" > files were found in the CLASSPATH yet you specified as input the name > ("quickstart") of a "persistence-unit" to enhance. You must have a valid > "persistence.xml" file in the CLASSPATH in a valid location to use this > option. > at > org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:788) > at > org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:513) > at > org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1281) > 14:27:11,983 (main) INFO [DataNucleus.Enhancer] - DataNucleus Enhancer > (version 3.2.11) for API "JDO" using JRE "1.7" > 14:27:11,992 (main) ERROR [DataNucleus.Enhancer] - DataNucleus Enhancer > completed with an error. Please review the enhancer log (at DEBUG level) > for full details. Some classes may have been enhanced but some caused errors > No "persistence.xml" files were found in the CLASSPATH yet you specified > as input the name ("quickstart") of a "persistence-unit" to enhance. You > must have a valid "persistence.xml" file in the CLASSPATH in a valid > location to use this option. > org.datanucleus.enhancer.NucleusEnhanceException: No "persistence.xml" > files were found in the CLASSPATH yet you specified as input the name > ("quickstart") of a "persistence-unit" to enhance. You must have a valid > "persistence.xml" file in the CLASSPATH in a valid location to use this > option. > at > org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:788) > at > org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:513) > at > org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1281) >
