IRC log for #tomcat on 20080123

00:43.16*** join/#tomcat nebM0ft (n=ramin@pool-70-23-145-132.ny325.east.verizon.net)
00:43.20nebM0ftDo I need to download/install anything to get jstl working or tomcat comes with it standard? <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> doesn't seem to work...
00:59.47andytneed jstl jar.
01:04.27*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-4f71fd1728ee53b5)
01:05.26pfnneed jstl.jar + standard.jar
01:13.38*** join/#tomcat deepjoy (n=dj@122.167.245.200)
01:17.09deepjoyTC 6.0.14, jdk1.5.0_14 on CentOs 5, is it possible to cluster (in memory session sharing) tomcat instances balanced by mod_proxy_ajp. I already have multiple ajp clusters with sticky sessions and JVM route configured.
01:18.09deepjoyI'd be grateful If anybody could point me to any documentation on this if it exists.
01:23.55*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:34.09*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
02:43.48*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
02:50.06*** join/#tomcat kanai (n=kanai@124.32.114.226)
02:55.20*** part/#tomcat albert_kam (n=albert_k@222.124.39.108)
03:38.10*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
04:11.19*** join/#tomcat lance107 (n=chatzill@061093246097.ctinets.com)
04:45.47*** join/#tomcat acidjnk (i=acid@p5B3F30DB.dip0.t-ipconnect.de)
04:58.18*** join/#tomcat raar (n=Minority@www.serverslots.com)
05:27.08*** join/#tomcat aadil (i=aadil@penrose.bsdprojects.net)
05:27.25aadilhello
05:29.10aadili am using like 10 instances of Tomcat 5.5.7 on a production server with jre 1.5_0_03 and i am wondering how to calculate the memory consumption of each tomcat
05:29.56aadiland if needed want to limit each instance of tomcat to 128Mb of RAM
05:30.27aadilcan anyone point me in the right direction to identify the memory consumption and to modify it?
05:32.37aadilarfg
05:32.42aadilfound it
05:33.07aadiljava -X options to set the limit
05:37.11pfn10 instances?  why?
05:38.38aadilcoz the customer has very big and important apps running on each
05:38.51aadiland info sensitive
05:44.40aadilwell thanks folks
05:44.48aadili got what i needed
05:44.50aadilcheers
06:02.53*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
07:55.53*** join/#tomcat kanai (n=kanai@124.32.114.226)
08:00.38*** join/#tomcat Hider (n=hider@88.250.232.61)
08:01.41HiderHell All, I would ask you just one question: "How can I set the default webapp in tomcat 6.0, currently webapps/ROOT is the default I would want to change it to webapps/XYZ
08:06.59*** join/#tomcat memoryleak2 (n=memoryle@195.141.78.162)
08:16.51*** join/#tomcat kjkoster5489 (n=kjkoster@a1190.upc-a.chello.nl)
09:11.25*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
09:11.46*** part/#tomcat albert_kam (n=albert_k@222.124.39.108)
09:12.45*** join/#tomcat albert_kam (n=albert_k@222.124.39.108)
09:59.25*** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net)
10:37.32*** join/#tomcat MarineW (n=Miranda@77.198.107.13)
10:39.00MarineWHello
10:39.14MarineWI have a problem with LDAP authentication (JNDIRealm)
10:39.51MarineWI am able to login that way, but I can't retrieve roles that I entered in LDAP user entry
10:40.48MarineWHere is a part of the server.xml :
10:40.50MarineW<PROTECTED>
10:40.50MarineW<PROTECTED>
10:40.50MarineW<PROTECTED>
10:40.50MarineW<PROTECTED>
10:41.03MarineWAny idea about my problem, please ?
10:41.13MarineWDid I miss something ?
10:43.48MarineWSorry, I forgot to tell... I work with Tomcat 5.5.20, Windows XP and JDK 1.6.0_02
10:58.14*** join/#tomcat Oliber_ (i=oliver@sparks.from.the.cattleprod.co.uk)
10:59.22MarineWI have been searching for hours... and I still can't make it work. Any help please ?
11:00.14Oliber_i'm trying to implement IIS6/Tomcat, first question, should i be using jk or jk2? (i saw jk2 is depreciated somewhere...)
11:00.24MarineWI can't see anything in log files, I can't find people having same problem in Google search...
11:09.06Oliber_i missed your problem, MarineW :(
11:15.57MarineWOliber_: Thanks for your interest. My problem is about LDAP authentification through JNDIRealm
11:16.39MarineWI'm able to connect, but I have then an "access denied" message, because roles are not retrieved from LDAP entry
11:16.50Oliber_i'm about to do that for use with shibboleth, i'm a bit of a tomcat newb :(
11:17.13MarineWOliber_: ok. Thanks !
11:17.51MarineWOliber_: Sorry, I also can't help you... And I feel we won't have lot of help... :(
11:17.52Oliber_could you paste your JNDIRealm configuration to a pastebin? (remember to remove passwords), another pair of eyes might help
11:19.07MarineW<PROTECTED>
11:19.07MarineW<PROTECTED>
11:19.07MarineW<PROTECTED>
11:19.07MarineW<PROTECTED>
11:25.52MarineWok, I think I found the problem.
11:26.26MarineWIt seems Tomcat had sufficient rights to get authenticatation informations, but not roles informations in LDAP directory.
11:26.54MarineWI added connectionName and connectionPassword, and it now working :-)
11:26.55Oliber_http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/realm/JNDIRealm.html and there is a guide here, http://cymulacrum.net/writings/adv_tomcat/c487.html
11:27.37MarineWOliber_: Thanks for your help
11:27.57Oliber_it wasn't much help, but np :)
11:46.12*** join/#tomcat MAZZOLA (n=chatzill@213-140-24-73.ip.fastwebnet.it)
11:46.36robertohi
11:47.50robertorobertohi
11:48.22robertorobertoI need to send a message (an html page.. or a simple alert) to each users connected to the system (also in a cluster env).
11:48.23robertorobertoFor example because the sys admin needs to comunicate that the system need to be offline from 10:00 AM to 3:00PM..
11:48.25robertorobertoSo i need to send this message to all live http session ..
11:48.27robertorobertoThere is a way to do it ?
11:48.29robertorobertoThe better solution is an web container independent way... of course..
11:48.30robertorobertoThank you (I'm using tomcat 6.0.14 on windows platform 32 bit)
11:51.11Oliber_no problem, i was glad to help
11:52.12deeboadd the info to all existing sessions
12:16.05*** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com)
12:19.02*** join/#tomcat [Gandhi] (n=hellboy@208.50.70.1)
12:26.20*** part/#tomcat albert_kam (n=albert_k@222.124.39.108)
12:30.39*** join/#tomcat fba (n=fba@mail.veronamoveis.com.br)
12:31.00fbahello
12:57.24robertorobertodeebo... the message "add all info... " was for my question ? if yes.. i don't know what kind of info I need to add...
12:57.46deeborobertoroberto: well whatever you want to?
12:58.03robertorobertoI need to send a message (an html page.. or a simple alert) to each users connected to the system (also in a cluster env).
12:58.04robertorobertoFor example because the sys admin needs to comunicate that the system need to be offline from 10:00 AM to 3:00PM..
12:58.06robertorobertoSo i need to send this message to all live http session ..
12:58.07robertorobertoThere is a way to do it ?
12:58.09robertorobertoThe better solution is an web container independent way... of course..
12:58.10robertorobertoThank you (I'm using tomcat 6.0.14 on windows platform 32 bit)
12:58.24deeboa string that says "system will reboot at 3am", then make your app show it on the page when the user views a page next time
12:58.39deebothen if the session param exists -> show string
13:00.38robertorobertoa good idea.. ty. But there is another way ? I have a big applcation (is an ERP system) with a log of JSP/servlet.. I would like to find something that send a new http page from the server to all active http session... but I believe is not possible. You idea in every case is good. ty
13:01.34robertoroberto(and sometime I cannot change JSP/Servlet because they are provided from a software house..)
13:32.44*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-f73cc45682e6463f)
13:34.46*** join/#tomcat alk^ttn (n=cc@87-194-94-237.bethere.co.uk)
13:51.26*** part/#tomcat fba (n=fba@mail.veronamoveis.com.br)
13:58.23*** join/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
14:01.40*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
15:20.32deeborobertoroberto: you can add a filter that does these checks for you, and if a reboot/downtime is coming, its shows a page for some time and the redirects to the real page
15:50.13robertorobertoHi Deebo! this idea is very wonderful! I like it! thank you very much!!!
15:58.39*** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com)
16:02.56*** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr)
16:06.23*** join/#tomcat deepjoy (n=dj@122.167.245.200)
16:07.10*** part/#tomcat Sembiance (n=Sembianc@permafrost.telparia.com)
16:07.38*** join/#tomcat brilliantnut (n=brillian@122.167.245.200)
16:07.41deepjoyHi is there a channel log that I can see somewhere?
16:10.30brilliantnut!help
16:15.38*** join/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net)
16:15.49*** join/#tomcat kab (n=abarrera@nat.ti.uach.mx)
16:23.16*** part/#tomcat deepjoy (n=dj@122.167.245.200)
16:34.49*** join/#tomcat mgolisch (n=michi@85.93.11.18)
16:36.26*** part/#tomcat ralfWORK (i=jwalker@flynn.smearcampaign.org)
16:36.27mgolischanyone knows howto cast a PreparedStatement to its specific type? like casting the PreparedStatement to OraclePreparedStatement so i can use the setexecutebatch method to set a batch size for my mass inserts
16:39.04mgolischi allways get an error i guess cause the connection is aquired from tomcats connection pool
16:39.33mgolischjava.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement
16:39.38mgolischthats what i allways get
16:40.03mgolischhow can i get access to the Statement so i can cast it to the required Type
16:49.50pfnmgolisch, check the apidoc on delegatingprepared...
17:02.04*** join/#tomcat davidflam (i=c91183c8@gateway/web/ajax/mibbit.com/x-b9edad60e4754ae1)
17:05.01davidflamHello, i'm running tomcat 4.1.36 with java 1.6 and ubuntu 7.10. My question is: How can i make the server run with a different JDK from $JAVA_HOME ? Currently it is set to Java 6, but i want to run it with java 1.4 without changing $JAVA_HOME, is it possible? How?
17:14.39Oliber_davidflam: i'd suggest looking at your tomcat startup script
17:15.30Oliber_you could set JAVA_HOME in there, i havn't used tomcat much at all (and only on Windies so far)
17:28.46davidflami tried setting on catalina.sh using export JAVA_HOME=/myway/...
17:30.49davidflambut i dont know if its running with 1.4 jdk
17:35.55pfnthen it is
17:36.02pfnor write a test jsp that retrieves java.version
17:38.10*** join/#tomcat ralfWORK (i=jwalker@flynn.smearcampaign.org)
17:38.37ralfWORKperhaps a silly question for this channel
17:38.55ralfWORKbut I'm running OpenReports on Tomcat. The OS is FreeBSD
17:39.19ralfWORKI'm trying to pin down Tomcat's memory usage so I can possibly use a web host with a lower amount of RAM
17:39.40ralfWORKTop says the SIZE is 1163MB and the RES is 180M
17:48.07Oliber_are there any JNDI/LDAP experts around? i'm trying to get a sucessful bind to activedirectory (config in server.xml)
17:49.01Oliber_the error i get is "n order to perform this operation a successful bind must be completed on the connection".  Tomcat 5.5.15 on Server 2003 R2 (32bit) with IIS6 and the isapi 1.2.26 module (iirc, latest build anyway)
17:50.52randrewjralfWORK: decreasing ram may have a difficult to predict impact on jvm performance. if you could run your OS and app in a VM you could test with different amounts of RAM.
17:52.03ralfWORKrandrewj: blech. k
17:52.12ralfWORKsometimes I love java
17:52.15ralfWORKmostly I hate it ;)
17:52.30Oliber_i havn't found many reasons to love it yet :(
17:52.37ralfWORKhehehe
17:52.47randrewjheh,  jvm loves ram
17:53.09randrewjjruby is a reason to love java, uhh... maybe.
17:55.04ralfWORKthis server is some Verio VPS
17:55.13Oliber_randrewj: i don't suppose you'd be able to point me in the right direction for my prob? :)
17:55.19ralfWORKprobably won't be able to trim down memory on this bad boy
17:55.22ralfWORKkinda retarded
17:56.10Oliber_on the windows service control, there is maximum memory pool, i don't know if you could use that for shrink testing
17:56.22ralfWORKhmmm k
18:25.29*** join/#tomcat lgbr (n=lgbr@CPE-76-178-156-70.natnow.res.rr.com)
18:28.48*** join/#tomcat fix (n=fix@86.39.152.5)
18:33.04*** join/#tomcat ngong (n=ngong@home.august.de)
18:37.49*** join/#tomcat gregor_k (n=a@stgt-4dbdae7c.pool.einsundeins.de)
18:38.24*** join/#tomcat Ubuntu8_PHP6 (n=Ubuntu8_@189.13.215.61)
18:38.47*** part/#tomcat Ubuntu8_PHP6 (n=Ubuntu8_@189.13.215.61)
18:40.02lgbrI have tomcat and apache linked together with mod_jk. I'd like to use JSP files to do some simple things like including header pages and such for files that are in my apache root. What's the best way to get this done? Symlinks don't seem to work
18:41.14*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
18:41.24a4akbahui
19:20.29*** part/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
19:32.58*** join/#tomcat anisfarhana (n=anis@pdpc/supporter/base/anisfarhana)
19:33.03anisfarhanagreetings
19:33.14anisfarhanai have installed tomcat5 on my system (fedora 7) via yum , and start the service , when i open http://localhost:8080 it's show me blank page instead of tomcat welcome page , what's wrong ?
19:34.28*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
19:49.55*** join/#tomcat Internat (n=nf@dsl-58-6-125-95.qld.westnet.com.au)
19:51.11*** join/#tomcat rikkor (n=ulk@209.45.74.205)
20:06.13*** join/#tomcat nebM0ft (n=ramin@69-38-230-2.ny.towerstream.net)
20:06.29nebM0ftis there any way to compile and run servlets withouth restarting tomcat everytime?
20:15.08lgbrnebM0ft: Put the war file in your webapps folder and tomcat will unpack it
20:16.33nebM0ftlgbr: well i just have a directory in webapps that i am working on, haven't compressed it yet.
20:17.37*** join/#tomcat vinse (n=vinse_@208.253.223.146)
20:21.51nebM0ftlgbr: anyway to automatically reload servlets?
20:24.08mgolischcant you reload the servlet via the manager app?
20:25.46anisfarhanaanyone can help me on my problem ? please
20:27.23^Quiddityanisfarhana, any relevant information in the log files?
20:28.12anisfarhanatomcat5 log or httpd log files ?
20:29.41^Quidditywell, considering you're accessing via the tomcat port, the tomcat logs
20:31.18anisfarhanathat is my problem sir
20:31.38anisfarhanathe port is 8080 by default , when i enter localhost:8080 it shows me blank page
20:32.04anisfarhanai even don't know where is tomcat log files located on my system
20:37.47anisfarhanaJan 24, 2008 4:00:58 AM org.apache.coyote.http11.Http11BaseProtocol pause
20:37.48anisfarhanaINFO: Pausing Coyote HTTP/1.1 on http-8080
20:37.56anisfarhanapause ?
20:52.23*** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-149-115.red.bezeqint.net)
20:58.05anisfarhanasuccess!!!!!
20:58.06anisfarhana:D
20:58.23*** part/#tomcat ralfWORK (i=jwalker@flynn.smearcampaign.org)
21:09.27*** join/#tomcat tlrobinson (n=tlrobins@c-24-7-122-97.hsd1.ca.comcast.net)
21:12.14*** join/#tomcat notyou (n=notyou@itsdhcp111.its.uwf.edu)
21:15.14notyoutomcat ver 5.5.25,  java ver 1.6.0_03, OS ver rhel5.1,   I need to log a parameter in the http headers how do I add this to tomcats logging , I am not proxying through apache.
21:18.50tlrobinsonis there any way to find out which library a class is being loaded from?
21:22.31pfnnot particularly, no
21:22.36pfnjava -verbose, perhaps
21:24.48tlrobinsonhow would i get -verbose in a servlet in tomcat?
21:33.13pfnnot with a particular servlet
21:33.19pfnyou'd do it with the entire jvm
21:33.42pfnalternatively, you might try to inspect the class' classloader to see if you can glean any info off that
21:39.53ngongtried to bring up Tomcat 5.5.25-5 on Debian linux 2.6.23.14 with sun-java5-jdk. no success even with simple sample.war. Found bug=460839. The patch did not work for me (however, I'm not used inserting patches but this one seems to be simple, just 4 lines at the end of 04webapps.policy). Got back to 5.5.20. That is working. Took me two nights. How to warn the Debian community about that? 5.5.25-5 is declared to be testing, not unstable or experimental! And you
21:55.05*** join/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
22:13.02*** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.mn.comcast.net)
22:41.11*** part/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)
23:58.14*** join/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com)

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