IRC log for #tomcat on 20080428

00:11.24*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
00:20.21*** join/#tomcat MHSL- (n=Linux@116.88.6.47)
00:59.53*** join/#tomcat acidjnk (n=have@pD950AF36.dip0.t-ipconnect.de)
01:00.49*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:26.53*** join/#tomcat nuke_tune (n=nuke_tun@cpc3-seve15-0-0-cust784.popl.cable.ntl.com)
03:30.19*** join/#tomcat acidjnk (n=have@pD9509312.dip0.t-ipconnect.de)
04:38.20*** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-108-70.red.bezeqint.net)
05:17.50*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
05:57.43*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
07:41.32*** join/#tomcat chriskros (n=chriskro@80.124.167.39)
09:35.57*** join/#tomcat pierre_ (n=pierre@nat/sun/x-3508bb9e84f8f84a)
09:54.34*** join/#tomcat mauriez (i=maui@xs2.xs4all.nl)
10:28.06*** join/#tomcat mikepea (n=mikepoun@82.108.63.100)
10:31.55*** join/#tomcat lazsea (n=opera@85.72.109.27)
10:32.30lazseahello!
10:32.30lazseaI am a bit puzzled considering how to install Tomcat
10:32.52lazseaactually I installed Tomcat and I want to run zk on it, but I don't know what I have to do
10:33.02lazseasome help please!
10:54.02*** join/#tomcat jeevan_ullas (n=deepsa@fedora/jeevanullas)
10:54.06jeevan_ullashi all
10:55.02jeevan_ullasi have a folder in /opt/tomcat/webapps/ which further contains a folder which finally hosts my project. but i am unable to access the servlet.
10:55.14jeevan_ullas<PROTECTED>
10:57.06jeevan_ullasi think i need to tweak some context stuff but i have no idea any pointers?
11:11.28*** part/#tomcat lazsea (n=opera@85.72.109.27)
12:17.44*** join/#tomcat pierre_ (n=pierre@mey38-1-82-225-138-55.fbx.proxad.net)
12:28.04*** join/#tomcat pierre__ (n=pierre@mey38-1-82-225-138-55.fbx.proxad.net)
12:39.29*** join/#tomcat pierre___ (n=pierre@nat/sun/x-d416fca7cee55480)
12:47.31*** join/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
12:53.31*** join/#tomcat skwi (n=sk@LAubervilliers-151-11-28-181.w193-251.abo.wanadoo.fr)
12:53.32skwihello
12:55.07skwii have to deploy a standalone software programming with Java and i am looking for a light j2ee server ...
12:55.33skwiSome one can help me ?
13:00.39*** join/#tomcat alperkanat (n=tunix@195.174.5.120)
13:01.29alperkanathey there.. i'm using tomcat 5.5.23-2 (arch linux)
13:01.32alperkanatand java 1.6
13:01.48alperkanati'm trying to open manager accounts for different users
13:01.52alperkanatusing tomcat-users.xml
13:02.09deeboskwi: jetty
13:02.11alperkanathow can i prevent them seeing each other's apps ?
13:02.33alperkanatincluding default apps like servlet-examples etc ?
13:04.13skwithanks deebo
13:04.38*** part/#tomcat skwi (n=sk@LAubervilliers-151-11-28-181.w193-251.abo.wanadoo.fr)
13:05.50MHSLalperkanat, what are you trying to achieve? why do you need to give other users manager account?
13:08.57alperkanati'm managing a server that serves for many things like subversion, apache, php etc... a few users need tomcat and jsp.. so i need to setup tomcat such that each user (having their own /home folders) can deploy applications using tomcat (manager ?)
13:12.16MHSLalperkanat, i dont really use tomcat manager, but what i suggest is dont use tomcat manager to do that, but provide either ftp or sftp for your users to upload their webapp files to their home dir, then you can create a context for each user, or you allow your users to run one tomcat instance
13:12.38alperkanathmmm
13:13.18alperkanati'm using virtualhosts for each user.. guess this document will help right ? : http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html
13:14.29MHSLalperkanat, there are apache sample configs there, but it's a bit oudated for tomcat configuration
13:15.46alperkanatany up2date docs around ?
13:19.23MHSLalperkanat, i only went through this doc quickly so i dont know whether this would be helpful to you, http://howtoforge.com/apache2_tomcat5_mod_jk
13:19.39MHSLalperkanat, or this http://agiletesting.blogspot.com/2007/05/apache-virtual-hosting-with-tomcat-and.html
13:19.51alperkanatallright, MHSL thanks a lot
13:20.02MHSLalperkanat, the way i do it is just to set up vhost on apache, but i dont set up any vhost on tomcat
13:20.20alperkanatMHSL: yeah i'm not doing that too
13:20.28alperkanatMHSL: i have virtualhosts in apache
13:20.53alperkanatMHSL: and want some the users that have virtualhosts can deploy tomcat apps
13:22.04MHSLalperkanat, depends on what you want to use the virtual host, either you have the virtual host to be your users' host + context path or host and each user can deploy any number of webapps
13:23.08MHSLalperkanat, either way i'm using aliasmatch on apache to do the forwarding to the correct dir
13:23.39alperkanati see..
13:24.14MHSLalperkanat, so basically for each new user i don't need to touch tomcat, only adding an aliasmatch and virtual host if necessary to apache
13:24.48MHSLalperkanat, it really depends on how you want to do it, there are few ways to do it
13:26.18alperkanati think i want to do the same as you do.. i have more than 10-15 users that publish sites using wordpress etc on apache.. each using virtualhosts
13:26.30MHSLic
13:26.36alperkanatMHSL: i've tomcat working fine on 8080
13:27.04MHSLalperkanat, so are you allowing multiple webapps to your users or just one? are you giving users a private tomcat instance or shared for all?
13:27.06alperkanatnow i just need to add some lines to apache confs for some of the users so that they can use tomcat by just deploying their apps using ftp
13:27.48alperkanatMHSL: tomcat is shared by all users
13:27.49MHSLalperkanat, if you want to use apache, you have to set up and configur mod_jk and disable port 8080, so all requests will always go through apache first
13:27.58MHSLconfigure*
13:28.15alperkanati've installed mod_jk
13:28.35alperkanatbut i really don't know the rest of the steps.. all tutorials discuss about different things
13:28.48alperkanati didn't understand why i disable 8080 by the way
13:28.52MHSLso you just have to make sure you can make a request through apache and it can forward the request to tomcat when it's supposed to, then you can continue configuring virtual host etc
13:29.04alperkanathmm
13:29.21MHSLalperkanat, you're using port 8080 because you're accessing tomcat straight away instead of going through apache then tomcat
13:29.25alperkanatso i need to forward requests for JSP files to some directories right ?
13:29.34alperkanathmm
13:30.45MHSLalperkanat, first of all you have to make sure that you can send your request to apache, then apache will forward any requests that should be handled by tomcat, to tomcat
13:31.15MHSLalperkanat, i.e. you dont use port 8080 anymore, but you access tomcat via apache through mod_jk, i.e., apache -> via mod_jk -> tomcat
13:32.21MHSLalperkanat, you should make that apache -> tomcat works first before you proceed with virtual host etc
13:33.09alperkanat?? i'm confused.. should i disable mod_jk ?
13:33.29MHSLalperkanat, as i said you need mod_jk to be able to have apache and tomcat communicate with each other
13:33.51alperkanathmm
13:34.38MHSLalperkanat, 1) setup tomcat (enable ajp connector in server.xml) 2) install apache 3) compile mod_jk and install it on apache
13:34.59alperkanatso as far as i understood, i should disable 8080, then configure apache for any kinds of request that tomcat should handle... then i need to configure the virtualhosts that will deploy apps to tomcat
13:35.00MHSLalperkanat, 4) configure mod_jk (worker.properties and mod_jk.conf)
13:35.32MHSLalperkanat, yes, you forward any requests that should be handled by tomcat (jsp, servlet, etc) to tomcat
13:35.59MHSLalperkanat, so everything will always go through apache
13:36.49alperkanatMHSL: AJP is enabled by default in server.xml
13:37.05alperkanatmod_jk is enabled through my apache conf
13:37.24alperkanatso i think i should configure mod_jk now
13:42.45*** join/#tomcat acidjnk (n=have@pD9509312.dip0.t-ipconnect.de)
13:43.42*** join/#tomcat MHSL (i=Linux@116.88.6.47)
14:33.53*** join/#tomcat acidjnk (n=have@pD9508576.dip0.t-ipconnect.de)
14:49.41*** join/#tomcat andyt (n=andyt@THOMPSON-LAPTOP.ADMIN.SCPS.NYU.EDU)
14:50.23*** join/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br)
14:52.41cloviswanyone knows how i enable the NIO HTTP connectors?
15:15.47alperkanatMHSL: does apache have to tie some ports to the workers defined in workers.properties ?
15:15.55alperkanati still can't manage to do it
15:22.18*** join/#tomcat {Chris} (n=cdupont@abo-44-36-68.mts.modulonet.fr)
15:41.09*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
16:10.49alperkanatpfff
16:11.02alperkanati now have The requested resource (/hede/) is not available.
16:11.10alperkanat:(
16:11.47alperkanatcan someone please help me ?
16:11.58alperkanati copied the jsp-examples folder to hede folder
16:12.07*** join/#tomcat stmaher (n=stmaher@mail.voxpilot.com)
16:12.08alperkanatbut i still can't see the index page
16:12.27alperkanatdespite that, apache forwards the request for /hede folder to tomcat
16:12.40alperkanatbut tomcat doesn't show the index page
16:12.54stmaherHello everyone.. I have a vanilla install of tomcat 5.5 with Java 1.6.. the problem im seeing is org.apache.tools.ant.filters.StringInputStream class not found.. Im a complete tomcat nube.. can someone please tell me if I need to install or configure another package?
16:12.55stmahermanythanks
16:15.10stmahersorry.. my os is windows 2003
16:15.51*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
16:31.01*** join/#tomcat jeevan_ullas (n=deepsa@fedora/jeevanullas)
16:31.09jeevan_ullashi guys , once again ;)
16:31.18alperkanatsomeone please ?
16:31.56jeevan_ullasmy earleir question was if i have a folder in webapps/ directory which holds my war files how will i be able to deploy them on the server
16:35.11cloviswhi, anyone knows because in JConsole i get less than 40% of CPU Usage, but the tomcat java daemon process consumes all the CPU on Linux? any idea?
16:46.28*** join/#tomcat telpochyaotl (n=telpochy@201.150.7.242)
16:48.49telpochyaotlHi All... Using tomcat 5.5.1, with liferay portal 4.3.1, and IE 6 and 7, i sometimes get this on the log:  java.lang.ArrayIndexOutOfBoundsException: 8192
16:48.49telpochyaotl<PROTECTED>
17:06.53*** join/#tomcat mikepea (n=mikepoun@82.108.63.100)
17:17.38*** join/#tomcat bennett (n=bennett@lavender.cime.net)
17:20.16*** join/#tomcat pucko_ (i=andreas@81-234-246-21-o933.tbon.telia.com)
17:29.03cloviswhi, anyone knows because in JConsole i get less than 40% of CPU Usage, but the tomcat java daemon process consumes all the CPU on Linux? any idea?
17:45.28Dwayne_Hicksdo you have a poorly written servlet deployed?
18:05.30*** join/#tomcat mikepea (n=mikepoun@cpc5-brig7-0-0-cust404.brig.cable.ntl.com)
18:13.56*** join/#tomcat si|ent (n=silent@grunt.silent-system.net)
18:14.35randrewtelpochyaotl: you may find tomcat 5.5.26 to be less buggy than 5.5.1.
18:14.56si|entis it possible to download a java rpm without having to jump through hoops of jpackage etc?
18:16.48randrewsi|ent: yeah, go to java.sun.com and download it.
18:17.47si|enti downloaded and installed the rpm... and alternatives --config java onyl shows "/usr/lib/jvm/jre-1.4.2-gcj/bin/java"
18:18.45randrewsi|ent: if you want your distro's package management to be aware you will need to jump through the hoops...
18:19.34si|enti'm gathering that - rather annoyingly
18:20.45randrewjeevan_ullas: wars go in webapps/
18:22.00bennettim reading about tomcat 6 but can anyone tell me about its upgrades from 5
18:23.15randrewstmaher: org.apache.tools.ant.filters.StringInputStream is a class that comes with apache-ant.
18:24.00randrewbennett: http://tomcat.apache.org/whichversion.html
18:25.00bennettrandrew: i took a look at that, but i can't find where 6 has memory usage optimizations
18:31.13randrewbennett: When you find that out out maybe you can suggest improvements for the web page.
18:31.38si|entwhois randrew
18:31.48a4akba...
18:32.03randrewclovisw: perhaps a profiling tool would help you
18:32.28*** join/#tomcat gregor_k (n=a@stgt-4dbe072f.pool.einsundeins.de)
18:32.33telpochyaotlrandrew: actually i was mistaken, i'm using  5.5.23
18:34.14cloviswrandrew: there is a profiling tool that i can use in production? like attach to running tomcat?
18:34.14bennettrandrew: yeah, thanks for you help
18:34.14telpochyaotli've no ide if the issue si gone in 5.5.26, but it is something others have experienced
18:34.16randrewtelpochyaotl: does 8192 seem like an odd number to be an error-causing array index?
18:34.58randrewclovisw: a profiling tool is likely to impact performance
18:37.21cloviswrandrew: i will try to use only tools of JDK 6 like jmap to take a snapshot of what is running in that machine, because the problem is just at one place
18:37.48*** join/#tomcat mauriez (i=maui@xs2.xs4all.nl)
18:39.34randrewclovisw: something like www.glassbox.com might help you, but i would only recommend running it in a test env.
18:46.12randrewtelpochyaotl: see https://issues.apache.org/bugzilla/show_bug.cgi?id=40719
18:46.36telpochyaotlrandrew: looking...
18:52.57telpochyaotlrandrew: I read it now... Well, i had already tried upping up the maxHttpHeaderSize ... This issue is only caused by Internet Explorer, when clicking a link...
18:53.17telpochyaotlrandrew: does a maxHttpHeaderSize of 64k seem reasonable to work around this issue?
18:53.30telpochyaotli wonder what side effects of upping that up so much can be
18:57.33randrewtelpochyaotl: dunno
19:03.48pfntelpochyaotl, inspect the headers that tomcat is reading or sending
19:03.59pfnand that should explain why you need an http header size of >8kb
19:07.24*** part/#tomcat mistik1 (n=mistik1@ool-4352c7d3.dyn.optonline.net)
19:39.08*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.static.zebra.lt)
19:40.49*** join/#tomcat hfg (n=jarijoki@tuomi.oulu.fi)
19:42.34hfgmy host is running tomcat 4.1.29 and i've got the web-inf folder in my public_html and web.xml looks like this http://pastebin.com/m4d73e95
19:42.50hfgbut still resource unavailable when i try to access public_html
19:43.07hfghjalp? :>
19:49.36pfnpublic_html isn't searched by tomcat
19:55.37*** join/#tomcat vinse (n=vinse_@208.253.223.146)
19:56.22*** join/#tomcat telpochyaotl (n=telpochy@189.156.20.11)
20:00.05*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.static.zebra.lt)
20:02.43hfgpfn it worked before i wiped public_html and recreated my stuff
20:03.18pfnshrugs
20:04.20telpochyaotlhow bad would it be to set maxHttpHeaderSize to 64k?
20:06.33pfnnot very bad, presumably
20:06.42pfnwhy 64k instead of a number like 16k
20:06.56*** part/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu)
20:07.42*** join/#tomcat acidjnk (n=have@pD950A1BC.dip0.t-ipconnect.de)
20:09.57telpochyaotlpfn: as a workaround for a problem i have, IE causes an array out of bounds exception
20:10.10telpochyaotlpfn: it actually makes the server go crazy if using mod_jk
20:10.19telpochyaotlonly when i click on some links in my app
20:10.30telpochyaotlhaven't figured out a better work around
20:10.31pfnwell, you should inspect the in and outbound http headers
20:10.33pfnand see why
20:10.37pfnand why don't you try 16k
20:10.42pfnwhy jump all the way to 64k
20:10.56telpochyaotlpfn: oh, did try 16, that didn't do it...
20:11.20pfnyou should inspect your http headers then
20:11.29pfnand see why you're wasting so much bandwidth in headers
20:11.32telpochyaotlpfn: i should indeed check the headers... can you recommend me how? should i use an http monitor such as netbeans?
20:11.55pfnsee if there's a plugin for IE
20:12.02pfnsee if there's a logging valve for tomcat
20:12.02telpochyaotlpfn: the funny thing is that it only happens with IE and with only one link...
20:12.12pfnor if you're familiar with working with wireshark or tcpdump, use that
20:12.21telpochyaotltcpdump
20:12.27telpochyaotlyea... That's a great idea...
20:12.32telpochyaotlpfn: thanks for the suggestion
20:12.35telpochyaotli'll give it a try
20:32.05*** join/#tomcat balla (n=balla@adsl-ull-181-9.51-151.net24.it)
20:34.53*** join/#tomcat ronald_ (n=ronald@77.164.5.140)
20:35.14ronald_hello
20:36.03ronald_Can anyone give me a hand?
20:36.48ronald_I'm having problems with accessing the manager from another ip then localhost/127.0.0.1
20:38.06ronald_I'm running Apache Tomcat/5.5.26, Sun Java jdk1.6.0_06
20:38.14ronald_and CentOS 5.1
20:38.24ronald_anyone an idea where I've to look?
20:39.23ronald_Owh, on top off that: I did put the manager in $CATALINA_HOME/conf/tomcat-users.xml, I'm able to login with lynx, but not from outside, even when I forward a port with ssh so it looks like it's comung from localhost
20:40.13*** join/#tomcat ronald__ (n=ronald@ns1.a61.nl)
21:06.29*** join/#tomcat Quiddity (n=steve@ng1.cptxoffice.net)
21:07.21*** part/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br)
21:08.32Quiddityhi. say you have an application deployed in the /home/user/www/appdir/ sub-directory of their docBase and you want it to have the libraries in /home/user/www/WEB-INF/ available to it. How would this be possible?
21:08.59Quiddityi would assume you'd need a deployment descriptor of some sort in ~/www/WEB-INF/web.xml, but I honestly don't know where to start :)
21:09.42pfnappdir needs its own WEB-INF
21:10.22Quiddityyea, that's what i thought at first, but random folk keep insisting they've had it work on their *other* mythical servers
21:10.40pfnthe answer is no
21:10.52Quiddityso you'd have to create a copy of all the libraries in each sub-directories WEB-INF?
21:11.02ronald_hm...
21:11.13ronald_I still don't get it
21:11.19Quiddityor put them in the shared or common directories?
21:21.23*** join/#tomcat Temujin_12 (n=caleb@wmtfw01.purenetworks.com)
21:21.51Temujin_12i have a query string parameter URL encoding question for anyone that's out there?
21:23.10Temujin_12i have a query string the contains ...&foo=bar%4baz...  whenever I try to get this parameter calling httpServletRequestObject.get("foo") it always returns null
21:23.32pfn.get?
21:23.35pfn.getParameter
21:23.49Temujin_12sorry, yes .getParamter() not .get()
21:24.00pfnthen you're doing something wrong
21:24.03Temujin_12i know that %4 is an invalid URL encoding... but why doesn't it just return 'bar%4baz' instead of null
21:24.23pfnshrugs
21:24.24Temujin_12if i take out the %4 then it returns 'barbaz' just fine
21:24.41pfnthen %4 is just unacceptable then
21:25.17Temujin_12i guess i figured that if tomcat was going to refuse to parse that parameter that it would maybe throw an exception rather than drop the data
21:27.13Temujin_12this is tomcat 5.0.28 btw
21:27.35pfnupdate to tomcat 5.5.2x at the very least
21:38.48*** join/#tomcat melter (n=Melter@dyn007.morrill-116.ndsu.NoDak.edu)
21:51.30Temujin_12hmmm.... i have a tomcat 5.5.26 server and it is exhibiting this same behavior
21:52.31Temujin_12i can create a url with an invalid url encoding and that paramter returns null
21:55.29Temujin_12so it looks like when tomcat reaches the '%' character in a url, it will parse the following two characters (to get %xx) and if the %xx encoding is invalid it will drop the parameter w/o exception
22:09.25pfnshrugs
22:09.32pfnfile a bug with the tomcat folks
22:30.54Temujin_12i filed bug https://issues.apache.org/bugzilla/show_bug.cgi?id=44897 for anyone who cares
22:35.47jasonbIt would actually parse that as %4b, I'm sure.
22:36.12pfnsounds like it should
22:36.18jasonbThe "b" coming from "baz"..
22:36.33jasonbOf course, I don't know what broken Tomcat versions do.  :)
22:37.09jasonbIt's obviously a bug if the latest 5.5 does it.
22:38.46jasonboh, in the bug you're reporting it as "foo=bar%4xbaz", which is different than what you asked in here.
22:39.02Temujin_12i ran across it when a url that contained an email in the query string had just %4 instead of %40 for '@'
22:39.26*** join/#tomcat eghm_ (n=yafn@71-220-15-54.mpls.qwest.net)
22:39.41Temujin_12i can change the character following %4 to any non-hexadecimal character and it will have the same result
22:39.59jasonbneat!
22:40.04jasonbNothing in the logs about it?
22:40.06pfnso it's bugg0red
22:40.12Temujin_12not that i saw
22:40.47jasonbYup, it's a good bug report.
22:40.59pfnanyway, admittedly, a uri like /whatever%xx is invalid
22:41.02pfnand should be unparseable
22:41.11Temujin_12agreed
22:41.25Temujin_12though i think doing something other than just returning null would be more helpful
22:41.28jasonbwell, but he's reporting it as "/webappName/?foo=bar%4xbaz"
22:41.48jasonbThat's valid all except for the %4x, but that shouldn't make the foo parameter null.
22:42.02pfnit should since it's unparseable
22:42.19*** join/#tomcat si|ent (n=silent@grunt.silent-system.net)
22:42.26pfn%xx should never reach the user-application unresolved
22:42.41pfnimo, at most, it should be logged and discarded
22:42.47Temujin_12in the bug  point out that this same example run against other languages/frameworks will have their corresponding "foo" paramter return the undecoded string
22:42.56jasonbWell, I think when it finds the %, it should look at the following two chars to see if they could be a hex encoded char, and if so then decode it.. otherwise continue parsing and leave the % literal.
22:43.05pfnit should never leave the % literal
22:43.09pfnit's not a valid uri string
22:43.11Temujin_12for what it's worth, PHPand Ruby on Rails return "bar%xxbaz"
22:43.17pfnas described in the URI rfc
22:43.18jasonbhmm..
22:43.45jasonbWell hmm..
22:43.49pfnif you want a % in the uri string it must be %% or something, I forget
22:43.57pfnotherwise it's just plain invalid
22:44.11Temujin_12i'm not an RFC expert on URLs so I don't know if there is an RFC rule for this
22:44.19jasonbTemujin_12: Is it invoking any servlet when your parameter has that value?
22:44.25jasonbit = Tomcat
22:44.49Temujin_12yes, i am able to print out the result of .getParamter("foo") in my sevlet
22:44.53si|enthi, having an issue starting tomcat 5.5.23 on centos 5.1 with sun java 1.5.0_14
22:44.55si|entjava.sql.SQLException: org.gjt.mm.mysql.Driver
22:44.56Temujin_12it always prints out 'null'
22:45.22jasonbYeah, that seems wrong.  If the query string is an invalidly formatted query string, then I think the servlet shouldn't get invoked by the container.  
22:45.46pfnthat'd arguably be an option as well
22:45.54pfnit should result in http 400
22:46.38jasonbYes.. 400 Bad Request
22:46.41Temujin_12i'd vote for 1) return the undecoded parameter if there's no RFC rule against it  2) reutrn UnsupportedEncodingException on .getParameter() call or 3) make it configurable as to what you want TOmcat to do
22:47.13Temujin_12#3 could include return 400 perhaps
22:47.15pfn#2 is not possible
22:47.20jasonbI think the URL RFC would overrule the rest.
22:47.23pfnUEE is an IO exception (thus checked)
22:47.34pfnI agree with error 400
22:49.03si|entanyone able to help?
22:49.03Temujin_12not that other languages/frameworks are the authority on something like this, but does anyone know how languages/frameworks other than PHP/RubyOnRails?  If its common for languages/frameworks to handle this in a particular way then there may be some value in following suit
22:49.30Temujin_12sorry i mean "does anyone know how languages/frameworks other than PHP/RubyOnRails handle this situation?"
22:49.33pfnTemujin_12, there's no reason to encourage such brokenness
22:49.48jasonbFollowing RFCs that govern all web languages/frameworks would be the most important thing to do.
22:49.50pfndoesn't matter that "everyone else is doing it"
22:50.03pfnif everyone is jumping off the nearest bridge, does that mean you have to?
22:50.15pfnif you're a mindless sheep, sure
22:50.15jasonbYeah, don't jump off the PHP bridge.  :)
22:50.18Temujin_12if there's an RFC rule about it then follow it for sure.... in the absense of such a rule following what the majority of ofther frameworks/languages do would be best (IMHO)
22:50.50jasonbTemujin_12: Not necessarily.  Thinking for onesself might be the best thing to do when the RFCs aren't governing things.
22:51.06Temujin_12sure
22:51.33Temujin_12regardless, i think returning null is probably not the best thing to do in this situation.... i'm fine with most other proposed alternatives
22:51.36jasonbSeeing what others do to solve the problem(s) is often also helpful, but that can't really be a substitute for thinking for yourself.
22:51.50jasonbYeah, obviously the current behavior is a bug.
22:53.52Temujin_12i agree that "'cause other's are doing it" is not a valid argument... however, it would be worth investigating whether or not there is a common behavior among most other languages/frameworks on this issue IF the RFC is mute on this
22:54.10jasonbYes.
23:01.55si|entanyone able to help with a jdbc driver issue in server.xml
23:02.32si|enthave installed the sun java, but either driverName="sun.jdbc.odbc.JdbcOdbcDriver" or driverName="org.gjt.mm.mysql.Driver" keep failing
23:03.38jasonbsi|ent: Put the jdbc driver jar in your Tomcat's lib/ directory and restart Tomcat.
23:04.15si|ent/var/lib/tomcat5/common/lib/[jdbc-stdext].jar ?
23:05.39jasonbcommon/lib/ is the place to put it, yes, but if you're trying to use the mysql jdbc driver, you should put the mysql jdbc driver jar in there.
23:05.50jasonb(_not_ the jdbc-stdext.jar)
23:07.08si|entwould that derive from the mysql-connector-java ?
23:07.48jasonbError: undefined reference to "that".  :)
23:08.09jasonbgives an english compiler error
23:08.23si|entsorry :)  I'm assuming the jar i need it either "mysql-connector-java-3.0.17-ga-bin.jar" or "mysql-connector-java-5.1.3-rc-bin.jar"
23:08.47jasonbYes.
23:09.02si|enti'mand i can leave the drivername as org.gjt.mm.mysql.Driver?
23:09.46si|enter - "and i can"
23:10.30jasonbThat's a different, long gone mysql driver.  Where are you seeing this JDBC driver class name?
23:10.57si|enttrying to move a tomcat installation of an old suse box to centos
23:11.18jasonbYou must like old operating systems.  :)
23:12.02si|entbasically they have both "mysql-connector-java-3.0.17-ga-bin.jar" and "mysql-connector-java-5.1.3-rc-bin.jar" in common/lib and driverName="org.gjt.mm.mysql.Driver" in the server.xml
23:12.09si|entcentos 5.1 isn't too bad ;)
23:12.19jasonbNo, the "new" (as in, only about 5 or 6 years old) mysql jdbc driver name is com.mysql.jdbc.Driver.
23:13.04jasonbsi|ent: How do you know if it isn't too bad or not if you only run old operating systems?  :)
23:13.06si|entthats in the driverClassName="com.mysql.jdbc.Driver"... from what i can see
23:27.32*** part/#tomcat Temujin_12 (n=caleb@wmtfw01.purenetworks.com)
23:32.14si|entchamp - that ones solves... not its giving me nested stack trace *sigh* java.sql.SQLException: Error during query: Unexpected Exception: java.io.CharConversionException message given: null
23:35.55si|entplacing "default-character-set=utf8" in mysql's config seems to have fixed it... but seems i migth be just masking the problem :/
23:41.31si|entthanks for your help jasonb

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.