Dawn Thomas

Greenhorn
+ Follow
since Nov 05, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dawn Thomas

Thanks for your reply.

I need the code for 2 things:
1. to FTP a file from one location to another and
2. to login to the server and verify that a file exists in a specific location.

We do this right now using a username and password but these change quite often and it would be easier to use a token or key to login instead of a password.

I'll peruse the link you sent and see if it meets my needs.
16 years ago
I was asked to integrate SSH public key authentication to my code (to avoid using passwords when logging into a server). I have searched the web but I'm not sure if I have the terms wrong - I'm not finding any examples. Does anyone know where I can look or can someone recommend a book?

Thanks.
16 years ago
Hi,

Thanks for your help. It turns out that I have something configured wrong in my new IDE. I recently switched from Sun One to Rational Application Developer and there is some manual configuration I need to do that I was not aware of.

The code works fine when deployed from Sun One.

16 years ago
This is the import I have:

import javax.mail.Session;
16 years ago
I'm working on some code. This code works in 2 environments but no in the third. This is the code:

in TagHandler.java
InitialContext initial = new InitialContext();
System.out.println("in sendMail - looked up JavaMail session " + Attr.MAIL_SESSION_LOOKUP);
Session session = (Session)initial.lookup(Attr.MAIL_SESSION_LOOKUP);
System.out.println("in sendMail - creating email and sending it");

The code is getting to the first println but not the second. The MAIL_SESSION_LOOKUP is set to what it should be in the println and on the server, the Mail session name is correct - I checked that. I'm getting a ClassCastException.

The really funny thing is - I didn't change the code. I had to rebuild my computer in January and I have deployed the same code since then and that is when my troubles began. I'm running j2sdk 1.4.2_13 and I believe the code was developed in either j2sdk 1.4.2_04 or 1.4.2_06. I tried copying the mail.jar files off another computer where the code was created but this hasn't helped.

Any suggestions??
16 years ago