how to solve java.lang.NoClassDefFoundError
Can anyone tell me what this meens, and how to solve. This error accurse when I try to connect to a firebird db, using firebirdsql-full.jar Root cause: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at _0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_ 0002ejspconnect3_jsp_20.java:82) 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.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va: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:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) 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:484) Greetz Richard Drent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to solve java.lang.NoClassDefFoundError
Hi Richard, Your problem might be related to the driver class not available in your classpath. You can find the exact cause by looking at the _0002fconnect_00033_0002ejspconnect3_jsp_20.java:82) at line no. 82. Look at tomcat_home/work/../localhost/yourwebapp/jsp/_0002fconnect_00033_0002ejspcon nect3_jsp_20.java Can you check if your dependent jar (firebirdsql-full.jar) is placed under WEB-INF/lib folder. Placing dependent jar files here must solve your problems. hope it could help. regards SM -Original Message- From: Richard Drent (Drent IT BV) [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:52 AM To: 'Tomcat Users List' Subject: how to solve java.lang.NoClassDefFoundError Can anyone tell me what this meens, and how to solve. This error accurse when I try to connect to a firebird db, using firebirdsql-full.jar Root cause: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at _0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_ 0002ejspconnect3_jsp_20.java:82) 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.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va: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:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) 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:484) Greetz Richard Drent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to solve java.lang.NoClassDefFoundError
Ok On line 82 is this //Load driver Class.forName(org.firebirdsql.jdbc.FBDriver); And the firebird Jar files are placed in /virtual site/WEB-INF/lib -rwxrwxrwx1 adminsite1 115509 Oct 9 09:04 firebirdjmx.jar -rwxrwxrwx1 adminsite1 336637 Oct 9 09:04 firebirdsql-full.jar -rwxrwxrwx1 adminsite1 308739 Oct 9 09:04 firebirdsql.jar -rwxrwxrwx1 adminsite1 133067 Oct 9 09:04 firebirdsql-test.jar -rwxrwxrwx1 adminsite1 104195 Oct 9 13:34 jaas.jar -rwxrwxrwx1 adminsite1 66624 Oct 9 13:34 log4j-core.jar -rwxrwxrwx1 adminsite16473 Oct 9 13:34 mini-concurrent.jar -rwxrwxrwx1 adminsite1 22200 Oct 9 13:34 mini-j2ee.jar and I placed them in /usr/java/Jakarta-tomcat/lib/ -rwxrwxr-x1 root root 330474 Oct 11 23:00 ant.jar -rwxrwxr-x1 root root 336637 Oct 11 23:00 firebirdsql-full.jar -rwxrwxr-x1 root root 308739 Oct 11 23:00 firebirdsql.jar -rwxrwxr-x1 root root 104195 Oct 11 23:00 jaas.jar -rwxrwxr-x1 root root 217958 Oct 11 23:00 jasper.jar -rwxrwxr-x1 root root 5618 Oct 11 23:00 jaxp.jar -rwxrwxr-x1 root root66624 Oct 11 23:00 log4j-core.jar -rwxrwxr-x1 root root 6473 Oct 11 23:00 mini-concurrent.jar -rwxrwxr-x1 root root22200 Oct 11 23:00 mini-j2ee.jar drwxrwxr-x2 root root 4096 Oct 11 16:38 oud -rwxrwxr-x1 root root 136133 Oct 11 23:00 parser.jar -rwxrwxr-x1 root root40813 Oct 11 23:00 servlet.jar drwxrwxrwx3 root root 19 Aug 26 21:34 test -rwxrwxr-x1 root root 431743 Oct 11 23:00 webserver.jar is me be then the driver name (org.firebirdsql.jdbc.FBDriver) incorrect thnx Richard Hi Richard, Your problem might be related to the driver class not available in your classpath. You can find the exact cause by looking at the _0002fconnect_00033_0002ejspconnect3_jsp_20.java:82) at line no. 82. Look at tomcat_home/work/../localhost/yourwebapp/jsp/_0002fconnect_00033_0002ejspcon nect3_jsp_20.java Can you check if your dependent jar (firebirdsql-full.jar) is placed under WEB-INF/lib folder. Placing dependent jar files here must solve your problems. hope it could help. regards SM -Original Message- From: Richard Drent (Drent IT BV) [mailto:[EMAIL PROTECTED] Sent: Monday, October 13, 2003 10:52 AM To: 'Tomcat Users List' Subject: how to solve java.lang.NoClassDefFoundError Can anyone tell me what this meens, and how to solve. This error accurse when I try to connect to a firebird db, using firebirdsql-full.jar Root cause: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at _0002fconnect_00033_0002ejspconnect3_jsp_20._jspService(_0002fconnect_00033_ 0002ejspconnect3_jsp_20.java:82) 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.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va: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:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) 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:484) Greetz Richard Drent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how to solve java.lang.NoClassDefFoundError
On line 82 is this //Load driver Class.forName(org.firebirdsql.jdbc.FBDriver); I cant tell you if you are using the correct package name for FBDriver.class. Well it would be wise enough if you could look into these jars below by exploding/opening it. Package declration and Driver class must be the ones that you use in your application page. -rwxrwxrwx1 adminsite1 336637 Oct 9 09:04 firebirdsql-full.jar -rwxrwxrwx1 adminsite1 308739 Oct 9 09:04 firebirdsql.jar all seems fine to me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]