JavaMail API ?

2005-03-01 Thread Nikola Milutinovic
Hi all.
I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice 
that JavaMail API is missing from BOTH Tomcat and JRE. There is no 
javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar

As a consequence, I cannot use Mail API (javax.mail.*) without adding 
javamail-1.3.2.jar to ${CATALINA_HOME}/common/lib.

What is the story on this? Is JRE 1.5.0 supposed to have or not to have 
javax.mail.*?

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JavaMail API ?

2005-03-01 Thread Nikola Milutinovic
Nikola Milutinovic wrote:
Hi all.
I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice 
that JavaMail API is missing from BOTH Tomcat and JRE. There is no 
javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar

It is also missing JAF (Java Activation Framework).
I mean, no problem, I CAN get a hold of those JARs, but really, what's 
the story? A simple mistake on Sun's or TC team's part?

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JavaMail API ?

2005-03-01 Thread Caldarale, Charles R
 From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]
 Subject: Re: JavaMail API ?
 
 I notice that JavaMail API is missing from BOTH Tomcat and JRE. 
 There is no javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar
 
 It is also missing JAF (Java Activation Framework).

These are part of J2EE, not J2SE, so they won't be in rt.jar or any other JRE 
jar.  Since Tomcat provides direct support only for a subset of J2EE 
(Servlet/JSP, primarily), you have to get the additional pieces from Sun.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JavaMail API ?

2005-03-01 Thread David Smith
No mistake that I know about.  JAF and JavaMail are both separate 
downloads from Sun's site and have been all along.  Licensing issues 
probably prevent them from being included in the Tomcat dist.

--David
Nikola Milutinovic wrote:
Nikola Milutinovic wrote:
Hi all.
I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice 
that JavaMail API is missing from BOTH Tomcat and JRE. There is no 
javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar

It is also missing JAF (Java Activation Framework).
I mean, no problem, I CAN get a hold of those JARs, but really, what's 
the story? A simple mistake on Sun's or TC team's part?

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JavaMail API ?

2005-03-01 Thread Frank W. Zammetti
I wouldn't have expected to see them in Tomcat frankly... Although 
sending eMails from a webapp is relatively common, it's not common 
enough to be included with an app server (well, except for Websphere, 
which generally includes everything under the sun!)

I am kind of surprised it hasn't been incorporated into JDK1.5 though, 
that would have been a reasonable expectation.  Is it perhaps rolled 
into J2EE instead?  I don't know.  Same for JAF.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
David Smith wrote:
No mistake that I know about.  JAF and JavaMail are both separate 
downloads from Sun's site and have been all along.  Licensing issues 
probably prevent them from being included in the Tomcat dist.

--David
Nikola Milutinovic wrote:
Nikola Milutinovic wrote:
Hi all.
I'm running Tomcat 5.5.7 on Windows XP and Sun JDK 1.5.0_01 I notice 
that JavaMail API is missing from BOTH Tomcat and JRE. There is no 
javax.mail.* hierarchy in ${JAVA_HOME}/lib/rt.jar


It is also missing JAF (Java Activation Framework).
I mean, no problem, I CAN get a hold of those JARs, but really, what's 
the story? A simple mistake on Sun's or TC team's part?

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JavaMail API ?

2005-03-01 Thread Nikola Milutinovic
Frank W. Zammetti wrote:
I wouldn't have expected to see them in Tomcat frankly... Although 
sending eMails from a webapp is relatively common, it's not common 
enough to be included with an app server (well, except for Websphere, 
which generally includes everything under the sun!)

I am kind of surprised it hasn't been incorporated into JDK1.5 though, 
that would have been a reasonable expectation.  Is it perhaps rolled 
into J2EE instead?  I don't know.  Same for JAF.

Most of you responded that JavaMail and JAF are a part of J2EE, while 
Tomcat provides only a subset of J2EE. I agree with that.

The reason for my post was the fact that:
1. TC 4.1 has JavaMail support, just as TC 5.0 (at least in JPackage 
version)
2. TC docs for all versions list a JavaMail over JNDI example

Rolling JavaMail support into TC 5.5.7 wasa breeze, but you should warn 
people of this. Or I wasn't paying enough attention to docs (which could 
also be the case).

Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: JavaMail API

2002-02-19 Thread rsequeira


see intermixed




Nancy Crisostomo Martinez [EMAIL PROTECTED] on 02/19/2002
10:04:16 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  JavaMail API

Hi!!
About sending a mail using the JavaMail API:
I'm trying to send a mail, but the following exception is still
appeating:

  javax.mail.NoSuchProviderException: No provider for Address
 type: rfc822

I think this exception occurs bcoz:
1) It cannot read the config files in mail.jar or activation.jar. See if
the app has permissions to do that. Set debugging, notably
java.security.debug, on in your app.
2) You app doesn't have permission to connect to the SMTP/POP3 server. The
policy file below needs to be updated with the SMTP Host name and POP3 host
name. Check with your sys admin or whoever handles the mail server. If you
use Outlook or Netscape Messenger, you could probably figure it out.

RS

But somebody gave me a solution, but I'm having some troubles trying to
apply it:

Does anybody know how to know or get the IP ADDRES of the SMPT server?
Even, I don't know to configure that part (IPADDRESSES of servers) of
the following statements that are supposed to be written in the
tomcat.policy file:

 grant {
 // following two permissions allow access to default
 config files
 permission java.io.FilePermission /path/to/mail.jar,
 read;
 permission java.io.FilePermission
 /path/to/activation.jar, read;
 // following to use SMTP
 permission java.net.SocketPermission SMTPHOST:25,
 connect,resolve;
 // following to use IMAP
 permission java.net.SocketPermission IMAPHOST:143,
 connect,resolve;
 // following to use POP3
 permission java.net.SocketPermission POP3HOST:110,
 connect,resolve;
 // following also to use POP3 in pre-JavaMail 1.2
 permission java.io.FilePermission /path/to/pop3.jar,
 read;
 // following needed if System.getProperties() is used
 permission java.util.PropertyPermission *, read,write;

 };

Please, I need help!!
Thanks in advance!!








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




Tomcat and JavaMail API?

2001-05-06 Thread Nimish Vohra

We are running Tomcat to serve our mail application. The whole application
is made up of html pages and servlets. One of the servlets includes Java
mail API. The problem we are facing is -  we are not able to see the IMAP
data related to incoming mails on the browser. To clarify further, I am able
to load the application on the browser, do login etc via simple servlets (In
fact other dynamic pages, not requiring Java Mail API, are working fine).
But when I click on the inbox link to check mail in the inbox, I just get a
blank page. This same thing runs perfeclty OK with Java Webserver. Any
suggestions? Thanks in advance... Nimish Vohra.




How to use JavaMail API 1.2 with Tomcat 3.1

2001-03-03 Thread ann patil

Hi,
I need to develop a Email system with servlets.


Environment:
1) Tomcat 3.1.
2) JDK 1.3.
3) JavaMail API 1.2.


Note: The demo examples in JavaMail are working in JDK1.3.

Can anybody please help me out as to how can I develop a Email system
with Tomcat.

Thanks.

Ann




_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]