A new? createSession problem

I have read all the postings I could find on issues with creating a notes session in a Java servlet, and still have not found anyone with the same problem as I am encountering (I think). I am hoping there is some small thing I have overlooked…

I have Websphere App Server 5.1.1 running along side Domino 6.5.1 on a Windows 2000 server, with Domino acting as the HTTP server for both. The Domino server also happens to be setup for SSO with other Domino servers in our domain.

This all works fine, and I can create and run servlets – even servlets that use the Notes.jar for local calls.

The problem is that I can’t seem to get a properly authenticated Session object. Here is what I have tried:

s = NotesFactory.createSession();

This creates a wierd partial session that is sort of like an anonymous connection as you can’t do much, but the object reports that your username is the Server’s name.

s = NotesFactory.createSession((String)null, “”, “”);

This creates a proper Anonymous User Session.

s = NotesFactory.createSession((String)null, “THarris”, “my password here”);

No matter what combination of username (canoical, short, abbreviated) and password I put here, I always get the Notes Exception “Invalid user name/password” even though I can log in successfully to this server through other web applications.

s = NotesFactory.createSession((String)null, req);

If I try to use the servlet request (as above), I get a proper anonymous connection if the browser hasn’t logged in, but if I have previously logged in to this server, I get “failed to authenticate SSO token.” and yet SSO works in all other cases.

I seem to have my path settings set correctly, and I am using the NotesThread.sinitThread() calls around my code, and my own id is set to be able to run all code on this server without restrictions.

Is there some other setting I may have missed that prevents Servlets from logging in?

Subject: a new? createSession problem

Does the person whose name you are using in the sessoin has the rights to run executable content in the security record of the server document?

Subject: RE: a new? createSession problem

The user I am testing with has full rights to run any and all code on the server.

In fact all usernames/passwords seem to be refused, which makes it seem that the Notes.jar can’t properly read the names.nsf db.

Could this problem be caused by the fact that I use Directory Assistance? or by the fact that my Notes data folder is on a different local drive from my Notes application folder?

Thank you for any thoughts you might have.