RE: JavaMail problem

2001-10-19 Thread Justin Crosbie

Hi,

Thanks for the replies. Still no joy, this is strange behaviour. We don't
want to enable relaying totally, because of the security risks. Yet its
still a problem if we enable it for specific IP addresses, it doesn't work.
We can enable routing to specific external domains, and this works.

Anyway, it appears to be either a JavaMail or Exchange Server problem, so
I'll keep looking there.

Thanks again,
Justin

-Original Message-
From: Christoph Sturm [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2001 16:43
To: Orion-Interest
Cc: Orion-Interest
Subject: Re: JavaMail problem


Hello Justin,

Tuesday, October 16, 2001, 10:48:20 AM, you wrote:


JC I have set Exchange to disable relaying except for the IP address of the
JC machine the appserver is on. The problem is I'm still getting the
JC javax.mail.SendFailedException: 550 Relaying is prohibited error.
You need to restart the internet mail service (in control
panel/services) for the change to take effect.




-- 
Best regards,
 Christophmailto:[EMAIL PROTECTED]






JavaMail problem

2001-10-16 Thread Justin Crosbie



Hi 
all,

I'm having trouble 
enabling relaying on my mailserver. I'm using Orion 1.5.2 with the J2EE 1.2.1 
JavaMail, trying to relay toa 5.5 Exchange Server(NT).I've set the 
application.xml to point to my Exchange server as such:

mail-session location="mail/TheMailSession" 
smtp-host="my.mailserver.ie"
 property 
name="mail.transport.protocol" value="smtp"/
 property 
name="mail.smtp.from" value="user@company.com"/
 property name="mail.from" 
value="user@company.com"/
/mail-session
I have set Exchange to 
disable relaying except for the IP address of the machine the appserver is on. 
The problem is I'm still getting the 
"javax.mail.SendFailedException: 550 
Relaying is prohibited" error.
Can anyone shed any light on this? Is there something in Orion 
I need to do as well?
Thanks for any 
help.
Justin 
Crosbie




Re: JavaMail problem

2001-10-16 Thread Lachezar Dobrev



 Hello Justin.

 As I see it, this is not JavaMail 
problem.
 The message "550 Relaying denied" is 
standard SMTP message sent from the SMTP server.
 Depending on the type of your SMTP 
server this is solved differently.
 Consult you SMTP administrator or, 
if it is you, check the documentation, to see how to permit in/out-going SMTP 
traffic. Normally it will be permitted/denied according to your IP 
address.

 That's it. "Happy hunting Sebastian" 
(*grin*: quote from "Cruel Intentions").

 Lachezar


  Hi 
  all,
  
  I'm having trouble 
  enabling relaying on my mailserver. I'm using Orion 1.5.2 with the J2EE 1.2.1 
  JavaMail, trying to relay toa 5.5 Exchange Server(NT).I've set the 
  application.xml to point to my Exchange server as such:
  
  mail-session location="mail/TheMailSession" 
  smtp-host="my.mailserver.ie"
   property 
  name="mail.transport.protocol" value="smtp"/
   property 
  name="mail.smtp.from" value="user@company.com"/
   property 
  name="mail.from" value="user@company.com"/
  /mail-session
  I have set Exchange 
  to disable relaying except for the IP address of the machine the appserver is 
  on. The problem is I'm still getting the 
  "javax.mail.SendFailedException: 550 
  Relaying is prohibited" error.
  Can anyone shed any light on this? Is there something in 
  Orion I need to do as well?
  Thanks for any 
  help.
  Justin 
  Crosbie


Re: JavaMail problem

2001-10-16 Thread Christoph Sturm

Hello Justin,

Tuesday, October 16, 2001, 10:48:20 AM, you wrote:


JC I have set Exchange to disable relaying except for the IP address of the
JC machine the appserver is on. The problem is I'm still getting the
JC javax.mail.SendFailedException: 550 Relaying is prohibited error.
You need to restart the internet mail service (in control
panel/services) for the change to take effect.




-- 
Best regards,
 Christophmailto:[EMAIL PROTECTED]






Re: JavaMail/Orion

2001-09-03 Thread Stephen Davidson

Thank-you.
That did it.

-Steve
 Kesav Kumar wrote:
 
 You have to write the following in either application.xml(if you want
 for all applicatons) or myapplication.xml(Only for this application).
 
 mail-session location=mail/MailSession
 smtp-host=hermes.voquette.com
 property name=mail.transport.protocol
 value=smtp/
 property name=mail.smtp.from
 value=[EMAIL PROTECTED]/
 /mail-session
 
 This will add mail session to JNDI context.  If you want to refer this
 mailsession from your ejb/servlets you have to write the resource-ref
 in ejb-jar.xml/web.xml correspondingly.
 
 resource-ref
 descriptionMailing resource the EJB
 requires/description
 
 res-ref-namemail/MailSession/res-ref-name
 
 res-typejavax.mail.Session/res-type
 res-authContainer/res-auth
 /resource-ref
 
 In your program get the mail session by using lookup
 
 Context ctx = new InitialContext();
 javax.mail.Session session =
 (javax.mail.Session)context.lookup(mail/MailSession);
 
 Kesav Kumar Kolla
 Voquette Inc
 650 356 3740(W)
 510 889 6840(R)
 VoquetteDelivering Sound Information
 
 -Original Message-
 From: Stephen Davidson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 9:08 AM
 To: Orion-Interest
 Subject: JavaMail/Orion
 
 Greetings.
 
 How do I start the JavaMail Service in Orion.  It does not seem to
 start
 or load automatically.
 
 Thanks,
 Steve

-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208




JavaMail/Orion

2001-08-30 Thread Stephen Davidson

Greetings.

How do I start the JavaMail Service in Orion.  It does not seem to start
or load automatically.

Thanks,
Steve




RE: JavaMail/Orion

2001-08-30 Thread Kesav Kumar
Title: RE: JavaMail/Orion





You have to write the following in either application.xml(if you want for all applicatons) or myapplication.xml(Only for this application).

 mail-session location=mail/MailSession smtp-host=hermes.voquette.com
  property name=mail.transport.protocol value=smtp/
  property name=mail.smtp.from value=[EMAIL PROTECTED]/
 /mail-session


This will add mail session to JNDI context. If you want to refer this mailsession from your ejb/servlets you have to write the resource-ref in ejb-jar.xml/web.xml correspondingly.

   resource-ref
descriptionMailing resource the EJB requires/description
res-ref-namemail/MailSession/res-ref-name
res-typejavax.mail.Session/res-type
res-authContainer/res-auth
   /resource-ref


In your program get the mail session by using lookup


Context ctx = new InitialContext();
javax.mail.Session session = (javax.mail.Session)context.lookup(mail/MailSession);



Kesav Kumar Kolla
Voquette Inc
650 356 3740(W)
510 889 6840(R)
VoquetteDelivering Sound Information




-Original Message-
From: Stephen Davidson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 9:08 AM
To: Orion-Interest
Subject: JavaMail/Orion



Greetings.


How do I start the JavaMail Service in Orion. It does not seem to start
or load automatically.


Thanks,
Steve





JavaMail

2001-05-04 Thread Nijhawan, Sumit

Hi,

Does anyone know of any products (other than Orion) using and being
distributed with Sun's reference implementation of the JavaMail API
(mail.jar and activation.jar)?  Is anyone aware of any licensing issues for
distributing these jars freely?
Thanks.

Sumit




Re: JavaMail

2001-05-04 Thread Joni Suominen

Nijhawan, Sumit wrote:
 
 Hi,
 
 Does anyone know of any products (other than Orion) using and being
 distributed with Sun's reference implementation of the JavaMail API
 (mail.jar and activation.jar)?  Is anyone aware of any licensing issues for
 distributing these jars freely?
 Thanks.

From JavaMail FAQ (http://java.sun.com/products/javamail/FAQ.html):

Q: Is the JavaMail API implementation completely free? Can I ship it
along with my product?

A: Yes. The current release of the JavaMail API implementation, is
completely free and you can include it in your product. This release
includes IMAP, POP3, and SMTP providers as well. Please do read the
LICENSE and ensure that you understand it. The JavaBeans Activation
Framework is also free for use under a similar license. 

-- 
Joni
[EMAIL PROTECTED]




[OT] Javamail API

2001-02-20 Thread Robert S. Sfeir

Does anyone know of a good tutorial for 'rookies' on using the JavaMail 
API?  I just want to learn how to build a bean which allows me to send 
emails out after an insert.

Thanks much.

R


Robert S. Sfeir
Director of Software Development
PERCEPTICON corporation
San Francisco, CA 94123
w - http://www.percepticon.com/
e- [EMAIL PROTECTED]
t - (415) 749-2900 x205





Re: [OT] Javamail API

2001-02-20 Thread Christian Sell

theres an example in the distribution which you can copy the code from...

- Original Message - 
From: "Robert S. Sfeir" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, February 20, 2001 8:15 PM
Subject: [OT] Javamail API


 Does anyone know of a good tutorial for 'rookies' on using the JavaMail 
 API?  I just want to learn how to build a bean which allows me to send 
 emails out after an insert.
 
 Thanks much.
 
 R
 
 
 Robert S. Sfeir
 Director of Software Development
 PERCEPTICON corporation
 San Francisco, CA 94123
 w - http://www.percepticon.com/
 e- [EMAIL PROTECTED]
 t - (415) 749-2900 x205
 
 





Re: Anyone help me of Javamail ?

2000-12-11 Thread John Hogan

try out the samples that come with the javamail
install from Sun

_

Get your free E-mail at http://www.ireland.com




Re: Anyone help me of Javamail ?

2000-12-11 Thread Daniel C. DiCesare

I maybe able to help. What is the question?

-Danno
- Original Message -
From: "ureyurey" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 5:43 AM
Subject: Anyone help me of Javamail ?


hi,
i'm trying to send  recieve mails using javamail api 
ejb.
pls..., anyone help me out.
write in details...
thanks

yoursUrey



__

==ÐÂÀËÃâ·Ñµç
×ÓÓÊÏä http://mail.sina.com.cn
ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ
http://sms.sina.com.cn/






RE: Anyone help me of Javamail ?

2000-12-11 Thread Jason Boehle

Try looking for information here:
http://java.sun.com/products/javamail/

Jason Boehle
[EMAIL PROTECTED]

-Original Message-
From: ureyurey [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 10, 2000 11:43 PM
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: Anyone help me of Javamail ?


hi,
i'm trying to send  recieve mails using javamail api 
ejb.
pls..., anyone help me out.
write in details...
thanks

yoursUrey



__

==ÐÂÀËÃâ·Ñµç
×ÓÓÊÏä http://mail.sina.com.cn
ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ
http://sms.sina.com.cn/




Anyone help me of Javamail ?

2000-12-10 Thread ureyurey

hi,
i'm trying to send  recieve mails using javamail api 
ejb.
pls..., anyone help me out.
write in details...
thanks

yoursUrey



__

==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä 
http://mail.sina.com.cn
ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ
http://sms.sina.com.cn/




Anyone help me of Javamail ?

2000-12-10 Thread ureyurey

hi,
i'm trying to send  recieve mails using javamail api 
ejb. on Orion
pls..., anyone help me out.
write in details...
thanks

yoursUrey



__

==ÐÂÀËÃâ·Ñµç×ÓÓÊÏä 
http://mail.sina.com.cn
ÐÂÀËÍƳö°ÂÔ˶ÌÐÅÏ¢ÊÖ»úµã²¥·þÎñ
http://sms.sina.com.cn/




JavaMail from a Session Bean

2000-11-06 Thread Nathan Phelps
Title: RE: sql trace



I have a session 
bean which services all e-mail requests for my application. All works 
great unless the target SMTP server requires authentication. I can't 
figure out how to get authenticated!

I have tried 
sub-classing javax.mail.Authenticator and over-riding the method 
"getPasswordAuthentication()" which I have simply returning "new 
PasswordAuthentication("myusername", "mypassword")" I still receive an 
Exception though. I have looked all over for the answer. Any 
hints?

Thanks,

Nathan 
Phelps


Re: accessing javamail provider

2000-11-01 Thread Christian Sell

thanks alot for your mail. The only solution really seems to be to either
put everything in jre/lib/ext or to specify all jars at server startup via
the command line.

However, I find that when placing pop3.jar in the jre/lib/ext directory, I
also have to put mail.jar and activation.jar there (even though they reside
in the orion install dir). I finally ended up modifying the manifest file...

I think this library business is a pretty annoying problem, especially
considering the time spent to figure out whats going on..

-Original Message-
From: Terence Kwan [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Mittwoch, 1. November 2000 09:20
Subject: RE: accessing javamail provider


See enclosed mail

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
 Sent: Monday, October 30, 2000 5:04 PM
 To: Orion-Interest
 Subject: accessing javamail provider


 Hello,

 I've posted this before on orion-interest:

 I am using JavaMail to access a pop3 mailbox. No matter where I place the
 pop3.jar file (from sun, or poppers.jar) in the system, I always get a
 NoSuchProviderException saying thath no pop3 provider was
 available. I have
 tried the following locations for the pop3.jar:

 orion-install,
 orion-install/lib
 WEB-INF/lib
 any other path referenced through library path= in orion-application.xml

 The problem happens even though I am able to load classes from the jar via
 Class.forName().

 To verify this problem further, I deployed the same application
 on JRun 3.0.
 With JRun, I have to place the jar file in jrun-install/lib/ext
 (actually
 thats where the one that comes with JRun is located), and everything works
 fine.

 thanks,
 Christian Sell








Re: accessing javamail provider

2000-11-01 Thread Robert Krueger

At 13:26 01.11.00 , you wrote:
thanks alot for your mail. The only solution really seems to be to either
put everything in jre/lib/ext or to specify all jars at server startup via
the command line.

However, I find that when placing pop3.jar in the jre/lib/ext directory, I
also have to put mail.jar and activation.jar there (even though they reside
in the orion install dir). I finally ended up modifying the manifest file...

I think this library business is a pretty annoying problem, especially
considering the time spent to figure out whats going on..

that's the drawback of flexibility, it adds complexity but if you work with 
J2EE IMHO it makes sense to read up on classloaders and how they interact. 
it's all very logical and combined with the knowledge who orion uses them 
(check out 
http://www.mail-archive.com/orion-interest@orionserver.com/msg00618.html) 
it's usually possible to figure these things out quickly. btw. the first 
time I ran into these issues was with orion and before that the classloader 
to me was just that thing that get's your code but there's a lot more to 
it. now, I strongly believe that knowledge of that is needed to organize 
complex deployments well.

regards,

robert

-Original Message-
From: Terence Kwan [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Mittwoch, 1. November 2000 09:20
Subject: RE: accessing javamail provider


See enclosed mail

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
  Sent: Monday, October 30, 2000 5:04 PM
  To: Orion-Interest
  Subject: accessing javamail provider
 
 
  Hello,
 
  I've posted this before on orion-interest:
 
  I am using JavaMail to access a pop3 mailbox. No matter where I place the
  pop3.jar file (from sun, or poppers.jar) in the system, I always get a
  NoSuchProviderException saying thath no pop3 provider was
  available. I have
  tried the following locations for the pop3.jar:
 
  orion-install,
  orion-install/lib
  WEB-INF/lib
  any other path referenced through library path= in orion-application.xml
 
  The problem happens even though I am able to load classes from the jar via
  Class.forName().
 
  To verify this problem further, I deployed the same application
  on JRun 3.0.
  With JRun, I have to place the jar file in jrun-install/lib/ext
  (actually
  thats where the one that comes with JRun is located), and everything works
  fine.
 
  thanks,
  Christian Sell
 
 
 


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: accessing javamail provider

2000-11-01 Thread Russ White

Christian,

If you read the JavaMail API docs you saw that putting all of the JavaMail API
jars in jre/lib/ext is the prescribed method for deploying the API. This include
mail.jar, activation.jar, and any providers custom or otherwise. At first I did
not like that much, but it is an extension API, so it does make some sense, and
after using for the last year plus I understand why.

The reason the other jar files have to be in the /ext dir when you try to put a
provider in the /ext is because the classes in the jar files in the /ext
directory are dynamically loaded every time you fire up an instance of the vm.
Naturally when a class is loaded if it can not find classes that it depends on
it will break. This is what was happening to you. The JVM does not know anything
about the stuff in the Orion classpath, so it needs the dependent classes in the
form of jar files in the ext directory.

I have taken to deploying the JavaMail API the prescribed way as it is easy to
remember, and it also makes updating providers easy as you only do it in one
place. It is possible to use the API without installing it as an extension
(Orion does it for portability), but I would not recommend it.

Russ
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
 Sent: Wednesday, November 01, 2000 7:27 AM
 To: Orion-Interest
 Subject: Re: accessing javamail provider


 thanks alot for your mail. The only solution really seems to be to either
 put everything in jre/lib/ext or to specify all jars at server startup via
 the command line.

 However, I find that when placing pop3.jar in the jre/lib/ext directory, I
 also have to put mail.jar and activation.jar there (even though they reside
 in the orion install dir). I finally ended up modifying the manifest file...

 I think this library business is a pretty annoying problem, especially
 considering the time spent to figure out whats going on..

 -Original Message-
 From: Terence Kwan [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Mittwoch, 1. November 2000 09:20
 Subject: RE: accessing javamail provider


 See enclosed mail

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
  Sent: Monday, October 30, 2000 5:04 PM
  To: Orion-Interest
  Subject: accessing javamail provider
 
 
  Hello,
 
  I've posted this before on orion-interest:
 
  I am using JavaMail to access a pop3 mailbox. No matter where I place the
  pop3.jar file (from sun, or poppers.jar) in the system, I always get a
  NoSuchProviderException saying thath no pop3 provider was
  available. I have
  tried the following locations for the pop3.jar:
 
  orion-install,
  orion-install/lib
  WEB-INF/lib
  any other path referenced through library path= in orion-application.xml
 
  The problem happens even though I am able to load classes from the jar via
  Class.forName().
 
  To verify this problem further, I deployed the same application
  on JRun 3.0.
  With JRun, I have to place the jar file in jrun-install/lib/ext
  (actually
  thats where the one that comes with JRun is located), and everything works
  fine.
 
  thanks,
  Christian Sell
 
 
 








Re: accessing javamail provider

2000-11-01 Thread Christian Sell

what I dont like about the "copying to jre/lib/ext" variant is that it
reminds me alot of the winnt/system32 phenomenon. And I remember well how an
application which made use of xerces always choked with a NoSuchMethodError
(or similar), until I tracked down the problem to an outdated xml parser
which I had copied to jre/lib/ext a while ago and forgotten about it.
And as far as the provider jars go, the problem goes even further, because
they are not all part of the standard. For example, several applications may
rely on provider implementations with different features (e.g. poppers.jar
vs. pop3.jar). Sounds like a nice little mess to me.

Ok, enough ranting - for now we will have to live with it the way it is, and
at least I have my application running. Thanks for all your sympathy.

-Original Message-
From: Russ White [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Mittwoch, 1. November 2000 17:42
Subject: RE: accessing javamail provider


Christian,

If you read the JavaMail API docs you saw that putting all of the JavaMail
API
jars in jre/lib/ext is the prescribed method for deploying the API. This
include
mail.jar, activation.jar, and any providers custom or otherwise. At first I
did
not like that much, but it is an extension API, so it does make some sense,
and
after using for the last year plus I understand why.

The reason the other jar files have to be in the /ext dir when you try to
put a
provider in the /ext is because the classes in the jar files in the /ext
directory are dynamically loaded every time you fire up an instance of the
vm.
Naturally when a class is loaded if it can not find classes that it depends
on
it will break. This is what was happening to you. The JVM does not know
anything
about the stuff in the Orion classpath, so it needs the dependent classes
in the
form of jar files in the ext directory.

I have taken to deploying the JavaMail API the prescribed way as it is easy
to
remember, and it also makes updating providers easy as you only do it in
one
place. It is possible to use the API without installing it as an extension
(Orion does it for portability), but I would not recommend it.

Russ
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
 Sent: Wednesday, November 01, 2000 7:27 AM
 To: Orion-Interest
 Subject: Re: accessing javamail provider


 thanks alot for your mail. The only solution really seems to be to either
 put everything in jre/lib/ext or to specify all jars at server startup
via
 the command line.

 However, I find that when placing pop3.jar in the jre/lib/ext directory,
I
 also have to put mail.jar and activation.jar there (even though they
reside
 in the orion install dir). I finally ended up modifying the manifest
file...

 I think this library business is a pretty annoying problem, especially
 considering the time spent to figure out whats going on..

 -Original Message-
 From: Terence Kwan [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Mittwoch, 1. November 2000 09:20
 Subject: RE: accessing javamail provider


 See enclosed mail

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
Sell
  Sent: Monday, October 30, 2000 5:04 PM
  To: Orion-Interest
  Subject: accessing javamail provider
 
 
  Hello,
 
  I've posted this before on orion-interest:
 
  I am using JavaMail to access a pop3 mailbox. No matter where I place
the
  pop3.jar file (from sun, or poppers.jar) in the system, I always get a
  NoSuchProviderException saying thath no pop3 provider was
  available. I have
  tried the following locations for the pop3.jar:
 
  orion-install,
  orion-install/lib
  WEB-INF/lib
  any other path referenced through library path= in
orion-application.xml
 
  The problem happens even though I am able to load classes from the jar
via
  Class.forName().
 
  To verify this problem further, I deployed the same application
  on JRun 3.0.
  With JRun, I have to place the jar file in jrun-install/lib/ext
  (actually
  thats where the one that comes with JRun is located), and everything
works
  fine.
 
  thanks,
  Christian Sell
 
 
 










RE: accessing javamail provider

2000-10-31 Thread Terence Kwan

See enclosed mail

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell
 Sent: Monday, October 30, 2000 5:04 PM
 To: Orion-Interest
 Subject: accessing javamail provider
 
 
 Hello,
 
 I've posted this before on orion-interest:
 
 I am using JavaMail to access a pop3 mailbox. No matter where I place the
 pop3.jar file (from sun, or poppers.jar) in the system, I always get a
 NoSuchProviderException saying thath no pop3 provider was 
 available. I have
 tried the following locations for the pop3.jar:
 
 orion-install,
 orion-install/lib
 WEB-INF/lib
 any other path referenced through library path= in orion-application.xml
 
 The problem happens even though I am able to load classes from the jar via
 Class.forName().
 
 To verify this problem further, I deployed the same application 
 on JRun 3.0.
 With JRun, I have to place the jar file in jrun-install/lib/ext 
 (actually
 thats where the one that comes with JRun is located), and everything works
 fine.
 
 thanks,
 Christian Sell
 
 
 


I had the same problem with ldap.jar  providerutil.jar (providers for
JNDI).

The problem is that due to the way Orion does its classloading mail.jar
classes
are loaded by an Orion classloader (via the manifest in the orion.jar) at a
*lower*
level than the classloader that handles orion/lib.  The ways you can fix
this (which
are both kind of hacks IMO) are to put pop3.jar in your jre/lib/ext
directory, or run
orion as "java -classpath orion.jar:pop3.jar;etc
com.evermind.server.ApplicationServer"

To make this a little simpler I have written a shell script to include all
jars in
my own "lib" dir, all orion jars, etc into a CLASSPATH var, and then run
Orion
as above - so, you can start/stop orion w/  "orion start", "orion stop",
"orion run",
etc.   If there is any interest I could send this script out...

I think the problem is really with Orion including some of the J2EE jars as
standard
in the orion.jar manifest.  It's a nice idea, but based on the above problem
it would
be easier just NOT to include them.

So, to the Orion developers out there, please:

1) don't bother to include mail.jar/jndi.jar/etc (or put them in orion/lib
instead of the
orion.jar manifest)
or
2) fix Orion classloading to work with the provider mechanisms of JavaMail
and JNDI
because
3) get Sun to change the provider mechanism to use different
classlaoders/etc is
not very likely...

Thanks,
Jake

- Original Message -
From: "Terence Kwan" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Saturday, April 08, 2000 5:36 PM
Subject: where to put pop3.jar


 I am trying to use java mail API and pop3.jar provider. Where should I put
the pop3.jar file? I try to put it in: orion directory and orion/lib
directory. However, none of them work. It keeps saying:
 error:javax.mail.NoSuchProviderException: No provider for pop3

 I think the problem is that the Java Beam Activation Framework cannot find
the pop3.jar file.

 Where should I put the pop3.jar in order for the orion server to find it?

 Thanks

 TK











accessing javamail provider

2000-10-30 Thread Christian Sell

Hello,

I've posted this before on orion-interest:

I am using JavaMail to access a pop3 mailbox. No matter where I place the
pop3.jar file (from sun, or poppers.jar) in the system, I always get a
NoSuchProviderException saying thath no pop3 provider was available. I have
tried the following locations for the pop3.jar:

orion-install,
orion-install/lib
WEB-INF/lib
any other path referenced through library path= in orion-application.xml

The problem happens even though I am able to load classes from the jar via
Class.forName().

To verify this problem further, I deployed the same application on JRun 3.0.
With JRun, I have to place the jar file in jrun-install/lib/ext (actually
thats where the one that comes with JRun is located), and everything works
fine.

thanks,
Christian Sell






cant load JavaMail provider

2000-10-25 Thread Christian Sell

Hello,

I am having problems accessing a JavaMail POP3 provider. I always get a
NoSuchProviderException, even though the pop3.jar is in my classpath (I can
Class.forName() it), and I have placed the javamail.providers any place that
is mentioned in the docs (inside the jar in META-INF, outside anywhere
else).

session.getProviders() always returns the default providers (IMAP, SMTP) as
expected, but not the pop3 one.

has anyone done this successfully?

TIA,
Christian






Problem using JavaMail with Orion

2000-10-24 Thread Aleksi Kallio

500 Internal Server Error java.lang.NoClassDefFoundError: javax/activation/DataHandler

This class comes with Orion and also is located in the Orion library path. What's 
wrong?






Re: Problem using JavaMail with Orion

2000-10-24 Thread Santosh Kumar

If you are using jdk1.3 then push the javamail.jar or mail.jar whatever it
is {jar relevant to javamail] into
jre/lib/ext folder...The problem should not arise...

santosh

- Original Message -
From: Aleksi Kallio [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 4:53 PM
Subject: Problem using JavaMail with Orion


 500 Internal Server Error java.lang.NoClassDefFoundError:
javax/activation/DataHandler

 This class comes with Orion and also is located in the Orion library path.
What's wrong?









RE: JavaMail

2000-09-25 Thread Magnus Rydin
Title: RE: JavaMail





Amir,
in the ATM sample shipped with Orion you can see how you use JavaMail from a EJB.
In the taglib tutorial you can see how you use JavaMail from a JSP Tag.
In the JavaMail specification there is a number of real simple examples of sending mails.


 -Original Message-
 From: Amir Peivandi [mailto:[EMAIL PROTECTED]]
 Sent: den 22 september 2000 20:26
 To: Orion-Interest
 Subject: JavaMail
 
 
 Dose anybody have a simple sample application which uses 
 JavaMail to send
 email?
 
 Amir
 





JavaMail

2000-09-22 Thread Amir Peivandi

Dose anybody have a simple sample application which uses JavaMail to send
email?

Amir




RE: JavaMail

2000-09-22 Thread Mark Delanoy

Look at Java Soft's Pet Shop example.  They have a stateless ejb mailer
which does emails.  Configuration is within ejb-jar.xml file.

it's fairly simple.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Amir Peivandi
Sent: Friday, September 22, 2000 1:26 PM
To: Orion-Interest
Subject: JavaMail


Dose anybody have a simple sample application which uses JavaMail to send
email?

Amir






RE: JavaMail

2000-09-22 Thread Parker, Dean (MBS)

Let me know if you like it. All the code is mine. It is a complete javabean.

-Original Message-
From: Amir Peivandi [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 2:26 PM
To: Orion-Interest
Subject: JavaMail


Dose anybody have a simple sample application which uses JavaMail to send
email?

Amir


 SendEmail.java
 SendEmailBeanInfo.java


RE: JavaMail

2000-09-22 Thread Lawrence Fry

Amir,

Doesn't the ATM application send email?

Regards,

Lawrence

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Amir Peivandi
Sent: Friday, September 22, 2000 11:26 AM
To: Orion-Interest
Subject: JavaMail


Dose anybody have a simple sample application which uses JavaMail to send
email?

Amir





JavaMail wih Orion

2000-09-21 Thread Vidur Dhanda

Hello,

I want to allow a SessionBean and an application client to send email.
I guess all I really need to do is set up Orion to provide me a
javax.mail.Session through JNDI and use that Session object instead of
Session.getDefaultInstance().  Am I correct about this?

Could someone give me pointers on how to setup the .xml files.  I am
guessing that I need to modify server.xml and create a mail.xml for the
server configuration.  And in the orion-ejb-jar.xml and
application-client.xml I need to make some entries for the beans and
application client.  Could someone please help me with the actual
entries.

Thanks,
Vidur