Subject Re: jaybird error under fedora 2 tomcat
Author sjlukacs
hello all,

ok, i have followed the suggestions of others to get jaybird working
with firebird under standard rpm installs of tomcat and apache in the
new fedora 2. i have added a new file under /etc/profile.d/tomcat.sh
which contains

..start..
#!/bin/sh
# set java environment

JAVA_HOME=/usr/java/j2sdk1.4.2_04

CATALINA_HOME=/usr/share/tomcat

CLASSPATH=$JAVA_HOME/lib/tools.jar:/usr/share/java/bootstrap.jar:/usr/share/java/servlet.jar:$CATALINA_HOME/common/lib/firebirdsql-full.jar

LD_ASSUME_KERNEL=2.2.5

#For jni or channelUnix, add this too:
export serverRoot=/etc/httpd
LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/server

PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CATALINA_HOME CLASSPATH LD_LIBRARY_PATH
LD_ASSUME_KERNEL
..end..

where i have confirmed the existence of all of the jar paths and files
under CLASSPATH and the below exception only occurs when the
associated openConnection code is attempt to execute. as soon as that
code is commented out, then the code runs fine, as expressed in the
start of this thread. i also believe that i am using the most up to
date version of jaybird.

thanx in advance, lucas...

here is the exception thrown back

..start..
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
..end..