Subject Re: jdbc connectivity to firebird by servlet through tomcat 4.1
Author Sudarshan Wad <sudan5757@yahoo.com>
hi,
Thanks roman rokytskyy.i tried what you said ,even i have planted
these 7 files in

C:\calsoft\Tomcat4.1\webapps\sudantest\WEB-INF\classes\lib
where sudantest\web-inf\classes is the directory where i put my all
servlet .class files.

I have taken the stack trace and it is like this :-

java.lang.NullPointerException at firetest2.doGet(firetest2.java:57)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.servlets.InvokerServlet.serveRequest
(InvokerServlet.java:458) at
org.apache.catalina.servlets.InvokerServlet.doGet
(InvokerServlet.java:180) at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:247) at
org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:193) at
org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:260) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2396) at
org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:180) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:172) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:641) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:174) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext
.invokeNext(StandardPipeline.java:643) at
org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:480) at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service
(CoyoteAdapter.java:223) at
org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:405) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proces
sConnection(Http11Protocol.java:380) at
org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:508) at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536)

I found onedocument that says i have to put .jar file in
CATALINA_HOME/common/lib/

but there is no CATALINA_HOME directory in tomcat.I have put .jar
files in tomcat's common/lib.still it do not work.

Do anyone know,anyotherchnages that are needed to be done in tomcat
to connect by servlet as it is working without tomcat.

Thanks roman for your prompt reply.Thanks.waiting for your expert
advice,as well as if any other expert knows about it,please solve my
query.

sudarshan