now this is a relly odd problem.I’ll try to discripe the problem breefly:
Ok i have some code wich that connect to a remote server:
try
{
NotesThread.sinitThread();
lotus.domino.Session session= lotus.domino.NotesFactory.createSession(“dominotestserver.funkytests.pop”,“LionHeart”,“funkypass”);
if(session!=null)
System.out.println("logged on to: " + session.getServerName());
}
catch(NotesException ne)
{
popdialog(“Unable to login: \n” + ne.text);
ne.printStackTrace();
}
catch(Exception ex)
{
ex.printStackTrace();
}
finally
{
NotesThread.stermThread();
}
Now this works fine in a applet, in a javaapplication, and in a agent
but in the servlet the code crashes at notesfactory.create…
with:java.lang.NoClassDefFoundError: lotus/domino/cso/Session: lotus/domino/cso/Session
this clearly indicates that the JVM is unable to locate the lotus.domino.cso.Session class… or does it??
because the next codesnippet prints out all methods of lotus.domino.cso.Session…
try
{
Class c = Class.forName(“lotus.domino.cso.Session”);
Method methods = c.getMethods();
for(int i=0;i<methods.length;i++)
System.out.println("session."+methods[i].getName());
}
catch(Exception ex)
{
ex.printStackTrace();
}
this is run in the same servlet under the same scope as the code above…
now that is odd isn’t it??
I really need some help here… because Im really confused here!!
Thanks in advance
Danny Hille