4 Replies Latest reply on Mar 6, 2006 11:23 AM by chahua wang

    NoClassDefFoundError :at com.sun.mail.handlers.multipart_mix

    chahua wang Newbie

      Hi folks,

      I have a servlet in a war using web service client stub codes.
      But when loading the servlet at the first time. I got the following exception

      NoClassDefFoundError :at com.sun.mail.handlers.multipart_mixed

      Actually, I have mail.jar in lib of war, and this jar is got from sun jwsdp. all jars in lib are got from sun webservice jwsdp jar.

      But after shutting down Jboss and restart Jboss again, There is no this exception any more ,
      is it a bug?, please help.

      Chwang

      2006-03-01 09:26:34,031 148357 ERROR [org.jboss.ejb.plugins.LogInterceptor] (http-0.0.0.0-8080-Processor23:) TransactionRolledbackException : PersistenceCommandExecutionException, causedBy:
      java.lang.NoClassDefFoundError
       at com.sun.mail.handlers.multipart_mixed.<init>(multipart_mixed.java:19)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at java.lang.Class.newInstance0(Unknown Source)
       at java.lang.Class.newInstance(Unknown Source)
       at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:497)
       at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:568)
       at javax.activation.DataHandler.getContent(DataHandler.java:501)
       at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1055)
       at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
       at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
       at javax.mail.Transport.send(Transport.java:79)
       at org.apache.log4j.net.SMTPAppender.sendBuffer(Unknown Source)
       at org.apache.log4j.net.SMTPAppender.append(Unknown Source)
       at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
       at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
       at org.apache.log4j.Category.callAppenders(Category.java:187)
       at org.apache.log4j.Category.forcedLog(Category.java:372)