irclog2html for #tomcat on 20060620

00:03.24*** join/#tomcat Uviz (n=vee@user-1121arh.dsl.mindspring.com)
00:33.11*** join/#tomcat map7work (n=map7@teksup41.lnk.telstra.net)
00:34.45*** join/#tomcat mick_ (n=map7@teksup41.lnk.telstra.net)
00:34.59*** join/#tomcat mick_ (n=map7@teksup41.lnk.telstra.net)
00:35.19*** join/#tomcat mick_ (n=map7@teksup41.lnk.telstra.net)
00:35.51*** join/#tomcat webben (n=benjamin@82.152.176.189)
00:40.19*** part/#tomcat webben (n=benjamin@82.152.176.189)
01:20.12*** part/#tomcat meppl (i=mephisto@meppl.net)
01:22.36*** join/#tomcat youngdev (n=solid@70.91.144.134)
01:23.12youngdevIs this the right place to ask a jsp programming question?
01:23.34youngdevI am new to jsps and I have some questions
01:30.25yassineyoungdev,  just ask your question ;)
01:30.40yassinedont mind to ask if you can ask :)
01:31.01youngdevok
01:34.22youngdevI finally got tomcat properly configured and I am trying to access my postgres database.  and I keep getting a "Driver not found: java.lang.ClassNotFoundException: " on the following statement: Class.forName("org.postgresql.Driver");
01:35.02youngdevI assume this means that the postgres driver is not part of the default install of tomcat.  
01:36.33youngdevhow is the postgres driver usually installed?
01:42.15swenteyoungdev: there's 2 ways: for the entire server [needed e.g. for use as datasource], or for single webapps.
01:42.39swenteyoungdev:  server-wide: place the .jar in $TOMCAT/common?/lib   (i think it's common-lib, but it might be 'shared', too). single webapps might bring it in their WEB-INF/lib
01:42.52youngdevalright
01:43.00youngdevthat sounds great
01:43.50youngdevnow the next question:  Where am I supposed to get that driver
01:44.01swentehttp://www.postgresql.org
01:44.18youngdevhmmm
01:44.21swenteit's hidden somewhere there :)
01:44.25youngdevok
01:44.27youngdevcool
01:44.57swenteyoungdev: hidden .. to be precise: http://jdbc.postgresql.org/download.html
01:56.02yassineokay you cat folks im tiered and im going to sleep now
01:56.11yassinemau mau good night all
02:05.57*** join/#tomcat remnant (n=lenhan@user-0c9hcot.cable.mindspring.com)
02:28.42youngdevdoes anyone have any experience with the postgres jdbc driver on gentoo?
02:33.08youngdevI emerged the jdbc3-postgresql and symlinked /usr/share/tomcat-5.5/server/lib/jdbc3-postgresql.jar to /usr/share/jdbc3-postgresql/lib/jdbc3-postgres.jar and restarted tomcat
02:33.36youngdevI am still getting a class not found for org.postgres.Driver. Any Ideas
02:34.43youngdevcorrection: I am using the following Class instansiation: Class.forName("org.postgresql.Driver");
02:47.39*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
02:52.58*** join/#tomcat remnant (n=lenhan@user-0c9hcot.cable.mindspring.com)
02:59.53swenteyoungdev: you need the jar in one of tomcat's own dirs [common/lib iirc.].
03:18.58youngdevthanks I was putting it in the wrong dir (doh!!!)  
04:16.01*** join/#tomcat a4akb (i=webirc@freeforge.net)
04:22.31*** join/#tomcat yel (n=yassine@xdsl-84-44-179-83.netcologne.de)
04:49.28*** join/#tomcat valmont (n=chrishol@dsl092-043-004.lax1.dsl.speakeasy.net)
05:11.27*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
05:17.28*** join/#tomcat fix- (n=Bjorn@cable-213-132-146-249.upc.chello.be)
05:32.27*** join/#tomcat nilesh (n=nilesh@203.200.143.20)
05:41.30*** join/#tomcat tulga (n=tulga@202.72.245.106)
05:49.33a4akbjasonb: Hi.
05:50.02youngdevhi jason
05:55.45jasonbHi guys.
05:55.59jasonbHow's it going?
05:56.05youngdevgreat
05:56.08lykenyou know you're a geek if this makes you laugh
05:56.10lykenhttp://www.itee.uq.edu.au/~jamie/leet-haxor.jpg
05:56.12youngdevthanks for your hep
05:57.43jasonblyken: Heh!!  I have one of those and it never occurred to me to write that on the handle.  :)
05:58.04lykeni did it in our workshop a few hours ago
05:58.09lykenim still chuckling :)
05:58.18jasonbheh.. that's a good one.
05:58.26youngdevyou need a better hack saw
05:58.30lykenlol
05:58.33jasonbNow you just need some security to cut with it.  :)
05:58.39youngdevdewalt makes a killer hack saw
05:58.39lykenits just for cutting locks of university equipment
05:58.44jasonbheh
05:59.30youngdevaltho I am continually amazed with what a dremel can do
05:59.37lykenlol yer
05:59.50lyken'hmm what can i use to cut this, dremel it is'
06:06.44*** join/#tomcat lacostej (n=jerome@193.69.156.250)
06:09.05lacostej<offtopic> anyone knows if there's a channel for jakarta commons projects? </offtopic>
06:17.33jasonblacostej: I don't know of one.
06:17.50jasonblacostej: You might want to check to see if there's a "jakarta" channel.
06:25.58lacostejI tried #jakarta, #commons, #jakarta-commons, so there doesn't seem to be one... Trying in fact to get some get feedback on DBCP-175. Maybe some tomcat users might want to look at it...
06:26.17lykenlacostej: have you tried the mailing lists ?
06:34.45lacostejlyken: yep ! sent a mail 3 days ago :) Maybe have to be a little bit more patient!
06:47.32*** join/#tomcat [a]tomi (n=chatzill@pool-71-104-69-181.lsanca.dsl-w.verizon.net)
06:59.57*** join/#tomcat icyValk77 (n=icyValk7@gateway.ash.thebunker.net)
07:08.10*** join/#tomcat cypo (n=opera@dslb-082-083-047-199.pools.arcor-ip.net)
08:56.23*** join/#tomcat roude (n=roude@machina.zengers.de)
08:59.58roudeis there a way to bind the tomcat to an specifig source-interface, if he connects to for example an db or so
09:27.45*** join/#tomcat lacoste1 (n=jerome@193.69.156.250)
09:28.26lacoste1BTW, the DBCP issue (DBCP-175) I mentionned earlier is related to Tomcat issue is #37577. Maybe someone wants to have a look at that one.
10:38.24lykenwb, yer re mailing list that happens sometimes
10:43.08*** join/#tomcat ashlyyy (n=asli@85.100.103.245)
10:43.42ashlyyyhi
10:43.50ashlyyycan anybody help me?
10:43.59ashlyyycan i use php with tomcat?
10:44.22ashlyyyi got mysql server and wnat to display it over intranet or internet
10:45.43lykendont see why you would try and do that
10:45.46lykenwhen apache does it great
10:46.13ashlyyycause my apache2.2 cannot
10:46.24lykenerr, what?
10:46.30lykenmy apache 2.2.2 is running php5 just fine..
10:46.44ashlyyyyeah but u r using unix?
10:47.05ashlyyyi got xp and after i tried every thing i gave up
10:47.14ashlyyyi receive that silly windows message
10:47.15ashlyyyThe Apache service named  reported the following error:
10:47.15ashlyyy>>> httpd.exe: Syntax error on line 115 of C:/apache/conf/httpd.conf: Cannot load C:/apache/modules/php5apache2.dll into server: The specified module could not be found.     .
10:47.19ashlyyybut it is there
10:47.32lykenwell um, youc an get installers for all that
10:48.00lykenwe are running php5 on windows XP here at home
10:48.10ashlyyyyup
10:48.16ashlyyyand it is fine huh?
10:48.54ashlyyydid u use the installer in php.net?
10:51.22lykenyup
10:51.39ashlyyyhmm ok
10:51.42ashlyyyi ll try it
10:52.17ashlyyybut it doesnt say taht it supports apache2.2
10:52.59lykenwot deos it say it supports?
10:53.00lyken2.1?
10:53.28ashlyyyCGI only, packaged as Windows installer to install and configure PHP, and automatically configure IIS, PWS and Xitami, with manual configuration for other servers. No external extensions included, get them from the zip and PECL downloads above, and install manually
10:54.46harpoonsame procedure as every year
10:57.00ashlyyyshall i use that?
10:58.06harpoonin each year we have people wants to use php with tomcat?
10:58.08harpoonwhy?
10:59.32ashlyyyhmm my answer is i am a newbie since i always used asp and access
10:59.52ashlyyybut i saw that mysql works very fine with
10:59.54ashlyyytomcat
10:59.58ashlyyythats why
11:00.06ashlyyyi dunt have mcuh information
11:00.13harpoonashlyyy: switching to tomcat was the first good idea
11:00.14ashlyyywhy not tomcat??
11:00.32ashlyyyoh thnx
11:00.34harpoonnext step would be replacing php by jsp :-)
11:00.44ashlyyyhmm
11:00.48ashlyyyjsp or php
11:00.54ashlyyyit is a very hard question for me
11:01.41harpoonwell, if using jsp you do not have any problems to integrate php
11:01.42harpoon:-)
11:02.05ashlyyyhmm
11:02.05*** join/#tomcat yassine (n=yassine@xdsl-84-44-179-83.netcologne.de)
11:02.07ashlyyyok
11:02.12nileshhii yassine
11:02.21nileshwhats up??
11:02.37yassinehi nilesh im fine thanks
11:02.46yassinei need some coffee here :)
11:02.59nileshi have just have tea
11:03.02harpoonme too.
11:03.08nileshdo u like tea??
11:03.13harpoonthe cup is quite empty
11:03.21yassineohh yeah too with milk
11:03.49nileshharpoon, come here lets have one more cup
11:03.57ashlyyyhow will i set it up?
11:04.15harpoonashlyyy: setting up what?
11:04.29harpoonnilesh: where is "here"?
11:05.03yassinein channel :)
11:05.13ashlyyyjsp with tomcat?
11:05.51nileshharpoon, in india
11:06.11harpoonashlyyy: writing the jsps or using one of those fine wysiwyg-editors
11:06.18harpoonand just deploy :-)
11:06.30ashlyyy:)
11:06.54harpoonnilesh: mmh.. long long way from germany to india :-)
11:07.22yassineharpoon:  so we can drink tea here :)
11:08.08nileshharpoon, yassine have a taste indian tea if it is available in your countries
11:08.08harpoonashlyyy: you will find the description of the folder structure of a webapplication in the tomcat manual
11:08.29nileshit will be good experience for you
11:08.37harpoonnilesh: it is. but i prefer some english blends
11:08.54ashlyyyok hwo about connecting mysql with jsp?
11:08.58nileshohh choice is yours :)
11:09.28yassineashlyyy:  do you know DB API in php ?
11:09.57ashlyyynon
11:10.12lykenyassine: s/mysql/pg_/
11:10.13lykenhehe
11:10.18yassineits quite similar you have differnt ways accessing your Database (MySQL,Postgres...)
11:10.59ashlyyyok
11:11.00yassineyou only need the driver for your DB engine
11:11.27yassinein your case that would be com.mysql.jdbc.Driver
11:11.34ashlyyyany sources on internet to help me?
11:11.43yassinea lot of sources :)
11:11.52yassinethe first one would be google :)
11:11.58lykenyou dont ever revference the driver like that
11:12.10harpoonlyken: he is a beginner. let him grow, before giving him a database
11:12.48ashlyyyyup but the aim is the database
11:12.48harpoonlet him get some practice with his cardbox
11:13.08lykenhehe
11:13.57ashlyyymy tomcat server works fine
11:14.09ashlyyyit is running :) apache is not :(
11:14.18ashlyyyand i  got mysql database
11:14.30ashlyyywhere should i start?
11:15.41harpoonashlyyy: buying the book "Java Server Pages" o'reilly & associates
11:15.43harpoon:-)
11:16.17ashlyyythats a big step ok
11:16.56*** join/#tomcat wam (n=wam@p549D26C5.dip0.t-ipconnect.de)
11:17.30harpoonor something similar
11:18.04harpoonbut without understanding the technology it is quite... difficult to do anything
11:18.30ashlyyytaht s why i was asking where to start
11:20.23harpoonashlyyy: learning some java
11:20.35ashlyyyshall i focus on apache or tomcat?
11:20.59harpoonmmh
11:21.02harpoonit's on you
11:21.22harpoondo you want to really work with java or not
11:21.28ashlyyyi do
11:21.29Kennethashlyyy: if you're planning on learning java using web drop apache for now
11:21.54ashlyyyok got it
11:22.03ashlyyyany book refernace u suggest?
11:22.42yassinethinking in java
11:22.58ashlyyyfor java i visited suns page there are lots of type of it
11:23.11ashlyyyconfused to use which one
11:23.21yassinehttp://www.mindview.net/Books/TIJ/
11:23.30yassineits for free
11:24.30ashlyyythinking in java 3rd edition?
11:24.36harpoonhaving some looks in the Java SE tutorial might be helpfull too
11:25.01ashlyyywhich file should i d/l and set up to use java?
11:25.02Kennethyup.. mabe write some standalone apps first to learn you the language
11:25.04ashlyyyse?
11:25.19Kennethstandard edition
11:26.03*** join/#tomcat innovagest (n=cristian@151.55.72.0)
11:27.54ashlyyyok
11:28.06ashlyyyi ll d/l se from suns page
11:29.52ashlyyyi found j2se5.0
11:29.53ashlyyyok?
11:31.30ashlyyyhttp://java.sun.com/j2se/1.5.0/download.jsp
11:31.35ashlyyycan u checkthis page*
11:31.50ashlyyylol
11:31.58ashlyyyconfusing
11:32.13*** part/#tomcat yassine (n=yassine@xdsl-84-44-179-83.netcologne.de)
11:34.19ashlyyywhich one do u believe shall i d/l
11:34.49harpoonashlyyy: that's the development kit
11:35.03ashlyyy?=
11:35.17harpoonlibraries and compiler
11:35.35ashlyyyok
11:35.58ashlyyyin order to use java i ll get se
11:35.59ashlyyybut from where?
11:36.20harpoonhttp://java.sun.com/docs/books/tutorial/index.html
11:36.31harpoonthat is what you need
11:36.40*** join/#tomcat yassine (n=yes@xdsl-84-44-179-83.netcologne.de)
11:36.41harpoonfrom there
11:37.01harpoonbut i thing you have already installed it
11:37.08harpoontomcat need it o run :-)
11:37.41ashlyyyok
11:37.57harpoons/o/to/
11:38.33ashlyyylol
11:38.35ashlyyyok
11:40.00ashlyyyok
11:40.11ashlyyyso i got tomcat 5.5
11:40.33ashlyyyhttp://localhost:8080/
11:40.36ashlyyyworks
11:40.47ashlyyyso tomcat works fine
11:41.12ashlyyyi ll check the book that yassine told
11:41.21ashlyyyand the page that u told me
11:41.50ashlyyyand after i understand the philosopy
11:42.07ashlyyyi think that i ll ifnd a way to connect mysql to tomcat
11:43.30harpoonashlyyy: have a look on jdbc
11:43.58harpoonthen you have a way to connect nearly any database engine :-)
11:44.03ashlyyyjdbc?
11:44.04yassineashlyyy,  i know you want to access the db as fast as possible but its really worth making some reading about the tools you use before using them, so you can use them effeciently and will enjoy that 100%
11:44.54harpoonyou will find it the books :-)
11:45.10ashlyyyi really appreciate ur allhelp
11:46.14harpoonand i'm looking forward on a new site to hack
11:46.16harpoon:-)
11:53.20ashlyyybye for now .. i llcheck the books
11:56.56*** part/#tomcat ashlyyy (n=asli@85.100.103.245)
11:58.02*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
12:17.47*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
12:26.06*** join/#tomcat pucko (n=andreas@81-234-246-21-o933.tbon.telia.com)
12:32.49*** join/#tomcat pucko (n=andreas@81-234-246-21-o933.tbon.telia.com)
12:49.07roudeis there a way to bind the tomcat to an specifig source-interface, if it connects to an db or so. i have more ip aliases and want to use some specific
12:50.12swenteroude: http://tomcat.apache.org/faq/connectors.html#bind
12:50.49lykenhttp://tomcat.apache.org/faq/connectors.html#bind ,-
12:50.50lykenlol
12:50.55lykendamn beaten!
12:51.51swente:)
13:17.25*** join/#tomcat pucko (n=andreas@81-234-246-21-o933.tbon.telia.com)
13:32.25*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:41.48*** join/#tomcat jsisson (n=sissonj@ppp233-66.lns3.syd7.internode.on.net)
13:42.29harpoonother people would just write "rtfm"
13:42.32harpoon:-)
14:20.47*** join/#tomcat danielon (n=dpezoa@200.75.0.6)
14:21.04danielonhello
14:21.16danieloni'am using tomcat5
14:21.40danieloni'am developing with other programmers
14:22.01danielonand i want to disable the undeploy option of the manager
14:22.32danielonit give me a headache
14:22.47danielonbecause one of them remove the application
14:23.08danielonwhen he want to resload them
14:23.42danielonanywhone can help
14:26.02lykenhmmz
14:26.09lykenyour not the first
14:27.08*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
14:27.55*** join/#tomcat DaDave (n=concept-@dslb-084-056-245-117.pools.arcor-ip.net)
14:27.58DaDavehi all
14:28.05DaDavedoes anyone know a ServletFilter that rewrites URLs (like in <a href...>) to use jsession id?
14:28.32yassinesecurityfilter maybe
14:29.53DaDavewhich package or website to get?
14:30.29DaDaveyassine: is it http://securityfilter.sourceforge.net/?
14:33.51yassineyes
14:34.13DaDaveokay, i'll try that.
14:34.31yassineDaDave,  im not that sure its been a while that  i used it
14:37.52DaDaveyeah. i am actually a bit confused why there is no url-rewrite filter avilable (at least i have not found any). there must be more users then me that have the problem of needing support sessions wihout cookies..
14:45.33*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
14:53.57randrewDaDave: people may also need rewrite ability to make their wordpress uris pretty.  hehehe  : )
14:54.52DaDaveyeah
14:55.09DaDavei am still wondering why noone has written and published such a filter yet.
14:57.48*** part/#tomcat danielon (n=dpezoa@200.75.0.6)
14:59.08harpoonDaDave: maybe because they have places URL-rewriting in the servlet JSR
15:08.30jasonbAnd because browsers do tend to support cookies nowadays.  :)
15:12.33swentejasonb: mind the fundamentalists considering cookies evil-by-design.:)
15:15.01jasonbOh yeah, I forgot.  Cookies are evil.  Stay away from Cookie Monster!
15:15.06swenteyo!
15:22.21lykenlol
15:22.26lykenits goingopen source
15:22.30lykencan only get better !
15:22.52swenteuuh that doesn't help anymore. it's too late, and java is doomed.
15:23.15swenteas well as sun and microsoft. (and ibm).
15:30.40harpoonlyken: not all browsers supporting cookies
15:30.47harpooni use links :-)
15:31.03swentebut links supports them, doesn't it?
15:33.31swentebut (besides being silly) .. iirc tomcat autodetects acceptance of cookies and uses url-passed-sessionids when disabled (correct 'creation' of URLs from jsps/servlets presumed)
15:34.55harpoonswente: yes. but you have to adeppt your JSP/servlets when linking between them
15:35.11swentemmh obviously. yes
15:35.35swentebut i guess that belongs to "proper design of .."
15:42.05*** join/#tomcat Hellaenergy (n=Hellaene@206.231.92.70)
15:43.55*** mode/#tomcat [+o Hellaenergy] by ChanServ
15:44.37Hellaenergyibot: Tomcat Probe is at http://www.lambdaprobe.org
15:44.39ibotokay, Hellaenergy
15:45.10Hellaenergyibot  Lambda Probe is at http://www.lambdaprobe.org
15:45.11ibotokay, Hellaenergy
15:51.05*** join/#tomcat remnant (n=lenhan@adsl-69-231-255-126.dsl.irvnca.pacbell.net)
15:58.07*** join/#tomcat kunta (n=kvirc@APointe-a-Pitre-102-1-2-199.w81-248.abo.wanadoo.fr)
15:58.41kuntahello
15:59.01Hellaenergyhi
15:59.38kuntai ve got some problem on tomcat 5
16:00.17kuntatomcat tell me he couldn't deploy application with context {0}
16:00.50kuntasomeone can help me
16:01.24HellaenergyWhat do the logs say?
16:01.44HellaenergyAnd what application is it trying to deploy?
16:01.53HellaenergyWhat exactly are you doing?
16:01.57kuntatrying to deploy xwiki
16:02.05HellaenergyWhat have you done?
16:02.37*** join/#tomcat lenhan (n=lenhan@ppp-71-130-170-114.dsl.irvnca.pacbell.net)
16:04.06HellaenergyAre you using this? http://www.xwiki.org/xwiki/bin/view/Download/Install+Instructions
16:04.22kuntai've got this 2006-06-20 12:03:06 StandardContext[/manager]HTMLManager: start: Starting web application at '/xwiki'
16:04.44HellaenergyDid you follow the instructions at that page?
16:04.55HellaenergyWhat OS and What version of Tomcat and MySQL?
16:04.59kuntayes
16:06.17kuntalinux mandriva 2006
16:06.22kuntatomcat 5.0
16:06.36HellaenergyThere are reports of incompatibility with MySQL 4.1.12 and later versions. Everything works fine with MySQL 4.1.11
16:07.24kuntaINFO: Installation d'une application pour le chemin de contexte /xwiki depuis l'URL file:/usr/share/tomcat5/webapps/xwiki
16:07.24kunta19-jun-06 2:40:07  org.apache.catalina.core.StandardContext start()
16:07.24kuntaSEVERE: Error in dependencyCheck
16:07.24kunta19-jun-06 2:40:08  org.apache.catalina.core.StandardContext start()
16:07.24kuntaSEVERE: Error getConfigured
16:07.27kunta19-jun-06 2:40:08  org.apache.catalina.core.StandardContext start()
16:07.28kuntaSEVERE: Erreur de démarrage du contexte suite aux erreurs précédentes
16:07.30kunta19-jun-06 2:40:08  org.apache.catalina.core.StandardContext start()
16:07.32kuntaSEVERE: Exception lors du nettoyage après que le démarrage ait échoué
16:09.10kuntatomcat 5.0.30
16:09.49kuntaand mysql 4.1.12
16:10.05kuntamaybe it's the incompatibility
16:10.17harpoonkunta: sorry, but my french is..
16:10.30harpoonnot very well :-)
16:14.46kuntamy big problem is error in dependency check
16:15.24HellaenergyDid you get this note?: There are reports of incompatibility with MySQL 4.1.12 and later versions. Everything works fine with MySQL 4.1.11
16:16.23kuntai'll try to go back to mysql 4.1.11
16:17.57kuntamysql 4.0.20 will solve incompatibility ??
16:19.58kuntaon mandriva 2k6 you can install mysql 4.1.12 or mysql 5.0 or mysql 4.0.20
16:26.28kuntaWARNING: System property "java.util.logging.manager" should be the name of a subclass of java.util.logging.LogManager
16:26.28kuntaException in thread "main" java.lang.ExceptionInInitializerError
16:26.40kuntasomeone know how to fix this error
16:27.43kuntahello
16:43.13*** join/#tomcat yel (n=yes@xdsl-87-78-100-203.netcologne.de)
16:47.50kuntahello
16:49.10*** part/#tomcat kunta (n=kvirc@APointe-a-Pitre-102-1-2-199.w81-248.abo.wanadoo.fr)
16:52.59*** join/#tomcat kunta (n=kvirc@APointe-a-Pitre-102-1-2-199.w81-248.abo.wanadoo.fr)
16:56.25*** part/#tomcat icyValk77 (n=icyValk7@gateway.ash.thebunker.net)
16:57.23*** join/#tomcat Fracture_ (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
17:08.11*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
17:40.16jbalintDaDave: session support without cookies should be default suported behaviour
17:41.07DaDavejbalint: yeah. but it doesn't work. it simply doesn't add the jsession to links.
17:41.18DaDavejbalint: i guess i have to use encodeUrl by hand?
17:42.01jbalinthow are you creating the links?
17:43.03DaDavewith usual <a href="test.jsp">...
17:43.52jbalintAre you using Struts?
17:44.08DaDaveno
17:44.38jbalintThis is a JSP though, right?
17:44.45DaDaveyes, plain jsp
17:45.00jbalintTry using c:url instead.
17:45.21DaDavei can't. i need to be able to use plain <a hrefs....
17:45.28DaDaveit's requirment by third party...
17:45.28jbalintWhy can't you use it?
17:45.32jbalintWhy?
17:46.01DaDavecomplex to explain. but the jsp files need to be edited by tools that need normal <a hrefs...
17:46.02jbalintYou can't get JSP features without using JSP functions.
17:46.25DaDaveisn't there a Servlet Filter available that simply mdofies markup to add jsession to hrefs?
17:46.38jbalintProbably not because there is a standard JSP way to do it.
17:46.52DaDavewhich is encodeUrl, right?
17:47.00jbalintAlso, I don't know if it's possible to retrieve the data sent on the ServletResponse.
17:47.02DaDavebc c:url is JSTL right?
17:47.06jbalintYes.
17:47.41DaDavehmm... damn. i mean i saw filters that add execution time to the markup. so it should be possible to change markup...
17:48.21jbalinturl?
17:48.29|jones|Is it safe to use a JK worker in two or more load balancers?
17:48.41DaDavejbalint: url? what do you mean?
17:48.48jbalintI might be able to add it to the very end, but if if response.flush() is called, I don't know it buffers it.
17:48.55DaDavehmm...
17:48.56jbalintDaDave: What is the URL of the filter that adds the execution time?
17:49.15DaDavejbalint: don't know. i don't remember. i just rem,ember that i saw iot once...
17:49.25jbalint|jones|: i dont see a reason it wouldnt be, so i would say yes, without knowing 100% for sure.
17:50.12jbalintDaDave: are you thinking of jamon?
17:50.18*** part/#tomcat Hellaenergy (n=Hellaene@206.231.92.70)
17:50.31|jones|we have a lot of ping/pong errors under heavy load using a worker in a few load balancers and _also_ as a standalone worker, the latter just to test that we can hit it, but now I see that you are not supposed to do that
17:50.54jbalintDaDave: Ah, I see, you can do it with a response wrapper.
17:51.27jbalint|jones|: not supposed to do what?
17:51.44|jones|the workers.properties docs say not to use a worker in a load balancer and as a standalone worker, but they don't say if you can use a worker in more than one load balancer
17:52.19jbalintHrm, I wonder why....
17:52.39jbalintIf you have one app distributed and one app on only one box....
17:52.52DaDavehmm... it's quite compex when you do it with a filter...
17:53.39|jones|I will just make another load balancer with the single worker to get around that restriction, but the docs don't say if its safe to do that either
17:53.51jbalintWell you have to search the text and find anything that matches, a href, etc, etc.
17:54.19jbalint|jones|: is the load high enough that tomcat might not have an idle thread at the time the ping is sent?
17:54.21DaDavejbalint: yeah. i guess it is some work to implement this. i realy wonder why noone has done that yet.
17:54.41jbalintBecause it's supported in the default JSP environment. There is really no reason.
17:55.57*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
17:56.22|jones|jkablint: we forced the min threads to be high on tomcat so that it should have idle workers, I'm setting up apache worker MPM now, we're using prefork in production
17:57.10jbalintThe apache worker shouldn't have any impact on the ajp ping.
17:57.32*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
17:58.44|jones|the workers will also go into Error state on jkmanager from one load balancer, but are fine from another load balancer, we don't know why, maybe because I'm using a standalone worker thats also in a load balancer and the docs say not to, I'll fix that and go from there
17:59.25|jones|btw, I noticed the JK docs are updated to 1.2.16 now, but 1.2.15 is the latest released version, is 1.2.16 due out this week?
18:00.20*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
18:02.42*** join/#tomcat balony (n=ms@242-141-33-212.mtulink.net)
18:02.51*** join/#tomcat keyhack (n=keyhack@68.236.93.223)
18:03.08balonyIn what way is tomcat used to access webservices?
18:03.31keyhackWhen Tomcat unpacks a WAR, it just unzips and overlays the existing directory correct? (If a user copied custom files into the webapps/APP directory, that aren't part of the WAR, they will still remain after an unpacking correct?)
18:48.01|jones|is anyone using jk 1.2.16?  I can't find the download for it, just the docs and news that it was released on June 6
18:58.48DaDavejbalint: okay, i have written such a Filter for having the session automaticly included. it was not as hard is i thought.
18:59.23jbalintDaDave: care to share? :)
19:02.11DaDavejbalint: shure, but i used a cheap trick in there. i use links like <a href="test.jsp;jsessionid?bal"> and the string ";jsessionid" is replaced with ";jsessionid=asd9324dfk3".
19:02.28jbalintSo what is somebody DOES use a cookie?
19:02.31DaDavejbalint: but that could be easily extended to thake care of hrefs in general.
19:02.57DaDavejbalint: i thake care of that in a if clause. (well i don't know if it works yet :-))
19:04.49DaDavejbalint: okay seems to work.
19:05.14jbalintcool. how did you check for cookie/jsessionid?
19:05.35DaDavejbalint: request.isRequestedSessionIdFromCookie()
19:05.46jbalintAh, cool.
19:05.51DaDavei love good api's :-)
19:08.50jbalintYet you choose not to use them :p (re: c:url)
19:10.51DaDavejbalint: i _can't_ use them. that's a difference.
19:14.23DaDavejbalint: so do you still want to have that filter?
19:15.14jbalintI just wanted to take a look if it's not a problem. TO put it in my mind. If you want to, you can share it on yassine's web site.
19:18.29DaDavejbalint: who is yassine?
19:20.29jbalinta guy on this channel that is starting an 'answers' type site. your thing might be neat to have on there if you want.
19:20.29DaDaveurl?
19:21.51jbalinttomcat.anfatech.com/
19:32.28yelre
19:32.49Kennethhey yassine
19:33.16yassinehi Kenneth
19:34.06yassineheya jbalint  :)
19:43.26jbalinthey
19:48.13DaDavejbalint: hmm taht site looks pretty unfinished.
19:48.20DaDavejbalint: i will put it on my blog for now.
19:48.56jbalinturl?
19:49.36yassineDaDave,  what went wrong ?
19:50.18DaDaveyassine: nothing. but that site seems to be as i said unfinished. and i don't have a clue where to put my stuff. the faq's are in a forgein language.
19:50.52yassinethats from lorem ipsum :)
19:50.55jbalinthahaha
19:51.01jbalintits demo copy.
19:51.07swente:)
19:51.28swentelatin guide to tomcat.
19:53.51DaDavehmm... i don't like when people publish stuff in diffrent tha english. have you ever had to deal with source code, comments and docs in french fpr example. it's anoing. and almost everyone knows english.
19:54.14swenteDaDave: yassine still works on it
19:54.22yassineDaDave,  the whole site is in english
19:54.31DaDaveexcept for the stuff in latin :-)
19:54.41DaDavedoes anyone know a good java based blog software?
19:58.59jbalintDaDave: its just demo copy. it doesnt even mean anything in latin.
20:03.50DaDavejbalint: ah okay.
20:19.43*** join/#tomcat EnQu (n=Energieq@pD9534AF5.dip0.t-ipconnect.de)
20:21.01EnQuhi - how can i use digested passwords in tomcat-users.xml? digest="MD5" in Realm in server.xml doesn't seem to work for me
20:31.04*** join/#tomcat teletype (n=rking@calvin.prov.ingenta.com)
20:33.33*** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
20:39.45teletypecan i give ContextXmlReader any arbitrary path on the system if i specify the full path, or is it limited to things underneath tomcat's working dir?
20:42.39teletypeah scratch it, time to knock off, i'll figure this out tomorrow :)
20:47.43*** join/#tomcat Darwin (n=unixnerd@darwinircd/developer/Darwin)
21:18.35*** part/#tomcat jsisson-away (n=sissonj@ppp233-66.lns3.syd7.internode.on.net)
21:22.10*** join/#tomcat valmont (n=chrishol@germany.pspdev.pas.earthlink.net)
21:25.52DaDavejbalint: http://rentadeveloper.de/blog/
21:26.16jbalintcool, thanks
21:31.46DaDavejbalint: but i still think that the servlet container should do that automaticly.
21:31.58jbalintit does via c:url :p
21:32.12DaDavejbalint: that is not automaticly! that via a special api.
21:32.14jbalintI don't think replacing all links and filtering the html is efficient or nice (to the developer).
21:32.27jbalintWell presumably c:Url'
21:32.27DaDavejbalint: it worked for years for php developers.
21:32.37jbalints would be used for links in the same apps and href's would be external links.
21:33.02jbalintSo a random <a href="...."> in PHP would have a ?sessionid=xxxx appended to it?
21:33.03DaDavejbalint: php can handle it. it's easy: you just have to thake care of the path.
21:33.28keyhackhey jbalint
21:33.31jbalintWhat do you mean take care of the path?
21:33.32jbalinthey keyhack
21:33.55keyhackjbalint, my Spring webapp is getting OutOfHeap errors now, after running for like 10 days or so
21:34.09jbalintkeyhack: you know where?
21:34.10keyhackjbalint, and realizing that Tomcat/Java seems to be ignoring my -Xms,etc. arguments
21:34.25keyhackjbalint, no, it just throws it for my webapp (but the rest of Tomcat still runs)
21:34.29jbalintkeyhack: Are you setting it in the right file? I think that is gonvernmet by the launcher.
21:34.39jbalintkeyhack: you dont have a stack trace or anything?
21:34.56keyhackjbalint, no, the stacktrace is just for the view, which only has a few lines
21:35.22keyhackthe JAVA_OPTS environment variable dictates the settings, and I modified catalina.sh to print it out before it launches the JVM and the flags are still there
21:36.05DaDavejbalint: php just have to thake care of if the url is in the current dir or not...
21:36.23jbalintkeyhack: have you looked in the jvm section of the server status to see if it shows your values?
21:37.00jbalintDaDave: Ok, well .... go PHP then. :) I don't particularly think that is a good idea.
21:37.35keyhackFree memory: 424.77 MB Total memory: 494.50 MB Max memory: 1824.00 MB
21:37.48jbalintand max is what you set it to?
21:37.59keyhackI set max to 2048megs
21:38.04keyhackand I set min to 512megs
21:38.42jbalintWhat os?
21:38.46keyhackSolaris 9
21:38.49keyhacki think
21:38.51keyhackor 8, let me check
21:39.01keyhackit's Solaris 9
21:39.20keyhackJVM 1.5.0_07-b03
21:39.32keyhackTomcat 5.5.12
21:39.38jbalintCould be classloader problems. That's where alot of the apps were getting heap errors before.
21:40.01jbalintAre you re-deploying the app?
21:40.15keyhackjbalint, thats what I always used to get during re-FTPing during development over and over
21:40.19keyhackQA left the box alone, used it now and then
21:40.26keyhackfor days and days, and I checked it this AM, the webapp was fine
21:40.35keyhackand then the QA guy hit it this afternoon, and OutOfHeap
21:40.42keyhackfor the whole app, and that was that ;-)
21:40.47keyhackso no, not redeploying
21:41.34DaDavejbalint: why go php? i have got it woreking with jsp :-)
21:41.43jbalintIs it possible there is a leak? have you tried a memory profiler?
21:42.10jbalintDaDave: I meant it in the "Go Tigers!!!" sense....
21:42.18keyhackjbalint, its entirely possible
21:42.29keyhackI'm not sure how the beans are used
21:42.33keyhackboth the JSF ones and the spring ones
21:42.48keyhackdo the JSF beans all get made on a per user/session basis?
21:43.00keyhackand the Spring beans are a per-application basis?
21:43.19DaDavejbalint: so have you looked at the blog?
21:43.46jbalintkeyhack: i have no idea about jsf. but the spring stuff should be per-app if you are using the context-loader-listener, and singletons
21:43.50jbalintDaDave: yep
21:44.16DaDavejbalint: what do you think about it?
21:44.22keyhack<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>, yes
21:44.23keyhacksingletons? no
21:44.41jbalintkeyhack: all components are singletons by default
21:44.49jbalintso unless you do singleton=false, they are
21:44.57keyhackah, ok
21:45.03keyhackyeah, I have four spring beans
21:45.07keyhackDAOs
21:45.17keyhackso I was wondering if each user login was creating four new ones
21:45.20keyhackand they werent being released
21:45.27jbalintDaDave: looks good. ill add it to yassine's web site if its ok with you.
21:45.33keyhackthey are just DAOs, I have much more JSF beans that contain information, etc.
21:45.36jbalintkeyhack: nope.
21:45.56keyhackhmm
21:46.02keyhackso  I'm not sure what could be leaking then
21:46.17keyhackother than beans not being released after the session expires
21:46.24keyhackand the session expiration is set at an hour
21:46.43keyhackso... im not sure how you could overload the heap with like two people hitting the box within such a small time frame
21:46.43jbalintthis is a qa box you said right? so not that many people are using it?
21:46.49keyhackexactly
21:46.56keyhacki checked it, and i think he hit it maybe an hour or so later
21:47.01keyhackprobably after my session even expired
21:47.17keyhackbut even then, i've had 3-4 sessions going on at once before on a different machine (although all our machines are very close in specs)
21:47.25jbalintwell i wouldnt think it is just session, unless you are really leaking. if it were the sessions, i would think it would be with a lot of users, because thats when more sessions are alive
21:47.27keyhackI'm going to have to take the time and try to profile Tomcat
21:47.46keyhackyeah, but we have some shitty designs going on
21:47.49keyhacklike the Tree on the left
21:47.51jbalintwell a memory profiler should show you all you need
21:47.53keyhackis pulled from the DB on every view
21:48.05jbalintis it stored on jsf?
21:48.12keyhackbecause people couldn't finalize a requirements, so its been shipped not caching it
21:48.16keyhackis what stored on JSF?
21:48.27keyhackthe JSF just uses the Bean
21:48.28jbalintthe tree. aren't component models or something stored by jsf?
21:48.35keyhackthe Bean is invalidated on every request, basically
21:48.39jbalinthow?
21:48.45jbalintbecause its requested scoped?
21:48.48jbalintor something?
21:48.54keyhackbecause the JSF page hits the bean, and it re-hits the database and returns the new root node
21:49.08keyhackand it just so happens to be request scoped, that one
21:49.08jbalintbut is it possible that it would hold on to it?
21:49.16keyhacknot really, no
21:49.18keyhackI don't see how
21:49.19keyhackits the same bean
21:49.20jbalintok, then i would imagine it wouldnt
21:49.26keyhackand it would overwrite the old data, anyways
21:49.29jbalintyou said it's queried from the db everytime
21:49.43jbalintjust because its displayed doesnt mean jsf doesnt hold on to it for some reason
21:49.44keyhackyeah, so I'm not sure what could really be leaking
21:49.48keyhackall the raw data and all that are in the beans
21:49.51keyhackwhich, are singletons per user
21:50.05keyhackand also
21:50.07keyhacki click around
21:50.09keyhackthe memory increases a bit
21:50.13keyhackbut does even out
21:50.20keyhackits not like every time i hit refresh it jumps up and up and up
21:50.52keyhackso, like I said, nothing comes to mind that would be problematic
21:51.13keyhackjust going to have to waste my whole day tomorrow profiling friggin Tomcat
21:51.26jbalintWhat are you using now to monitor the memory? jconsole?
21:52.10keyhackps -o rss -p <pid>
21:52.25keyhacklol, something a coworker showed me
21:54.43jbalintYou can get the yourkit EAP and try it out.
21:55.37keyhackyeah, its what im going to have to do
21:55.48keyhackalthough i dont know how much of it i can even reproduce
21:55.52keyhackwon't know until i look at it
21:58.41DaDavejbalint: yeah shure. add it to yassines website. but only the link to the blog please
21:59.06jbalintDaDave: Ok, thanks again.
22:01.31keyhackjbalint, I wonder, Tomcat only runs in one JVM right
22:01.37keyhackso isnt there really only one heap for Tomcat
22:01.49keyhackis Tomcat enforciing its own heaps for the different webapps?
22:02.15keyhackI have to read up more on Tomcat in general
22:03.31*** join/#tomcat DaDave (n=concept-@dslb-084-056-254-148.pools.arcor-ip.net)
22:03.34DaDavejbalint: a am improving it now so that it will handle all hrefs without the need to include ;jsessionid string in the linkt
22:04.18jbalintkeyhack: not that i know of.
22:04.32keyhackwell, how is that the JVM can be out of heap space
22:04.34jbalintDaDave: how will you handle known which to do?
22:04.40keyhackand yet, other webapps and the config app stuff works
22:04.55jbalintkeyhack: any possibility of getting to see the stack trace?
22:05.07keyhacki dunno where it would be
22:05.14jbalintshould be in the log
22:05.58keyhackwhich one, there are always like 4
22:06.19jbalintcatalina.out is the one i look at
22:06.24keyhackyeah, its never in there
22:06.38jbalintis logs?
22:06.48jbalintin
22:06.49DaDavejbalint: when the link cotains :// like in http:// i do nothing, else i append the jsessionid
22:07.02keyhackthe heap stuff isnt in catalina.out
22:07.13jbalintkeyhack: exceptions should be
22:07.54keyhackI know jbalint , but servlet ones aren't usually there
22:08.05keyhackthey are usually in localhost*, which I am looking at todays, and I dont see it there either
22:09.21jbalintwell either way, in the logs... :)
22:09.32keyhackim not seeing it.
22:09.46keyhacknot htat it would tell me much in the first place
22:09.50keyhackso im not focusing on it right now
22:11.53jbalintstack traces are usually pretty helpful to get some context from when the error happened
22:13.53keyhackwell, yes, stack traces that exist ;-)
22:17.59keyhackfind . -name "*" -exec grep -i "outofheap" {} \;
22:18.01keyhackreturns nothing
22:18.28jbalintI think it's OutOfMemoryError
22:18.58keyhackyeah, hold on
22:22.32keyhackSEVERE: Servlet.service() for servlet GraphServlet threw exception
22:22.32keyhackjava.lang.OutOfMemoryError: Java heap space
22:22.33keyhacklol
22:30.48*** join/#tomcat jsisson (n=sissonj@218.185.73.243)
22:34.01keyhackI dont know if thats truely the original cause
23:33.41*** join/#tomcat yassine (n=yassine@xdsl-87-78-100-203.netcologne.de)
23:33.51*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
23:39.32*** join/#tomcat webben (n=benjamin@82.152.176.189)
23:39.50*** part/#tomcat webben (n=benjamin@82.152.176.189)
23:48.09DaDavejbalint: i got it working.

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.