IRC log for #tomcat on 20090904

00:03.04*** join/#tomcat AftabIqbal (n=aftabiqb@79.97.129.125)
00:03.30*** part/#tomcat AftabIqbal (n=aftabiqb@79.97.129.125)
00:20.29jasonbillsci: If it is possible (I'm not entirely sure), then it certainly wouldn't be easy.
00:23.12jasonbillsci: It's a question I've very seldomly heard.. and in the past I've answered that it's not possible to do with Tomcat.  Thinking about it some more, it may be possible.  You'd have to configure server.xml with two <Service> elements.  One for port 8080 and then another for port 8081.  Then, you could configure two different host names for the same server computer so that it knows itself by those two different names (this part, I
00:23.12jasonb'm not sure you need it, but I think so).
00:24.02jasonbIn each <Engine> and <Host> element you set those to use one host name in one Service, and a different host name in the other Service.
00:24.39jasonbEven doing all that, I'm not sure it would work.. but it might.
00:46.57[twisti]i have a tomcat running behind an apapche with ajp proxy, and when i use something like request.getRemoteAddr(), i always only get 127.0.0.1 (because it comes from the proxy). is there any way to get the actual remote info ?
01:03.08*** join/#tomcat perr0 (n=dalanis@c-75-72-9-167.hsd1.mn.comcast.net)
01:04.05*** join/#tomcat akbar (n=chatzill@213.189.79.96)
01:18.23pfnare you actually proxying through ajp?
01:18.30pfngetRemoteAddr should return just that
01:19.18pfnI proxy through ajp and getRemoteAddr returns the remote address as expected
01:53.37*** join/#tomcat km (n=km@adsl-99-146-2-115.dsl.pltn13.sbcglobal.net)
02:16.27*** join/#tomcat Inc` (n=incendiu@user-0cet4r2.cable.mindspring.com)
03:07.43*** join/#tomcat Toba_ (n=eastein@balin.truct.org)
03:42.42*** join/#tomcat wsmoak (n=wsmoak@apache/committer/wsmoak)
03:51.24*** join/#tomcat acidjnk (i=acid@pD950A007.dip0.t-ipconnect.de)
03:52.36*** join/#tomcat karstensrage (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
04:11.23*** join/#tomcat e2dot718 (n=e@65.255.211.130)
04:36.20*** join/#tomcat Alagar (n=helpdesk@pool-173-58-20-230.lsanca.fios.verizon.net)
05:19.19*** join/#tomcat shashi (n=shashi@122.181.1.158)
06:33.36*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:38.50*** join/#tomcat greap (n=lyndon@203.161.83.17.static.amnet.net.au)
06:39.11greapHi. Any idea why my tomcat install would be generating no log files?
06:47.51pfnit's not running...
06:47.57pfnor you're looking in the wrong place
06:54.42greapMakes sense
07:15.05*** join/#tomcat barkbarkmeow (n=barkbark@115.184.72.199)
07:45.23*** join/#tomcat uebera|| (n=nuser@enton.tm.informatik.uni-frankfurt.de)
08:04.05*** join/#tomcat magentar (n=magentar@ip-94-79-143-196.unitymediagroup.de)
08:33.54*** join/#tomcat barkbarkmeow (n=barkbark@115.184.125.109)
09:43.57*** join/#tomcat katratxo (n=katratxo@ec2-79-125-6-47.eu-west-1.compute.amazonaws.com)
09:45.40katratxohi all, is there a way to uncache a loaded class without reloading the context or restarting the server?
10:46.04*** join/#tomcat uebera|| (n=nuser@enton.tm.informatik.uni-frankfurt.de) [NETSPLIT VICTIM]
10:46.04*** join/#tomcat flashn (i=flashn@glck.net) [NETSPLIT VICTIM]
11:57.50kc8pxyquestion. i have an aapplication shat is telling me it's failing to execute a native file, and tells me the path of the file starts with './'  where is that ./ refering to? tomcat "here" or application "here" or where? ./ is ambiguous.
12:28.31Thijsssscheck the applications running path
12:31.27*** join/#tomcat Tiarine_ (n=Tiarine_@ASte-Genev-Bois-152-1-47-210.w82-121.abo.wanadoo.fr)
12:43.48*** join/#tomcat Afterlawl (n=x@5adbc0fb.bb.sky.com)
12:48.17*** join/#tomcat magentar (n=magentar@ip-94-79-143-196.unitymediagroup.de)
12:49.01*** join/#tomcat JoseBravo (n=jbravo@190.144.124.195)
12:49.06JoseBravoHello
12:50.02*** part/#tomcat jenner (n=stroh@debian/developer/jenner)
12:50.23JoseBravoIm trying to run tomcat under linux using the user tomcat on port 80. But I get Permission denied. I checked and the port is free. And if I run it under root it works fine.
12:53.46Thijsssswell
12:53.57Thijssssonly root may run stuff on ports below 1024
12:54.09Thijssssor was it below 1025 ..  .. till 1024 :)
12:54.17Thijssssso you will need to run it as root first then become tomcat
12:54.21Thijsssshold on, i'll get an example for you
12:54.53ThijssssI always move the startup.sh script to startup_old.sh
12:54.59Thijssssthen make a new startup.sh containing the following:
12:55.05Thijsssssu -p -s /bin/sh tomcat /opt/apache-tomcat-6.0.18/bin/startup_old.sh
12:55.08Thijssssor whatever the path is
12:55.32Thijsssswait i'm not actually running those listening on port 80
12:55.34ThijssssApache does that
12:56.15Thijssssehm.. I forgot how to fix that up ;p sorry
12:59.54ThijssssJoseBravo  : you can also make IPtables forward from 80 to 8080 and avoid the root priviliges all together
13:05.21*** join/#tomcat ajt (n=alex@h69-129-20-250.wyngmi.dedicated.static.tds.net)
13:12.24*** join/#tomcat e2dot718 (n=e@rrcs-74-62-249-50.west.biz.rr.com)
13:19.55*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
13:29.01*** join/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
14:12.52*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
14:23.36*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
14:25.55*** join/#tomcat yairgo (n=yairgo@nat.asynchrony.com)
14:34.21*** join/#tomcat puskar (n=puskar@PUSKAR.ES.ITS.NYU.EDU)
14:42.23*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
14:43.06*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
15:10.22*** join/#tomcat vinse_ (n=vinse_@208.253.223.146)
15:22.22illscihey i have a question about two apps i have..  I have one tomcat instance and I have two apps
15:22.25illsciis there anyway I can get them to both be at ROOT?  Like could one be at / on port 8080 and the other be at / on 8081
15:22.33illsciis that possible
15:22.38illsciI have two war files that explode in the webapps dir but I want them both to be at the document root
15:22.58illsciI asked yesterday and I got an semi answer I figured I would ask again today before I start attempting it...
15:23.05illscirhel5u1, jdk-1.6.0_14-fcs, tomcat-6.0.13-4
15:24.36kjkoster5489no, not possible. Only one can be root per server.
15:24.48kjkoster5489You can deploy them in their own tomcat instances, though.
15:25.12illscihow would that perform compared to a single instance with two apps?
15:25.15illscion the same host
15:25.28kjkoster5489With enough RAM: no difference.
15:25.36illscireally
15:25.43kjkoster5489You'd have about 20-30 MB RAM overhead.
15:25.53kjkoster5489Yeah, is that surprising?
15:25.55illsciso the memory arguements yougive tomcat... does it preallocate that
15:25.58illsciand work instode of that
15:26.12illsciwell not really surprising... I haven't used tomcat in a while
15:26.35kjkoster5489It does not preallocate it unlesss you specify -Xmx and -Xms the same.
15:26.57illsci-Xms128m -Xmx128m
15:27.03kjkoster5489But since you now have two app servers, each can run in half the RAM, since they do half the number of apps.
15:27.16illscihmm
15:27.18kjkoster5489How much RAM in the box?
15:27.26kjkoster5489Other processes on the box?
15:27.35illsciapache
15:27.40illscibut im trying to get rid of that...
15:27.45kjkoster5489Right.
15:27.51kjkoster5489Physical RAM?
15:28.03illsciMemTotal:      4047936 kB
15:28.28kjkoster54894GB
15:28.47illsciyup
15:28.55kjkoster5489You can ship 3GB to me and still have the exact same performance.
15:29.01kjkoster5489I'll PM my address.
15:29.06illsciheheh
15:29.08kjkoster5489:)
15:29.13illsciso you would up the memory to what
15:29.22kjkoster5489I'd say give each 128M and see.
15:29.35illsci-Xms1024m -Xmx1024m
15:29.44kjkoster5489Then install Java-monitor to see how much you really need.
15:29.52illsciok
15:30.49illscihow does the amount of memory preallocated for tomcat affect its ability to handle lots of requests per second
15:31.03illsciif you can recomend a good book to read about tomcat performace that would be helpful too
15:32.58*** part/#tomcat ajt (n=alex@h69-129-20-250.wyngmi.dedicated.static.tds.net)
15:33.27*** join/#tomcat daniele_982 (n=daniele@host102-29-static.34-79-b.business.telecomitalia.it)
15:34.05daniele_982hello all
15:41.18*** part/#tomcat Alagar (n=helpdesk@pool-173-58-20-230.lsanca.fios.verizon.net)
15:41.23*** join/#tomcat NickDeNeger (n=none@koppel-143.sshunet.nl)
15:42.32*** join/#tomcat wsmoak (n=wsmoak@apache/committer/wsmoak)
15:49.33*** join/#tomcat km (n=km@c-24-4-54-132.hsd1.ca.comcast.net)
15:50.41*** join/#tomcat yairgo (n=yairgo@nat.asynchrony.com)
16:27.44*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
16:29.44*** join/#tomcat e2dot718_ (n=e@rrcs-74-62-249-50.west.biz.rr.com)
16:50.49kmhow can i run a program/process as user owner from a different user?
16:56.14randrewkm: on unix be root and use su, or have sudo privileges to accomplish equivalant.
16:56.49kmsudoers?
17:12.12*** join/#tomcat jasonb (n=jasonb@m380436d0.tmodns.net)
17:19.18*** join/#tomcat magentar (n=magentar@ip-94-79-143-196.unitymediagroup.de)
17:20.57*** join/#tomcat anoopb (n=chatzill@38.106.143.248)
17:41.53*** join/#tomcat e2dot718 (n=e@rrcs-74-62-249-50.west.biz.rr.com)
17:42.37*** join/#tomcat vinse (n=vinse_@208.253.223.146)
17:46.27*** join/#tomcat karstensrage (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
17:55.51*** join/#tomcat dwarder (n=dwarder@unaffiliated/dwarder)
17:55.57dwarderin the manual to my site's cms is writen that i must have environment var IMAGEMAGIC_HOME set to dir where ImageMagic is installed? how can i set this variable and to which user if cms uses apache tomcat
18:13.03*** join/#tomcat e2dot718_ (n=e@65.255.211.130)
18:19.26wsmoakdwarder:  did you see the msg from ChanServ? at least your Tomcat version will be helpful.
18:19.43*** part/#tomcat daniele_982 (n=daniele@host102-29-static.34-79-b.business.telecomitalia.it)
18:37.41*** join/#tomcat jasonb (n=jasonb@216.27.180.244)
18:40.41kmTomcat will stop accepting web connections, and a restart of the service is required to restore connectivity (page not available error). the log does not show any sign of the problem. any ideas?
18:57.19kmany ideas to troubleshoot the problem
19:03.31pfnthread dumps
19:19.26*** part/#tomcat randrew (n=raj@dyn-128-59-53-15.dyn.columbia.edu)
19:22.40*** join/#tomcat RenatoSilva (i=c88e3a12@gateway/web/freenode/x-ialnwcdrukbbhedc)
19:22.43RenatoSilvaHow to check if the user is authenticated under apache from my application? What data from the request should I look for?
19:34.37*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
19:35.16kjkoster5489ping illsci
19:44.20*** join/#tomcat barkbarkmeow (n=barkbark@115.184.67.54)
20:08.22dwarderwsmoak: i see version 6.0 and 5.5 in my /usr/share/ folder
20:08.46dwarderi wonder why do i have two versions
20:13.32wsmoakdwarder: you can have more than one sitting there.  or even running if they use different ports.
20:13.51dwarderjava is java version "1.6.0_07"
20:14.36wsmoakdwarder: how are you starting Tomcat?  (what OS is the other question)
20:18.15*** join/#tomcat Afterlawl (n=x@5adc3f2d.bb.sky.com)
20:22.07*** join/#tomcat km (n=km@adsl-99-25-117-46.dsl.pltn13.sbcglobal.net)
20:23.18dwarderi'm at gentoo
20:23.28dwarderlinux
20:27.25dwarderi can stop or start tomcan from /etc/init.d/tomcat-5.5 or 6
20:27.28dwarderi guess
20:28.48dwarderok i have started tomcat-5.5
20:29.27*** part/#tomcat RenatoSilva (i=c88e3a12@gateway/web/freenode/x-ialnwcdrukbbhedc)
20:35.31*** join/#tomcat shad0w_crash (n=shad0w_c@s55915152.adsl.wanadoo.nl)
20:42.45dwarderanyway, will tomcat applications writen for tomcat-5.5 work with tomcat-6?
20:47.05*** join/#tomcat Tofflos (n=erik@h-30-141.A176.priv.bahnhof.se)
20:48.56dwarderreads manuals
20:49.50jasonbYes, they should work fine with Tomcat 6.
20:49.53TofflosIs there some nice way of doing programmatic logon into container managed security? I've tried populating the form based login page with and submitted the form with JavaScript but it feels half-baked. In the end I would like newly registered users to be logged in automatically.
20:51.12shad0w_crashserverside cookie?
20:52.33shad0w_crashore check some JAAS solutions
20:57.06Tofflosshad0w_crash: What's a server side cookie? Do you think one of these solutions could be combined with DataSourceRealm?
20:57.32Tofflosshad0w_crash: (Thank you).
20:59.07shad0w_crashwell you can make a login with DataSourceRealms
20:59.22shad0w_crashit'll  look like a .htaccess (if you know what that is? )
20:59.48shad0w_crashbut you've to update the user.xml manualy... an other option is to configure an other userdatabase (like mysql)
20:59.57shad0w_crashbut then you've to code something for it
22:23.17*** join/#tomcat perr0 (n=dalanis@c-75-72-9-167.hsd1.mn.comcast.net)
22:23.48*** join/#tomcat timeOfOurLives (n=bardia@69.198.191.65)
22:23.50timeOfOurLiveshello
22:24.08timeOfOurLivesI´m trying to get the first example on tomcat to work
22:24.11timeOfOurLivesthe introduction app
22:24.29timeOfOurLiveswhere do I place the folder in order to use my browser to execute it? on the localhost that is.
22:25.08timeOfOurLivesanyone home?
22:25.36*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
22:47.16*** part/#tomcat Tofflos (n=erik@h-30-141.A176.priv.bahnhof.se)
23:13.22*** part/#tomcat illsci (n=illsci@recoil.defensiblenetworks.com)
23:21.08*** join/#tomcat da_krowa (i=Miranda@chello087207037180.chello.pl)

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