Cannot get a java-connection with username

Hi all,

I’ve read just about all documents posted on this great forum with regard to make Domino-connections with the NotesFactory class. And even though I experience the same exceptions I cannot seem to get to the other side.

I’ve checked my classpath, my server-setup (it is my test-server running locally, that may be a topic for my confusion), and everything seems to be in order.

However, no matter how I try to make the call (createSession ((String)null, “myusername”, “mypassword”) or createSession(“127.0.0.1”, “myusername”, “mypassword”)) I cannot connect when I ship a name-parameter. I am able to make anonymous connections, but thats not appropiate for the end-solution (unless someone can convince me that security is maintained never-the-less)…

The errors I get i NoClassDefFoundError: lotus/domino/cso/Session or …when I try to use the local classes…UnsatisfiedLinkError: NCreateWebSession.

Does anybody have an answer to this (or just a hint I an go on) ?

Any answer will be greatly appreciated.

Regards,

Kim

Subject: Cannot get a java-connection with username

  1. Would need to see your code to see what is wrong2) What data are you trying to access? (DB2, SQL, etc…)

  2. How is the code triggered? ((Manually or from a scheduled agent) (There are different config considerations for each))

Mike

Subject: RE: Cannot get a java-connection with username

Hi Michael

I’m sorry for the delay in my answer…

However I did - with some highly qualified help som a few of my colleagues - find out why I wasn’t able to get a Connection via the NotesFactory methods…

Even though I did put the NCSO.jar in my ClassPath the system couldn’t find the jar-file…but when I put it in the JavaUserClasses-variable in the Notes.ini of the Domino-server everything worked as intended…

So there it was - right below my nose in the file so frequently used for any purpose in Notes/Domino-development :-)…

Thanks for your time…

Regards

Kim Hansen

Subject: Cannot get a java-connection with username

Did you ever resolve your issue with using: createSession ((String)null, “myusername”, “mypassword”)? I am getting the UnsatisfiedLinkError: NCreateWebSession and need a solution.

Any help is appreciated.

Jim