Tomcat Bug: JDBC driver can not be found when webapp made root.

2003-03-25 Thread Stephen Riek
I've been tearing my hair out for days trying to work out why I've been getting jdbc driver not found 'Null' errors. Then I came across this previous post, http://www.mail-archive.com/[EMAIL PROTECTED]/msg83356.html The original poster was absolutely correct - it's all due to making the

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
On Thu, 2003-03-20 at 20:36, Micael wrote: For me the easiest thing was just to provide the right command line options (java.awt.headless=true) when I started up Tomcat. May I ask, how you did this ? I've also encountered JNI_OnLoad errors runing on Solaris due, I suspect, the lack of

Re: Can't connect to X11 window server using '0:0' as the value of the display and now java.awt.HeadlessException

2003-03-23 Thread Stephen Riek
Thanks Micael. Tried the same thing and got the same results. Looks like Catalina/Tomcat is indeed using headless mode but it's not working with my Java (1.4) and operating system (SunOS 5.6). I'm presuming you're using this to create/generate graphics in a servlet ? Do you mind posting sample

Solaris6 mod_jk.so binary anybody ? (Segmentation fault with mine)

2003-03-17 Thread Stephen Riek
site but somebody seems to have pinched the binaries ! http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/solaris6/ Please feel free to mail me direct if you do have the binary. Thank you. Stephen. Stephen Riek [EMAIL PROTECTED] wrote: OK, here's the problem

Anybody got mod_jk working ? help pls.

2003-03-15 Thread Stephen Riek
application server that handles virtual hosts and has an easier setup. (any recommendations?). But I would prefer to stick with Tomcat. Stephen. Stephen Riek [EMAIL PROTECTED] wrote: 3 weeks already and I still can't get mod_jk to handle query strings :( I have Apache 1.3.x in front of Tomcat

Please help - mod_jk doesn't allow query strings in hyperlinks

2003-03-12 Thread Stephen Riek
3 weeks already and I still can't get mod_jk to handle query strings :( I have Apache 1.3.x in front of Tomcat 4.1.18 via JK (and not JK2). I can follow hyperlinks from one JSP to another JSP, through JK/Apache. However, I can not follow links which have a query appended. For example,say I

changes between tomcat 4.0.x and 4.1.x ? mysql dbcp gotcha

2003-02-19 Thread Stephen Riek
Just spent hours debugging a problem with MySQL DBCP. My webapp was working perfectly under 4.0.3 but upon upgrading to 4.1.18, the very same webapp failed, with an annoying Cannot create JDBC driver of class org.gjt.mm.mysql.Driver error. I solved the problem by changing this first Resource

Querystring causing seg fault with mod_jk (RE: Apache 1.3.X + Mod_jk2 + Jakarta 4.1.18)

2003-02-19 Thread Stephen Riek
Just a question related to this. I also have Apache 1.3.x accessing Tomcat 4.1.18 through JK (and not JK2). I can follow hyperlinks from one JSP (served up by Tomca) to another JSP, through JK/Apache. However, I can not follow links with a query appended. Eg. a

ChannelSocket reset connection (Re: Querystring seg fault with mod_jk)

2003-02-19 Thread Stephen Riek
Still haven't had any luck trying to debug this, but have found this error msg in catalina.out, [INFO] ChannelSocket - -server has been restarted or reset this connection Stephen Riek [EMAIL PROTECTED] wrote:I also have Apache 1.3.x accessing Tomcat 4.1.18 through JK (and not JK2). I can

Re: virtual hosting on tomcat

2002-12-13 Thread Stephen Riek
I think you can't do virtual hosting on Tomcat standalone. You need Apache in front of it. See the following which may help, http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html?page=1 Sherif D Mohamad [EMAIL PROTECTED] wrote:I am trying to add a virtual host on tomcat, I added this

DBCP could not obtain an idle db connection, pool exhausted

2002-12-11 Thread Stephen Riek
Just wondering how I could have ended up getting DBCP could not obtain an idle db connection, pool exhausted errors ? I've stopped sending requests to the server but the problem persists and it looks like I'll have to restart Tomcat.Surprised that the pool didn't automatically reclaim

Re: DBCP could not obtain an idle db connection, pool exhausted

2002-12-11 Thread Stephen Riek
I am indeed Jacob, are you psychic ? Thanks, I'll try the autoReconnect and am sure it'll work - you've obviously come across this before. Stephen. Jacob Kjome [EMAIL PROTECTED] wrote: By chance are you using MySQL? Then add ?autoReconnect=true to your url parameter like this url

Can Filter-mappings be defined using regular expressions?

2002-12-03 Thread Stephen Riek
There's got to be a better way of writing Filter-mapping than the following, where I want to allow any URL that begins either with: a) /Products/* or b) /2 characters/Products/* --8-- filter-mapping filter-nameProductsFilter/filter-name

Bezerk - tomcat calls JSP twice ?

2002-12-01 Thread Stephen Riek
I'm either still suffering from the effects of Saturday night or really didn't understand something about Tomcat, because the following has me completely surprised and unable to explain. I have a very very simple JSP /Products/index.jsp as follows - % int i = 1; System.out.println(JSP PAGE

Re: Bezerk - tomcat calls JSP twice ?

2002-12-01 Thread Stephen Riek
Thanks for the reply Paul. Might be the hangover - I get correct output when I follow your steps and refresh with the parameter still in the URL and without too. I use Tomcat 4.1.12. My output with the parameter in the URL: JSP PAGE DEBUGGING 1 JSP

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-27 Thread Stephen Riek
think. Stephen Stephen Riek [EMAIL PROTECTED] wrote: Thanks for the reply, Craig. Error Trace --- java.lang.IncompatibleClassChangeError This exception normally means you have made a change in a superclass and recompiled it, but not recompiled a subclass that depends

Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Stephen Riek
I've been at this for the better half of a day already without joy. Am trying to create a Filter which accepts a request for /fr/Products/Toys/index.jsp and forwards the request to /Products/Toys/index.jsp after setting an attribute lang to fr. However, no matter what I try, the following

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Stephen Riek
Thanks for the reply, Craig. Error Trace --- java.lang.IncompatibleClassChangeError This exception normally means you have made a change in a superclass and recompiled it, but not recompiled a subclass that depends on the old APIs. m, I have no idea which class this

Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Stephen Riek
Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products --

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
Thanks for the reply Ron, I've heard of people using Accept-Language before but have my own doubts about that. For example, using Tomcat's example servlet to examine the request. ( http://127.0.0.1:8080/examples/servlet/RequestHeaderExample ) I find that accept-language is always en-us on my

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent

Re: Help needed with Tomcat support for Double Byte Chars

2002-11-25 Thread Stephen Riek
There are so many possible reasons for this. My advice, 1. Check that the data you send is being received as GB2312 or whatever. Easiest way to do this is to write it out to a text file. See the Discrepancies... thread for my code to do just this. 2. Also in the Discrepancies thread,

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
a filter if you are going to map all requests. glad to help :-) Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 12:47 PM To: Tomcat Users List Subject: RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL

Discrepancies between servlets and JSP on tomcat in handling UTF-8 ?

2002-11-24 Thread Stephen Riek
I have a Form which is displayed in UTF-8. The form contains just one editable field, namely textarea name=test/textarea. When I submit this to a JSP: I can extract the value of the string using, % String s = request.getParameter(test); % I

help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-24 Thread Stephen Riek
I'd like for a request to webapp/en/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there

can a Tomcat Filter rewrite the URL ?

2002-11-22 Thread Stephen Riek
I'd like for a request to webapp/en/Folder/File to be mapped to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be mapped to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there