Subject jaybird error under fedora 2 tomcat
Author sjlukacs
hello one and all,

i had redhat 9 with tomcat on it. i recently rebuilt the server to
fedora 2 which comes with tomcat 4.1.27-13 with the jk2 connector to
apache. i am currently using

so i am trying to run a servlet that uses the jaybird (
FirebirdSQL-1.5.0Beta3JDK_1.4.zip) drivers to firebird
(FirebirdSS-1.5.0.4290-0). my very simple code works under JBuilder7
but not under the tomcat. the java servlet code is

public static String dbTest() {
String ss = "";
boolean keepgoing = true;
try {
db.setConnection(new
com.borland.dx.sql.dataset.ConnectionDescriptor("jdbc:firebirdsql:localhost/3050:/home/fd/zBrewster/fleet.gdb",
"sysdba", "masterkey", false, "org.firebirdsql.jdbc.FBDriver"));
} catch (Exception e) {
ss = ss+"error[db.setConnection]: "+e.toString();
keepgoing = false;
}
if (keepgoing) {
ss = ss+"db.setConnection sucessful<br>";
try {
db.openConnection();
} catch (Exception e) {
ss = ss+"error[db.openConnection]: "+e.toString();
keepgoing = false;
}
if (keepgoing) {
ss = ss+"db.openConnection sucessful<br>";
try {
db.closeConnection();
} catch (Exception e) {
ss = ss+"error[db.closeConnection]: "+e.toString();
keepgoing = false;
}
if (keepgoing)
ss = ss+"db.closeConnection sucessful<br>";
}
}
return(ss);
}


where i get an error on the openConnection for if i comment that code
out tomcat works fine. below is a copy of the exception returned by
tomcat when openConnection is not commented out...

type Exception report

message

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception

org.apache.jasper.JasperException: while resolving class:
org.firebirdsql.jca.FBManagedConnection
at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/lib-javax-servlet-2.3.so)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardEngineValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(org.apache.coyote.Request,
org.apache.coyote.Response) (/usr/lib/lib-org-apache-coyote-4.1.27.so)
at
org.apache.jk.server.JkCoyoteHandler.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.HandlerRequest.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.ChannelSocket.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.ChannelSocket.processConnection(org.apache.jk.core.MsgContext)
(/usr/lib/lib-org-apache-jk-4.1.27.so)
at org.apache.jk.common.SocketConnection.runIt(java.lang.Object[])
(/usr/lib/lib-org-apache-jk-4.1.27.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
(/usr/lib/lib-org-apache-tomcat-util-4.1.27.so)
at java.lang.Thread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at GC_start_routine (/usr/lib/libgcj.so.5.0.0)
at __clone (/lib/tls/libc-2.3.3.so)

root cause

javax.servlet.ServletException: while resolving class:
org.firebirdsql.jca.FBManagedConnection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(java.lang.Throwable)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
org.apache.jsp.index_jsp._jspService(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse) (Unknown Source)
at
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/lib-javax-servlet-2.3.so)
at
org.apache.jasper.servlet.JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean) (/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
org.apache.jasper.servlet.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
(/usr/lib/lib-org-apache-jasper-4.1.27.so)
at
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse) (/usr/lib/lib-javax-servlet-2.3.so)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardWrapperValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardContextValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardContext.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardHostValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.valves.ErrorReportValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardEngineValve.invoke(org.apache.catalina.Request,
org.apache.catalina.Response, org.apache.catalina.ValveContext)
(/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.StandardPipeline.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.catalina.core.ContainerBase.invoke(org.apache.catalina.Request,
org.apache.catalina.Response) (/usr/lib/lib-org-apache-catalina-4.1.27.so)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(org.apache.coyote.Request,
org.apache.coyote.Response) (/usr/lib/lib-org-apache-coyote-4.1.27.so)
at
org.apache.jk.server.JkCoyoteHandler.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.HandlerRequest.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.ChannelSocket.invoke(org.apache.jk.core.Msg,
org.apache.jk.core.MsgContext) (/usr/lib/lib-org-apache-jk-4.1.27.so)
at
org.apache.jk.common.ChannelSocket.processConnection(org.apache.jk.core.MsgContext)
(/usr/lib/lib-org-apache-jk-4.1.27.so)
at org.apache.jk.common.SocketConnection.runIt(java.lang.Object[])
(/usr/lib/lib-org-apache-jk-4.1.27.so)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
(/usr/lib/lib-org-apache-tomcat-util-4.1.27.so)
at java.lang.Thread.run() (/usr/lib/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
at GC_start_routine (/usr/lib/libgcj.so.5.0.0)
at __clone (/lib/tls/libc-2.3.3.so)

Apache Tomcat/4.1.27-13