wood burning stoves 2.0*
The moose likes JDBC and the fly likes Which Jar contains java.sql.* ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Which Jar contains java.sql.* ?" Watch "Which Jar contains java.sql.* ?" New topic
Author

Which Jar contains java.sql.* ?

Michael Zumpano
Greenhorn

Joined: May 15, 2001
Posts: 2
I've installed Java2 1.3 development environments on Solaris several times without this problem, but I'm new to Win2k. Do I need J2EE?
When I compile my connection pool I'm told javac can't find "Timer" which I think is part of java.sql. When I run JSP under Tomcat I'm that I have an illegal constant pool type, probably because it can't compile the class.
I have jar tvf 'd all the jars I can find. I don't see java.sql. It isn't part of lang is it?
The examples in Tomcat run just fine. So does MySQL from the command prompt.
I have compared my CLASSPATH to my Solaris machines (which run this code just fine). Here it is:
C:\java\lib;C:\java\lib\tools.jar;C:\java\lib\dt.jar;C:\java\jre\lib\rt.jar;C:\progra~1\apache~1\jakarta-tomcat\lib\servlet.jar;C:\Progra~1\Apache~1\Apache\beans;C:\Progra~1\Apache ~1\Apache\classes;C:\Progra~1\Apache~1\Apache\classes\mm.mysql-2.0.4-bin.jar;.
Here is the error report from tomcat:Internal Servlet Error:
javax.servlet.ServletException: javaservlets/jdbc/ConnectionPool (Illegal constant pool type)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
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:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.ClassFormatError: javaservlets/jdbc/ConnectionPool (Illegal constant pool type)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at com.instantjsp.Customer.(Customer.java:103)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at java.beans.Beans.instantiate(Beans.java:207)
at java.beans.Beans.instantiate(Beans.java:51)
at ChampionWeb.Champion_00031._0002fChampionWeb_0002fChampion_00031_0002fHOME_00035_0002ejspHOME5_jsp_0._jspService(_0002fChampionWeb_0002fChampion_00031_0002fHOME_00035_0002ejspHOME5 _jsp_0.java:181)
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$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
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:498)
at java.lang.Thread.run(Thread.java:484)
Michael Zumpano
Greenhorn

Joined: May 15, 2001
Posts: 2
I've solved my own problem. Timer is not in any JARs. I was confusing it with Timer from javax.swing and with Time from java.util.Date. Timer is one of my own classes that I forgot to copy over when I set up this windows machine.
Well, that was my first post to javaranch. I hope the next one is a little more interesting. Sorry.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which Jar contains java.sql.* ?
 
Similar Threads
Urgent!!!! What is General Error ?
Uploading files
Mailing error
Uploading file not working
ServerletException - access denied