java.lang.ExceptionInInitializerError

Server Fault | Hunt | 4 years ago
  1. 0

    Getting DVFactoryException when instantiating a new EntityManagerFactory

    Stack Overflow | 8 months ago | gvdm
    javax.persistence.PersistenceException: Unable to locate persistence units
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.org.apache.xerces.internal.impl.dv.DVFactoryException

      Schema factory class com.sun.org.apache.xerces.internal.impl.dv.xs.SchemaDVFactoryImpl does not extend from SchemaDVFactory.

      at com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance()
    2. Java RT
      SAXParser.parse
      1. com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:71)
      2. com.sun.org.apache.xerces.internal.impl.dv.SchemaDVFactory.getInstance(SchemaDVFactory.java:52)
      3. com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar$BuiltinSchemaGrammar.<init>(SchemaGrammar.java:158)
      4. com.sun.org.apache.xerces.internal.impl.xs.SchemaGrammar.<clinit>(SchemaGrammar.java:904)
      5. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.<init>(XMLSchemaValidator.java:1094)
      6. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.configurePipeline(XML11Configuration.java:1149)
      7. com.sun.org.apache.xerces.internal.parsers.XIncludeAwareParserConfiguration.configurePipeline(XIncludeAwareParserConfiguration.java:151)
      8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:778)
      9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
      10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
      11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
      12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
      13. javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      13 frames
    3. Deployment Object Library
      ApplicationFactory.openArchive
      1. com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:306)
      2. com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:233)
      3. com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:631)
      4. com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:373)
      5. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:243)
      6. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:252)
      7. com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
      8. com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:165)
      8 frames
    4. Deployment Related JavaEE Core Classes
      DolProvider.load
      1. org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:185)
      2. org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:94)
      2 frames
    5. Kernel Classes
      InstallerThread.run
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:827)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:769)
      3. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
      4. com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
      5. com.sun.enterprise.v3.admin.adapter.InstallerThread.load(InstallerThread.java:210)
      6. com.sun.enterprise.v3.admin.adapter.InstallerThread.run(InstallerThread.java:108)
      6 frames