IRC log for #tomcat on 20080514

00:02.55jasonbsnickers
00:15.07*** join/#tomcat victori_ (n=victori@cpe-75-80-141-237.san.res.rr.com)
00:45.05*** join/#tomcat melter (n=melter@dyn185.morrill-116.ndsu.NoDak.edu)
00:49.11*** join/#tomcat deebo (n=deebo@stonebay32.com) [NETSPLIT VICTIM]
01:02.45*** join/#tomcat clovisw (n=Clovis@189.26.169.199.adsl.gvt.net.br)
01:19.24*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:54.45*** join/#tomcat vodkatonic (n=vodkaton@97-86-161-122.static.stls.mo.charter.com)
02:09.04*** join/#tomcat dr0pknutz (n=dr0pknut@121-73-165-238.dsl.telstraclear.net)
02:27.35*** part/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:27.44*** join/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:28.31*** part/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:28.38*** join/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:29.17*** part/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:32.10*** join/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
02:33.18Vegarndoes tomcat ever reload the truststore?
02:33.48Vegarni would hate to restart the server every time i add a new user certificate to trust
02:34.12*** join/#tomcat lkthomas (n=lkthomas@218.189.175.14)
02:34.13lkthomashey guys
02:34.21lkthomaswhy tomcat need to relies on apache ?
02:34.21*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
02:34.54Vegarnthe group or the httpd?
02:35.08lkthomashttpd
02:35.32Vegarnit doesn't
02:35.51Vegarnit works excellent as a standalone web server
02:35.54lkthomasso what's diff between tomcat apache and tomcat
02:36.15Vegarntomcat apache == tomcat
02:36.28lkthomasoh, same thing ?
02:36.38lkthomasand why tomcat can not run fastcgi mode ?
02:36.54Vegarnthe difference between apache/apache2 httpd and tomcat is that tomcat is a servlet container
02:37.04Vegarnit can run java web applications
02:37.16lkthomashmm
02:37.40Vegarnit is possible to use tomcat in conjunction with apache2
02:37.57Vegarnread up on http://tomcat.apache.org
02:38.00lkthomasonly if you are running multiple language
02:38.11lkthomasor tomcat will serve good alone
02:38.25Vegarni use tomcat standalone
02:38.48lkthomasif you want to use JSP only, yes
02:39.02Vegarnit serves static html files fine as well
02:39.32*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
02:39.35Vegarnbut tomcat only support java and jsp as far as i know, yes
02:39.37Vegarnno php
02:39.43lkthomasyep
02:40.26lkthomasactually
02:40.39lkthomasJSP gave me an impression, slow
02:43.20Vegarnwell, servlets and jsp beats php any day as far as i'm concerned
02:44.22Vegarnthe tools and frameworks to build scalable and robust web applications is the best i've seen
02:44.33lkthomashmm
02:44.41lkthomasI also heard JSP run faster on SPARC machine
02:45.15Vegarnif you're doing numerical approximations, use c
02:45.27lkthomashuh
03:02.11lkthomasyou mean C for native application than php and jsp ?
03:50.58*** join/#tomcat acidjnk (n=have@pD9508E9B.dip0.t-ipconnect.de)
05:33.30*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
05:42.46*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:45.11*** join/#tomcat clajo05 (n=clajo04@135.sub-75-223-29.myvzw.com)
07:05.09*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
07:08.05*** part/#tomcat yassine (n=yassine@unaffiliated/yassine)
07:12.46*** join/#tomcat mauriez (n=maui@xs7.xs4all.nl)
07:51.17*** join/#tomcat DNC1 (n=david@mail.ratedpeople.com)
07:52.10DNC1Hey anyone used JAAS on TC 6.0.16 - I need to let a user join the site then "fake" their login into the site having joined as it were.
07:52.51DNC1I'm guessing a request valve which listens for a magic URL which then sends them via the j_security_check to get them authenticated
07:53.00DNC1anyone got any better ideas ?
08:00.32*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-79-167.dsl.emhril.ameritech.net)
08:03.22*** join/#tomcat durre (n=sdf@18.175.241.83.in-addr.dgcsystems.net)
08:05.31durreI have a very very unfortunate bug in my code that became obvious after a tomcat upgrade. and I was hoping there was a magic setting in tomcat that could help me. it goes like this...
08:07.19durreI have a file called init_editor.jsp ... that contains one <%@page import="se.atrox.atroxweb.web.WebUtils"%> .. and then a javascript. the file is included like this: <script type="text/javascript" src="/htmlscript/init_editor.jsp"></script>... this gives error
08:08.11durrethe import is the one causing the error. Only a type can be imported. se.atrox.atroxweb.web.WebUtils resolves to a package
08:08.56durreI know howto fix the problem but it's present at 200 different sites and I want to buy some time :)
08:10.18deeboyou might have wanted to actually test before updating 200 sites with a new tomcat :P
08:10.46durrewe use a webhotel and they will upgrade tomorrow
08:23.57*** join/#tomcat sveajobb (n=tommy@83.233.28.240)
09:09.40*** part/#tomcat DNC1 (n=david@mail.ratedpeople.com)
09:14.07*** join/#tomcat durre (n=sdf@18.175.241.83.in-addr.dgcsystems.net)
09:17.10*** join/#tomcat tommy_ (n=tommy@83.233.28.240)
09:17.44*** join/#tomcat Slap_Stick (n=jons@194.242.136.146)
09:18.32Slap_Stickhey, i have just installed tomcat using yum which has installed java-1.4.2-gcj-compat however i want to use jdk-1.5.0 i've installed jdk-1.5.0 but how do i make sure that jakarta uses that path as appose to the jvm of 1.4.2?
09:33.36*** join/#tomcat DNC1 (n=david@mail.ratedpeople.com)
09:35.06*** join/#tomcat tommy__ (n=tommy@83.233.28.240)
09:52.34*** join/#tomcat Ksz (n=Heaven@abug117.neoplus.adsl.tpnet.pl)
09:52.37Kszhello
09:52.42KszException in thread "TP-Processor16" java.lang.OutOfMemoryError: PermGen space
09:52.49KszTo set a new initial size on Sun JVM use the -XX:PermSize=64m
09:52.51Kszhow to se tit?
09:52.52Kszit
09:53.34*** join/#tomcat soufi (n=chatzill@196.219.65.74)
09:56.33*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-b07f8832ebc4fb16)
09:59.30DNC1Ksz : Get lamdba probe
09:59.38DNC1it lets you watch the memory in real time
09:59.48DNC1Or use jconsole
10:01.04Kszhow to add JVM options tomcat?
10:01.05DNC1If anyone out there is working on Lambda probe
10:01.10DNC1At
10:01.12DNC1Ah ....
10:01.20DNC1find the setenv.sh script
10:01.22Kszi need to add -XX:PermSize=128mb
10:01.25Kszok
10:01.31DNC1(you may need to create it in the bin directory  )
10:01.38Kszserver:/usr/local/tomcat# find /usr/local/tomcat -name setenv.sh
10:01.38Kszserver:/usr/local/tomcat#
10:01.39DNC1make it a working shell script
10:01.41DNC1and
10:01.53Kszim starting tomcat by /usr/local/tomcat/bin/startup.sh
10:02.00DNC1export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128Mb "
10:02.09DNC1Yes that calls catalina.sh
10:02.10Ksz<PROTECTED>
10:02.11Kszi see
10:02.16DNC1which then sources setenv.sh
10:02.22DNC1If you put things into setenv.sh
10:02.28DNC1then you know where all your settings are
10:02.37DNC1and you know exactly whats happening
10:02.53Kszif [ -r "$CATALINA_HOME"/bin/setenv.sh ]; then right
10:03.00DNC1Thats the one.
10:03.05Kszok what to put into setenv.sh?
10:03.12DNC1export JAVA_OPTS="$JAVA_OPTS -XX:PermSize=128Mb "
10:04.08Kszdone, going to restart
10:04.28Ksznot started :)
10:04.29DNC1make sure its executable ;-)
10:04.40KszUnrecognized VM option 'PermSize=128Mb'
10:04.40KszCould not create the Java virtual machine.
10:04.43KszHMM
10:04.56DNC1you have the -XX :   bit ?
10:05.07Kszok i know , it should be PermSize=128m
10:05.09Ksznot mb
10:05.49Ksz. /usr/local/java/bin/java -XX:PermSize=128m -Xms1024m -Xmx1024m... ok
10:06.23DNC1Yes but if you set export JAVA_OPTS=" ..." in the setenv.sh it will get passed in correctly
10:07.22tommy__Aaah.. now it has happened twice. I can connect to tomcat via  lynx http://adoperator.com:8080  but not via :80 (goes through apache mod-jk) and no database connections are alive or can be instantiated.
10:07.31tommy__What could possibly be the reason for this?
10:07.50*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-73-108.dsl.emhril.ameritech.net)
10:08.29Kszbut
10:08.46Kszi thing that maximum amount for  XX:PermSize is 64m
10:08.51Kszlook at this http://www.freshblurbs.com/explaining-java-lang-outofmemoryerror-permgen-space
10:09.07Kszat the table, Maximum Size
10:13.23*** join/#tomcat duritz (n=sdf@18.175.241.83.in-addr.dgcsystems.net)
10:13.29DNC1I'm sure I've made it much larger
10:13.33DNC1java 1.6 ?
10:15.28*** join/#tomcat INternat (n=nf@123-243-184-161.static.tpgi.com.au)
10:22.26*** part/#tomcat Slap_Stick (n=jons@194.242.136.146)
10:32.04*** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net)
10:32.22Ksz1.5
10:32.45Kszmayby this guy was wrong on the page i pasted
10:34.41DNC1when you start it what does it say ?
10:35.08DNC1show me the line in the setenv.sh
10:37.42Kszserver:/usr/local/tomcat/bin# cat setenv.sh
10:37.42KszJAVA_OPTS="$JAVA_OPTS -XX:PermSize=128m"
10:37.52Ksztomcat started wit this added option
10:39.01DNC1It did start with that ?
10:39.03DNC1good :)
10:39.03Kszbtw is any way to check out which contect, which servlet use how much amount of ram/
10:39.11Kszcontext*
10:39.14DNC1Not that I know of.
10:39.25DNC1the only way i guess that would be easy
10:39.32Kszhow
10:39.37DNC1is to only deploy the ones you want to weigh :)
10:48.37*** part/#tomcat Vegarn (n=ask@084202062228.customer.alfanett.no)
11:11.48Ksz:)
11:13.35DNC1its a bit of a simplistic way
11:13.36DNC1but ...
11:17.57acidjnkAll common profilers can find out how much memory the instances of a particular class (like a Servlet) use. The common commercial ones also provide tons of extra info that is Servlet related, but I don't know if they can display memory per context information.
11:18.36acidjnkhprof is included in the JDK. The common commercial ones are jprofiler and http://yourkit.com/
11:19.16acidjnkRecently I heard about this free thing, which includes some profiler features as a side effect: https://visualvm.dev.java.net/
11:22.27DNC1Ah yes!
11:22.33DNC1yes a profiler would do it.
11:22.53DNC1I've got the profiler in netbeans which seems to be quite nice.
11:23.36DNC1Although if you want to see it on a running system - production - i'd install lambda probe
12:26.06*** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com)
12:27.54*** join/#tomcat deepjoy (n=dj@122.167.244.121)
12:28.55*** join/#tomcat tommy_ (n=tommy@83.233.28.240)
12:29.56*** part/#tomcat clajo04_ (n=clajo04_@cpe-72-229-214-63.nyc.res.rr.com)
13:02.23deepjoyHi I'v just set up a SimpleTCPCluster on Centos 5 kernel 2.6.18-53.1.14.el5   JDK/JRE 1.5.0_14 Apache Tomcat/6.0.14.
13:02.34deepjoythe documentation at http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html says
13:02.47deepjoy"works great for smaller cluster but we don't recommend it for larger clusters"
13:03.01deepjoywhat is a smaller cluster in terms of machines
13:03.45deepjoyI have 6 machines with an avg of 400 sessions on each without clustering behind mod_proxy_balancer
13:04.20*** join/#tomcat Infinito_ (n=argos@201-10-163-163.gnace701.dsl.brasiltelecom.net.br)
13:11.23*** join/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
13:40.40*** join/#tomcat kjetilkWork (n=nnnnnnnn@news.computas.com)
13:42.01kjetilkWorkTomcat 5.5.25-5ubuntu1, Java 1.5.0, Ubuntu 8.04
13:43.17kjetilkWorkhas anybody used Varnish as a reverse proxy with Tomcat, mapping different hostnames, foo.example.com, bar.example.com to backend:8180/foo backend:8180/bar?
13:44.20*** join/#tomcat lkthomas_ (n=lkthomas@218.189.175.14)
14:29.36deepjoybalancermember takes multiple key=value kind of arguments
14:30.03deepjoyis there any way to make it " key1=value1 OR key2=value2"
14:41.02deepjoyapparently not the stickysessionn is hard coded to see only the route parameter
14:41.18deepjoyand the route parameter is strored as a "char *"
14:42.09deepjoyso I need to set another cookie to determine the first level cluster
14:43.20deepjoyor maybe design the jvmsession to have 2 parts in it's jvmroute the suffix for the cluster and the prefix for the node
14:51.22deepjoynope that would not work either
14:51.47deepjoymod_proxy_balancer.c:201      strcmp(worker->s->route, route) == 0)
15:03.26deepjoyso I have to set a cookie from somewhere :-(
15:09.05*** join/#tomcat tommy_ (n=tommy@83.233.28.240)
15:13.10*** join/#tomcat traza (n=traza@sistemas.uis.edu.co)
15:24.02*** part/#tomcat deepjoy (n=dj@122.167.244.121)
15:34.06*** join/#tomcat crackintosh (n=crackint@70.88.73.93)
15:38.54crackintoshHello, I am on tomcat 5.5. After putting a war into my webapps directory, my other application running on tomcat will not run either. I am getting errors in catalina.out "Exception loading sessions from persistent storage" and "Error configuring application listener of class com.fsrin.menumine.common.MenuMineContextListener" Could someone suggest what the problem might be? I would like to have both of these applications running at the same time.
16:07.31*** join/#tomcat Quiddity (n=steve@ng1.cptxoffice.net)
16:38.39*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
16:42.10*** join/#tomcat vaix (n=jmarquar@67.109.145.67.ptr.us.xo.net)
16:42.58vaixanyone know how to fix the following mod_proxy_ajp error:  "ajp_send_header: ajp_ilink_send failed\nBroken pipe: proxy: AJP: request failed to <IP>" ??
16:54.41*** join/#tomcat spylloc (n=sizeof@ppp079166086171.dsl.hol.gr)
16:55.21spyllocgood afternoon every1. i am running 5.5.22 (not so sure about the .22 part).
16:56.03spyllocand it jist won't start. im running debian testing with 2.6.22-3-686
16:56.11spylloccould somebody help?
16:57.39spyllocalso have java 1.5 on my system
17:11.43*** join/#tomcat penguinplayer (n=chatzill@75.144.118.193)
17:46.03*** join/#tomcat bougi (n=vag@adsl80-85.kln.forthnet.gr)
17:46.54penguinplayeranyone familiar with tomcat clustering?
17:50.53bougihello. I have tomcat 5.0.27  on win 2003 and I want to do the following thing. I have a site http://foo.site.com/sub1 and I want to move everything under the root, ie http://foo.site.com  . What I would like to know is how can I redirect every request. For example if the old link was http://foo.site.com/sub1/sub2/my.pdf  I want this to be redirected to http://foo.site.com/sub2/my.pdf   . The structure under sub1 will remain the same. We will just put
17:55.21bougiI just add my java version: 1.6.0_05-b13
18:03.08*** join/#tomcat DukeDave (n=dave@hq.last.fm)
18:07.00DukeDaveHey gang, I'm 5.5 / 6.0 / Ubuntu 7.10. My question:
18:07.00DukeDaveI have a class extending HttpServlet, in this I have private field holding an object. However I need each Tomcat thread to hold a unique instance of this this object (created with the thread) rather that sharing one between them all. Currently it's constructed in the init() method.
18:07.03DukeDaveThanks
18:12.04*** join/#tomcat mauriez (i=maui@xs2.xs4all.nl)
18:20.34*** join/#tomcat sdeboy (n=sdeboy@gw1-cust-comotivsystems-com.ptld.eli.net)
18:28.02*** join/#tomcat clajo04_ (n=clajo04_@cpe-72-229-214-63.nyc.res.rr.com)
18:43.55sdeboyJava 6, Tomcat 5.5.20: I need to allow access to specific static pages and block access to all other static pages...I can't find this in a FAQ.. any pointers?
19:11.26jasonbsdeboy: You must write your own servlet Filter to do that.. as part of your webapp.
19:26.26*** join/#tomcat wastrel (n=wastrel@nylug/member/wastrel)
19:28.01wastrelhi- first pass at setting up mod_jk on centos 5.  downloaded mod_jk from http://mirrors.24-7-solutions.net/pub/apache/tomcat/tomcat-connectors/jk/binaries/linux/jk-1.2.26/i386/mod_jk-1.2.26-httpd-2.2.6.so    apache fails to start
19:28.12wastrelcomplaining       /etc/httpd/modules/mod_jk.so: undefined symbol: ap_get_server_description
19:28.27wastrelthat is all :]
19:28.51pfnrecompile mod_jk
19:29.04pfnor, if you're using apache 2.2, use mod_proxy_ajp
19:31.05wastrelok, i'll take a look at mod_proxy_ajp, thanks.
20:34.18*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
20:48.04*** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com)
21:27.57*** join/#tomcat diLLec (n=dillec@dillec.biz)
21:29.46*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-73-108.dsl.emhril.ameritech.net)
21:44.41*** part/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
21:47.27*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
21:47.49*** join/#tomcat tobben (n=tobben@ti0159a380-1770.bb.online.no)
21:48.27tobbenHi. Does Tomcat have any .htaccess-like file/functionality?
21:52.45pfnno
21:57.18*** join/#tomcat kombucha (n=kombucha@c-67-174-249-33.hsd1.ca.comcast.net)
21:57.31kombuchai want to not see 'debug' level stuff, like in http://pastebin.com/m5ad65903
21:57.43kombuchahow do i only log in catalina.out INFO or WARN ?
22:00.11*** join/#tomcat Sardukar (n=Sardukar@82-32-7-235.cable.ubr01.azte.blueyonder.co.uk)
22:00.13SardukarHi all
22:00.55SardukarI wish to force content delivery of all pages to UTF-8
22:01.07SardukarHow would I go about this?
22:02.42*** join/#tomcat DB42 (n=wy@bzq-219-142-146.static.bezeqint.net)
22:02.55DB42i have in a .jsp page a <%@page import="logic.webservice.Register"%> but i can't seem to do new Register()
22:03.37DB42Only a type can be imported. logic.webservice.Register resolves to a package any idea ? (Register isn't a packagE)
22:07.08DB42anybody?
22:07.45DB42nm, foudn the problem
22:11.58*** join/#tomcat shellito (n=shellito@sistemas.uis.edu.co)
22:15.55SardukarI wish to force content delivery of all pages to UTF-8
22:15.57SardukarHow would I go about this?
22:48.31*** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com)
23:15.24*** join/#tomcat balla (n=balla@adsl-ull-199-43.51-151.net24.it)
23:34.40*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-73-108.dsl.emhril.ameritech.net)

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