2 Replies Latest reply on Dec 31, 2002 10:23 AM by mboulatian

    loader constraints violated

    mboulatian

      I've integrated sonicmq as a jms provider. jboss started beautifully. But when I send a message to the particular queue to be delivered to message-driven bean, I get strange error: ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy:
      javax.ejb.EJBException: Unexpected Error
      java.lang.LinkageError: loader constraints violated when linking javax/transaction/UserTransaction class
      at org.jboss.ejb.MessageDrivenEnterpriseContext.(MessageDrivenEnterpriseContext.java:60) ...

      I am including my code for anyone to look at. I am not really sure if this is a bug or else. I've seen some postings about 'loader constraints violated...' error message that people get in various circumstances. No one seems to have a clue or solution. Is this one of those?

        • 1. Re: loader constraints violated

          This is a packaging problem.

          Most likely, you have javax/transaction classes in two
          places and the linker is getting confused between
          the two versions of the classes.

          Regards,
          Adrian

          • 2. Re: loader constraints violated
            mboulatian

            Thanks a lot Adrian. You were right. The class javax.transaction.UserTransaction was also in the sonic_XA.jar. I removed sonic jars from the lib directory and moved elsewhere with references in the classpath. That did it. Thanks a lot again.