pkesarwani
asked on
Servlet Connection fails on SSL enabled Domino Server
We were able to connect to Domino Server ie "getting Domino session" using a serlvet successfully until we enabled SSL on the Domino Server.
So we followed some suggestions from Bob balaban's site at losseleaf.net .
See link:-
http://www.looseleaf.net/Looseleaf/Forum.nsf/8178b1c14b1e9b6b8525624f0062fe9f/edd3c4f3449441808525676b0021f270?OpenDocument
After implimenting the changes like TrustedCert.class file on the client ie using it in the servlet and also removing Notes.jar that we had on the Domino server's Class path
class.
Instead of using NSCO.jar in out servlet we are using Lotus Domino Java library package already available in Visual age 5.0.5.
When we tested the code gain with the new changes we got the error exception :"Could not get IOR from HTTP Server"
The Code :-
* Insert the method's description here.
* Creation date: (5/22/02 9:33:12 AM)
* @return lotus.domino.Session
* @param host java.lang.String
* @param user java.lang.String
* @param password java.lang.String
*/
public Session getDominoSession(String host, String user, String password) {
Session session = null;
try {
String[] iiop_args = new String[1];
iiop_args[0] = "-ORBEnableSSLSecurity";
session = NotesFactory.createSession (host, iiop_args, user, password);
Debug.println("Successfull y connected to Domino Server");
}
catch(NotesException e) {
Debug.println("Could not get session to Domino " + e);
}
return session;
}
Console Error
[07/12/2002 14:17:41.260] NotesInterfaceServlet.doGe t is called
java.net.MalformedURLExcep tion: unknown protocol: https
java.lang.Throwable(java.l ang.String )
java.lang.Exception(java.l ang.String )
java.io.IOException(java.l ang.String )
java.net.MalformedURLExcep tion(java. lang.Strin g)
java.net.URL(java.net.URL, java.lang.String, java.net.URLStreamHandler)
java.net.URL(java.net.URL, java.lang.String)
boolean sun.net.www.protocol.http.HttpURLConnection.followRedirect()
java.io.InputStream sun.net.www.protocol.http.HttpURLConnection.getInputStream()
java.io.InputStream java.net.URL.openStream()
java.lang.String lotus.domino.NotesFactory. getIOR(jav a.lang.Str ing)
lotus.domino.Session lotus.domino.NotesFactory. createSess ion(java.l ang.String , java.lang.String [], java.lang.String, java.lang.String)
lotus.domino.Session us.ne.state.notes.servlets .NotesBrok er.getDomi noSession( java.lang. String, java.lang.String, java.lang.String)
void us.ne.state.notes.servlets .NotesInte rfaceServl et.perform Task(javax .servlet.h ttp.HttpSe rvletReque st, javax.servlet.http.HttpSer vletRespon se)
void us.ne.state.notes.servlets .NotesInte rfaceServl et.doGet(j avax.servl et.http.Ht tpServletR equest, javax.servlet.http.HttpSer vletRespon se)
void javax.servlet.http.HttpSer vlet.servi ce(javax.s ervlet.htt p.HttpServ letRequest , javax.servlet.http.HttpSer vletRespon se)
void javax.servlet.http.HttpSer vlet.servi ce(javax.s ervlet.Ser vletReques t, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.web app.Strict ServletIns tance.doSe rvice(java x.servlet. ServletReq uest, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.web app.Strict LifecycleS ervlet._se rvice(java x.servlet. ServletReq uest, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.web app.IdleSe rvletState .service(c om.ibm.ser vlet.engin e.webapp.S trictLifec ycleServle t, javax.servlet.ServletReque st, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.web app.Strict LifecycleS ervlet.ser vice(javax .servlet.S ervletRequ est, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.web app.Servle tInstance. service(ja vax.servle t.ServletR equest, javax.servlet.ServletRespo nse, com.ibm.servlet.engine.web app.WebApp ServletInv ocationEve nt)
void com.ibm.servlet.engine.web app.ValidS ervletRefe renceState .dispatch( com.ibm.se rvlet.engi ne.webapp. ServletIns tanceRefer ence, javax.servlet.ServletReque st, javax.servlet.ServletRespo nse, com.ibm.servlet.engine.web app.WebApp ServletInv ocationEve nt)
void com.ibm.servlet.engine.web app.Servle tInstanceR eference.d ispatch(ja vax.servle t.ServletR equest, javax.servlet.ServletRespo nse, com.ibm.servlet.engine.web app.WebApp ServletInv ocationEve nt)
void com.ibm.servlet.engine.web app.WebApp RequestDis patcher.ha ndleWebApp Dispatch(c om.ibm.ser vlet.engin e.webapp.W ebAppReque st, javax.servlet.http.HttpSer vletRespon se, boolean)
void com.ibm.servlet.engine.web app.WebApp RequestDis patcher.di spatch(jav ax.servlet .ServletRe quest, javax.servlet.ServletRespo nse, boolean)
void com.ibm.servlet.engine.web app.WebApp RequestDis patcher.fo rward(java x.servlet. ServletReq uest, javax.servlet.ServletRespo nse)
void com.ibm.servlet.engine.srt .WebAppInv oker.handl eInvocatio nHook(java .lang.Obje ct)
void com.ibm.servlet.engine.inv ocation.Ca chedInvoca tion.handl eInvocatio n(java.lan g.Object)
void com.ibm.servlet.engine.srp .ServletRe questProce ssor.dispa tchByURI(j ava.lang.S tring, com.ibm.servlet.engine.srp .ISRPConne ction)
void com.ibm.servlet.engine.ose listener.O SEListener Dispatcher .service(c om.ibm.ser vlet.engin e.oseliste ner.api.IO SEConnecti on)
void com.ibm.servlet.engine.htt p_transpor t.HttpTran sportHandl er.handleC onnection( java.net.S ocket)
void com.ibm.servlet.engine.htt p_transpor t.HttpTran sportHandl er.run()
void java.lang.Thread.run()
[07/12/2002 14:17:58.572] Could not get session to Domino lotus.domino.NotesExceptio n
Looking for an Answer now?
So we followed some suggestions from Bob balaban's site at losseleaf.net .
See link:-
http://www.looseleaf.net/Looseleaf/Forum.nsf/8178b1c14b1e9b6b8525624f0062fe9f/edd3c4f3449441808525676b0021f270?OpenDocument
After implimenting the changes like TrustedCert.class file on the client ie using it in the servlet and also removing Notes.jar that we had on the Domino server's Class path
class.
Instead of using NSCO.jar in out servlet we are using Lotus Domino Java library package already available in Visual age 5.0.5.
When we tested the code gain with the new changes we got the error exception :"Could not get IOR from HTTP Server"
The Code :-
* Insert the method's description here.
* Creation date: (5/22/02 9:33:12 AM)
* @return lotus.domino.Session
* @param host java.lang.String
* @param user java.lang.String
* @param password java.lang.String
*/
public Session getDominoSession(String host, String user, String password) {
Session session = null;
try {
String[] iiop_args = new String[1];
iiop_args[0] = "-ORBEnableSSLSecurity";
session = NotesFactory.createSession
Debug.println("Successfull
}
catch(NotesException e) {
Debug.println("Could not get session to Domino " + e);
}
return session;
}
Console Error
[07/12/2002 14:17:41.260] NotesInterfaceServlet.doGe
java.net.MalformedURLExcep
java.lang.Throwable(java.l
java.lang.Exception(java.l
java.io.IOException(java.l
java.net.MalformedURLExcep
java.net.URL(java.net.URL,
java.net.URL(java.net.URL,
boolean sun.net.www.protocol.http.HttpURLConnection.followRedirect()
java.io.InputStream sun.net.www.protocol.http.HttpURLConnection.getInputStream()
java.io.InputStream java.net.URL.openStream()
java.lang.String lotus.domino.NotesFactory.
lotus.domino.Session lotus.domino.NotesFactory.
lotus.domino.Session us.ne.state.notes.servlets
void us.ne.state.notes.servlets
void us.ne.state.notes.servlets
void javax.servlet.http.HttpSer
void javax.servlet.http.HttpSer
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.web
void com.ibm.servlet.engine.srt
void com.ibm.servlet.engine.inv
void com.ibm.servlet.engine.srp
void com.ibm.servlet.engine.ose
void com.ibm.servlet.engine.htt
void com.ibm.servlet.engine.htt
void java.lang.Thread.run()
[07/12/2002 14:17:58.572] Could not get session to Domino lotus.domino.NotesExceptio
Looking for an Answer now?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added to this question in more than 696 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
RECOMMENDATION: Award points to HemanthaKumar http:#7150353
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
Thanks,
Zvonko
EE Cleanup Volunteer