00:19.22 | Markov | Can someone point me to a straight forward resource on deploying webapps with Tomcat? |
00:37.14 | *** join/#tomcat nichoj (n=nichoj@c-24-91-163-93.hsd1.ma.comcast.net) |
01:21.23 | jasonb | Markov: For deployment docs, see either the book Tomcat: The Definitive Guide, or the Jakarta Tomcat docs (less info here). |
01:21.36 | lyken | hehe |
02:00.25 | *** join/#tomcat loktar2 (i=EatMySho@ems02.your-freedom.de) |
02:01.52 | *** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net) |
02:09.27 | *** join/#tomcat nicho1 (n=nichoj@146-115-26-214.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com) |
02:59.14 | *** join/#tomcat CatSC (n=CatSC@203.184.15.71) |
02:59.17 | CatSC | Hello |
03:12.35 | *** join/#tomcat Amit_ (n=chatzill@202.70.72.66) |
03:13.55 | Amit_ | could anyone tell me if I could run CGI's as ROOT user ? |
03:18.01 | *** join/#tomcat KidVegas (n=vegas@c-24-91-143-187.hsd1.ma.comcast.net) |
04:47.38 | *** join/#tomcat elbil (n=elbil@81.7.157.8) [NETSPLIT VICTIM] |
04:47.38 | *** join/#tomcat ohsix (i=ohsix@bc111222.bendcable.com) [NETSPLIT VICTIM] |
04:47.38 | *** join/#tomcat crackhead (I=mlm@blackbox.clarkk.net) [NETSPLIT VICTIM] |
05:46.05 | *** join/#tomcat joee (n=jhiemer@62.40.10.39) |
05:54.04 | *** join/#tomcat valmont (n=chrishol@pool-71-116-177-150.lsanca.dsl-w.verizon.net) |
06:00.55 | *** join/#tomcat loktar2 (i=EatMySho@193.151.72.54) |
06:06.07 | *** join/#tomcat elbil (n=elbil@81.7.157.8) [NETSPLIT VICTIM] |
06:06.08 | *** join/#tomcat ohsix (i=ohsix@bc111222.bendcable.com) [NETSPLIT VICTIM] |
06:06.08 | *** join/#tomcat crackhead (I=mlm@blackbox.clarkk.net) [NETSPLIT VICTIM] |
09:00.26 | *** join/#tomcat loquace (n=seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
09:12.19 | loquace | hello |
09:48.37 | *** join/#tomcat RazorJimmy (n=RzaorJmi@85.105.23.144) |
10:00.22 | *** join/#tomcat loktar2 (i=EatMySho@ems01.your-freedom.de) |
10:05.47 | *** join/#tomcat harpoon (i=stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
10:07.46 | loquace | brb |
10:11.24 | *** join/#tomcat loquace (n=seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
10:12.44 | loquace | re |
10:23.19 | *** join/#tomcat Magnifikus (n=vst@muedsl-82-207-246-142.citykom.de) |
10:29.22 | *** join/#tomcat Dougnaka (n=Doug@207.225.223.185) |
10:54.59 | *** join/#tomcat Ioras (n=david@213.0.106.125) |
11:41.33 | *** join/#tomcat linuxfreck (n=freck@p5492B147.dip0.t-ipconnect.de) |
12:28.31 | *** join/#tomcat supergeek (n=daniel@dexter.computingoptions.com) |
12:29.20 | supergeek | If I am running several instances of Tomcat, each with their own JVM, does each try to acquire the -Xms from JAVA_OPTS? |
12:41.03 | *** join/#tomcat Mutru (i=mutru@koti.mutru.fi) |
13:12.26 | *** join/#tomcat joered (n=chatter@81-208-83-246.fastres.net) |
13:33.54 | *** join/#tomcat sgtmcd (n=shawnm@177dhcp-132.pennnet.com) |
13:34.48 | *** part/#tomcat sgtmcd (n=shawnm@177dhcp-132.pennnet.com) |
13:48.29 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
14:00.27 | *** join/#tomcat loktar__ (i=EatMySho@ems01.your-freedom.de) |
14:08.43 | *** join/#tomcat olvesh (n=olve@olve.intermedia.uib.no) |
14:20.48 | *** join/#tomcat olvesh (n=olve@olve.intermedia.uib.no) |
14:24.33 | *** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
14:50.31 | *** join/#tomcat linuxfreck (n=freck@p5492B147.dip0.t-ipconnect.de) |
15:02.37 | *** join/#tomcat Cow_woC (i=Cow_woC@i216-58-12-104.cybersurf.com) |
15:02.39 | Cow_woC | hi |
15:02.53 | supergeek | hola |
15:02.59 | Cow_woC | supergeek: hiya |
15:03.12 | Cow_woC | Is anyone from the tomcat team awake? :) I've got a question regarding a bug... |
15:10.29 | supergeek | They're always away here :/ But if you post your question they do eventually get back to you. |
15:10.36 | supergeek | Just takes a while. |
15:12.33 | Cow_woC | it's ok, I just filed a bug report |
15:12.46 | Cow_woC | I just wanted to confirm whether it was a bug or RFE but I guess they'll sort it out |
15:12.55 | *** join/#tomcat nDuff (n=cduffy@fwext1-ext.isgenesis.com) |
15:12.56 | Cow_woC | let's hope they don't pull the routine "invalid - rejected" crap on me |
15:13.02 | Cow_woC | :) |
15:13.11 | supergeek | :) |
15:47.12 | *** join/#tomcat manulite (n=manulite@sagit.co.zw) |
15:48.37 | manulite | hi, i'm having problems with j_security_check (i think) via mod_jk on apache, my jsp's are showing source code |
15:49.27 | *** join/#tomcat cilquirm (n=Soda@65.246.162.129) |
16:01.24 | cilquirm | is there a way to get/make jndi in tomcat writeable? |
16:17.11 | *** part/#tomcat manulite (n=manulite@sagit.co.zw) |
16:27.02 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
16:46.51 | *** join/#tomcat loktar__ (i=EatMySho@ems01.your-freedom.de) |
17:13.45 | *** join/#tomcat valmont_ (n=chrishol@germany.pspdev.pas.earthlink.net) |
17:17.08 | *** join/#tomcat a4akb (i=a4akb@62.150.37.29) |
17:18.13 | *** join/#tomcat jschroed (i=apache@ua-83-227-153-76.cust.bredbandsbolaget.se) |
17:19.02 | *** join/#tomcat jschroed (i=apache@ua-83-227-153-76.cust.bredbandsbolaget.se) |
17:19.32 | jschroed | Could anyone help me setting up virtual hosting with Tomcat 4.1 and Apache on different hosts |
17:19.52 | jschroed | I can get it to work perfectly provided both are on the same host, but I cant figure it out if they are on different hosts |
17:20.00 | jschroed | Ive been trying for 2 weeks now |
17:24.26 | *** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net) |
17:37.16 | *** join/#tomcat chanito (i=1000@132.248.202.54) |
17:39.23 | chanito | ? |
17:41.25 | Cow_woC | ... |
17:41.28 | Cow_woC | ok, that's it |
17:41.52 | Cow_woC | Remy is a freakin' jerk |
17:42.09 | Cow_woC | closes bug reports for no good reason with no good explanation all the time |
17:42.14 | Cow_woC | what a jackass! |
17:44.29 | jasonb | heh! |
17:44.46 | jasonb | He does that all the time. |
17:45.12 | jasonb | Probably figures that people will file a zillion bugs that don't necessarily matter, but many of them do actually matter. |
18:00.26 | *** join/#tomcat loktar__ (i=EatMySho@ems01.your-freedom.de) |
18:03.45 | Cow_woC | jasonb: it's very annoying... I filed one bug he closed as a dup of another even though I *specifically* mentioned the difference between the two |
18:03.57 | Cow_woC | it looks like he reads the 1st sentence then skips the rest |
18:04.13 | Cow_woC | is he in charge of BugZilla or something? why doesn't anyone else deal with bugs? |
18:06.27 | jasonb | Yeah, he really does skip lots of the text. |
18:06.45 | jasonb | He's the PMC chair of the Tomcat project. |
18:07.15 | jasonb | He feels entitled to handle the bugs.. he does do a good job on some, but I actually think he's just too annoyed by the whole system these days to be in charge of it. |
18:07.35 | jasonb | Being PMC chair for Tomcat is fine.. but handling the bugzilla bugs is another matter. |
18:08.54 | *** join/#tomcat Markov (n=russell@cpe-69-135-213-236.woh.res.rr.com) |
18:12.51 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
18:29.30 | *** join/#tomcat akb (i=a4akb@as21-44.qualitynet.net) |
18:39.09 | jschroed | Could anyone point me in the right direction regarding setting up vhosting with Apache and Tomcat on seperate boxes? |
18:39.26 | jschroed | I got it working when they are both on the same box, but I am trying it on the dev servers now and they are seperate |
18:50.13 | akb | \o/ |
19:31.29 | LaidBack_01 | hey, I've got tomcat running on port 80 with jsvc - that's nice and all - only all apps are now at least twice as slow, and a quick time scritp that does a bunch of integer math went from taking 3.4 secs to 25 secs to complete.... Is this normal performance for jsvc? |
19:41.54 | LaidBack_01 | I think I'm gonna have to run tomcat as root... that really sucks, but I can't take the performance hit that jsvc gives me. |
19:47.57 | *** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
20:16.42 | *** join/#tomcat _c (i=xD0BF@jubue.org) |
20:17.05 | LaidBack_01 | is there a way to change a running processes uid and gid? |
20:17.33 | _c | there's always a way, but it would probably be pretty nasty. |
20:17.40 | _c | usually you start them with the right uid and gid. |
20:19.55 | _c | in a jsp, i'm using forEach to print a bunch of stuff, but i want to set the (css) class of the first element to "first". right now the only way i see to do it is to forEach from 0 to 0 and then forEach from 1 to the end. |
20:24.41 | LaidBack_01 | well, apache seems to manage it pretty well - it has to start as root, right... or not? butn it's on port 80 - priv port, so it seems so, and then it's always running as apache. |
20:25.10 | _c | yeah, i guess it drops root privs. |
20:25.19 | _c | after binding to 80. |
20:28.21 | jasonb | LaidBack_01: Actually, running Tomcat via jsvc (on Linux??) should cause absolutely zero performance difference. |
20:28.46 | jasonb | LaidBack_01: I would question whether your Tomcat is running using the same Java VM both before & after.. plus what about memory settings and other JVM startup parameters? |
20:38.59 | LaidBack_01 | jasonb, well, I've only got sun-jdk-1.4.2.08 and the accompanying jre installed. |
20:40.04 | LaidBack_01 | the memory settings are left to defaults - so I don't actually know what those are. |
20:41.59 | LaidBack_01 | jasonb, here's the thing - when I run without jsvc, and execute different scripts, and looking at top, I see java pegging the cpu for a few seconds at a time - it'll hit 90% cpu use, etc cpu2 rarely gets bothered. |
20:43.24 | LaidBack_01 | but with jsvc, I have 2 instances of jsvc and WAAAAY more instances of tomcat running - like about 150... and when I run the same scripts, they do run, but jsvc chews up cpu1 at 100% and cpu2 gets to 70% and holds for some 20-40 seconds before it executes the script. |
20:43.57 | LaidBack_01 | so... yeah, I don't know, it makes little sense to me, wish I could run tomcat unprivileged... but if I've got no choice... what can I do? |
20:47.07 | LaidBack_01 | I have a different question - I'm trying to use the host container - and no matter what I put in as my appbase, I end up looking at the install dir of the tomcat dist. |
20:57.23 | jasonb | LaidBack_01: In the user's shell that run's Tomcat, what output do you get when you do "which java"? |
20:58.43 | jasonb | LaidBack_01: Actually, you could run Tomcat unprivileged and then do a port redirection with, say, iptables on Linux. What OS and OS version are you using for this? |
21:00.35 | pucko | running with jsvc gives the pro's of being able to control the running process easier w scripts n' shit |
21:02.39 | *** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net) |
21:04.16 | LaidBack_01 | I'm running linux kernl 2.6.11 |
21:04.39 | LaidBack_01 | and while I wouldn't mind the port redir idea myself, my superiors are against having :8080 in the url |
21:04.48 | jasonb | pucko: Only if you don't have my RPM package. |
21:05.08 | LaidBack_01 | it looks bad to them.... foreign and all, so they don't want it - I already did that and it was fine. |
21:05.23 | jasonb | LaidBack_01: You do not need :8080 in the URL if you do a port redirect. |
21:05.32 | LaidBack_01 | but no can do as far as they are concerned. |
21:05.34 | LaidBack_01 | really? |
21:05.44 | LaidBack_01 | it'll stay hidden? |
21:05.55 | jasonb | It can run on port 8080, but from outside the box, everyone accesses it over the default port of 80. |
21:05.57 | LaidBack_01 | Oh... a redirect - ruins logging though |
21:06.14 | jasonb | I'm not talking about an HTTP 30x. I'm talking about TCP NAT. |
21:06.58 | LaidBack_01 | yeah, it makes everything look like it's coming from localhost |
21:07.23 | jasonb | I'm not sure about that either. |
21:07.33 | _c | i don't think that would happen if you did it right. |
21:07.33 | jasonb | I think it doesn't if you use iptables. |
21:07.51 | jasonb | Yeah, what _c said. :) |
21:08.26 | LaidBack_01 | are you guys talking about rinetd or iptables? |
21:09.09 | _c | yeah, any kind of firewall stuff. |
21:09.25 | _c | it's not like a proxy. |
21:09.46 | LaidBack_01 | iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j REDIRECT --to-port 8080 |
21:09.49 | LaidBack_01 | as such? |
21:09.58 | LaidBack_01 | that's what I did earlier today |
21:10.16 | LaidBack_01 | but it puts :8080 at the end of the domain. |
21:10.33 | LaidBack_01 | doesn't affect logging though. |
21:10.34 | _c | in what, logs? |
21:10.36 | _c | ? |
21:10.40 | _c | what's putting 8080. |
21:10.48 | LaidBack_01 | in the URL a tthe client - firefox |
21:10.59 | _c | no way, how could it possibly know that? |
21:11.02 | LaidBack_01 | its a matter of what the client sees I suppose |
21:11.08 | LaidBack_01 | don't know... |
21:11.13 | _c | the client only knows that it's talking to 80. |
21:11.15 | LaidBack_01 | try it though - it does. |
21:11.41 | _c | something else is at work. there's no mechanism for firefox to figure out your internal port manipulations. |
21:12.00 | LaidBack_01 | well... since the system IS listening on 8080, it just gets forwarded there and the :8080 is returned in tomcat's urls, right? |
21:12.27 | jasonb | Tomcat may try to redirect to 8080, but you can configure it to redirect to any port you want. |
21:13.35 | _c | i guess it's right that tomcat is telling the browser 8080. i don't know what to do about that. |
21:13.43 | _c | virtual host or something, maybe. |
21:14.11 | jasonb | Nah, Connector config change in server.xml. |
21:14.23 | _c | but he wants it to run unpriviledged. |
21:14.28 | _c | don't you? |
21:14.46 | _c | i mean, if he changed it to 9090, it would just say :9090 in the url bar instead. |
21:17.32 | jasonb | Tomcat doesn't care how the request came in as long as the request seems to match its config when it comes in over the socket. Once it does, depending on what was requested, Tomcat may issue a redirect. If it has to issue a redirect, it has to formulate a URL to redirect it to. In formulating that URL, it looks at all kinds of things, including how the connector is configured. You can configure the connector to tell Tomcat |
21:17.32 | jasonb | <PROTECTED> |
21:18.00 | LaidBack_01 | yeah, I don't want to run as root |
21:18.42 | _c | well, the way i was going to solve this, i think, was apache was going to answer the actual clients and just talk to tomcat over one of the connectors. |
21:18.47 | LaidBack_01 | okay, I'll try that combo of redirects |
21:19.30 | LaidBack_01 | yeah, I tried that, but no matter what I did, I failed.. so... back to square one. I have apache talking to the server fine and answering requests, but when it comes to vhosts, it gets really hard to manage it seems. |
21:19.37 | LaidBack_01 | I just don't know how to do that. |
21:19.43 | _c | vhosts in apache? |
21:20.26 | LaidBack_01 | yeah, well, vhosts in apache and having their files in seperate dirs - eg tomcat kept looking in it's basdir --for me it's /opt/tomcat for the files that apache was aksing it for |
21:20.45 | jasonb | Don't involve Apache httpd unless you absolutely have to use it for some functionality that Tomcat can't provide. |
21:21.10 | _c | well, like mod_rewrite or compression, or a ton of other things. |
21:21.10 | LaidBack_01 | I would have been happy if I could have made it so that domain1.com in apache equated to a physical dir of /opt/tomcat/domain1 but I could not make that work. |
21:21.24 | LaidBack_01 | tomcat has mod_rewrite now... |
21:21.57 | _c | hmm. |
21:22.13 | LaidBack_01 | or at least someone wrote a module for it - I tried to use it to handle requests based on domain name, but i don't think that the ajp13 actually passes the domainname - rather jus tthe file name it was looking for. |
21:23.45 | LaidBack_01 | so that's nice and there appears to be some sort of compression - gzip, but it's probably not as evolved as the apache one. |
21:24.08 | _c | or as fast, i guess. unless it uses native stuff. |
21:24.16 | LaidBack_01 | anyway, I'm not very familar with the tomcat way of doing things - really pretty good with apache.... so this is a major change for me. |
21:24.35 | jasonb | Tomcat is as evolved. |
21:24.35 | LaidBack_01 | that's what I've done - I've switched to using ONLY tomcat now. |
21:24.57 | LaidBack_01 | got the book "Tomcat The Definiative Guide" and it's pretty good it seems. |
21:25.00 | LaidBack_01 | tomcat that is. |
21:25.03 | jasonb | Tomcat has an equivalent to mod_deflate, and webapps themselves can have the equivalent to mod_rewrite. |
21:25.18 | jasonb | LaidBack_01: I'm glad you like it. I spent lots of time on it. :) |
21:25.23 | LaidBack_01 | but... this vhost thing - I feel like it's a permissions thing - a realm or somthing. |
21:26.00 | LaidBack_01 | jasonb, cool, well, this is day 5 for me on it - so I've spent very little time using it. |
21:26.30 | LaidBack_01 | every indication is that tomcat is more secure than apache and for the most part only a touch slower... |
21:26.35 | LaidBack_01 | so I can handle that just fine. |
21:26.50 | jasonb | LaidBack_01: I wish I would have spent a little more time making it clear how to do virtual hosting of the various kinds in the book. We just didn't have much time to write. :) |
21:27.20 | jasonb | LaidBack_01: Tomcat is not slower than Apache httpd now. With the latest stuff, Tomcat is actually faster at serving static resources than Apache httpd. |
21:27.27 | LaidBack_01 | but I'd love to run it in port 80 with jsvc - that seems to be the ticket to me. |
21:27.29 | LaidBack_01 | really? |
21:27.32 | jasonb | Yes. |
21:27.37 | LaidBack_01 | I'm using 5.0.x right now |
21:27.42 | LaidBack_01 | should I get the beta stuff? |
21:27.43 | jasonb | Use 5.5.x. |
21:27.49 | LaidBack_01 | ok |
21:27.52 | jasonb | I suggest you use 5.5.10 currently. |
21:28.02 | LaidBack_01 | here's what I'm doing: |
21:28.18 | jasonb | (and yes, I realize that the committers are not going to mark 5.5.10 stable, but the reasons why they won't don't apply to you) |
21:29.11 | jasonb | Oh, and Tomcat is indeed more secure than Apache httpd IMHO. |
21:29.22 | LaidBack_01 | I'm the linux admin for a very small company - we have one server. It's going to host mysql 5.x, tomcat 5.5 (now) and the only used webapp (for now) in tomcat is going to be ColdFusion MX7. Don't ask me why we are using that, I just came into this place a month ago |
21:29.35 | LaidBack_01 | and I have CF working. |
21:29.50 | LaidBack_01 | btw, CF under tomcat is 3x faster than CFMX running standalone. |
21:30.01 | LaidBack_01 | well - with the coder's little math scripts anyway |
21:30.06 | jasonb | Wow. |
21:30.17 | LaidBack_01 | I don't know about all the functions, just the scripts that arnold wrote. |
21:30.36 | jasonb | LaidBack_01: If you'd like my Linux RPM for Tomcat 5.5.10 I'll give you a copy. It's what will be included in Tomcat: The Definitive Guide, Second Edition next year. |
21:30.42 | LaidBack_01 | so... tomcat may be gaining some popularity from the CFMX crowd if ppl start finding out. |
21:31.16 | LaidBack_01 | im running a non-rpm distro - where does it want to put the tomcat dist? |
21:31.30 | LaidBack_01 | I can use rpms, but tend to avoid them if possible. |
21:31.37 | jasonb | It is a fully relocateable RPM package. |
21:32.22 | jasonb | The good part about it is: it has a great init script. Something sorely missing in the Tomcat community. |
21:32.28 | LaidBack_01 | by the way - you might want to look at daemontools as a sidenote in your next book as a MUCH faster way to start/stop tomcat than the inetd scripts. I don't know why, but it shaves 5 secs off startup for me under gentoo. |
21:32.50 | LaidBack_01 | okay, cool, yeah, I'd love to get a copy! |
21:33.07 | jasonb | I'll email you a copy.. what's your email address? |
21:33.33 | LaidBack_01 | jack@chainreactionweb.com --- I just quit there though - but I can still get email off that. |
21:33.38 | LaidBack_01 | let me see what my new one is. |
21:35.57 | LaidBack_01 | okay |
21:36.02 | LaidBack_01 | jdownes@jackola.com |
21:36.17 | LaidBack_01 | please send it there - that'll be more immediately useable. |
21:36.39 | LaidBack_01 | So you are Jason Brittain? That's cool - really nice to meet you. |
21:36.59 | jasonb | Yep. Great to "meet" you as well. |
21:37.29 | LaidBack_01 | lol |
21:37.47 | LaidBack_01 | well, IRC meets are about as good as the get for me - I live in Montana |
21:37.51 | *** join/#tomcat graystarr (n=mike@204.246.149.66) |
21:37.51 | solus | anyone of you used virtual frame buffer? it seems headless doesn't work with java 1.4.2.02 |
21:38.09 | graystarr | ok Im a noob and I need a little help if I may ask? |
21:38.26 | graystarr | i just got it installed and ran startup.sh |
21:38.32 | pucko | I think you should ask in #java instead maybe? |
21:38.43 | pucko | or this has something to do with tomcat? |
21:38.54 | LaidBack_01 | hey, which java do you recommed btw, I'm using: 1.4.2.08 |
21:38.55 | graystarr | seemed to work but when I go to the http://machineip:8080 i get page cannot be diplayed |
21:39.27 | solus | LaidBack_01: 1.5 no doubt |
21:40.12 | solus | pucko: I've asked there too, i just thought that virtual frame buffers are a server side thing, and people here should be server side guys |
21:40.17 | solus | jasonb: are you famous? |
21:40.32 | graystarr | anyone? |
21:41.01 | solus | graystarr: checked the log? |
21:41.24 | solus | graystarr: *x or windows? |
21:42.05 | graystarr | rhes 4.0 |
21:42.39 | pucko | solus, well... #tomcat is about the servlet container jakarta tomcat.. and I don't really see any connection between that and framebuffers :) |
21:43.16 | jasonb | solus: Hmm.. Maybe very slightly. :) |
21:43.42 | LaidBack_01 | solus, of course he is - he wrote at least 1 O'reilly book! |
21:44.43 | LaidBack_01 | solus, emerge the xorg package - that solved my graphics generation issues. |
21:44.47 | solus | pucko: I know what the channel is about, I use tomcat, and if you make webapps chances are you'll run into problems that will lead you to framebuffers, but if you didn't, just don't answer my question, I won't hit you or anything |
21:45.00 | pucko | jasonb, congrats, you got fanboys. :) |
21:45.17 | solus | LaidBack_01: yea, just that I'm selling the app so i'd love to be able to package it |
21:45.48 | LaidBack_01 | solus, well package it WITHOUT the xorg stuff and in the readme, tell them to install xorg ;) |
21:46.09 | jasonb | LaidBack_01: You should use Java 1.5.x if you can. |
21:46.16 | LaidBack_01 | okay... |
21:46.18 | LaidBack_01 | crap. |
21:46.25 | LaidBack_01 | that's a big deal too ;) |
21:46.26 | jasonb | LaidBack_01: Are you going to use HTTPS/TLS/SSL? |
21:46.30 | pucko | solus, hehe.. I have some clues about tomcat, but nothing about FB really... |
21:46.30 | LaidBack_01 | yes |
21:46.41 | solus | if everyone used java 1.5, i wouldnt have this problem... |
21:46.45 | jasonb | heh |
21:47.09 | jasonb | LaidBack_01: Then you'll probably want to use Sun's 1.5.x. |
21:47.23 | LaidBack_01 | okay |
21:47.31 | solus | LaidBack_01: i don't even know what os it's gonna run on, or if xorg is supported there |
21:47.33 | LaidBack_01 | is it faster than 1.4? |
21:49.49 | graystarr | ok I see nothing in the httpd log |
21:50.21 | graystarr | do I need to create a virtual host in apache to point to any dir and use port 8080? |
21:50.22 | solus | graystarr: i was talking about the tomcat log |
21:50.42 | graystarr | oh duh hang on lol |
21:51.00 | solus | what's rhes 4.0 by the way? |
21:51.19 | _c | redhat something something. |
21:51.54 | solus | Enterprise Stuff |
21:51.59 | graystarr | line 247: /usr/java/bin/java: No such file or directory |
21:52.09 | graystarr | that is in the catalina.out log |
21:53.35 | LaidBack_01 | that might have something to do with it... |
21:53.59 | graystarr | ok question is how do I fix it? |
21:54.18 | graystarr | what file is this referencing line 247 ??? |
21:54.37 | solus | how does your JAVA_HOME look and so on |
21:54.39 | LaidBack_01 | installing sun-jdk-1.5.0.04 |
21:55.32 | graystarr | this may sound stupid but how do I tell what it "looks like"? |
21:55.46 | graystarr | I did an export JAVA_HOME=/usr/java |
21:55.51 | graystarr | if thats what you mean |
21:58.02 | solus | graystarr: thats what I mean |
21:58.25 | solus | so does that file exist then, /usr/java/bin/java? |
22:00.27 | *** join/#tomcat loktar__ (i=EatMySho@ns20322.ovh.net) |
22:01.44 | graystarr | nope |
22:02.01 | graystarr | so question is where do I change that reference to the proper location? |
22:02.15 | solus | by setting JAVA_HOME to something better |
22:02.35 | graystarr | ok let me try a few things thanks |
22:04.29 | graystarr | that did it! woohoo! |
22:04.33 | graystarr | thanks homie! |
22:07.59 | solus | anytime |
22:09.08 | graystarr | ok so that is working. what is the Tomcat manager and the Administrator???? |
22:09.15 | graystarr | I see the links there on the left |
22:09.40 | graystarr | the manager is asking me to log in but I tried my root user and it didnt work |
22:12.47 | jasonb | ibot: toptentips |
22:12.47 | ibot | toptentips is, like, http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html |
22:13.56 | graystarr | is that for me ibot ???? |
22:15.07 | jasonb | graystarr: You should have a look at it, yes. :) |
22:15.49 | graystarr | cool! thanks! |
22:16.19 | jasonb | You're welcome. |
22:39.09 | LaidBack_01 | hmm... yeah, concerning that admin tool - I'm a console guy, there isn't anything the admin tool can do that the console can't right? |
22:50.32 | jasonb | LaidBack_01: Define "console". |
22:55.59 | LaidBack_01 | no mouse |
22:56.15 | LaidBack_01 | not a point and click guy save for when I use firefox |
22:56.35 | LaidBack_01 | hey, your readme say 5.5.9, but I'm doing the 5.5.10 like you said, right? |
22:56.47 | LaidBack_01 | there anything in your script that's gonna look for 5.5.9? |
22:57.00 | LaidBack_01 | not script, but build I mean... |
22:57.20 | LaidBack_01 | but, anyway, should I worry about that or is it smart enough? |
22:57.55 | jasonb | LaidBack_01: What I gave you is for 5.5.10, yes, sorry the README is probably wrong about that. |
22:58.23 | jasonb | LaidBack_01: Just follow the directions on how to build it that are in the README.txt. |
22:58.38 | jasonb | LaidBack_01: Forget about the 5.5.9 reference. |
22:58.49 | LaidBack_01 | yeah, cool, no issue. |
22:59.03 | LaidBack_01 | sorry it's taking so long - I went to dinner. |
23:06.39 | jasonb | Quite alright. I'm busily working over here as well. |
23:08.39 | LaidBack_01 | JVM_ID="@JVM_ID@ |
23:08.41 | LaidBack_01 | what is that? |
23:08.52 | jasonb | heh! |
23:08.59 | jasonb | You may safely ignore that. :) |
23:09.08 | LaidBack_01 | ok |
23:09.26 | jasonb | It's actually a way of identifying a particular JVM when you're looking from ps output. |
23:09.36 | jasonb | None of the other init scripts do this.. just mine. |
23:09.39 | LaidBack_01 | hey, I'm gonn paste the tomcat-env to pastebin so you can see if I'm doing something stupid to your work. |
23:09.45 | jasonb | But, I'm convinced it's the best solution. |
23:10.20 | LaidBack_01 | lol, cool - I might definately be screwing stuff up then - I thought those @var@ were indications of stuff to replace with real paths and names and all... |
23:11.40 | LaidBack_01 | http://pastebin.com/340296 |
23:11.55 | LaidBack_01 | I removed the comments cause I thought you already knew what everything was ;) |
23:26.40 | LaidBack_01 | do you think that tomcat will someday replace apache in totality? |
23:27.48 | jasonb | It can, but people seem to really, REALLY be stuck on Apache for some reason. |
23:28.03 | jasonb | I guess it is an elegant solution in the majority of cases. |
23:29.40 | jasonb | I'm not sure what you mean about the comments. |
23:30.23 | LaidBack_01 | oh, your comments in the tomcat-env.sh script - the pastebin thing I put up - I just didn't think you needed your original comments was all. |
23:30.35 | jasonb | Ahh. |
23:30.41 | jasonb | Yeah, *I* don't. |
23:30.45 | LaidBack_01 | installing rpm right now - your system needs it. |
23:31.27 | jasonb | So it built just fine? Which Linux distro, if you don't mind my asking? |
23:31.28 | LaidBack_01 | did you look at that pastebin - I mean it makes sense to me - but I replace a LOT of those @VARIBLE@ pieces. |
23:31.35 | LaidBack_01 | it's not yet built |
23:31.37 | LaidBack_01 | and it's gentoo |
23:34.01 | jasonb | You can't get rid of the @THINGIES@.. those get inserted at build time, and it won't run right if they're not in there at build time. |
23:34.19 | LaidBack_01 | okay... |
23:34.22 | jasonb | You can change the values of each of those in the build.xml file if you want to.. the properties near the top. |
23:34.28 | LaidBack_01 | it's screwed up then |
23:34.32 | LaidBack_01 | hmm.. |
23:34.40 | LaidBack_01 | no issue - jus re-untar it. |
23:34.55 | jasonb | I've actually never tried building this on gentoo, so you're the guinea pig. :) |
23:35.02 | LaidBack_01 | but I'd like for it to go to /opt/tomcat5_5 if possible.. |
23:36.32 | jasonb | So build it, then install it like this: rpm -ivh --prefix /opt/tomcat5_5 tomcat-*.rpm |
23:36.37 | LaidBack_01 | see like - CATALINA_HOME="@PKG_ROOT@" I made that /opt/tomcat5_5 thinking that was the right thing to do. |
23:36.41 | LaidBack_01 | Oh! |
23:36.42 | LaidBack_01 | okay |
23:36.50 | jasonb | Yeah, RPM can relocate it just fine. |
23:37.58 | LaidBack_01 | so, the only item to change in that tomcat-env.sh is this then: JAVA_HOME="/opt/sun-jdk-1.5.0.04" |
23:39.27 | jasonb | Yeah, probably. |
23:39.36 | jasonb | I really tried to make this easy. :) |
23:40.08 | jasonb | Also, you *could* change that after install time.. but if you know the value at build time, that would also be fine. |
23:40.47 | LaidBack_01 | build fails. |
23:40.56 | jasonb | What does it say? |
23:43.36 | LaidBack_01 | http://pastebin.com/340321 <- that's the whole thing |
23:46.06 | LaidBack_01 | # |
23:46.06 | LaidBack_01 | <PROTECTED> |
23:46.06 | LaidBack_01 | # |
23:46.06 | LaidBack_01 | <PROTECTED> |
23:46.22 | LaidBack_01 | now... I KNOW I have the .tar.gz binaries |
23:46.33 | LaidBack_01 | they said nothing about windows... but yet, it's got .exes in there. |
23:46.36 | jasonb | LaidBack_01: Can you give me the output of "rpm --version" on your box? |
23:46.47 | jasonb | LaidBack_01: Ignore the exes. :) |
23:47.16 | LaidBack_01 | RPM version 4.2 |
23:47.47 | LaidBack_01 | what version did you need? |
23:48.18 | jasonb | 4.2 should actually work since I have it over here on one distro that I test it on, and it works afaik. |
23:48.31 | jasonb | Can you try: "ant clean-all build" again? |
23:48.39 | jasonb | It'll probably do the same thing, just try though. |
23:48.56 | LaidBack_01 | okay it's running |
23:49.09 | LaidBack_01 | now - I'm doing this as a regular user - no root. |
23:49.56 | LaidBack_01 | BUILD FAILED |
23:50.08 | LaidBack_01 | yep - same messages |
23:50.20 | jasonb | Ok. |
23:50.28 | jasonb | This kinda worries me: # |
23:50.28 | jasonb | <PROTECTED> |
23:50.39 | jasonb | I've never seen that one before. :) |
23:50.42 | LaidBack_01 | yeah, I saw that too - downloading a new one |
23:51.34 | jasonb | Well, it's possible that this just plain doesn't work on your distro for an obscure reason. |
23:51.55 | jasonb | It won't hurt to try downloading the tomcat tar.gz files again.. except to waste some of your time. |
23:52.08 | jasonb | It's always possible to get a corrupt download. |
23:52.20 | jasonb | But, I actually doubt that that's your problem. |
23:52.54 | LaidBack_01 | yeah, I've had those lone zero errors before and they never actually did much... but maybe... |
23:53.23 | LaidBack_01 | there a way to get your build to make a .tar.gz instead of an rpm? |
23:53.46 | jasonb | It actually does. |
23:53.53 | jasonb | Hmm.. |
23:54.04 | jasonb | Let me think if you could do it that way... |
23:54.33 | LaidBack_01 | yeah maybe I could make it just not try the rpm stuff and go with tar only. |
23:54.54 | jasonb | Hmmmmm. It actually does depend on the RPM build I think.. because that's when things are put into their rightful place, and prepared for installation. |
23:55.26 | jasonb | Try downloading the new tar.gzs and rebuilding first. |
23:56.08 | LaidBack_01 | I just did it - same lone zero thing |
23:56.11 | LaidBack_01 | same error |
23:58.03 | LaidBack_01 | uh.... |
23:58.20 | LaidBack_01 | I have a debian box too |
23:58.32 | LaidBack_01 | can I use that to build the rpm and send it off to the gentoo box? |
23:59.06 | jasonb | Seems like everyone has the worst luck on Debian, so I'm not real confident it would build better on that than on gentoo, but you can try. |