Additional information about this solution... You will want to set the default java configuration for javamail to point to your dspace javamail, otherwise it might get reset if an update redoes the configuration automatically. This is how I setup the java alternative to point to the dspace javamail.
To see how it is currently configured: [EMAIL PROTECTED] /usr/sbin/alternatives --display javamail To make the dspace preferred method available: [EMAIL PROTECTED] /usr/sbin/alternatives --install /usr/share/java/javamail.jar javamail /dspace/webapps/xmlui/WEB-INF/lib/mail-1.4.jar 4289 To select the dspace method as default: [EMAIL PROTECTED] /usr/sbin/alternatives --config javamail (select the javamail you just installed) Hope this helps others that might have the same issue. Peace, Sean Sean Hennessee wrote: > Problem solved!! > > I deleted /var/lib/tomcat5/common/lib/[javamail].jar, a link, and > restarted tomcat5. Now email works! Thanks for all your help! > > Peace, > Sean > > Sean Hennessee wrote: >> I have the same dspace, mail-1.4.jar file as you do on your system. >> >> [dspace lib]# pwd >> /dspace/webapps/xmlui/WEB-INF/lib >> [dspace lib]# jar tf mail-1.4.jar | grep -i smtp >> com/sun/mail/smtp/ >> com/sun/mail/smtp/DigestMD5.class >> com/sun/mail/smtp/SMTPAddressFailedException.class >> com/sun/mail/smtp/SMTPAddressSucceededException.class >> com/sun/mail/smtp/SMTPMessage.class >> com/sun/mail/smtp/SMTPOutputStream.class >> com/sun/mail/smtp/SMTPSSLTransport.class >> com/sun/mail/smtp/SMTPSendFailedException.class >> com/sun/mail/smtp/SMTPTransport.class >> [dspace lib]# >> >> But I also have a bunch of mail*.jar files on the system that I'm not >> sure about. Can any of these be interfering with proper handling of >> SMTP? How do I determine this, or can I just remove them? >> >> /home/dspace/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar >> /root/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar >> /usr/share/java/classpathx-mail-1.3.1-monolithic-1.1.1.jar >> /usr/share/java/classpathx-mail-1.3.1-monolithic.jar -> >> classpathx-mail-1.3.1-monolithic-1.1.1.jar >> /usr/share/java/javamail.jar -> /etc/alternatives/javamail >> /usr/share/java/classpathx-mail/imap-1.3.1.jar -> mail-1.3.1-providers.jar >> /usr/share/java/classpathx-mail/imap.jar -> providers.jar >> /usr/share/java/classpathx-mail/mail-1.3.1-api-1.1.1.jar >> /usr/share/java/classpathx-mail/mail-1.3.1-api.jar -> >> mail-1.3.1-api-1.1.1.jar >> /usr/share/java/classpathx-mail/mail-1.3.1-providers-1.1.1.jar >> /usr/share/java/classpathx-mail/mail-1.3.1-providers.jar -> >> mail-1.3.1-providers-1.1.1.jar >> /usr/share/java/classpathx-mail/mailapi.jar -> mail-1.3.1-api.jar >> /usr/share/java/classpathx-mail/nntp-1.3.1.jar -> mail-1.3.1-providers.jar >> /usr/share/java/classpathx-mail/nntp.jar -> providers.jar >> /usr/share/java/classpathx-mail/pop3-1.3.1.jar -> mail-1.3.1-providers.jar >> /usr/share/java/classpathx-mail/pop3.jar -> providers.jar >> /usr/share/java/classpathx-mail/providers.jar -> mail-1.3.1-providers.jar >> /usr/share/java/classpathx-mail/smtp-1.3.1.jar -> mail-1.3.1-providers.jar >> /usr/share/java/classpathx-mail/smtp.jar -> providers.jar >> /var/lib/tomcat5/common/lib/[javamail].jar -> /usr/share/java/javamail.jar >> >> Peace, >> Sean >> >> Reuben Pasquini wrote: >>> It looks like the javax.mail system cannot find the >>> classes that implement SMTP. >>> Do you have a mail.jar in your webapp classpath ? >>> I'd expect some mail.jar file to be in WEB-INF/lib or >>> in the Tomcat root lib directories someplace. >>> You can get a fresh copy of the SUN mail.jar implementation here: >>> http://java.sun.com/products/javamail/ >>> >>> If you do have a mail.jar file, then you can make sure it's >>> not missing SMTP for some reason with 'jar tf'. >>> >>> dspace15/webapps/xmlui/WEB-INF/lib$ jar tf mail-1.4.jar | grep -i smtp >>> com/sun/mail/smtp/ >>> com/sun/mail/smtp/DigestMD5.class >>> com/sun/mail/smtp/SMTPAddressFailedException.class >>> com/sun/mail/smtp/SMTPAddressSucceededException.class >>> com/sun/mail/smtp/SMTPMessage.class >>> com/sun/mail/smtp/SMTPOutputStream.class >>> com/sun/mail/smtp/SMTPSSLTransport.class >>> com/sun/mail/smtp/SMTPSendFailedException.class >>> com/sun/mail/smtp/SMTPTransport.class >>> >>> Good luck! >>> Reuben >>> >>>>>> Sean Hennessee <[EMAIL PROTECTED]> 6/5/2008 10:51 AM >>> >>> Thanks for the suggestion, Pere, but that didn't seem to help this >>> time. >>> These packages were installed: java-1.4.2-gcj-compat >>> java-1.4.2-gcj-compat-devel libgcj libgcj-devel. >>> >>> Those packages are now removed, (and system rebooted), but I'm still >>> getting the same errors whenever dspace attempts to send email. The >>> only >>> java packages installed now are the "Sun" versions. >>> >>> Peace, >>> Sean >>> >>> Pere Villega wrote: >>>> Do you have "gcj" packages (the GNU Java compiler) installed? We had >>>> lots of problems under Red Hat because of it, after removing its >>>> packages everything worked fine. >>>> >>>> Check if that solves your issue. >>>> >>>> Regards, >>>> Pere >>>> >>>> On Thu, 2008-06-05 at 07:46 -0700, Sean Hennessee wrote: >>>>> I recently installed DSpace 1.5 on a fresh install of >>> RHEL5/Postgresql. >>>>> While I can login using the manually created administrative account, >>> I >>>>> cannot create any new accounts using the register page due to an >>> error >>>>> whenever DSpace attempts to send email. This happens when attempting >>> to >>>>> register as well as when attempting to reset a password of a >>> manually >>>>> created account. >>>>> >>>>> I have already debugged sendmail and using mail to send email from >>> the >>>>> shell prompt; that all works fine to any email address. Some issues >>> I've >>>>> googled in non-dspace java applications is having multiple/wrong >>>>> mail/jar libraries that have not implemented the smtp handler >>> correctly, >>>>> but it appears that dspace has it's own mail/jar libraries. In >>>>> particular, the other suggestions are removing all but one mail.jar >>>>> library from the classpath, but I don't see where/how to do that >>> with >>>>> dspace. (I'm not too experienced with Java/JSM applications, >>> although I >>>>> have a lot of experience with SysAdmin and web applications in >>> general.) >>>>> Any help with this would be appreciated. >>>>> >>>>> Detailed error messages here: >>>>> http://pastebin.com/m70a65de6 >>>>> >>>>> Control panel information below. >>>>> >>>>> Peace, >>>>> Sean >>>>> >>>>> Control Panel info: >>>>> =================== >>>>> Java and Operating System >>>>> Java Runtime Environment Version: 1.6.0_06 >>>>> Java Runtime Environment Vendor: Sun Microsystems Inc. >>>>> Operating System Name: Linux >>>>> Operating System Architecture: i386 >>>>> Operating Systesm Version: 2.6.18-92.el5 >>>>> >>>>> >>>>> DSpace Installation Directory: /dspace >>>>> DSpace Base URL: http://dspace.nacs.uci.edu:8080 >>>>> DSpace Host Name: dspace.nacs.uci.edu >>>>> Name of the Site: DSpace - UCI Library >>>>> Database Name: postgres >>>>> Database URL: jdbc:postgresql://localhost:5432/dspace >>>>> JDBC Driver: org.postgresql.Driver >>>>> Maximum Number of DB Connections in Pool: 30 >>>>> Max DB Wait Time: 5000 >>>>> Max Idle Connections: -1 >>>>> SMTP Mail Server: localhost >>>>> From E-mail Address: [EMAIL PROTECTED] >>>>> Feedback Recipient: [EMAIL PROTECTED] >>>>> General Site Administration E-mail: [EMAIL PROTECTED] >>>>> >>>>> >>>>> Web Continuations >>>>> Interpreter Last Access State >>>>> resource://aspects/EPerson/sitemap.xmap 2 minutes Active ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

