0 Replies Latest reply: Nov 17, 2011 2:42 PM by bmartin RSS

    JavaMail AS7 NoClassDefFoundError: javax/mail/Session?

    bmartin Newbie

      I'm trying to setup JavaMail per a discussion I found here.




      I keep getting the following error.  I blocked out the smtp server address but there is a valid value there.


      11:06:54,371 INFO  [org.jboss.as.mail.extension.MailSubsystemAdd] (Controller Boot Thread) operation: {

          "address" => [

              ("subsystem" => "mail"),

              ("mail-session" => "java:/Mail")


          "operation" => "add",

          "jndi-name" => "java:/Mail",

          "user-name" => "nobody",

          "password" => "password",

          "smtp-server-address" => "XXX.168.XXX.XXX",

          "smtp-server-port" => "25"


      11:06:54,386 ERROR [org.jboss.as.controller] (Controller Boot Thread) Operation ("add") failed - address: ([

          ("subsystem" => "mail"),

          ("mail-session" => "java:/Mail")

      ]): java.lang.NoClassDefFoundError: javax/mail/Session

          at org.jboss.as.mail.extension.MailSessionAdd.performRuntime(MailSessionAdd.java:90)

          at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.0.2.Final.jar:7.0.2.Final]


      What am I missing?  I see the activation.jar & mail.jar in the modules directory, why cant the server see them?  Your help would be appreciated.