0 Replies Latest reply on Apr 30, 2002 8:07 PM by Gerald Hewes

    Duplicate jar files a bad thing?

    Gerald Hewes Newbie

      My application was failing with

      19:04:23,225 WARN [LogInterceptor] Unexpected Error
      java.lang.IllegalAccessError: try to access field javax.mail.Service.session from class javax.mail.Message
      at javax.mail.Message.(Message.java:91)
      at javax.mail.internet.MimeMessage.(MimeMessage.java:201)
      at com.sun.mail.pop3.POP3Message.(POP3Message.java:43)
      at com.sun.mail.pop3.POP3Folder.createMessage(POP3Folder.java:276)
      at com.sun.mail.pop3.POP3Folder.getMessage(POP3Folder.java:257)
      at javax.mail.Folder.getMessages(Folder.java:857)


      I noticed that mail.jar exists twice, once in lib/ext, another under jakarta-tomcat/... when using the combined
      JBoss+Tomcat server. It's also loaded twice if you examine the log file.

      If I remove the mail.jar in Tomcat my EJB now works.
      Is this a bug in the intergrated JBoss+Tomcat?