We are testing an application on an OS400 machine and are getting the error Exception 4043 Database Open Failed(%1). All of the databases have Anonymous - No Access and the owner of the servlet has rwx access to all files and directories on the system. The session created via the servlet is done using
NotesThread.sinitThread();
Session s = NotesFactory.createSession();
we then point to the relavant databases via:-
Database askDB = s.getDatabase_(“”,“//RMI825COUNT2//NOTES//DATA//INTRANET//Ask.nsf”);
Database calDB = s.getDatabase_(“”,“//RMI825COUNT2//NOTES//DATA//INTRANET//cal.nsf”);
but each time we get the same error returned - anyone have any ideas?
TIA
Subject: Have you tried leaving out the Path? Notes expects file names relative to the data dir.
Also, I am not sure about all the “//“s and the underscore Try:Database askDB = s.getDatabase(””,“INTRANET/Ask.nsf”);
Subject: RE: Have you tried leaving out the Path? Notes expects file names relative to the data dir.
Hi There
Ignore the underscore - that slipped in by mistake when I posted the code. The servlet needs the full path as is is residing in the servlet directory, and when the full path was not supplied to the servlet - we kept getting the exception - file not found, and the tool I am using to write the servlet requires the “/” to be escaped out as it is contained in a string.
I do have more information though - apparently I need to enable SSO using the LPTA token then create the notessession using the token passed from the lpta cookie. Its all to do with acces and ACLs