2 Replies Latest reply on Aug 14, 2006 9:23 AM by mveitas

    problems with log4j and JMS...

    walabarse

      Hi people,
      I have some problems using JBoss, I would be gratefull if somebody
      could help me.

      The erros happen when when the JBoss is starting and I have no *.war
      in deploy directory.


      ERROR 1
      =======

      2006-08-02 10:09:11,015 ERROR [STDERR] log4j:ERROR A
      "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable
      to a "org.apache.log4j.spi.ErrorHandler" variable.
      2006-08-02 10:09:11,015 ERROR [STDERR] log4j:ERROR The class
      "org.apache.log4j.spi.ErrorHandler" was loaded by
      2006-08-02 10:09:11,015 ERROR [STDERR] log4j:ERROR [WebappClassLoader
      delegate: false
      repositories:
      /WEB-INF/classes/
      ----------> Parent Classloader:
      java.net.FactoryURLClassLoader@13816e0
      ] whereas object of type
      2006-08-02 10:09:11,015 ERROR [STDERR] log4j:ERROR
      "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by
      [org.jboss.system.server.NoAnnotationURLClassLoader@1833955].
      2006-08-02 10:09:11,046 ERROR [STDERR] log4j:ERROR Could not create an
      Appender. Reported error follows.
      2006-08-02 10:09:11,046 ERROR [STDERR] java.lang.ClassCastException:
      org.jboss.logging.appender.DailyRollingFileAppender


      ERROR 2
      =======


      2006-08-02 10:09:13,171 DEBUG
      [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting
      jboss.mq:service=PersistenceManager
      2006-08-02 10:09:13,171 DEBUG
      [org.jboss.mq.pm.jdbc2.PersistenceManager] Creating Schema
      2006-08-02 10:09:13,171 DEBUG
      [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with
      SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL,
      DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1),
      MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) )
      java.sql.SQLException: Table already exists: JMS_MESSAGES in statement
      [CREATE CACHED TABLE JMS_MESSAGES]

      Thanks so Much,

        • 1. Re: problems with log4j and JMS...

          from what I can see JBoss support group is completely incapable of responding to such repeatable error. Good luck. I have posted large number of questions here and I have never received any answer from anyone.

          • 2. Re: problems with log4j and JMS...
            mveitas

            Do you happen to have a log4j.jar file in your application (EAR, WAR, SAR, etc)? JBoss has it's own log4j and b/c of some classloading issues, you have to use their version. If you want to upgrade, you gotta upgrade the log4j.jar in server/(default|all|minimal)/lib.

            -Matt