Tomcat, JSP's and lotus.notes.NotesThread

I have a JSP that I’m trying to incorporate Domino JSP tags into, but I keep getting the following error:

java.lang.NoClassDefFoundError: Could not initialize class lotus.notes.NotesThread

lotus.domino.taglib.ManagedSession.startThread(ManagedSession.java:100)

lotus.domino.taglib.ManagedSession.init(ManagedSession.java:129)

lotus.domino.taglib.DominoSessionManager.getManagedSession(DominoSessionManager.java:828)

lotus.domino.taglib.SessionData.init(SessionData.java:132)

lotus.domino.taglib.SessionTag.dominoStartTag(SessionTag.java:74)

lotus.domino.taglib.DominoTag.doStartTag(DominoTag.java:453)

org.apache.jsp.index_jsp._jspService(index_jsp.java:83)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Here is my source:

<%@page language=“java” import=“lotus.notes.*”%>

<%@page contentType=“text/html”%>

<%@ taglib uri=“WEB-INF/tld/domtags.tld” prefix=“domino” %>

<%@ taglib uri=“WEB-INF/tld/domutil.tld” prefix=“domutil” %>

<%

String str = new String(“Hi Mom!”);

%>

JSP Test

jsp:scriptlettry {</jsp:scriptlet>

<domino:session id="s" user="admin" password="password">

	<jsp:expression>s.getServerName()</jsp:expression><br />

	<jsp:expression>s.getCommonUserName()</jsp:expression><br />

	<jsp:expression>s.getNotesVersion()</jsp:expression><br />

	<jsp:expression>s.getPlatform()</jsp:expression><br />

</domino:session>

jsp:scriptlet

} catch (lotus.domino.taglib.DominoTagException e) {

	lotus.domino.NotesException ne = e.getNotesException();

</jsp:scriptlet>

Tags Error:jsp:expressione.getMessage()</jsp:expression>

Notes Error:jsp:expressionne.getMessage()</jsp:expression>

jsp:scriptlet

} catch(Exception e) {

	e.printStackTrace(new java.io.PrintWriter(out));}

</jsp:scriptlet>







String: <%=str%>

I have domtags.jar, NCSO.jar and Notes.jar in \WEB-INF\lib.

I have domtags.tld and domutil.tld in \WEB-INF\tld.

I have the following in web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<display-name>jsptests</display-name>

<welcome-file-list>

	<welcome-file>index.html</welcome-file>

	<welcome-file>index.htm</welcome-file>

	<welcome-file>index.jsp</welcome-file>

	<welcome-file>default.html</welcome-file>

	<welcome-file>default.htm</welcome-file>

	<welcome-file>default.jsp</welcome-file>

</welcome-file-list>

<taglib>

	<taglib-uri>/WEB-INF/tld/domtags.tld</taglib-uri>

	<taglib-location>/WEB-INF/tld/domtags.tld</taglib-location>

</taglib>

<taglib>

	<taglib-uri>/WEB-INF/tld/domutil.tld</taglib-uri>

	<taglib-location>/WEB-INF/tld/domutil.tld</taglib-location>

</taglib>

Can anyone provide guidance?

Thanks,

Charlie

Subject: Tomcat, JSP’s and lotus.notes.NotesThread

Where exactly is the Domino server? Is it running diiop? I would take out Notes.jar… think you’d only need NCSO.jar.

Here is a pretty good writeup I’ve bookmarked: Error

Subject: RE: Tomcat, JSP’s and lotus.notes.NotesThread

Erik,

You’re supposed to be able to connect locally using Notes.jar when Tomcat and Domino are on the same machine, but for some reason it was not working. I switched over to DIIOP following the directions posted in the article you linked and now it works fine - thanks!

R/s,

Charlie

Subject: RE: Tomcat, JSP’s and lotus.notes.NotesThread

You’re supposed to - that’s one reason I had asked where Domino was located. You need either Notes.jar or NCSO.jar, depending on whether you make local or remote calls, but not both.