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.30 | lazsea | hello! |
10:32.30 | lazsea | I am a bit puzzled considering how to install Tomcat |
10:32.52 | lazsea | actually I installed Tomcat and I want to run zk on it, but I don't know what I have to do |
10:33.02 | lazsea | some help please! |
10:54.02 | *** join/#tomcat jeevan_ullas (n=deepsa@fedora/jeevanullas) |
10:54.06 | jeevan_ullas | hi all |
10:55.02 | jeevan_ullas | i 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.14 | jeevan_ullas | <PROTECTED> |
10:57.06 | jeevan_ullas | i 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.32 | skwi | hello |
12:55.07 | skwi | i have to deploy a standalone software programming with Java and i am looking for a light j2ee server ... |
12:55.33 | skwi | Some one can help me ? |
13:00.39 | *** join/#tomcat alperkanat (n=tunix@195.174.5.120) |
13:01.29 | alperkanat | hey there.. i'm using tomcat 5.5.23-2 (arch linux) |
13:01.32 | alperkanat | and java 1.6 |
13:01.48 | alperkanat | i'm trying to open manager accounts for different users |
13:01.52 | alperkanat | using tomcat-users.xml |
13:02.09 | deebo | skwi: jetty |
13:02.11 | alperkanat | how can i prevent them seeing each other's apps ? |
13:02.33 | alperkanat | including default apps like servlet-examples etc ? |
13:04.13 | skwi | thanks deebo |
13:04.38 | *** part/#tomcat skwi (n=sk@LAubervilliers-151-11-28-181.w193-251.abo.wanadoo.fr) |
13:05.50 | MHSL | alperkanat, what are you trying to achieve? why do you need to give other users manager account? |
13:08.57 | alperkanat | i'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.16 | MHSL | alperkanat, 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.38 | alperkanat | hmmm |
13:13.18 | alperkanat | i'm using virtualhosts for each user.. guess this document will help right ? : http://www.csse.uwa.edu.au/~ryan/tech/tomcat.html |
13:14.29 | MHSL | alperkanat, there are apache sample configs there, but it's a bit oudated for tomcat configuration |
13:15.46 | alperkanat | any up2date docs around ? |
13:19.23 | MHSL | alperkanat, 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.39 | MHSL | alperkanat, or this http://agiletesting.blogspot.com/2007/05/apache-virtual-hosting-with-tomcat-and.html |
13:19.51 | alperkanat | allright, MHSL thanks a lot |
13:20.02 | MHSL | alperkanat, the way i do it is just to set up vhost on apache, but i dont set up any vhost on tomcat |
13:20.20 | alperkanat | MHSL: yeah i'm not doing that too |
13:20.28 | alperkanat | MHSL: i have virtualhosts in apache |
13:20.53 | alperkanat | MHSL: and want some the users that have virtualhosts can deploy tomcat apps |
13:22.04 | MHSL | alperkanat, 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.08 | MHSL | alperkanat, either way i'm using aliasmatch on apache to do the forwarding to the correct dir |
13:23.39 | alperkanat | i see.. |
13:24.14 | MHSL | alperkanat, 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.48 | MHSL | alperkanat, it really depends on how you want to do it, there are few ways to do it |
13:26.18 | alperkanat | i 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.30 | MHSL | ic |
13:26.36 | alperkanat | MHSL: i've tomcat working fine on 8080 |
13:27.04 | MHSL | alperkanat, 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.06 | alperkanat | now 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.48 | alperkanat | MHSL: tomcat is shared by all users |
13:27.49 | MHSL | alperkanat, 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.58 | MHSL | configure* |
13:28.15 | alperkanat | i've installed mod_jk |
13:28.35 | alperkanat | but i really don't know the rest of the steps.. all tutorials discuss about different things |
13:28.48 | alperkanat | i didn't understand why i disable 8080 by the way |
13:28.52 | MHSL | so 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.04 | alperkanat | hmm |
13:29.21 | MHSL | alperkanat, you're using port 8080 because you're accessing tomcat straight away instead of going through apache then tomcat |
13:29.25 | alperkanat | so i need to forward requests for JSP files to some directories right ? |
13:29.34 | alperkanat | hmm |
13:30.45 | MHSL | alperkanat, 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.15 | MHSL | alperkanat, 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.21 | MHSL | alperkanat, you should make that apache -> tomcat works first before you proceed with virtual host etc |
13:33.09 | alperkanat | ?? i'm confused.. should i disable mod_jk ? |
13:33.29 | MHSL | alperkanat, as i said you need mod_jk to be able to have apache and tomcat communicate with each other |
13:33.51 | alperkanat | hmm |
13:34.38 | MHSL | alperkanat, 1) setup tomcat (enable ajp connector in server.xml) 2) install apache 3) compile mod_jk and install it on apache |
13:34.59 | alperkanat | so 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.00 | MHSL | alperkanat, 4) configure mod_jk (worker.properties and mod_jk.conf) |
13:35.32 | MHSL | alperkanat, yes, you forward any requests that should be handled by tomcat (jsp, servlet, etc) to tomcat |
13:35.59 | MHSL | alperkanat, so everything will always go through apache |
13:36.49 | alperkanat | MHSL: AJP is enabled by default in server.xml |
13:37.05 | alperkanat | mod_jk is enabled through my apache conf |
13:37.24 | alperkanat | so 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.41 | clovisw | anyone knows how i enable the NIO HTTP connectors? |
15:15.47 | alperkanat | MHSL: does apache have to tie some ports to the workers defined in workers.properties ? |
15:15.55 | alperkanat | i 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.49 | alperkanat | pfff |
16:11.02 | alperkanat | i now have The requested resource (/hede/) is not available. |
16:11.10 | alperkanat | :( |
16:11.47 | alperkanat | can someone please help me ? |
16:11.58 | alperkanat | i copied the jsp-examples folder to hede folder |
16:12.07 | *** join/#tomcat stmaher (n=stmaher@mail.voxpilot.com) |
16:12.08 | alperkanat | but i still can't see the index page |
16:12.27 | alperkanat | despite that, apache forwards the request for /hede folder to tomcat |
16:12.40 | alperkanat | but tomcat doesn't show the index page |
16:12.54 | stmaher | Hello 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.55 | stmaher | manythanks |
16:15.10 | stmaher | sorry.. 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.09 | jeevan_ullas | hi guys , once again ;) |
16:31.18 | alperkanat | someone please ? |
16:31.56 | jeevan_ullas | my 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.11 | clovisw | hi, 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.49 | telpochyaotl | Hi 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.49 | telpochyaotl | <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.03 | clovisw | hi, 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.28 | Dwayne_Hicks | do 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.35 | randrew | telpochyaotl: you may find tomcat 5.5.26 to be less buggy than 5.5.1. |
18:14.56 | si|ent | is it possible to download a java rpm without having to jump through hoops of jpackage etc? |
18:16.48 | randrew | si|ent: yeah, go to java.sun.com and download it. |
18:17.47 | si|ent | i downloaded and installed the rpm... and alternatives --config java onyl shows "/usr/lib/jvm/jre-1.4.2-gcj/bin/java" |
18:18.45 | randrew | si|ent: if you want your distro's package management to be aware you will need to jump through the hoops... |
18:19.34 | si|ent | i'm gathering that - rather annoyingly |
18:20.45 | randrew | jeevan_ullas: wars go in webapps/ |
18:22.00 | bennett | im reading about tomcat 6 but can anyone tell me about its upgrades from 5 |
18:23.15 | randrew | stmaher: org.apache.tools.ant.filters.StringInputStream is a class that comes with apache-ant. |
18:24.00 | randrew | bennett: http://tomcat.apache.org/whichversion.html |
18:25.00 | bennett | randrew: i took a look at that, but i can't find where 6 has memory usage optimizations |
18:31.13 | randrew | bennett: When you find that out out maybe you can suggest improvements for the web page. |
18:31.38 | si|ent | whois randrew |
18:31.48 | a4akba | ... |
18:32.03 | randrew | clovisw: perhaps a profiling tool would help you |
18:32.28 | *** join/#tomcat gregor_k (n=a@stgt-4dbe072f.pool.einsundeins.de) |
18:32.33 | telpochyaotl | randrew: actually i was mistaken, i'm using 5.5.23 |
18:34.14 | clovisw | randrew: there is a profiling tool that i can use in production? like attach to running tomcat? |
18:34.14 | bennett | randrew: yeah, thanks for you help |
18:34.14 | telpochyaotl | i've no ide if the issue si gone in 5.5.26, but it is something others have experienced |
18:34.16 | randrew | telpochyaotl: does 8192 seem like an odd number to be an error-causing array index? |
18:34.58 | randrew | clovisw: a profiling tool is likely to impact performance |
18:37.21 | clovisw | randrew: 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.34 | randrew | clovisw: something like www.glassbox.com might help you, but i would only recommend running it in a test env. |
18:46.12 | randrew | telpochyaotl: see https://issues.apache.org/bugzilla/show_bug.cgi?id=40719 |
18:46.36 | telpochyaotl | randrew: looking... |
18:52.57 | telpochyaotl | randrew: 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.17 | telpochyaotl | randrew: does a maxHttpHeaderSize of 64k seem reasonable to work around this issue? |
18:53.30 | telpochyaotl | i wonder what side effects of upping that up so much can be |
18:57.33 | randrew | telpochyaotl: dunno |
19:03.48 | pfn | telpochyaotl, inspect the headers that tomcat is reading or sending |
19:03.59 | pfn | and 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.34 | hfg | my 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.50 | hfg | but still resource unavailable when i try to access public_html |
19:43.07 | hfg | hjalp? :> |
19:49.36 | pfn | public_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.43 | hfg | pfn it worked before i wiped public_html and recreated my stuff |
20:03.18 | pfn | shrugs |
20:04.20 | telpochyaotl | how bad would it be to set maxHttpHeaderSize to 64k? |
20:06.33 | pfn | not very bad, presumably |
20:06.42 | pfn | why 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.57 | telpochyaotl | pfn: as a workaround for a problem i have, IE causes an array out of bounds exception |
20:10.10 | telpochyaotl | pfn: it actually makes the server go crazy if using mod_jk |
20:10.19 | telpochyaotl | only when i click on some links in my app |
20:10.30 | telpochyaotl | haven't figured out a better work around |
20:10.31 | pfn | well, you should inspect the in and outbound http headers |
20:10.33 | pfn | and see why |
20:10.37 | pfn | and why don't you try 16k |
20:10.42 | pfn | why jump all the way to 64k |
20:10.56 | telpochyaotl | pfn: oh, did try 16, that didn't do it... |
20:11.20 | pfn | you should inspect your http headers then |
20:11.29 | pfn | and see why you're wasting so much bandwidth in headers |
20:11.32 | telpochyaotl | pfn: i should indeed check the headers... can you recommend me how? should i use an http monitor such as netbeans? |
20:11.55 | pfn | see if there's a plugin for IE |
20:12.02 | pfn | see if there's a logging valve for tomcat |
20:12.02 | telpochyaotl | pfn: the funny thing is that it only happens with IE and with only one link... |
20:12.12 | pfn | or if you're familiar with working with wireshark or tcpdump, use that |
20:12.21 | telpochyaotl | tcpdump |
20:12.27 | telpochyaotl | yea... That's a great idea... |
20:12.32 | telpochyaotl | pfn: thanks for the suggestion |
20:12.35 | telpochyaotl | i'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.14 | ronald_ | hello |
20:36.03 | ronald_ | Can anyone give me a hand? |
20:36.48 | ronald_ | I'm having problems with accessing the manager from another ip then localhost/127.0.0.1 |
20:38.06 | ronald_ | I'm running Apache Tomcat/5.5.26, Sun Java jdk1.6.0_06 |
20:38.14 | ronald_ | and CentOS 5.1 |
20:38.24 | ronald_ | anyone an idea where I've to look? |
20:39.23 | ronald_ | 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.32 | Quiddity | hi. 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.59 | Quiddity | i 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.42 | pfn | appdir needs its own WEB-INF |
21:10.22 | Quiddity | yea, that's what i thought at first, but random folk keep insisting they've had it work on their *other* mythical servers |
21:10.40 | pfn | the answer is no |
21:10.52 | Quiddity | so you'd have to create a copy of all the libraries in each sub-directories WEB-INF? |
21:11.02 | ronald_ | hm... |
21:11.13 | ronald_ | I still don't get it |
21:11.19 | Quiddity | or put them in the shared or common directories? |
21:21.23 | *** join/#tomcat Temujin_12 (n=caleb@wmtfw01.purenetworks.com) |
21:21.51 | Temujin_12 | i have a query string parameter URL encoding question for anyone that's out there? |
21:23.10 | Temujin_12 | i 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.32 | pfn | .get? |
21:23.35 | pfn | .getParameter |
21:23.49 | Temujin_12 | sorry, yes .getParamter() not .get() |
21:24.00 | pfn | then you're doing something wrong |
21:24.03 | Temujin_12 | i know that %4 is an invalid URL encoding... but why doesn't it just return 'bar%4baz' instead of null |
21:24.23 | pfn | shrugs |
21:24.24 | Temujin_12 | if i take out the %4 then it returns 'barbaz' just fine |
21:24.41 | pfn | then %4 is just unacceptable then |
21:25.17 | Temujin_12 | i 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.13 | Temujin_12 | this is tomcat 5.0.28 btw |
21:27.35 | pfn | update 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.30 | Temujin_12 | hmmm.... i have a tomcat 5.5.26 server and it is exhibiting this same behavior |
21:52.31 | Temujin_12 | i can create a url with an invalid url encoding and that paramter returns null |
21:55.29 | Temujin_12 | so 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.25 | pfn | shrugs |
22:09.32 | pfn | file a bug with the tomcat folks |
22:30.54 | Temujin_12 | i filed bug https://issues.apache.org/bugzilla/show_bug.cgi?id=44897 for anyone who cares |
22:35.47 | jasonb | It would actually parse that as %4b, I'm sure. |
22:36.12 | pfn | sounds like it should |
22:36.18 | jasonb | The "b" coming from "baz".. |
22:36.33 | jasonb | Of course, I don't know what broken Tomcat versions do. :) |
22:37.09 | jasonb | It's obviously a bug if the latest 5.5 does it. |
22:38.46 | jasonb | oh, in the bug you're reporting it as "foo=bar%4xbaz", which is different than what you asked in here. |
22:39.02 | Temujin_12 | i 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.41 | Temujin_12 | i can change the character following %4 to any non-hexadecimal character and it will have the same result |
22:39.59 | jasonb | neat! |
22:40.04 | jasonb | Nothing in the logs about it? |
22:40.06 | pfn | so it's bugg0red |
22:40.12 | Temujin_12 | not that i saw |
22:40.47 | jasonb | Yup, it's a good bug report. |
22:40.59 | pfn | anyway, admittedly, a uri like /whatever%xx is invalid |
22:41.02 | pfn | and should be unparseable |
22:41.11 | Temujin_12 | agreed |
22:41.25 | Temujin_12 | though i think doing something other than just returning null would be more helpful |
22:41.28 | jasonb | well, but he's reporting it as "/webappName/?foo=bar%4xbaz" |
22:41.48 | jasonb | That's valid all except for the %4x, but that shouldn't make the foo parameter null. |
22:42.02 | pfn | it should since it's unparseable |
22:42.19 | *** join/#tomcat si|ent (n=silent@grunt.silent-system.net) |
22:42.26 | pfn | %xx should never reach the user-application unresolved |
22:42.41 | pfn | imo, at most, it should be logged and discarded |
22:42.47 | Temujin_12 | in 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.56 | jasonb | Well, 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.05 | pfn | it should never leave the % literal |
22:43.09 | pfn | it's not a valid uri string |
22:43.11 | Temujin_12 | for what it's worth, PHPand Ruby on Rails return "bar%xxbaz" |
22:43.17 | pfn | as described in the URI rfc |
22:43.18 | jasonb | hmm.. |
22:43.45 | jasonb | Well hmm.. |
22:43.49 | pfn | if you want a % in the uri string it must be %% or something, I forget |
22:43.57 | pfn | otherwise it's just plain invalid |
22:44.11 | Temujin_12 | i'm not an RFC expert on URLs so I don't know if there is an RFC rule for this |
22:44.19 | jasonb | Temujin_12: Is it invoking any servlet when your parameter has that value? |
22:44.25 | jasonb | it = Tomcat |
22:44.49 | Temujin_12 | yes, i am able to print out the result of .getParamter("foo") in my sevlet |
22:44.53 | si|ent | hi, having an issue starting tomcat 5.5.23 on centos 5.1 with sun java 1.5.0_14 |
22:44.55 | si|ent | java.sql.SQLException: org.gjt.mm.mysql.Driver |
22:44.56 | Temujin_12 | it always prints out 'null' |
22:45.22 | jasonb | Yeah, 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.46 | pfn | that'd arguably be an option as well |
22:45.54 | pfn | it should result in http 400 |
22:46.38 | jasonb | Yes.. 400 Bad Request |
22:46.41 | Temujin_12 | i'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.13 | Temujin_12 | #3 could include return 400 perhaps |
22:47.15 | pfn | #2 is not possible |
22:47.20 | jasonb | I think the URL RFC would overrule the rest. |
22:47.23 | pfn | UEE is an IO exception (thus checked) |
22:47.34 | pfn | I agree with error 400 |
22:49.03 | si|ent | anyone able to help? |
22:49.03 | Temujin_12 | not 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.30 | Temujin_12 | sorry i mean "does anyone know how languages/frameworks other than PHP/RubyOnRails handle this situation?" |
22:49.33 | pfn | Temujin_12, there's no reason to encourage such brokenness |
22:49.48 | jasonb | Following RFCs that govern all web languages/frameworks would be the most important thing to do. |
22:49.50 | pfn | doesn't matter that "everyone else is doing it" |
22:50.03 | pfn | if everyone is jumping off the nearest bridge, does that mean you have to? |
22:50.15 | pfn | if you're a mindless sheep, sure |
22:50.15 | jasonb | Yeah, don't jump off the PHP bridge. :) |
22:50.18 | Temujin_12 | if 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.50 | jasonb | Temujin_12: Not necessarily. Thinking for onesself might be the best thing to do when the RFCs aren't governing things. |
22:51.06 | Temujin_12 | sure |
22:51.33 | Temujin_12 | regardless, 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.36 | jasonb | Seeing 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.50 | jasonb | Yeah, obviously the current behavior is a bug. |
22:53.52 | Temujin_12 | i 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.10 | jasonb | Yes. |
23:01.55 | si|ent | anyone able to help with a jdbc driver issue in server.xml |
23:02.32 | si|ent | have installed the sun java, but either driverName="sun.jdbc.odbc.JdbcOdbcDriver" or driverName="org.gjt.mm.mysql.Driver" keep failing |
23:03.38 | jasonb | si|ent: Put the jdbc driver jar in your Tomcat's lib/ directory and restart Tomcat. |
23:04.15 | si|ent | /var/lib/tomcat5/common/lib/[jdbc-stdext].jar ? |
23:05.39 | jasonb | common/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.50 | jasonb | (_not_ the jdbc-stdext.jar) |
23:07.08 | si|ent | would that derive from the mysql-connector-java ? |
23:07.48 | jasonb | Error: undefined reference to "that". :) |
23:08.09 | jasonb | gives an english compiler error |
23:08.23 | si|ent | sorry :) 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.47 | jasonb | Yes. |
23:09.02 | si|ent | i'mand i can leave the drivername as org.gjt.mm.mysql.Driver? |
23:09.46 | si|ent | er - "and i can" |
23:10.30 | jasonb | That's a different, long gone mysql driver. Where are you seeing this JDBC driver class name? |
23:10.57 | si|ent | trying to move a tomcat installation of an old suse box to centos |
23:11.18 | jasonb | You must like old operating systems. :) |
23:12.02 | si|ent | basically 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.09 | si|ent | centos 5.1 isn't too bad ;) |
23:12.19 | jasonb | No, the "new" (as in, only about 5 or 6 years old) mysql jdbc driver name is com.mysql.jdbc.Driver. |
23:13.04 | jasonb | si|ent: How do you know if it isn't too bad or not if you only run old operating systems? :) |
23:13.06 | si|ent | thats 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.14 | si|ent | champ - 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.55 | si|ent | placing "default-character-set=utf8" in mysql's config seems to have fixed it... but seems i migth be just masking the problem :/ |
23:41.31 | si|ent | thanks for your help jasonb |