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.29 | jasonb | illsci: If it is possible (I'm not entirely sure), then it certainly wouldn't be easy. |
00:23.12 | jasonb | illsci: 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.12 | jasonb | 'm not sure you need it, but I think so). |
00:24.02 | jasonb | In 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.39 | jasonb | Even 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.23 | pfn | are you actually proxying through ajp? |
01:18.30 | pfn | getRemoteAddr should return just that |
01:19.18 | pfn | I 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.11 | greap | Hi. Any idea why my tomcat install would be generating no log files? |
06:47.51 | pfn | it's not running... |
06:47.57 | pfn | or you're looking in the wrong place |
06:54.42 | greap | Makes 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.40 | katratxo | hi 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.50 | kc8pxy | question. 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.31 | Thijssss | check 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.06 | JoseBravo | Hello |
12:50.02 | *** part/#tomcat jenner (n=stroh@debian/developer/jenner) |
12:50.23 | JoseBravo | Im 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.46 | Thijssss | well |
12:53.57 | Thijssss | only root may run stuff on ports below 1024 |
12:54.09 | Thijssss | or was it below 1025 .. .. till 1024 :) |
12:54.17 | Thijssss | so you will need to run it as root first then become tomcat |
12:54.21 | Thijssss | hold on, i'll get an example for you |
12:54.53 | Thijssss | I always move the startup.sh script to startup_old.sh |
12:54.59 | Thijssss | then make a new startup.sh containing the following: |
12:55.05 | Thijssss | su -p -s /bin/sh tomcat /opt/apache-tomcat-6.0.18/bin/startup_old.sh |
12:55.08 | Thijssss | or whatever the path is |
12:55.32 | Thijssss | wait i'm not actually running those listening on port 80 |
12:55.34 | Thijssss | Apache does that |
12:56.15 | Thijssss | ehm.. I forgot how to fix that up ;p sorry |
12:59.54 | Thijssss | JoseBravo : 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.22 | illsci | hey i have a question about two apps i have.. I have one tomcat instance and I have two apps |
15:22.25 | illsci | is 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.33 | illsci | is that possible |
15:22.38 | illsci | I have two war files that explode in the webapps dir but I want them both to be at the document root |
15:22.58 | illsci | I asked yesterday and I got an semi answer I figured I would ask again today before I start attempting it... |
15:23.05 | illsci | rhel5u1, jdk-1.6.0_14-fcs, tomcat-6.0.13-4 |
15:24.36 | kjkoster5489 | no, not possible. Only one can be root per server. |
15:24.48 | kjkoster5489 | You can deploy them in their own tomcat instances, though. |
15:25.12 | illsci | how would that perform compared to a single instance with two apps? |
15:25.15 | illsci | on the same host |
15:25.28 | kjkoster5489 | With enough RAM: no difference. |
15:25.36 | illsci | really |
15:25.43 | kjkoster5489 | You'd have about 20-30 MB RAM overhead. |
15:25.53 | kjkoster5489 | Yeah, is that surprising? |
15:25.55 | illsci | so the memory arguements yougive tomcat... does it preallocate that |
15:25.58 | illsci | and work instode of that |
15:26.12 | illsci | well not really surprising... I haven't used tomcat in a while |
15:26.35 | kjkoster5489 | It does not preallocate it unlesss you specify -Xmx and -Xms the same. |
15:26.57 | illsci | -Xms128m -Xmx128m |
15:27.03 | kjkoster5489 | But since you now have two app servers, each can run in half the RAM, since they do half the number of apps. |
15:27.16 | illsci | hmm |
15:27.18 | kjkoster5489 | How much RAM in the box? |
15:27.26 | kjkoster5489 | Other processes on the box? |
15:27.35 | illsci | apache |
15:27.40 | illsci | but im trying to get rid of that... |
15:27.45 | kjkoster5489 | Right. |
15:27.51 | kjkoster5489 | Physical RAM? |
15:28.03 | illsci | MemTotal: 4047936 kB |
15:28.28 | kjkoster5489 | 4GB |
15:28.47 | illsci | yup |
15:28.55 | kjkoster5489 | You can ship 3GB to me and still have the exact same performance. |
15:29.01 | kjkoster5489 | I'll PM my address. |
15:29.06 | illsci | heheh |
15:29.08 | kjkoster5489 | :) |
15:29.13 | illsci | so you would up the memory to what |
15:29.22 | kjkoster5489 | I'd say give each 128M and see. |
15:29.35 | illsci | -Xms1024m -Xmx1024m |
15:29.44 | kjkoster5489 | Then install Java-monitor to see how much you really need. |
15:29.52 | illsci | ok |
15:30.49 | illsci | how does the amount of memory preallocated for tomcat affect its ability to handle lots of requests per second |
15:31.03 | illsci | if 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.05 | daniele_982 | hello 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.49 | km | how can i run a program/process as user owner from a different user? |
16:56.14 | randrew | km: on unix be root and use su, or have sudo privileges to accomplish equivalant. |
16:56.49 | km | sudoers? |
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.57 | dwarder | in 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.26 | wsmoak | dwarder: 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.41 | km | Tomcat 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.19 | km | any ideas to troubleshoot the problem |
19:03.31 | pfn | thread 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.43 | RenatoSilva | How 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.16 | kjkoster5489 | ping illsci |
19:44.20 | *** join/#tomcat barkbarkmeow (n=barkbark@115.184.67.54) |
20:08.22 | dwarder | wsmoak: i see version 6.0 and 5.5 in my /usr/share/ folder |
20:08.46 | dwarder | i wonder why do i have two versions |
20:13.32 | wsmoak | dwarder: you can have more than one sitting there. or even running if they use different ports. |
20:13.51 | dwarder | java is java version "1.6.0_07" |
20:14.36 | wsmoak | dwarder: 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.18 | dwarder | i'm at gentoo |
20:23.28 | dwarder | linux |
20:27.25 | dwarder | i can stop or start tomcan from /etc/init.d/tomcat-5.5 or 6 |
20:27.28 | dwarder | i guess |
20:28.48 | dwarder | ok 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.45 | dwarder | anyway, 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.56 | dwarder | reads manuals |
20:49.50 | jasonb | Yes, they should work fine with Tomcat 6. |
20:49.53 | Tofflos | Is 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.12 | shad0w_crash | serverside cookie? |
20:52.33 | shad0w_crash | ore check some JAAS solutions |
20:57.06 | Tofflos | shad0w_crash: What's a server side cookie? Do you think one of these solutions could be combined with DataSourceRealm? |
20:57.32 | Tofflos | shad0w_crash: (Thank you). |
20:59.07 | shad0w_crash | well you can make a login with DataSourceRealms |
20:59.22 | shad0w_crash | it'll look like a .htaccess (if you know what that is? ) |
20:59.48 | shad0w_crash | but you've to update the user.xml manualy... an other option is to configure an other userdatabase (like mysql) |
20:59.57 | shad0w_crash | but 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.50 | timeOfOurLives | hello |
22:24.08 | timeOfOurLives | I´m trying to get the first example on tomcat to work |
22:24.11 | timeOfOurLives | the introduction app |
22:24.29 | timeOfOurLives | where do I place the folder in order to use my browser to execute it? on the localhost that is. |
22:25.08 | timeOfOurLives | anyone 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) |