IRC log for #tomcat on 20080411

00:12.14*** join/#tomcat pucko (i=andreas@81-234-246-21-o933.tbon.telia.com)
00:47.51*** join/#tomcat iholsman (n=ianholsm@99.189.233.220.exetel.com.au)
00:48.33iholsmantomcat 6.0.13/java 1.5/os linux -- how do you stop mysql connections from timing out?
00:51.12*** join/#tomcat keith80403 (n=keith804@71-208-214-251.hlrn.qwest.net)
01:08.34*** join/#tomcat yoanis (n=fred@200.55.139.218)
01:08.40yoanishi there
01:08.47yoanisi've a question
01:09.49yoanisseems like tomcat is creating a process for each thread ? actually it looks like all my java applications creates a process whenever a thread it's created
01:10.33yoanisi'm running tomcat 6.0.13 on Debian 4.0 and java 1.6
01:22.37*** join/#tomcat Infinito_ (n=argos@200-101-125-181.gnace701.dsl.brasiltelecom.net.br)
02:03.04*** join/#tomcat cppexpert (n=cppexper@c-98-207-194-80.hsd1.ca.comcast.net)
02:06.48cppexpertIs there way to define extra classes folder for my web application besides /classes ?
02:11.52jasonbbesides which /classes dir?
02:16.41cppexpertyes, the reason I need it is I want to have configuration files in there. For example .properties for log4j. You probably wondering why wouldn't I put it to /classes. Answer is simple - every time Eclipse rebuilds the project it completely cleans up /classes including config files. As result I have to copy them manually everytime before deployment. It's very frustrating.
02:17.53jasonbYes.  I deal with that as well.
02:18.08jasonbTomcat does support a way to configure the webapp classloader:
02:18.10jasonbhttp://tomcat.apache.org/tomcat-6.0-doc/config/loader.html
02:20.55cppexpertlet's see...
02:26.35cppexpertjasonb: Looks like it's not what I need. Can I just add extra path to classes folders ? (besides global classes folder of Tomcat and /classes of each application)
02:29.06jasonbcppexpert: Well, but eclipse recursively deletes everything inside your webapp's WEB-INF/classes/ dir.
02:29.16jasonbSo, if you put a dir inside that, it would get deleted as well.
02:29.38jasonbWhy isn't <Loader> what you need?
02:32.57cppexpertjasonb: I just don't see description what should be inside <Loader> and don't see the way to solve my need.
02:33.12jasonbI'm trying to find an example..
02:33.23cppexpertThank you
02:43.58acidjnkcppexpert, you are not the "advanced c++" guy from #java a few years ago, are you?
02:45.52cppexpertacidjnk: Not few years ago, I've been around (on freenode) only for last 3 months. Why ?
02:46.17acidjnkThe reason makes no sense to you when you are not that person.
02:46.33cppexpertacidjnk: okay
02:50.15jasonbcppexpert: I think I'm going to have to give up on getting you an example.  It appears that there aren't any.  But, WebappLoader is what you need to configure.  It would let you add more dirs from which classes (and other resources) can be loaded by the context class loader.
02:52.32*** part/#tomcat iholsman (n=ianholsm@99.189.233.220.exetel.com.au)
02:53.04jasonbcppexpert: Oh wait, I just remembered one more way to do it: read conf/catalina.properties.
02:59.32jasonbheads home
03:02.55*** join/#tomcat ong_ (n=alex_g@84.159.225.49)
03:47.54*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-0a0421d7a56ea738)
03:52.03*** join/#tomcat acidjnk (n=have@pD950A00F.dip0.t-ipconnect.de)
04:42.28*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
05:14.18*** join/#tomcat Hattorii (i=darkrad@host192-154-dynamic.14-87-r.retail.telecomitalia.it)
05:42.07*** join/#tomcat Snuff (n=daron@mail.robway.com.au)
06:11.19*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
06:23.25*** join/#tomcat bblfish (n=bblfish@fbl77-1-88-163-3-25.fbx.proxad.net)
06:26.18*** join/#tomcat fifo_ (n=quintin@196.38.199.139)
06:26.59fifo_I have 2 virtual hosts, one for internal apps, one for public apps
06:27.16fifo_How can I run the manager (which is hosted on the internal host) for the external hosts
06:27.50*** join/#tomcat Hattori (n=ciccio@host113-149-dynamic.15-87-r.retail.telecomitalia.it)
07:53.06*** join/#tomcat MHSL- (i=Linux@116.88.6.47)
08:12.34*** part/#tomcat Snuff (n=daron@mail.robway.com.au)
08:50.36*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
09:10.27*** join/#tomcat Vince-0 (n=Vince-0@dsl-242-251-231.telkomadsl.co.za)
09:11.58*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt)
09:23.01*** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-163-158.red.bezeqint.net)
09:23.44*** join/#tomcat IIVQ (n=IIVQ@wikipedia/Iivq)
09:24.29IIVQGood morning. Question: I have a kinda plain XAMPP+tomcat (6.0.14) installation, with 2 self-built webapps
09:24.39IIVQBoth webapps have an index.jsp-file
09:25.41IIVQwhen i go to http://localhost:8080/hz/ I get the desired file. When I go to when i go to http://localhost:8080/aegon/ I get an error "The requeted resource (/aegon/) is not available"
09:26.00IIVQyet when I go to http://localhost:8080/aegon/index.jsp it shows me the index.jsp
09:26.07IIVQany hints?
09:33.49*** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-163-158.red.bezeqint.net)
09:33.57IIVQWoops, found it. There's is a welcome-file in my web.xml :-)
09:38.03*** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-163-158.red.bezeqint.net)
10:01.31*** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat fifo_ (n=quintin@196.38.199.139) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat keith80403 (n=keith804@71-208-214-251.hlrn.qwest.net) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat oxi (i=trallall@gve-gix-bbcs-dynip-157-071.vtx.ch) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat ogolqm-nob (n=golqm-no@78.90.41.45) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat vvalenti (n=xjerky@jerky.advance.net) [NETSPLIT VICTIM]
10:01.31*** join/#tomcat rhelmer (n=rhelmer@mail.anyhosting.com) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat Weng (n=tony@c-69-143-148-200.hsd1.md.comcast.net) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat odin_ (n=dlm@host86-154-78-206.range86-154.btcentralplus.com) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat deebo (i=globe@funkiest.net) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat sarts (n=stephan@mocha.foo-projects.org) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat unlord (i=ptolemy@pool-72-66-3-12.washdc.fios.verizon.net) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat andyt_ (n=andyt@THOMPSON.ADMIN.SCPS.NYU.EDU) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat diLLec^coh (n=dillec@dillec.biz) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat jj- (n=jj-@sta3-213-139-183-47.psoasnet.fi) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat nighter (i=nighter@ua-83-227-132-154.cust.bredbandsbolaget.se) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat crYpe (i=crYpe@noxfire.org) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat vanksi (n=vanksi@stekt2.oulu.fi) [NETSPLIT VICTIM]
10:01.32*** join/#tomcat minerale (i=35181@about/cooking/alfredo/Minerale)
10:01.32*** join/#tomcat chillitom (n=tom@87-194-123-85.bethere.co.uk) [NETSPLIT VICTIM]
10:17.34*** part/#tomcat DNC1 (n=david@mail.ratedpeople.com)
10:20.58*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
11:04.20*** join/#tomcat Infinito_ (n=argos@201-2-49-90.gnace701.dsl.brasiltelecom.net.br)
11:08.48*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
11:10.19*** join/#tomcat greenmanwitch (n=greenman@c122-107-108-225.blktn5.nsw.optusnet.com.au)
11:10.22greenmanwitchHi guys!
11:10.29greenmanwitchI've installed openbravo.
11:10.44greenmanwitchWhen I try to open openbravo in links it tells me HTTP STATUS 404 /openbravo/
11:11.08greenmanwitchI'm not entirely sure if this is a tomcat thing or an openbravo thing, but openbravoa are slow to respond so I figured I'd ask  in both.
12:40.45*** join/#tomcat bblfish (n=bblfish@ALagny-152-1-74-138.w81-249.abo.wanadoo.fr)
13:18.09*** join/#tomcat Infinito_ (n=argos@201-2-49-90.gnace701.dsl.brasiltelecom.net.br)
13:27.19*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:28.53MHSL-greenmanwitch, do you have openbravo directory under your default webapp directory?
13:30.14MHSLgreenmanwitch, or did you create a context for /openbravo if it's outside your default webapp directory?
13:32.00greenmanwitchMHSL: yes
13:32.06greenmanwitchHey, don't worry, it all works now.
13:32.18greenmanwitchon that note- I should sleep
13:32.19greenmanwitchbye!
13:32.24*** part/#tomcat greenmanwitch (n=greenman@c122-107-108-225.blktn5.nsw.optusnet.com.au)
14:01.40*** join/#tomcat bblfish (n=bblfish@fbl77-1-88-163-3-25.fbx.proxad.net)
14:05.25*** join/#tomcat rambo123 (n=rambo@59.94.98.114)
14:07.39*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
14:11.53*** join/#tomcat bblfish_ (n=bblfish@fbl77-1-88-163-3-25.fbx.proxad.net)
14:20.26*** join/#tomcat bblfish (n=bblfish@fbl77-1-88-163-3-25.fbx.proxad.net)
14:22.54IIVQHello
14:23.19IIVQI need to reformat a birthdate - one which may be before 1970. How do I do that?
14:24.50*** join/#tomcat DNC1 (n=david@mail.ratedpeople.com)
14:25.19*** join/#tomcat mauriez (i=maui@xs2.xs4all.nl)
15:01.58*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
15:11.19*** join/#tomcat prgrmr_ (n=prgrmr@bzq-79-180-148-6.red.bezeqint.net)
15:17.31*** part/#tomcat DNC1 (n=david@mail.ratedpeople.com)
15:26.09*** join/#tomcat {Chris} (n=cdupont@abo-44-36-68.mts.modulonet.fr)
16:05.51*** join/#tomcat rann (i=rubin@xs3.xs4all.nl)
16:26.48*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
17:11.46rannhi, i'm reading the tomcat 5.5 class loader documentation. i have a question about making available libs like taglib and postgresql-jdbc: is it nicer to put them in common/lib or in shared/lib ?
17:12.57rannas i understand it, common/lib is intended for stuff that tomcat internals should be able to access, and shared/lib is for stuff all webapps would access?
17:38.11*** join/#tomcat blue_asterisk (n=blue_ast@adsl-69-224-190-106.dsl.sndg02.pacbell.net)
18:01.27*** join/#tomcat Hellaenergy (n=Hellaene@66.187.203.82)
18:04.40*** join/#tomcat tom17bombadil (n=tom@X8f88.x.pppool.de)
18:25.04jasonbrann: Yeah, common/lib is where jdbc driver jars should go.
18:25.26jasonbrann: But, it would be even better for you to use Tomcat 6 and just put them in /lib.
18:26.20vvalentiinteresting - japackage for tomcat5.5 put the mysql connector in /usr/share/java/mysql-connector-java.jar
18:27.05jasonbdoesn't yet grok how jpackage jars end up mapped to Tomcat classloaders.
18:28.54Hellaenergyjasonb, do you ever strugle with excessive pergen mem issues?
18:29.26vvalentid'oh, maybe I'm thinking of the wrong thing...I thought mysql-connector was the jdbc drive
18:29.28vvalentir
18:30.28jasonbHellaenergy: Yes.  Apparently this has become worse in Java 1.6.  Are you using 1.6?  What we did over here to mitigate it is: we use the BEA JRockit JVM.  That has basically fixed it for us.. for now.
18:30.38jasonbvvalenti: It is.
18:31.15Hellaenergyjasonb, yes I am using 1.6. I've heard really good things about JRockit before.
18:31.21HellaenergyThanks for the advise ;)
18:31.46pfnhow can anyone have permgen issues in normal operation
18:32.22pfnit's application reloads that'll kill you
18:32.29jasonbHellaenergy: You won't necessarily get better performance, but the overall compatibility seems excellent, and some Hotspot JVM crashes we were having went away when we switched to JRockit, plus strange permgen problems also went away.
18:32.48jasonbis a fan of reloadable="true". ;)
18:33.10pfnit shouldn't be done in a production environment
18:37.18jasonbWe don't tend to use it in production.
18:37.22*** join/#tomcat merike_ (n=merike@pc157.host24.starman.ee)
18:38.15jasonbWe do have some instances set up where we do use it because we make changes to classes in some of our webapps often, so we just put in a new jar and Tomcat takes care of the rest in that case.. and it works just fine for us.
18:42.18merike_hello, any ideas what could cause http status 405 error with a class that DOES implement doGet?
18:42.34pfnyou done it wrong
18:42.44pfnpastebin full exceptions and uris etc.
18:44.45merike_java code: http://pastebin.com/d2473de8b
18:47.32pfnspecify the @Override annotation to be sure that you are using the right signature
18:47.41pfnsuper.doGet
18:47.43pfnwrong
18:47.51pfnwhat do you think is throwing the 405
18:48.34merike_I see, it was generated automatically by Eclipse
18:51.39jasonbeclipse isn't a web server.
18:56.52Hellaenergypfn, why shouldn't't that be done in production. Just curious.
18:57.53pfnHellaenergy, because you'll destroy your permgen space and risk other memory leaks in any libraries you use
18:58.41HellaenergyGot any papers on that by chance?
18:58.54pfnno, google
18:59.17pfngoogle classloader memory leak redeploy
18:59.19pfnis one such example
18:59.28pfngoogle commons-logging memory leak
18:59.29pfnas well
19:00.35HellaenergyThats funny that confluence comes up as the first hit on that.
19:02.25*** join/#tomcat chrisjw (n=gfh456@82-71-87-171.dsl.in-addr.zen.co.uk)
19:03.44Hellaenergyjasonb, which version of JRockit do you rock?
19:08.28*** join/#tomcat gregor_k (n=a@stgt-4dbe1e7d.pool.einsundeins.de)
19:21.55*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:22.52*** part/#tomcat merike_ (n=merike@pc157.host24.starman.ee)
19:45.41*** join/#tomcat tom17bombadil_ (n=tom@X8f88.x.pppool.de)
19:47.27*** join/#tomcat tom17bombadil (n=tom@X8f88.x.pppool.de)
20:04.05jasonbHellaenergy: jrockit-R27.4.0-jdk1.6.0_02 currently.  Probably deserves to be updated.
20:18.54Hellaenergyjasonb, what's the formula for which libs should go in $CATALINA_HOME/lib?
20:19.59jasonbHellaenergy: Basically anything that doesn't go into a webapp ends up in there if it's not already part of Tomcat.
20:24.14HellaenergyI guess that's what i'm asking though. What should and shouldn't't go into a webapp?
20:24.28pfneverything that can go into the webapp should
20:24.28jasonbAnything that Tomcat also has to use.
20:24.43pfnanything that can't, that needs to be provided as a container service should go with tomcat
20:25.01pfnin this case, there's very little that should go into tomcat
20:25.07pfnusually just jdbc drivers
20:25.10Hellaenergyso should one's app contain the jdbc driver?
20:25.16pfnand anything else jndi related
20:25.21Hellaenergyhibernate?
20:25.28pfnhibernate isn't a container-service
20:25.30pfnjdbc drivers are
20:25.43HellaenergyOK I follow ya
20:26.55a4akbaHellaenergy
20:28.30Hellaenergy?
20:40.04*** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
21:12.54*** join/#tomcat melter (n=Melter@dyn007.morrill-116.ndsu.NoDak.edu)
22:17.57*** join/#tomcat cppexpert (n=cppexper@c-98-207-194-80.hsd1.ca.comcast.net)
22:22.14*** join/#tomcat vershun (n=vershun@c-76-120-96-229.hsd1.co.comcast.net)
22:22.30vershunIf I'm doing "<c:forEach var="i" begin="1" end="${requestScope.resultLength / 10}">" (struts core taglib) how do I refer to the variable "i" in a <% java chunk %>
22:28.52*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
22:38.02pfnyou don't
22:38.13*** join/#tomcat Infinito_ (n=argos@201-10-165-6.gnace701.dsl.brasiltelecom.net.br)
22:38.17pfnmixing taglibs and scriptlets is completely unsupported
22:40.11vershunHmm then is there an easy way to add/change a parameter to a java.util.Map passed in via requestScope?
22:40.24pfndo so within a servlet
22:40.27pfnor action
22:40.31pfnor controller
22:40.33pfnwhatever your framework has
22:41.59vershunYeah using Struts.  I guess my problem is I'm doing search result paging and the html:link property like to take in a Map and I need page=1, page=2, etc with the same query=string, would you recommend I make an Array of Maps and iterate through to build the << 1 2 3 4 >> links?
22:42.49vershunSeems inefficient I guess
22:47.06pfnas opposed to doing what?
22:48.32vershunJust iterating through using the same generic Map but setting the "page" parameter equal to your iteration count
22:48.59pfnwhy can't you do that right now
22:49.27pfn<c:set var="page" value="${i}"/>
22:50.47vershunIs there a way to add that "page" variable to the java.util.Map passed in via request.setAttribute("paramMap", request.getParameterMap())?
22:51.00vershunThat's where I'm stuck
22:51.15pfnwhy would you want to add it to the map
22:51.36pfnwhy are you doing that?
22:51.58vershunSince <html:link   takes a Map object to build multiple parameters
22:52.30pfnsee if <html:link> supports any other inputs then
22:52.34pfnthat sounds particularly wrong
22:52.42pfnprefers <c:url> and <c:param ...>
22:53.03vershunAh OK that will actually work better then
22:53.09vershunThanks
22:54.18jasonbOr, you might try request.setAttribute("paramMap", new HashMap().putAll(request.getParameterMap()));
22:54.40jasonb(or something similar)
22:55.19vershunOK thanks I'll play with it
22:57.06yassinenight everyone
22:57.17jasonbg'night yassine!
23:35.34*** join/#tomcat Vishal (n=useranon@unaffiliated/vishal)
23:38.53Vishal[Tomcat/Java/OS](5.5.26/1.6.0_03/Ubuntu 7.10) Installing Liferay, error = http://rafb.net/p/aotYSs73.html
23:49.34*** join/#tomcat mistik1_ (n=mistik1@ool-4352c7d3.dyn.optonline.net)

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