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
  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)
  2. 0
    samebug tip
    Check Servers Launch Configuration in Eclipse. See the details below.
  3. 0
    samebug tip
    Mixed JpaTransactionManager with JTA transaction type in the beans.xml and persistence.xml
    via spring.io
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Add slf4j dependency to your pom.xml
  6. 0
    samebug tip
    Your applicationcontext.xml has a transactionManager defined. Your would need to remove it or add an entity manager.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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