AW: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

To compile the servlet you have to have the mail jars in the classpath.
(mail.jar and activation.jar)

 -Ursprüngliche Nachricht-
 Von: chad kellerman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 14:38
 An: [EMAIL PROTECTED]
 Betreff: SendMailServlet.class
snip/
 javac SendMailServlet.java
snip/
 SendMailServlet.java:1: error:Cannot find type javax/mail/Message
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

I guess that's still the same error, you get just a 
different message with the other jdk.

mail.jar in probaly not in the classpath when you call javac.

 -Ursprüngliche Nachricht-
 Von: chad kellerman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 16:42
 An: Tomcat Users List
 Betreff: Re: SendMailServlet.class
snip/ 
 SendMailServlet.java:7: cannot resolve symbol
 symbol  : class Message  
 location: package mail
 import javax.mail.Message;
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: SendMailServlet.class

2002-02-06 Thread Ralph Einfeldt

That not his problem, he can't even compile the classes.

Saw your previous posts, but I can't help you as we didn't 
have any problems with JavaMail.

 -Ursprüngliche Nachricht-
 Von: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 6. Februar 2002 17:02
 An: Tomcat Users List
 Betreff: Re: SendMailServlet.class
snip/
 Although I have added the activation, mail and pop3 JAR files 
 to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, 
 $TOMCAT_HOME/webapps/app/WEB-INF/lib I
 could run my application, but when I press a button to send 
 the mail,  I got an error message on the console and the mail 
 is not sended... I think the wrong thing
 is the Tomcat configuration, isn't it? and not the libraries you need.
 
 The error is the follow:
 javax.mail.NoSuchProviderException: No 
 provider for Address type: rfc822
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: SendMailServlet.class

2002-02-06 Thread chad kellerman

Ok,

Got it.  Geesh, computers really get on my nerves.  ;^)

I saw that SendMailServlet.java needed two jar files to compile.  And since no matter 
what I did to set the CLASS_PATH it would not work. So I added the jar files in the 
line:

/usr/java/jdk1.3.1_01/bin/javac -classpath 
../../../../common/lib/mail.jar:../../../../common/lib/servlet.jar SendMailServlet.java

THis is on Linux, I think windows needs a ; instead of a :

I hope this helps everyone.  Now on the SSL.

Chad



My other computer is your linux box.



On Wed, 6 Feb 2002 17:14:31 +0100
Ralph Einfeldt [EMAIL PROTECTED] wrote:

 That not his problem, he can't even compile the classes.
 
 Saw your previous posts, but I can't help you as we didn't 
 have any problems with JavaMail.
 
  -Ursprüngliche Nachricht-
  Von: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 6. Februar 2002 17:02
  An: Tomcat Users List
  Betreff: Re: SendMailServlet.class
 snip/
  Although I have added the activation, mail and pop3 JAR files 
  to the CLASSPATH, TOMCAT_HOME/lib, $TOMCAT_HOME/common/lib, 
  $TOMCAT_HOME/webapps/app/WEB-INF/lib I
  could run my application, but when I press a button to send 
  the mail,  I got an error message on the console and the mail 
  is not sended... I think the wrong thing
  is the Tomcat configuration, isn't it? and not the libraries you need.
  
  The error is the follow:
  javax.mail.NoSuchProviderException: No 
  provider for Address type: rfc822
 snip/
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]