org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/META-INF/dwspring-service.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints Caused by: java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints 2) It doesn't like the logging mechanism that spring is using and I get errors like this: Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor (LogFactoryImpl.java:416)

Oracle Community | brentryan | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Spring, JPA with hibernate as Persistence provider & Glassfish

    Oracle Community | 1 decade ago | brentryan
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/META-INF/dwspring-service.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints Caused by: java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints 2) It doesn't like the logging mechanism that spring is using and I get errors like this: Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor (LogFactoryImpl.java:416)

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanCreationException

      Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/META-INF/dwspring-service.xml]: Invocation of init method failed; nested exception is java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints Caused by: java.lang.LinkageError: Class org/xml/sax/Parser violates loader constraints 2) It doesn't like the logging mechanism that spring is using and I get errors like this: Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor (LogFactoryImpl.java:416)

      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance()
    2. Apache Commons Logging
      LogFactoryImpl.newInstance
      1. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
      1 frame