Subject Problem with a Firebird connection from java...
Author Belnor
Hi,
 
We just install a Apache Tomcat 1.3 on a linux server with JDK 1.2.
 
The JSP files are loaded OK, even we are using Javabeans and there is no problem, but when we are trying to make a conecction from a javabean to a firebird db and this error is thrown:
 
Internal Servlet Error:
javax.servlet.ServletException: org/firebirdsql/jdbc/FBDataSource
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:479)
Root cause:
java.lang.NoClassDefFoundError: org/firebirdsql/jdbc/FBDataSource
	at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:267)
	at java.sql.DriverManager.getConnection(DriverManager.java:450)
	at java.sql.DriverManager.getConnection(DriverManager.java:130)
	at prueba.Coneccion.setConeccion(Coneccion.java:50)
	at pruebas._0002fpruebas_0002fpruebaDB_0002ejsppruebaDB_jsp_0._jspService(_0002fpruebas_0002fpruebaDB_0002ejsppruebaDB_jsp_0.java:122)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
	at org.apache.tomcat.core.Handler.service(Handler.java:287)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
	at java.lang.Thread.run(Thread.java:479)
we put some jar files we downloaded from www.firebirdsql.org on the WEB-INF/lib directory.
 
we have a Apache Tomcat on Windows 98 as well, and is working. OK
 
You can see it on line on:
 
www.lagranjita.com:8080/pruebas 
 
Prueba 1.jsp is just pure JSP
Prueba 2.jspo is JSP with a javabean
PruebaDB.jsp is trying to connect to javabean taht makes aconnection to a firebird db.
 
We don't really know what is the problem.
 
Thanks in advance,
 
Eduardo BEltran