00:00.47 | simon | ok. cool! thanks! |
00:01.52 | simon | Does anyone know good tutorials for JSP? |
00:04.12 | jasonb | Yes. The O'Reilly JSP book. |
00:04.52 | simon | :) fine! thanks again! |
00:10.43 | jasonb | No prob. |
00:15.31 | omgs | Hi |
00:16.16 | omgs | I've been told that java can be used as a server, so many resources are optimized using that instance. |
00:16.32 | omgs | Where can I find more info about launching java this way for tomcat? |
00:17.19 | *** join/#tomcat mortecerta (~mortecert@host102-136.pool62211.interbusiness.it) |
00:17.33 | mortecerta | wow |
00:17.51 | mortecerta | it's my first time on IRC |
00:18.07 | lyken | welcome to a new world :) |
00:18.16 | mortecerta | :) Thanks! |
00:18.36 | mortecerta | here we talk about tomcat? :) |
00:19.21 | mortecerta | What a stupid question! |
00:22.01 | mortecerta | Can I explane a little tomcat problem that it leaves me awake at 1.22 AM??? |
00:22.43 | lyken | if i can help |
00:22.46 | lyken | ill sure try |
00:23.01 | mortecerta | Thanks! |
00:23.32 | mortecerta | It's a problem with jndi datasource |
00:24.13 | lyken | hmm |
00:24.24 | lyken | cause i have no experience with it |
00:25.29 | mortecerta | I try to show to the comunity, I hope someone knows the solution :D |
00:26.18 | mortecerta | I just call google for many time I think I reed about a hundred pages!!! |
00:28.26 | mortecerta | since yesterday I had a tomcat v.5.0X and oracle 9.2 configured, using only one context file, with the resource params. |
00:29.37 | mortecerta | today I tryed to upgrade it to the newest version of tomcat, but the same configuration doesen't work. |
00:30.09 | lyken | arh yes |
00:30.10 | mortecerta | The real problem is that I don't whant to edit server.xml file... |
00:30.13 | lyken | that will happen :) |
00:30.18 | lyken | you will have to |
00:30.28 | lyken | the dtd of server.xml for 5.5.x tomcat |
00:30.33 | lyken | is different to 5.0.x |
00:32.19 | puff | Evening all |
00:32.21 | puff | Blah, wotta day. |
00:32.23 | jasonb | Heh. The DTDs for server.xml in Tomcat 5.0.x and 5.5.x are indeed the same: nonexistent. But, the formats of the server.xml files are different. |
00:32.26 | mortecerta | I'm sorry, but where can I find the dtd of the context node, in the tomcat docs? I search it unsuccessfully |
00:32.38 | lyken | jasonb: hehe |
00:32.41 | jasonb | mortecerta: No DTD. Sorry. |
00:33.31 | lyken | my bad for calling it DTD |
00:33.33 | mortecerta | :-O |
00:33.56 | mortecerta | ok! |
00:34.29 | simon | I |
00:34.55 | jasonb | lyken: That's alright. I think most people would expect a DTD or schema definition for yer average XML file. :) |
00:34.56 | simon | I'm tired... gonna to to bed now. thank you for you help!!! |
00:34.58 | mortecerta | I keep my heart in peace! But somewhere I can find docs about the parameter I can specify |
00:35.06 | jasonb | simon: No problem. |
00:35.19 | jasonb | ibot: docs |
00:35.20 | ibot | Documentation can be found at http://digium.com/index.php?menu=documentation or http://www.digium.com/handbook-draft.pdf or #asterisk-doc, or http://www.voip-info.org/wiki-Asterisk, or http://www.asteriskdocs.org |
00:35.26 | jasonb | blah. |
00:35.34 | jasonb | ibot: tomcat-docs |
00:36.05 | jasonb | Ibot is such a villiage idiot these days. |
00:36.11 | mortecerta | mmm... tomcat-docs... are not complete! |
00:36.13 | lyken | lol |
00:36.20 | mortecerta | I have to buy a book? |
00:36.32 | jasonb | mortecerta: http://jakarta.apache.org/tomcat/ |
00:36.38 | lyken | egads.. |
00:36.50 | lyken | "now run this command:" |
00:48.11 | FaeLLe | lyken: busy ? |
00:48.20 | lyken | depends what that meeans |
00:48.22 | lyken | but not really ;) |
00:48.28 | lyken | just finish up some code |
00:48.31 | FaeLLe | i need someone to proof read a letter of mine |
00:48.37 | FaeLLe | need some english touch up's |
00:48.39 | lyken | i can do that for ya |
00:48.44 | FaeLLe | neat :) |
00:48.46 | jasonb | "Dear Tomcat" ;) |
00:48.49 | FaeLLe | should i email it ? |
00:48.50 | lyken | lol |
00:48.53 | lyken | sure |
00:48.57 | FaeLLe | add pls |
00:49.04 | FaeLLe | apppreciate it :D |
00:49.20 | lyken | dear tomcat, why dont you call. I thought we had something special |
00:50.32 | FaeLLe | 1 min |
00:50.35 | lyken | i msg'd you email :) |
00:50.47 | FaeLLe | oo you teach at a college now ? |
00:51.14 | lyken | im a postgrad there |
00:51.30 | FaeLLe | neat |
00:51.34 | FaeLLe | k sent |
00:51.56 | lyken | man that mail server is slow ;) |
00:51.59 | lyken | stupid ssl mail servers.. |
00:52.26 | mortecerta | Hi all, I go bed, I try to do the world more peacefull tomorrow! Have a good night! |
00:52.40 | FaeLLe | its gmail |
00:52.52 | FaeLLe | [mortecerta] nite man |
00:53.06 | *** part/#tomcat mortecerta (~mortecert@host102-136.pool62211.interbusiness.it) |
00:54.29 | lyken | grr gmail |
00:54.30 | loquace | ++ |
00:54.36 | lyken | should have given you my gmail acct. |
00:54.49 | lyken | except its only for my spammer/mailing lists |
00:56.30 | FaeLLe | want me to send from hotmail ? |
00:56.34 | FaeLLe | or give me your gmail :p |
00:57.37 | FaeLLe | oh your in University of Queensland |
00:57.44 | FaeLLe | they opened up in Dubai didnt they ? |
00:58.22 | FaeLLe | sent |
00:58.58 | lyken | i think they might have |
00:59.03 | lyken | i got asked to go over posibly |
00:59.09 | lyken | for another department |
00:59.18 | lyken | to demonstrate the system i rwrote for them |
01:00.19 | lyken | better not have a virus |
01:00.20 | lyken | oh wait |
01:00.21 | lyken | im on a mac |
01:00.23 | lyken | i dont care :) |
01:00.50 | FaeLLe | it dont ;) |
01:01.49 | puff | Heh. |
01:01.52 | lyken | loading |
01:01.53 | puff | FaeLLe: I'll proof it if ya like. |
01:02.47 | FaeLLe | puff: you too pls if possible |
01:02.48 | FaeLLe | email pls |
01:03.38 | FaeLLe | its a reference letter so my dad can get some managers to sign stamp them and i include it with my application to Cambridge :p |
01:04.02 | lyken | i just opened word on my laptop |
01:04.04 | lyken | 11:07 up 5 days, 20:03, 5 users, load averages: 2.76 1.29 0.77 |
01:04.10 | lyken | look a those wwait times baby |
01:05.11 | lyken | can i do a bit of re-arranging? |
01:05.15 | FaeLLe | pls |
01:05.31 | FaeLLe | the reference.pdf is the content it should include |
01:06.12 | lyken | did you work with him? |
01:06.19 | lyken | or was it work experience? |
01:06.25 | puff | FaeLLe: Ugh, PDF? How about a text file? |
01:06.47 | FaeLLe | lol sec |
01:07.04 | FaeLLe | my letter is in doc though |
01:07.27 | FaeLLe | http://www.rafb.net/paste/results/sRPcIT15.html |
01:07.34 | FaeLLe | thats the stuff Imperial wants |
01:07.40 | FaeLLe | my letter is sent by email |
01:08.30 | puff | Doc? You're gonna make me start up word to comment on your letter? |
01:08.51 | FaeLLe | formatting :/ |
01:08.59 | FaeLLe | you can use Wordpad |
01:10.31 | FaeLLe | did you get the email ? |
01:13.27 | puff | Yeah. |
01:13.41 | FaeLLe | k cool |
01:13.52 | lyken | lets see how comes back with teh mah engrish better! |
01:14.15 | FaeLLe | lolz |
01:14.16 | puff | Where do you want the feedback? |
01:14.22 | lyken | i could translate it into mandarin if you like :) |
01:14.32 | FaeLLe | puff: you can edit it :p |
01:14.36 | FaeLLe | and return email |
01:14.37 | lyken | puff: a proof read to fix up the gramattical structure i think :) |
01:15.05 | lyken | hehe |
01:15.12 | puff | Bleah. |
01:15.20 | lyken | you use it too much :) |
01:15.38 | FaeLLe | ill learn when i read your usage of the language :D |
01:16.11 | puff | So the purpose of this document is? |
01:16.19 | puff | To get into college? |
01:17.59 | FaeLLe | yea to Imperial |
01:22.29 | puff | I'd recommend using a bulleted list for the job responsibilities. |
01:22.46 | FaeLLe | hmm |
01:22.49 | FaeLLe | would look odd |
01:24.17 | lyken | im not changing structure of the look |
01:24.21 | lyken | just the english :) |
01:24.47 | FaeLLe | yea thats cool |
01:24.53 | lyken | He seemed to know <- hmm |
01:25.06 | lyken | "im not sure if he really knew what he was doing, but he produced results so thats ok.." |
01:25.48 | FaeLLe | so thats ok , isnt that kinda informal ? |
01:25.55 | puff | Eh. |
01:26.02 | puff | Yeah, I have problem with that. |
01:26.31 | puff | As an aside, if not a bulelted list, then use a colon and semi-colons, i.e. |
01:26.58 | puff | His responsibilities included: collecting data from manual hand written factory work logs; creating charts in MS Excel outlining the production results for the past two years (2002 2003); and generating charts performing a comparison between production and market supply and demand. |
01:27.14 | puff | Included instead of involved, sounds better. |
01:27.27 | puff | collecting instead of collection, to agree with "creating" and "generating". |
01:27.31 | lyken | already had that |
01:27.33 | puff | and in general, the more active verb is preferable. |
01:27.44 | puff | Though in academia they like passive tense too much. |
01:28.18 | puff | FaeLLe: So what are you trying to convey with "seemed to know"? |
01:28.40 | FaeLLe | as in knew what he was doing |
01:29.33 | puff | Again, in what sense? |
01:30.09 | FaeLLe | work responsibilities ? |
01:30.56 | puff | No, that's what you're saying, what I'm asking is, what are you trying to convey? What impression do you want that sentence to suggest in the reader's mind? |
01:31.42 | puff | As an example, you could write it three different ways: 1) he knew the area of work, 2) he learned the area of work quickly, 3) he planned ahead and prepared by learning the area of work before starting the job. |
01:32.09 | puff | All of these highlight different qualities... the question is which quality is more important to emphasize in this letter. |
01:32.45 | FaeLLe | 3 i guess |
01:33.20 | FaeLLe | but how would the manager know i prepared prior to the job ? |
01:33.31 | lyken | you told him when he asked how you knew the answers :) |
01:33.45 | puff | Bingo. |
01:34.02 | FaeLLe | so we should reflect that in the letter or not needed ? |
01:34.08 | puff | Sure. |
01:34.25 | FaeLLe | neat |
01:34.41 | puff | Lemme think how to spin this. |
01:34.54 | lyken | and ill add it to the letter |
01:34.55 | *** join/#tomcat irali (~ray@c-24-23-201-228.client.comcast.net) |
01:34.57 | FaeLLe | thanxx |
01:35.04 | lyken | cause ive already doen the first two paragraphs |
01:35.10 | puff | heh. |
01:39.41 | lyken | hmm |
01:42.30 | puff | Okay, to demonstrate english skills, ideally we need to have some examples. |
01:42.46 | lyken | me bad at english, thats umpossible! |
01:43.00 | FaeLLe | the reports submitted ? |
01:43.01 | puff | Did your work involve any dealings with native english speakers? |
01:43.06 | FaeLLe | yea |
01:43.13 | puff | Did your work involve any written english? |
01:43.14 | FaeLLe | the guy i reported to was english |
01:43.22 | puff | Ah, so the guy who in theory wrote this letter? |
01:43.33 | puff | Or the immediate supervisor who is a subordinate to whomever wrote this letter?> |
01:44.14 | FaeLLe | no it didnt but we can say it did |
01:44.28 | FaeLLe | puff: the manager wrote it in theory |
01:44.29 | puff | Heh. |
01:44.42 | puff | Is the manager your supervisor, or is he your supervisor's boss? |
01:44.50 | FaeLLe | my supervisor |
01:44.50 | puff | And is the manager a native english speaker? |
01:44.52 | FaeLLe | i reported to him |
01:44.58 | FaeLLe | yea hes from scotland |
01:45.03 | puff | Arright. |
01:45.06 | lyken | thats not english :) |
01:45.11 | puff | Heh. |
01:45.12 | FaeLLe | same thing :p |
01:45.13 | FaeLLe | all UK |
01:45.32 | puff | What was your supervisor's name? |
01:45.42 | FaeLLe | David Tait |
01:45.51 | FaeLLe | hes the General Manager not supervisor :p |
01:46.10 | puff | Heh. |
01:46.30 | puff | Was your finished work in english? |
01:46.53 | FaeLLe | yea |
01:46.55 | puff | That is, was a signficant portion of your work output documents written in english? |
01:47.07 | FaeLLe | most of it was charts and stuff |
01:47.17 | FaeLLe | but you could say i did reports in english |
01:47.24 | puff | Heh. Okay. |
01:48.10 | puff | Hm... some of this gets into UK vernacular... e.g. in the US I'd say "native english speaker" |
01:48.19 | puff | But in the UK they might phrase it differently. |
01:50.27 | FaeLLe | alritee |
01:50.45 | FaeLLe | you american boys would know better :) |
01:51.22 | lyken | sif american |
01:51.24 | lyken | im an aussie |
01:51.42 | FaeLLe | aye all the same :p |
01:52.01 | puff | Okay, my suggested version is: http://www.darksleep.com/notablog/faellereference.txt |
01:52.08 | irali | any of you familiar with ssh port forwarding? i've got a server behind a firewall and a client behind another firewall, how do i make them connect via ssh and tunnel through the port 8080 services? |
01:52.19 | puff | lyken: Nah, you're practically the 51st state. |
01:52.39 | puff | irali: What's your purpose? |
01:52.39 | lyken | 52nd! |
01:52.47 | lyken | iraq is the 51st |
01:53.08 | puff | lyken: Right. |
01:53.09 | irali | encrypted link..tunneled via ssh |
01:53.16 | puff | irali: Er, yeah, but for what purpose? |
01:53.23 | lyken | ssh -r |
01:53.39 | lyken | google ssh tunneling |
01:53.43 | irali | secure access from internal subnets |
01:53.43 | lyken | there is like heaps of links.. |
01:54.08 | puff | irali: Setting up a temporary tunnel is doable... a permanent tunnel Idaknow about. |
01:54.13 | irali | most i've read so far has the sshd server exposed to the internet |
01:54.14 | *** join/#tomcat jasonb_ (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
01:54.55 | FaeLLe | Vikrams manager, a native |
01:54.55 | FaeLLe | english speaker, was more than satisfied with the quality of Vikrams |
01:54.55 | FaeLLe | written work. |
01:55.00 | FaeLLe | do you have to say that ? |
01:55.09 | lyken | im wreking on it |
01:55.42 | puff | FaeLLe: that's a compliemnt. |
01:55.45 | puff | Er, complient. |
01:55.48 | puff | Something. |
01:55.58 | puff | FaeLLe: What's your concern? |
01:56.28 | FaeLLe | ive never seen such a direct statement :p |
02:02.18 | *** join/#tomcat puff (puff@66.45.34.102) |
02:02.23 | puff | Sorry, emacs erc crashed. |
02:02.26 | puff | Where were we? |
02:02.47 | FaeLLe | [01:02:13] <F~puff> FaeLLe: What's your concern? |
02:02.47 | FaeLLe | [01:02:43] <FaeLLe> ive never seen such a direct statement :p |
02:02.47 | FaeLLe | [01:02:48] * F~medusaXX has quit IRC (No route to host) |
02:02.47 | FaeLLe | [02:02:11] * F~puff has quit IRC (Read error: 104 (Connection reset by peer)) |
02:02.47 | FaeLLe | [02:02:32] * F~puff has joined #F~#tomcat |
02:02.47 | FaeLLe | [02:02:37] <F~puff> Sorry, emacs erc crashed. |
02:02.51 | FaeLLe | [02:02:40] <F~puff> Where were we? |
02:02.56 | lyken | heh |
02:03.12 | puff | Ah. |
02:03.34 | puff | Well, their instructions specifically asked for an evaluation of your english skills. |
02:04.37 | FaeLLe | yea i guess |
02:04.47 | FaeLLe | are there any op's in this chan ? |
02:07.23 | lyken | not usually |
02:07.24 | lyken | heh |
02:08.11 | FaeLLe | who registered the chan ? Tomcat developers ? |
02:09.17 | lyken | prolly |
02:09.50 | lyken | so i need to outline yoru english skills? |
02:09.56 | jasonb | I think Hellaenergy can get op in here, but I'm not totally sure.. and he's not here right now. |
02:10.54 | FaeLLe | [02:02:32] -F~ChanServ- Channel: #tomcat |
02:10.54 | FaeLLe | [02:02:33] -F~ChanServ- Contact: Hellaenergy, last seen: 2 days (4h 30m 59s) ago |
02:10.55 | FaeLLe | yea |
02:11.12 | lyken | oks |
02:11.21 | FaeLLe | [lyken] yea whatever that pdf saysa |
02:11.26 | FaeLLe | s/saysa/says |
02:12.34 | puff | Sorry, bos came by. |
02:13.02 | lyken | i think its done.. |
02:13.08 | puff | e) (for overseas students) an estimate of proficiency in English. |
02:13.14 | FaeLLe | yea im overseas |
02:13.41 | lyken | yup |
02:14.03 | lyken | His ability to communicate with his fellow colleagues and I, in both spoken and in written English was of a high standard. |
02:14.22 | lyken | remove the in |
02:15.34 | puff | The second "in". |
02:15.38 | lyken | yeah |
02:15.46 | puff | Though technically correct. |
02:15.55 | lyken | it just sounds a bit weird.. |
02:15.56 | puff | Also, add a comma after "Englihs". |
02:16.05 | lyken | yeah already have :) |
02:16.06 | puff | Yes, technically correct but stilted. |
02:16.14 | lyken | yeah |
02:16.40 | lyken | i used to proof read assignments and letter for probably 15 of my friends |
02:16.47 | irali | just say you're studying to become an austronaut and if that fails becomes a diplomat! lol |
02:16.53 | lyken | as english was the second/third/fourth |
02:17.06 | lyken | language |
02:18.20 | lyken | wow |
02:18.28 | lyken | i didnt proof read my thesis this much.. |
02:18.43 | FaeLLe | hoho |
02:18.51 | FaeLLe | thats cause you did it all correct |
02:19.02 | lyken | well teh second half of yoru letter |
02:19.06 | lyken | is completely different now |
02:19.11 | lyken | but says the same thing :) |
02:20.00 | *** join/#tomcat penguin (admin@user-2804.l2.c4.dsl.pol.co.uk) |
02:20.28 | penguin | does anyone know if theres a method in tomcat to simulate internet lag when you are testing on your local host? |
02:20.45 | puff | lyken: I used to write for a living. |
02:20.53 | lyken | puff cool |
02:20.55 | puff | Top that :-) |
02:21.00 | penguin | whois aardvarkx |
02:21.02 | lyken | maybe you should proof read mine :) |
02:21.02 | penguin | oops |
02:21.05 | jasonb | penguin: Nothing in Tomcat to do that, but what OS are you using? |
02:21.16 | aardvarkx | windows |
02:21.24 | lyken | heh |
02:21.28 | lyken | thats wasy |
02:21.29 | jasonb | aardvarkx: Nope, as far as I know, you're helpless then. :( |
02:21.37 | aardvarkx | hmm ok then |
02:21.40 | lyken | install windows XP on a pII 500 with 128mb ram |
02:21.43 | lyken | and run tomcat on it |
02:21.43 | aardvarkx | hehe |
02:21.49 | puff | aardvarkx: I've seen proxy servers out there for that purpose. |
02:21.57 | FaeLLe | i wish there was a way to cap bandwidth on XP computers |
02:22.06 | FaeLLe | i want to cap my housemates |
02:22.10 | puff | Who wanted to know about tunnels? |
02:22.10 | lyken | there is for outgoing |
02:22.11 | aardvarkx | i wanna deliberately slow the connection down by a few seconds |
02:22.15 | lyken | its called "net limiter" |
02:22.26 | lyken | you can quota connections based on IP |
02:23.16 | lyken | FaeLLe: you should have email |
02:24.03 | FaeLLe | yea reading sir |
02:24.38 | lyken | heeh |
02:24.55 | puff | http://www.darksleep.com/notablog/format.cgi?article=CVS_Via_SSH.foo |
02:25.03 | FaeLLe | I would have no hesitation and recommending Vikram and wish him all the best in his endeavours. |
02:25.06 | FaeLLe | in recommending ? |
02:25.08 | puff | Speaking of bosses, mine just lost his network connection, AFK for a bit. |
02:25.13 | lyken | in |
02:25.14 | lyken | lol |
02:25.16 | lyken | like i said |
02:25.18 | puff | FaeLLe: Just remove "and" |
02:25.25 | puff | "no hestitiation recommending" |
02:25.28 | lyken | yeah |
02:25.36 | lyken | puff should prolly proof read mine :) |
02:25.42 | puff | Or "I would not hesitate to recommend Vikram" |
02:25.44 | lyken | its been ages since ive written formalised text |
02:25.44 | puff | AFK. |
02:25.55 | aardvarkx | another quick qn |
02:26.28 | aardvarkx | is it significantly slower sending messages to a web server via POST than opening a socket in java? |
02:26.53 | lyken | um |
02:26.59 | lyken | why would you open a socket in java? |
02:27.16 | aardvarkx | well, because i need to send lots of data back and forwards between the web server |
02:27.25 | lyken | and ? |
02:27.34 | aardvarkx | and..isnt sockets the way you do that? |
02:27.36 | jasonb | "Do you walk to school, or do you carry your lunch?" :) |
02:27.39 | *** join/#tomcat Term- (~cuenta1@148.223.146.28) |
02:27.45 | lyken | LOL |
02:27.55 | FaeLLe | [aardvarkx] check out RMI |
02:28.07 | aardvarkx | there is a better way?? |
02:28.07 | lyken | FaeLLe: is that ok? |
02:28.16 | FaeLLe | [lyken] yea dude thanks a lot |
02:28.22 | aardvarkx | im sorry im new to this technology |
02:28.25 | FaeLLe | [aardvarkx] sockets are inefficient |
02:28.38 | FaeLLe | [aardvarkx] plus you are left to the task of implementing your own protocol |
02:28.46 | FaeLLe | [aardvarkx] and CRC |
02:28.55 | aardvarkx | in java?? surely not... |
02:29.02 | FaeLLe | [aardvarkx] you can try using Remote method Invocation (RMI) |
02:29.08 | aardvarkx | they even have a class for it |
02:29.21 | aardvarkx | ok, ill look up RMI |
02:29.24 | FaeLLe | yes but you are still left with designing your own protocol |
02:29.38 | aardvarkx | but speed is the important thing |
02:29.38 | FaeLLe | and making sure the data is sent to the person meant to be recieving it |
02:29.53 | aardvarkx | is RMI faster than sockets then |
02:29.59 | FaeLLe | id say so |
02:30.08 | FaeLLe | get an opinion on #Java |
02:30.09 | aardvarkx | oh ok |
02:30.24 | aardvarkx | id rather not go to #java..theyre kind of rude! |
02:30.32 | aardvarkx | but ill definately look at this RMI thing |
02:30.39 | FaeLLe | nah they just dont spoon feed :p |
02:30.50 | FaeLLe | what RMI does is let you access methods on a remote server as if it were present on your own server |
02:30.59 | aardvarkx | wow neat |
02:31.02 | FaeLLe | so you can send program objects back n forth |
02:31.06 | aardvarkx | i was looking for something exactly like that |
02:31.11 | FaeLLe | you can also look into CORBA |
02:31.24 | FaeLLe | that will let clients from different programming languages communicate |
02:31.31 | FaeLLe | you can make C clients talk with Java etc |
02:31.44 | aardvarkx | yeah |
02:31.48 | FaeLLe | RMI is Java only |
02:31.54 | aardvarkx | what about applets? |
02:32.06 | aardvarkx | the data is coming from an applet... |
02:32.15 | FaeLLe | it should be possible |
02:32.28 | aardvarkx | yeah, because its a connection back to its own server.. |
02:32.34 | FaeLLe | especially when a applet can images to servlets |
02:32.45 | FaeLLe | they should be able to use rmi i think |
02:32.53 | FaeLLe | *can send |
02:33.23 | aardvarkx | ok |
02:33.28 | aardvarkx | thanks for the tip |
02:33.58 | FaeLLe | pleasure |
02:35.16 | aardvarkx | ok, so it seems it can be done via RMI |
02:35.27 | aardvarkx | with applets as well |
02:35.36 | aardvarkx | thats great, youve solved all my problems!! |
02:36.07 | FaeLLe | hehe enjoy |
02:36.20 | FaeLLe | RMI is kinda long to learn |
02:36.24 | FaeLLe | but its cool stuff |
02:36.46 | FaeLLe | i hope you are familiar with interfaces etc |
02:37.28 | aardvarkx | *cough cough* |
02:38.11 | FaeLLe | :s |
02:38.44 | puff | Back... Okay. |
02:38.45 | puff | Hm. |
02:40.33 | FaeLLe | [puff] read lyken's letter |
02:54.54 | puff | FaeLLe: Sure, where is it? |
02:55.21 | FaeLLe | he said he will send it to yea |
02:55.24 | lyken | excuse the poor english :) |
02:55.26 | lyken | i did |
02:55.28 | lyken | .. |
02:55.37 | lyken | FaeLLe: you got puffs email |
02:55.40 | FaeLLe | k peeps its 3am here |
02:55.42 | lyken | you send i cant dcc anything.. |
02:55.49 | FaeLLe | i got your email |
02:55.59 | FaeLLe | sec ill forward to him |
02:56.11 | puff | hokay :-). |
02:56.15 | puff | Send me text, dangit :-) |
02:56.21 | FaeLLe | k i did |
02:56.26 | FaeLLe | its word :p |
02:56.27 | FaeLLe | loll |
02:56.37 | puff | No, you sent me word |
02:56.39 | puff | mis-word. |
02:56.43 | FaeLLe | thanx a lot again lyken and puff |
02:56.53 | FaeLLe | if i dont sleep now i wont get up for uni tommorow |
02:57.09 | FaeLLe | nite all |
02:57.11 | puff | Heh. |
02:57.15 | FaeLLe | thanks a lot for the help |
02:57.43 | lyken | ill be arounds |
03:13.34 | puff | So I have a question :-). |
03:13.55 | lyken | whats that |
03:16.25 | puff | So I have apache/tomcat. |
03:16.32 | puff | And we have apache as a front-end to tomcat. |
03:16.46 | puff | I'm trying to decide if we really need to care. |
03:17.05 | puff | That is, should we bother, since we have like .001% static content. |
03:17.33 | puff | Before we get to that point... we have the corporate website hosted under the apache server, and mod_jk mappings for about 20 webapps. |
03:17.55 | puff | Our hosting provider (eapps.com) has some fucked up control panel that they insist we use... and it's buggy. |
03:18.18 | puff | Specifically, it can only fit so many lines in the "Custom settings" form input for apache, which limits how many mod_jk mappings we can have. |
03:18.25 | puff | Damn, scared him away :-). |
03:19.27 | puff | When I called hosting support they said they could map everything to be srved by tomcat. |
03:19.51 | puff | Which would mean the corporate website would have to be served by tomcat too, which I guess I'm cool with. |
03:20.24 | puff | Anyway, I guess I'm asking about how I can either map everything, or preferably map everything *but* the corporate site. |
03:22.34 | gradzac | puff: can't you use the JkUnmount directive to mod_jk? |
03:23.02 | puff | gradzac: If understood that, maybe :-). |
03:23.42 | FaeLLe | puff: i forgot i had speakers on full volume |
03:23.48 | FaeLLe | your new email sound woke me up |
03:24.30 | gradzac | I just started using tomcat, but I know I read the other day that you can tell mod_jk to send your root to tomcat, but then unmount specific directorys or files (i.e. *.html) |
03:24.41 | gradzac | check out the docs for mod_jk |
03:29.29 | puff | Hees. |
03:29.46 | puff | Ah, interesting. |
03:30.03 | puff | So that's probably what I need to read up on. |
04:04.13 | *** join/#tomcat sund (~ray@c-24-23-201-228.client.comcast.net) |
04:36.21 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-117.lsanca1.elnk.dsl.genuity.net) |
04:39.06 | *** join/#tomcat effy (~effy@cpc4-hatf3-4-0-cust37.lutn.cable.ntl.com) |
04:39.09 | effy | hello |
04:39.12 | effy | anyone here? |
04:42.39 | effy | hi, can anyone help me start using tomcat? |
04:50.49 | sund | what have you done so far? |
04:53.23 | effy | er started it with fedoras tool |
04:53.28 | effy | nothing on 8080 |
04:53.35 | effy | no "startup.sh" |
04:53.55 | effy | but tomcat is running on "ps" |
04:54.24 | sund | how did you install and which tomcat version? |
04:56.09 | effy | it comes installed |
04:56.23 | effy | 4.1.27-13 |
04:56.38 | sund | okay, so it is started as part of the init process? |
04:57.05 | effy | well not so far |
04:57.11 | effy | it will be when i reboot, probably |
04:57.17 | effy | :) |
04:57.45 | sund | you can check your /etc/init.d directory and see if any tomcat startup script is there |
04:59.22 | effy | yeah its there |
04:59.28 | effy | so why nothing? |
04:59.54 | sund | what do you mean nothing? |
05:00.12 | sund | can you elaborate? |
05:00.46 | effy | er localhost:8080 |
05:00.50 | effy | "cannot connect" |
05:01.10 | sund | what do you see with ps aux|grep catalina |
05:02.36 | effy | nothing |
05:02.43 | effy | besides "grep catalina" :) |
05:03.33 | sund | then it is not running |
05:03.43 | effy | but there is a "tomcat" |
05:03.54 | effy | 19713 ? S 0:15 /usr/sbin/tomcat -Dcom.redhat.tomcat.sysconf=/etc/sysconfig/tomcat -home /usr/share/tomcat -logfile /usr/share/tomcat/logs/tomcat.out -pidfile /var/run/tomcat/tomcat.pid -user tomcat |
05:04.24 | sund | okay..then look at the tomcat config file and see which port it serves on |
05:04.30 | effy | 8080 |
05:04.39 | sund | how do you know that? |
05:05.21 | effy | <PROTECTED> |
05:05.21 | effy | <PROTECTED> |
05:05.21 | effy | <PROTECTED> |
05:05.21 | effy | <PROTECTED> |
05:05.21 | effy | <PROTECTED> |
05:05.21 | effy | <PROTECTED> |
05:05.23 | effy | <PROTECTED> |
05:05.25 | effy | <PROTECTED> |
05:05.42 | effy | this is less /etc/tomcat/server.xml |
05:05.54 | effy | but also, in the beginning of that file |
05:06.07 | effy | <Server port="8005" shutdown="SHUTDOWN" debug="0"> |
05:06.29 | effy | but nothing on 8005 either |
05:06.35 | sund | dont you notice its commented out? |
05:06.56 | effy | sorry what is? |
05:07.07 | sund | your connector |
05:07.11 | effy | <Connector className is the line? |
05:07.49 | sund | yes |
05:08.26 | effy | i dont understand how its commented out |
05:08.36 | effy | that has to be a " #" right |
05:08.38 | effy | ? |
05:08.54 | sund | nope, xml uses different chars for comments |
05:09.10 | effy | so <!-- is comm out? |
05:09.19 | sund | yes |
05:09.25 | effy | oo |
05:09.26 | sund | you dont know that? |
05:09.28 | effy | nope |
05:09.36 | effy | so what do i get rid of |
05:09.42 | sund | you may want to read up on xml a little bit |
05:09.54 | effy | im just installing a CMS system |
05:10.00 | effy | dont really wanna right now |
05:10.14 | effy | so what do i get rid of |
05:10.22 | sund | you cant avoid it...config files are xml |
05:11.09 | effy | ok |
05:11.14 | effy | do i turn on both ones |
05:11.19 | effy | theres one for 8080 |
05:11.22 | effy | and one for 8009 |
05:11.43 | effy | <PROTECTED> |
05:12.21 | sund | hard to tell..paste in a public board area |
05:12.47 | effy | ok im going ahead anyway |
05:12.54 | effy | now just restart server, yeah? |
05:13.25 | sund | try it |
05:14.22 | effy | nothing |
05:14.37 | sund | work on that server.xml |
05:15.25 | effy | do i have to set CATALINA_HOME? |
05:15.50 | sund | you have not read a darn thing about tomcat have you? |
05:16.25 | effy | i just started with it |
05:16.54 | sund | well do some reading and ill help you then |
05:17.07 | effy | ok |
05:17.13 | sund | you dont expect me to answer every lil bit and piece to get started |
05:17.15 | effy | i have to start it before apache, right? |
05:17.35 | sund | thats even worst...get rid of apache for now til your comfy with tomcat |
05:17.42 | sund | it just adds to confusion |
05:18.12 | effy | er how do i test without apache? |
05:18.22 | sund | once you're familiar with tomcat workings, then do the advance integration with apache |
05:18.33 | sund | easy, turn off apache |
05:18.44 | lyken | ive been working with tomcat since early version 3 |
05:18.50 | lyken | and still havent touched apache integration |
05:18.57 | lyken | except a machine i was paid to setup |
05:19.30 | effy | ok, but how would i know when i got it working? |
05:22.02 | effy | hello? |
05:24.09 | sund | you want tomcat to do what for you? |
05:24.25 | effy | run my CMS system |
05:24.42 | sund | then you'd see your cms system if working right? |
05:24.46 | effy | yup |
05:25.04 | sund | okay |
05:27.56 | effy | well? |
05:28.06 | sund | well what? |
05:28.26 | effy | how would i know when i got it working? |
05:28.46 | sund | see the samples to begin with |
05:29.00 | effy | where? |
05:29.15 | sund | do you know what a cms does ? |
05:29.58 | sund | basic question, what do you expect a tomcat should do for you? |
05:30.48 | lyken | *cough* rtfm *cough* |
05:30.50 | sund | if you cant answer that, I dont know why you choosed tomcat |
05:31.20 | effy | i didnt |
05:31.26 | effy | i chose my cms system |
05:31.32 | effy | it demands i run this |
05:31.49 | sund | who demands you run it? |
05:31.56 | effy | someone important :) |
05:32.04 | sund | its your job? |
05:32.10 | effy | nope |
05:32.14 | effy | not yet |
05:32.21 | effy | but we're expanding into it |
05:32.24 | effy | you could say |
05:32.59 | sund | then what is your main job function if i may boldly ask? |
05:33.56 | effy | writing |
05:34.04 | effy | i do a little computing as well |
05:34.43 | sund | how about spending some extra time reading how tomcat is used ? heh |
05:35.16 | effy | i dont want to |
05:35.25 | effy | id rather get on with USING the cms |
05:35.33 | sund | oh okay, good luck |
05:36.15 | lyken | lol |
05:36.20 | lyken | i dont know what im doing |
05:36.22 | lyken | but help me |
05:36.29 | lyken | and i refuse to read the docs |
05:36.37 | lyken | sounds like a tard we had in #postgresql yesterday |
05:36.46 | sund | :) |
05:37.26 | sund | how is that latest postgresql? 8 ? |
05:37.35 | lyken | wicked |
05:38.09 | sund | am just wondering why it isnt as popular as mysql? |
05:38.46 | lyken | why did vhs win over betacam? |
05:39.20 | sund | umm back then it was a bit expensive with beta wasnt it? |
05:39.37 | sund | and it came a bit later than vsh noh? |
05:40.16 | sund | just curious..i have not touch postgresql myself for a year at least |
05:41.07 | lyken | mysql is more popular cause mmost people dont know it exists for one |
05:41.34 | lyken | and two people dont know how to write a decent database |
05:41.47 | lyken | so the dont require the features of a real RDBMS |
05:42.31 | sund | and right, mysql kind of fit most everyones needs not the features of real big db's |
05:42.57 | lyken | yeah |
05:43.04 | lyken | just a network enabled spreadsheet |
05:43.52 | sund | am trying to relearn oracle basics now |
05:44.16 | lyken | with no key constraints/ACID compliance |
05:44.25 | lyken | or data integrity checking |
05:48.07 | *** join/#tomcat Sathamoth (~satha@nikitazhuk.net) |
05:49.57 | Sathamoth | Hi all. Does anyone know why Tomcat (4.1) appends my HTTP headers instead of setting them (and overriding other possible values) when I use response.setHeader() of HTTPServletResponse class ? |
05:50.29 | Sathamoth | if I set response.setHeader("Cache-Control", "max-age=604800, public");, my browser gets max-age=60,max-age=604800, public |
05:51.04 | Sathamoth | and I have no idea where that max-age=60 is got from.. no cache directives in server.xml or web.xml are specified |
06:13.19 | *** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se) |
07:36.50 | *** join/#tomcat adpenaranda (~adpenaran@203.131.98.106) |
07:39.10 | Sathamoth | ok, problem solved. The problem wasn't in tomcat, apache had mod_expires module loaded which f*cked up my headers. ajp13 should override those. |
07:42.07 | *** part/#tomcat Sathamoth (~satha@nikitazhuk.net) |
07:43.04 | *** join/#tomcat loquace (~seb@l02m-30-149.d4.club-internet.fr) |
07:44.01 | loquace | lo |
08:09.26 | *** join/#tomcat jgrange_ (~jgrange@195.173.84.2) |
09:06.50 | *** join/#tomcat joered (~chatter@213-156-52-102.fastres.net) |
09:15.49 | *** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net) |
09:15.53 | *** join/#tomcat lyken (~janor@air665.startdedicated.com) |
10:09.22 | *** join/#tomcat levon (~levon@83.137.99.168) |
10:34.27 | *** join/#tomcat adpenaranda (~adpenaran@203.131.98.106) |
11:07.21 | *** join/#tomcat medusaXX (medusaxx@p54A9F164.dip.t-dialin.net) |
13:27.14 | *** join/#tomcat greg (~Gregory@62.33.35.187) |
13:27.30 | greg | hi to all! |
13:28.56 | greg | where can i write virtual host dir /home/vhost.com? server.xml |
13:44.33 | greg | heh |
13:57.43 | *** part/#tomcat greg (~Gregory@62.33.35.187) |
14:52.14 | *** join/#tomcat FreemaniaX (~Freemania@ip67-153-106-58.z106-153-67.customer.algx.net) |
14:59.27 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
15:15.11 | *** join/#tomcat Nana|work (~nana@82-70-121-30.dsl.in-addr.zen.co.uk) |
15:15.16 | Nana|work | Hello!! |
15:16.04 | Nana` | I am totally stuck. my boss has installed tomcat on our server but i don't know which directory is set up as being the one where your stuff is pu |
15:16.07 | Nana` | *put |
15:16.36 | Nana` | the actual files are in /usr/local/jakarta-tomcat-5.5.7/webapps/ROOT |
15:16.51 | Nana` | but how do I know what address to access that at via a browser? |
15:30.50 | Nana` | :S |
15:36.11 | *** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
15:45.17 | *** join/#tomcat illsci (~illsci@felony.criminal.org) |
15:45.19 | illsci | morning |
15:45.23 | illsci | anyone awake? |
15:45.40 | illsci | i have some questions about the <Context> tag of the server.xml |
15:46.03 | illsci | I have tomcat setup with mod_jk and its working, I keep getting tomcat errors when I request .jsp's |
15:46.30 | illsci | and I installed this web application which forced me to use there custom installer |
15:46.40 | illsci | and its not working right |
15:47.04 | illsci | <Context path="" docBase="ROOT" debug="0"/> |
15:47.04 | illsci | <PROTECTED> |
15:47.04 | illsci | <PROTECTED> |
15:47.04 | illsci | <PROTECTED> |
15:47.22 | illsci | i have that inside my <Host tag |
15:48.07 | illsci | does that mean that stuff in /srv/tomcat/webapps/ROOT will be available at / and that for my mmwebclient app i would enter the usl www.blah.com/mmwebclient |
15:48.29 | illsci | when i do that apache responds and not tomcat unless i add a www.blah.com/mmwebclient/index.jsp |
15:48.47 | illsci | and i get weird errors |
15:52.14 | *** join/#tomcat sockmonk (~wsheldahl@wes.ihigh.com) |
15:58.07 | randrew | illsci: The indentation may make you think the two context tags are nested in some way, but they are not. |
15:58.40 | randrew | illsci: The key thing is the trailing slash before the close tag, /> in the ROOT Context. |
16:04.27 | randrew | illsci: If the error for 'mmwebclient' is from tomcat, then it would be possible to have the ROOT context send a redirect. If 'mmweblcient/' works, then having apache rewrite mmwebclient->mmwebclient/ might be better. |
16:20.51 | *** join/#tomcat ctp (~ctp@dsl-082-082-135-211.arcor-ip.net) |
16:22.52 | ctp | hi folks. anyone knows something about support for editing .properties files in eclipse? i use lomboz as jsp plugin, but no support for .properties files for my i18n stuff. |
16:24.27 | *** join/#tomcat cilquirm (~Soda@65.246.162.129) |
16:29.53 | *** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net) |
16:31.59 | AndHeSays | ctp: what should it support about properties? |
16:34.14 | ctp | AndHeSays: adding new keys to my i18n.properties should add same key to all i18n_xx.properties files e.g. |
16:34.51 | illsci | ok im back |
16:34.59 | illsci | randrew hmm let me read |
16:36.34 | illsci | are you saying the <context tag should or should not end with /> |
16:36.35 | illsci | ? |
16:38.24 | illsci | the thing is i never get anything from tomcat unless I specificaly type index.jsp |
16:38.25 | illsci | or some .jsp |
16:38.36 | illsci | i cant just say www.blah.com/mmwebclient |
16:38.40 | illsci | and have tomcat respond |
16:39.11 | AndHeSays | illsci: probably you didn't add a wecome file |
16:39.33 | illsci | how do i do that and where would it be located |
16:39.39 | illsci | in webapps/ROOT |
16:39.44 | illsci | or webapps/mmwebclient |
16:39.57 | AndHeSays | any j2ee book will tell you that |
16:41.14 | illsci | im reading Tomcat the definitive guide |
16:41.24 | illsci | but i swear another one needs to be written |
16:41.44 | illsci | they are all different and considering mod_jk2 is no supported anymore |
16:41.47 | illsci | its just confusing |
16:47.22 | ctp | hm, another question ;-) does anyone knows a plugin supporting jspf? lomboz doesnt. |
16:50.21 | AndHeSays | too many plugins |
18:04.17 | *** join/#tomcat Blownose (Blownose@212-162-174-82.skbbip.com) |
18:07.18 | Blownose | im writing a client-servlet program. If i use a client not webbrowser is it then possible to use Tomcat Realm(JNDI) to authenticate to LDAP. Or do i have to make the authentication myself in my java servlet (is this safe btw)? |
18:11.38 | *** join/#tomcat zol (~zol@ASte-Genev-Bois-153-1-31-246.w83-112.abo.wanadoo.fr) |
18:11.47 | zol | bonjour |
18:12.32 | zol | je cherche de l'aide pour une install de tomcat sur une mdk 10. Apres l'install et creation d'un user dans tomcat-users;xml je ne peux pas acceder a la page manager ?? |
18:12.46 | zol | access denied |
18:19.30 | zol | hi, i'm looking for some help about tomcat 5.5.7. After having install tomcat, and create a manager user, i can't acces to manager page |
18:19.46 | zol | nothing related to FAQ ... |
18:33.49 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
18:57.36 | *** join/#tomcat bugfixer2 (~bugfixer2@42gis175.gulftel.com) |
19:10.25 | *** join/#tomcat loquace (~seb@l02v-1-49.d4.club-internet.fr) |
19:11.20 | loquace | re |
19:11.31 | *** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) |
19:18.30 | *** part/#tomcat illsci (~illsci@felony.criminal.org) |
19:27.33 | *** join/#tomcat TomTom (~Thomas@p54815D7E.dip.t-dialin.net) |
19:30.32 | *** join/#tomcat grrrrr (~subtle@c-24-7-105-144.client.comcast.net) |
19:49.04 | *** join/#tomcat joered (~chatter@213-156-52-102.fastres.net) |
20:28.16 | *** join/#tomcat ctp (~ctp@dsl-082-082-132-003.arcor-ip.net) |
20:35.13 | *** join/#tomcat sopel (~wojtek@yamato.nemo.pl) |
20:35.24 | sopel | anyone running tomcat on some loaded production box? |
20:40.06 | cilquirm | sopel, we were |
20:40.55 | sopel | why 'were'? |
20:41.04 | sopel | what're you using now? |
20:41.37 | sopel | did you play with the jmxproxy? i'm trying to figure out if i'm deadlocking any worker threads in my app. |
20:41.48 | sopel | because every 3 days tomcat stops processing requests. |
20:42.56 | sopel | and i do 1.2 million requests per day, so it stops every 3.6 million requests. you think there's a bug reported for that? :) |
21:24.30 | *** join/#tomcat COSTM (~COSTM@80.233.154.37) |
21:27.05 | jasonb | sopel: Tomcat is pretty stable. Even with a high load it should stay stable. Some versions are known to have small memory leaks, so the later the version the better for that and for other reasons. |
21:29.07 | sopel | jasonb; ok, well i'm curious how to inspect what's causing the hangs. |
21:29.42 | jasonb | sopel: Which exact version of Tomcat? Which exact version and brand of Java? Which OS brand & version? |
21:31.41 | sopel | jasonb; 5.5.4, sun jdk 1.5 update 1, RH enterprise 3.0 (recently updated to latest patches) |
21:32.28 | jasonb | sopel: Can I see your Connector config? |
21:32.48 | jasonb | sopel: Are you getting hangs? Like, you make a request, and the socket is accepted, but Tomcat doesn't serve anything? |
21:33.23 | sopel | SEVERE: Servlet.service() for servlet jsp threw exception |
21:33.24 | sopel | javax.servlet.jsp.JspException: java.lang.IllegalStateException: Cannot create a session after the response has been committed |
21:33.29 | sopel | that's the only thing i get in the logs. |
21:34.10 | sopel | <PROTECTED> |
21:34.10 | sopel | <PROTECTED> |
21:34.10 | sopel | <PROTECTED> |
21:34.10 | sopel | <PROTECTED> |
21:34.10 | sopel | <PROTECTED> |
21:34.15 | sopel | and that's the connector. |
21:34.45 | jasonb | sopel: But are you getting hangs? You said it stops processing requests? |
21:35.09 | jasonb | That IllegalStateException is caused by something you're doing wrong in your webapp. |
21:35.43 | *** join/#tomcat jcurry (~jcurry@mcha-ai088.taconic.net) |
21:35.52 | sopel | jasonb; that only happens at the hang time. that tomcat serves 1 million requests per day and right after a hang it's auto-restarted so i can't really tell if it stops accepting at all or accepts and doesn't process. |
21:36.09 | jcurry | when i do a /etc/init.d/tomcat4 start, it gives me a su auth prompt which quickly times out |
21:37.43 | sopel | jasonb; when using tomcat 5.0 i had out of memory errors, those stopped with tomcat 5.5. |
21:38.09 | jasonb | sopel: So then define "hang". |
21:38.34 | sopel | jasonb; 'customers are damn pissed' :) |
21:38.53 | sopel | i do a wget on a servlet to see if it works or not, if wget fails - it's a hang :) |
21:39.12 | jasonb | sopel: Exactly how does wget fail in that case? |
21:40.56 | jasonb | jcurry: It shouldn't time out very quickly.. And, you should be able to configure your sudo (/etc/sudoers file) so that it just doesn't prompt you. |
21:41.44 | sopel | jasonb; curl return code: 1792 |
21:41.49 | sopel | jasonb; it's curl not wget, sorry. |
21:42.35 | sopel | jasonb; btw, another bad thing i noticed, when i set the maximum limit in a db connection pool to 20, and switched the db (so that the queries started taking a long time) -> tomcat stopped working too after some time. |
21:42.37 | jcurry | jasonb, the init.d file has su, and does some weird stuff with env variables and shells...do you have a working init script? |
21:43.05 | sopel | i mean all the db connections were busy and the worker threads stopped processing new requests (and stopped using the db connections too) for some reason. but that's another issue which is not too important. |
21:43.11 | jcurry | i do have sudo configured not to prompt me for a password |
21:43.35 | jcurry | but i don't think i know enough bash to replace the su's with sudo's effectivly |
21:43.51 | jasonb | sopel: Yeah, you don't want your DB connection pool running out of connections and sitting there waiting for one to free up. There are obviously lots of ways to avoid that situation. |
21:44.31 | jasonb | sopel: What happens when you telnet to your tomcat and say "GET / HTTP/1.0" <enter><enter> when it's hung like that? curl error codes don't really help that much. :( |
21:45.46 | sopel | jasonb; i believe that i woudln't be able to connect since the backlog would be filled. |
21:45.52 | jasonb | jcurry: Ahh, well.. You actually need to start that init script as root.. it's supposed to su - down to another user with *less* privileges, and then run the JVM with Tomcat inside it. |
21:46.17 | sopel | jasonb; if curl gives an error code -> that means it wasn't able to download the page (not even error 500 document). |
21:46.42 | sopel | jasonb; so basically it looks as if i deadlocked all worker threads (?) |
21:46.46 | sopel | or tomcat deadlocked itself. |
21:47.10 | jcurry | jasonb, aah, i was starting it with a sudo |
21:47.55 | jasonb | sopel: Yeah, sad. So let me ask you this: Did you follow the RELEASE-NOTES and add your LD_ASSUME_KERNEL line? |
21:48.01 | jcurry | jasonb, after i switch to root with 'su -', it gives me the same error |
21:48.03 | sopel | jasonb; yes. |
21:48.14 | sopel | jasonb; that would cause a 'deadlock' after 5 minutes not 3 days :) |
21:48.53 | sopel | jasonb; i just want to know if you're aware of someone running such a loaded site, and using the builtin DBCP connection pools? |
21:48.58 | sopel | so that i know it's not tomcat but my app. |
21:49.10 | jasonb | sopel: Which kernel does your box have? |
21:49.25 | jasonb | jcurry: What error? |
21:49.40 | sopel | 2.4.21-27.0.1.ELsmp |
21:49.58 | jcurry | jasonb: 'kant:~# /etc/init.d/tomcat4 start |
21:49.59 | jcurry | Starting Tomcat 4.1 servlet engine using Java from /usr/lib/j2se/1.4: Password: su: Authentication failure |
21:49.59 | jcurry | Sorry.' |
21:50.16 | jasonb | sopel: Yes, Tomcat has been used for web sites with higher load than yours. There are some quirks with each version that you have to massage out. ;) |
21:50.33 | sopel | jasonb; is that documented in any way? |
21:50.39 | jasonb | jcurry: First, what user do you have it set to su to? |
21:50.56 | sopel | my load will double soon so i better be prepared :) |
21:51.10 | jasonb | sopel: Well, less than it should be, really. Most people in your position don't set out to write generic docs about it and publish those for free. How about you? |
21:51.17 | jcurry | jasonb, the init script su's to tomcat4, i think |
21:51.30 | jcurry | jasonb, do you want me to send you my init script? |
21:51.38 | jasonb | jcurry: So, as root, can you "su - tomcat4"? |
21:51.56 | jasonb | jcurry: Is your init script from the tomcat4 RPM? |
21:52.07 | sopel | jasonb; well i don't mind writing a page about what i've learned of tomcat till now. it's not really much but without it you can't run a loaded site :) especially with the default jvm young generation size which is a laugh for such apps. |
21:52.16 | jcurry | i have no idea what the default password for tomcat4 is? |
21:52.37 | jcurry | jasonb, my init script is from the tomcat4 deb |
21:52.44 | jcurry | jasonb, #debian told me to ask here |
21:52.47 | sopel | jasonb; in fact, i'll do it now. |
21:52.49 | sopel | :) |
21:52.57 | jasonb | sopel: Yes, so that's something, and think how valueable that would be to others who are just starting out and have to handle a big load! If nobody writes it down, nobody can read it. |
21:53.38 | sopel | jasonb; ok, i'll give you some url so that you can link to it in a minute! |
21:53.39 | sopel | :) |
21:53.39 | jasonb | jcurry: Yeah, the debs have always been b0rken.. We can't fix Debian here, really. |
21:54.00 | jasonb | sopel: That would be great. I'll share what I know as well, and maybe I can fix your Tomcat setup. |
21:54.11 | jcurry | jasonb, you suggest i try replacing the su cruft with sudo, or what? |
21:54.27 | jasonb | sopel: Just so you know, I used to work for Friendster where we had 90 Tomcat4 boxes, and served more than 60 Million page views a day.. all on Tomcat. |
21:54.36 | jcurry | jasonb, or just get rid of it, since i'm executing the init script as root anyway? |
21:54.51 | jasonb | jcurry: I suggest you use a package and/or distro that works. |
21:55.09 | sopel | jasonb; yeah i heard about that. and i googled your name ;) but friendster doesn't sound like it was well designed? or was it not a design problem? |
21:55.17 | sopel | jasonb; guess what the thing i'm running is social networking too :) |
21:55.26 | jasonb | jcurry: The debian packages have always been broken, as far back as I can remember, and that's more than 3 years now. |
21:55.47 | jasonb | sopel: Heh! |
21:56.11 | jcurry | jasonb, ok, thanks...i'm gonna try the third-party tomcat5 packages now |
21:58.16 | jasonb | jcurry: I suggest pulling down the Tomcat 5.5 binaries from jakarta.apache.org. Really, that's the best way. |
22:14.35 | *** part/#tomcat jcurry (~jcurry@mcha-ai088.taconic.net) |
22:19.37 | *** join/#tomcat zao_ (~zao@port-195-158-171-114.dynamic.qsc.de) |
22:21.40 | zao_ | am i right in the assumption, that if i want my app on myserver.com/ i have to use mod_jk _plus_ mod_proxy? |
22:21.56 | zao_ | b/c otherwise i cant see how to get rid of the application name in the url |
22:23.34 | zao_ | or i could make my app the ROOT app. but i think thats not a good idea |
22:25.14 | zao_ | but if i would use mod_proxy all my <c:url ..>-links will be screwed (aka incorrect) |
22:25.25 | zao_ | how do you guys go about this? |
22:47.28 | randrew | zao_: <Context path="" ... |
22:50.07 | randrew | zao_: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html#Attributes |
22:50.26 | *** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
23:42.45 | loquace | bn |
23:53.01 | *** join/#tomcat sund (~ray@c-24-23-201-228.client.comcast.net) |