You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jacob Kjome <ho...@visi.com> on 2002/06/25 18:13:39 UTC

Re[2]: R: JDBC Connection

Hello Chris,

FYI,

the format used for .jar files is "zip".  So, if you have a zip file,
you can just rename it to ".jar" and that will be *exactly* the same
thing as if you unzipped and then jarred the files.

Jake

Tuesday, June 25, 2002, 11:07:18 AM, you wrote:

CF> Its not that it doesn't accept ZIP files, just that it doesn't look for them by default. The reason that Tomcat doesn't pick up anything other than jars is that it loops all *.jar files in its
CF> lib directory and adds 
CF> them to the CLASSPATH before starting java. 

CF> I needed to get a zip file onto the classpath so I edited the startup script so that it also looped .zip files. It worked fine. 

CF> Chris Faulkner

>>AFAIK Tomcat4 doesn't accept ZIPped class archives, but only JARred ones.
>>So, if you use a .zip JDBC driver archive, you should unzip it and either
>>put unzipped classes in classes dir, or archive them in a .jar archive.
>>
>>Regards
>>Alessio
>>
>>
>>-----Messaggio originale-----
>>Da: Juan [mailto:velazquez@htmlspider.com.br]
>>Inviato: mercoledì 19 giugno 2002 12.24
>>A: tomcat-user@jakarta.apache.org
>>Oggetto: JDBC Connection
>>
>>
>>Hello,
>>
>>I'm trying to connecting with MySQL, but I'm getting the following error:
>> >> javax.servlet.ServletException: No suitable driver 
>>at 
>>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
>>l.java:457) 
>>at org.apache.jsp.index$jsp._jspService(index$jsp.java:805)
>>...
>>
>>The JDBC driver is at the classpath, and I'm able to connect using a 
>>standard Java application. But with Tomcat I'm getting an error.
>>Am I missing anything?
>>
>>Thanks in advance,
>>
>>Juan José Velázquez Garcia
>>Web Development
>>www.htmlspider.com.br
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>><ma...@jakarta.apache.org>
>>For additional commands, e-mail:
>><ma...@jakarta.apache.org>
>>
>>
>>
>>- Disclaimer -
>>This email and any attachments thereto may contain information which is
>>confidential and/or protected by intellectual property rights and are
>>intended for the sole use of the recipient(s) named above. Any use of the
>>information contained herein (including, but not limited to, total or
>>partial reproduction, communication or distribution in any form) or the
>>taking of any action in reliance on the contents, by persons other than the
>>designated recipient(s) is strictly prohibited.
>>
>>If you have received this email in error, please notify the sender either by
>>telephone or by email and delete the material from any computer.
>>
>>Thank you for your cooperation. 
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>>For additional commands, e-mail: <ma...@jakarta.apache.org>
>>
>>




CF> --
CF> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
CF> For additional commands, e-mail: <ma...@jakarta.apache.org>



-- 
Best regards,
 Jacob                            mailto:hoju@visi.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>