wood burning stoves*
The moose likes Tomcat and the fly likes Classpath problem in Redhat 8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Classpath problem in Redhat 8" Watch "Classpath problem in Redhat 8" New topic
Author

Classpath problem in Redhat 8

Arun Bommannavar
Ranch Hand

Joined: Jan 11, 2003
Posts: 53
I think I have a problem with CLASSPATH. I like to send e-mail using JSP-JSTTL. Let me first describe the setup and then the error in the JSP page.
I am usingRedhat 8.0 box with Tomcat5.0.14,jakarta-taglibs-standard-1.1.0-B1,JavaMail 1.3.1 and JavaBeans Activation Framework 1.0.2. I have copied mail.jar and activation.jarto the lib directory of java installation.
Then I modified the java.shin /etc/profile.ddirectory as follows:
exportCLASSPATH=$CLASSPATH:$JAVA_HOME/lib/activation.jar:$JAVA_HOME/lib/mail.jar
When I do echo $CLASSPATH, I do see the whole path correctly.
I have copiedtaglibs-mailer.tldand to $TOMCAT/webapps/myApp1/WEB-INF and
copied taglibs-mailer.jarto $TOMCAT/webapps/myApp1/WEB-INF/lib directory.
Here is my relevant part of thejsp. I have removed the enclosing brackets
taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1" prefix="mt"
mt:mailserver="nameofMyserver" to="myE-mailaddress" from="myE-mailaddress" subject="Test mail" >
mt:messageThis is a test /mt:message
mt:send/
/mt:mail

The root cause of the error is as follows:
java.lang.NoClassDefFoundError:javax/mail/Authenticator

Could anyone tell me whatsthe solution? I understand that the ..jar files are not being found but when I do echo $CLASSPATH, the jar files are shown correctly.
Regards
Arun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classpath problem in Redhat 8