Re: DBCP ClassCastException

2005-05-08 Thread Lutz Zetzsche
Hi Dhiren, Am Montag, 9. Mai 2005 07:36 schrieb Dhiren Bhatia: > Hi all, > > I'm getting a the following ClassCastException running Tomcat 5.5.9 > with MySQL > > java.lang.ClassCastException: > org.apache.tomcat.dbcp.dbcp.BasicDataSource > > Here's the relevant code: > *Java code:* > org.apache.c

DBCP ClassCastException

2005-05-08 Thread Dhiren Bhatia
Hi all, I'm getting a the following ClassCastException running Tomcat 5.5.9 with MySQL java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.BasicDataSource Here's the relevant code: *Java code:* org.apache.commons.dbcp.BasicDataSource datasource; datasource = (BasicDataSource)ctx.lookup(

Re: Simple JavaBeans applications not working (newbie question)

2005-05-08 Thread Wendy Smoak
From: "Michael Strorm" <[EMAIL PROTECTED]> skeleton/WEB-INF/lib/subapp/Beany.class Jar files go in WEB-INF/lib. Classes go under WEB-INF/classes in a directory structure matching the package name. What package statement does Beany.java contain? org.apache.jasper.JasperException:

Re: Tomcat install errors

2005-05-08 Thread FL
Problem solved: On 5/8/05, Kent R. Spillner <[EMAIL PROTECTED]> wrote: > > > > - - - -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, FL- > > On May 8, 2005, at 5:09 PM, FL wrote: > > > I'm afraid I don't understand. Where should the line be? > > > > > > Doh; sorry. I should have bee

Re: Tomcat install errors

2005-05-08 Thread FL
Attempting to put the include inside the move element, one has the following error: BUILD FAILED /home/tomcat/build.xml:49: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:1896: The following error occurred while executing this line: /home/tomcat/

Re: Tomcat install errors

2005-05-08 Thread FL
I'm iafraind I don't understand. Where should the line be? I've done the following But this is the result: BUILD FAILED /home/tomcat/build.xml:49: The following error occurred while executing this line: /home/tomcat/jakarta-tomcat-5/build.xml:1901: The following error occurred while ex

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

2005-05-08 Thread Mark Leone
As posted by Tim Funk in reply to your original message, the details regarding this problem are found here: http://issues.apache.org/bugzilla/show_bug.cgi?id=27122 Note that it is a problem with IE only, wherein IE can't handle no-cache cache directives, and Tomcat only sets these headers when s

Re: Cannot download files with IE through tomcat. SSL with no-cache problems?

2005-05-08 Thread Donny R Rota
I found the solution! Posting here to save other people the problems I had in finding this: Put this in your server.xml (or conf/Catatlina/localhost/*.xml) file: -- Don Rota, CTG Operations Rational Software, IBM Software Grou

jkmount question

2005-05-08 Thread rusty
I was reading the following nice explanation of the mod_jk configuration options. The 3rd form, the suffix match is easy, but I don't understand the difference between the 2 first forms for JkMount, the exact match and the context match. Could someone explain when you'd use one versus the other?

Re: Simple JavaBeans applications not working (newbie question)

2005-05-08 Thread QM
On Sat, May 07, 2005 at 01:39:50PM -0400, Anoop kumar V wrote: : Another thing I noticed that you have placed your bean as a jar in the : WEB-INF/lib directory - while this works perfectly the practice is to put : custom class files in the WEB-INF/classes directory as just .class files : under thei

Re: trouble with Font objects in Tomcat

2005-05-08 Thread Dakota Jack
Your class comments indicate a different purpose than your class code, but assuming a connection in your mind, code something like the following might be helpful to you: public class Fonts { public static Font [] getFonts() { return GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFo

Re: trouble with Font objects in Tomcat

2005-05-08 Thread Dakota Jack
I agree 100% with Farhad. The problem is not with headless but with your code. The exception tells you exactly what is happening. Your code is not finding the font. If you want to build fonts, you have to upload the font files with the right TextAttribute settings. On 5/7/05, Daniel Watrous <[

Re: Simple JavaBeans applications not working (newbie question); FIXED!

2005-05-08 Thread Michael Strorm
--- Anoop kumar V <[EMAIL PROTECTED]> wrote: > > Everything works perfectly fine in your jsp and > bean except that the > > package mentioned in your bean (Beany.java) file > seems incorrect Aaawwrrgh! (Bangs head against wall several dozen times) Thank you. That was such a stupid mistake

Re: confusion to DBCP

2005-05-08 Thread Gurumoorthy
Hi, Yes Connection pool is good because it gives a performance boost to your application ( because open connection / close connection is cpu and network intensive ) You dont have a to configure DBCP in tomcat. you can do that in your application as well. You can configure DBCP