irclog2html for #tomcat on 20051107

00:01.59*** part/#tomcat gr00ve (n=oliver@202.4.235.65)
00:18.01*** join/#tomcat Zangdar (n=jordimcl@ASt-Lambert-109-1-8-73.w193-252.abo.wanadoo.fr)
01:33.41*** join/#tomcat aiyaiyairc_AFK (i=aleuaooo@c-67-161-177-74.hsd1.ca.comcast.net)
01:48.38*** join/#tomcat Geren (i=Geren@dyn-bway-129-167.dyn.columbia.edu)
01:48.47Gereni installed tomcat and i succesfully started the service
01:48.53Gerenbut when i go to http://localhost
01:48.59Gerenit shows the error page
01:49.04Gereninstead of the tomcat welcome page
03:57.56*** join/#tomcat ijoyce (n=ijoyce@CPE-72-128-43-52.kc.res.rr.com)
04:30.48*** join/#tomcat suir (n=suresh@203.141.131.37.user.at.il24.net)
04:30.57suiri get proxy error
04:38.14suirnetwork: The automatic proxy file is downloaded from http://proxy:8080.
04:38.14suirjava.net.UnknownHostException: proxy
04:38.14suirat java.net.PlainSocketImpl.connect(Unknown Source)
06:08.53*** join/#tomcat GedasRx (i=usr2776@c1.edrana.lt)
06:35.50*** join/#tomcat sifan (n=sifan@218.7.43.198)
06:37.14sifanwhy it show "javax.servlet.jspException:Connot find bean statusBean in any scope
06:37.29sifanwhy it show "javax.servlet.jspException:Connot find bean statusBean in any scope"
06:37.38lykenuh, if anyone can answer
06:37.39lykenthey will
06:37.47lykenplz dont repeat for the sake of repeating
06:39.04sifan):
06:40.11sifansorry
06:41.47sifananyone
08:16.13*** join/#tomcat BlackHand (n=root@200.121.253.89)
08:16.21BlackHandjoz
08:16.23BlackHandhiz
08:16.27BlackHandone question
08:17.04BlackHandis normal that in tomcat5 startup script only a few .jar in /usr/share/java go to the tomcat5 classpath ?
08:18.22BlackHandi need to put /usr/share/java in my endorsed dirs for obtain the effect that i like ?
09:13.56*** join/#tomcat noodl (i=hidden-u@195-97-225-122.onyx.net)
10:27.02*** join/#tomcat de1usion (n=serenity@93.181.150.194.cable.netbg.com)
10:27.32de1usionhey
10:27.52de1usioncan i ask you a question ?
10:40.07*** part/#tomcat de1usion (n=serenity@93.181.150.194.cable.netbg.com)
10:51.55*** join/#tomcat yel (n=yel@xdsl-87-78-20-151.netcologne.de)
10:52.15yelmorning  jasonb,  
10:52.19yelhi everyone
10:57.59*** join/#tomcat harpoon (i=stueber@ultra20.rbg.informatik.tu-darmstadt.de)
10:59.32yelis there a place where i can get the admin app as a .war file please ?
11:07.02*** join/#tomcat harpoon (i=stueber@ultra20.rbg.informatik.tu-darmstadt.de)
11:25.09*** join/#tomcat GedasRx2 (i=usr2813@c1.edrana.lt)
11:39.12*** join/#tomcat GedasRx2 (i=usr2828@c1.edrana.lt)
11:42.08*** join/#tomcat GedasRx (i=usr2832@c1.edrana.lt)
11:48.07*** join/#tomcat GedasRx2 (i=usr2841@c1.edrana.lt)
11:57.57*** join/#tomcat GedasRx (i=usr2848@c1.edrana.lt)
12:18.33*** join/#tomcat Zangdar (n=jordimcl@ASt-Lambert-109-1-8-73.w193-252.abo.wanadoo.fr)
12:24.54*** join/#tomcat dreivier (n=dreivier@port-212-202-44-204.dynamic.qsc.de)
12:59.37*** join/#tomcat idletask (n=fg@cerbere.one2team.com)
12:59.40idletaskHello
13:00.46idletaskProblem with tomcat5, our webapp is started twice, even though there's only one <Context> in our server.xml. Google didn't help :(
13:01.13idletaskDoesn't prevent the application to run but it also causes trouble on shutdown though
13:07.49idletaskAlso tried: no Context in server.xml and create the context XML file in Catalina/localhost instead, but to no avail
13:10.34idletask(also, it's not in a WAR file if that's of any help)
13:21.57*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:26.54puckonever seen that problem, do email tomcat-user and see if someone has a solution
13:30.24*** join/#tomcat olof12 (n=rikard@81-236-29-213-no10.tbcn.telia.com)
13:31.28olof12hi, I have a very strange problem, I get the following exception at a certain point in my code: java.lang.NoSuchMethodError: frog_db.persistence.User.setActive(Z)V
13:31.57olof12but only on my production server not locally, and not on my test server, which has identical setup
13:32.37olof12I figure that the application has got the wrong version of my frog_db.jar loaded
13:32.50olof12other webapps running under the same server has other versions
13:33.22olof12is it possible to inspect somehow the method signature under a specific context?
13:57.38vito__you are right in "what" your problem is. you compiled code against a frog_db.jar that has that method, and are running it against one that doesn. check all your frog_db.jar's, in common/lib and WEB-INF/lib. use "diff" to see if they differ at all. This is a good example of why all artifacts should be uniquely versioned, al la maven's policy
14:01.26olof12thank you. I replaced all versions of frog_db.jar on the entire machine with the newest version, and restarted the server. I still get the error though. Is there some cache in Tomcat that I should remove?
14:02.41vito__if you shut tomcat completely down, there would be no cache, check for processes hanging out though, ps -ef | grep java on linux
14:03.01idletaskOr pgrep -u <tomcat_user>
14:03.04idletask:p
14:03.18vito__are you using common/lib  or  are using WEB-INF/lib
14:05.17vito__also, you could look in your source control and see when you made changes to the "setActive" method in User
14:07.35olof12I am using web-inf/lib only
14:08.34idletaskAny clue for my problem ? :p
14:08.40olof12hmm yes I will check that
14:09.32idletaskStill the double start
14:10.32idletaskIt loads once from the <Context> and then another one from the appbase
14:13.40idletaskI suspect a bug in the configuration but I cannot find where it is
14:14.16idletaskIf I remove the Context from server.xml it still loads the app from the appbase directory but we want it to be available via / and not /webappname
14:15.39*** join/#tomcat joered (n=chatter@81-208-83-246.fastres.net)
14:46.40yelis there a place where i can get the admin app as a .war file  ?  to deploy it independantly
15:00.20*** join/#tomcat wfay (n=ask@adsl-068-209-227-025.sip.mem.bellsouth.net)
15:56.27*** join/#tomcat a4akb (n=chatzill@221.134.214.252)
16:55.50yeli can't figure out how i can create an admin app for each vhost runing on my tomcat so that each vhost only sees its related config ??
16:55.55*** join/#tomcat PR0JECT (n=sadasd@mail.spinmaster.com)
16:56.05yelis there any way to achieve that ??
16:56.44PR0JECTAll my log files for the vhosts seem to be splitting into individual days. is there a way to alter it so they make just one very long log file for each domain?
17:02.03*** join/#tomcat FreemaniaX (n=Freemani@ip67-153-106-58.z106-153-67.customer.algx.net)
17:10.40*** join/#tomcat puff (i=puff@66.45.34.102)
17:11.09puffAfternoon all.
17:12.00PR0JECTgood afternoon
17:15.33PR0JECTso can anyon give me a hand on how to NOT have my log files split by days?
17:23.41*** join/#tomcat harpoon (i=stueber@ultra20.rbg.informatik.tu-darmstadt.de)
17:34.03*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
17:51.57yelre
17:52.01yelhi everyone
17:54.59puffHi.
17:55.34puffPR0JECT: H, I haven't messed with log stuff much;  I suspect step one is switching over to log4j, and step two is tweaking the log4j config.
17:58.03yelhi puff :)
18:00.00puffPR0JECT: Maybe start with this http://minaret.biz/tips/tomcatLogging.html
18:00.15puffPR0JECT: When you get it figured out, I could use some help getting switched over to using log4j myself :-).
18:00.42puffyel: How's your projecT?
18:01.22yelrenot yet don i decided to use your scenario the one with to security filter
18:02.45yelpuff, ,  im just having some dificulty getting into securityfilter i have found some helpfull links (where i saw your adds) i was really positivly surprised
18:04.41puffyel: That should work, but I still think you're better off using apache for authorization.
18:05.11yelpuff i can not figure out a way to do that :s
18:18.43PR0JECTthis log4j stuff looks complicated
18:43.56*** join/#tomcat linuxfreck (n=freck@fry.fmi.uni-passau.de)
18:50.18puffPR0JECT: I'm told log4J's not as complicated as it looks.
18:50.27puffyel: Didnt I send my reply to you?
18:50.46yelsure you did
18:50.56yelits was even a big help!
18:51.43yelits just that it would be great if you could send me some examples how to implement HttpSessionListner
18:52.01puffThe approach I recommended in my reply was not to use the HttpSessionListener.
18:52.10puffHowever, I can scrounge up an example.
18:52.56yelbut it was to add it into securityfilter ?
18:53.14puffNo.
18:53.17yel:s
18:53.25puffThe approach I recommended didn't use securityfilter at all. One sec.
18:53.27yelsorry im a bit confused
18:53.31yelok
18:56.20puffOkay, sent you an example session listener.
18:56.33puffNow, what I suggested you do _instead_ of that:
18:57.04yeltokay
18:57.07yelokay
19:00.58puff1) use normal apache authentication to protect everything, including the tomcat portion.
19:02.00yelwith normal you mean basic right ?
19:02.15puffYeah.
19:02.17puff2) set up a JSP that will take a username/password form submit and set a browser cookie named something like "AccessCookie" with a value of "username:password"
19:03.07yeli have did that approch but thats unsecure since the username and password will be stored on the cookies :s
19:03.13puff3) set up mod_auth_cookie, which will rewrite the request headers, converting the AccessCookie into a normal header value for a mod_auth_mysql.
19:03.27puffyel: Ah-hah, okay, that wasn't a criteria you had introduced before :-).
19:03.49yelsorry my english is a catastrphy sorry
19:03.51puffyel: I wonder if there's an approach that will do the timeout stuff.
19:04.28puffyel: Okay, I would check on #apache to see if there's an approach that will work without storing the username/password.
19:04.52puffyel: But if that's not possible, then you have to either set up that or use tomcat.
19:05.31yelpuff that works with a cookies based authentication i already did that aproche
19:06.10*** join/#tomcat vinse (n=Administ@208.253.223.146)
19:06.41puffyel: Are you using SSL to protect the entire session?
19:06.45yelyes
19:08.21*** part/#tomcat vinse (n=Administ@208.253.223.146)
19:08.43puffyel: Good 'nuff. You may want to look into SSL's session maintenance stuf.
19:09.12yelwhat do you mean exactly with that ?
19:09.14puffFor that matter, I'm not sure what the rules are for browser cookies under SSL.
19:09.24puffSSL has a session mechanism, I've never dug into it.
19:09.37*** join/#tomcat vinse_work (n=Administ@208.253.223.146)
19:12.34yelpuff what i already did is : creating a subdomain and inside that domain i have a jsp file which set the cookie like you have mentioned with a user and a password  so when accessing http://localhost/tomcatapp/ the user get the cookies and after that the user cann access the http://loclahost/apachestuff  where apache is configuered to browse the cookies for the user data and chack it on a database
19:12.48puffhttp://httpd.apache.org/docs/2.0/ssl/ssl_intro.html
19:13.03puffyel: Yah.
19:14.12yelso now my approch is : instead of using the real username and password  i want to generate a temporarly passowrd  wich wil be stoired in the cookie and thats no problem at all
19:14.28puffFor performance reasons, SSL sets up a session.  It uses computationally expensive public key cryptography to negotiate the setup of a computationally cheaper non-public-key encryption, and that involves setting up a session that persists for some time.
19:17.41puffyel: I was thinking that perhaps you could use that session for your purposes.
19:17.42puffyel: However, I cannot find more info with some quick searching, and I don't have time to spare for thorough searching.
19:18.33yelpuff no problem did you sends the example i asked you?
19:19.50puffyel: Yeah.
19:19.59yelthanks
19:21.38puffyel: No php, right?
19:21.54yelpuff yes no php,  can i just explain my point of view and you just tell me what do you think ? :)
19:22.24puffOkay.
19:22.36puffNo guarantees, I may be pulled away IRL.
19:22.44yel1) use securityfilter to authenticate the user
19:23.14yel2)  generate a fake passoword and add it into the user cookie
19:23.34yel3) add the same password such as the user name to a temDatabase
19:23.56yel4) add a kind of a HttpSessionListner to the securityfilter
19:24.38yel5) track the last action of the user by add an invisible fram into the static component where a picture which is erved by tomcat is
19:25.32yel6) remove the username and fake password from the database if httpsessionListner gives a sessiontime out
19:25.43puffAh, my email bounced, typo in your email, re-sending.
19:25.52yeloups
19:26.00yelcan you sends it to ..
19:26.08puffyel: Re-sent it to your address already.
19:26.39puffyel: I wouldn't use a frame, just use an image in the footer or header of every page.
19:26.42yeli got it
19:26.50yelok
19:26.53puffLogo or something.
19:27.01yelso what do you think of my appoache ?
19:27.15puffWell, it should work.  I think it's more complicated than using mod_auth_cookie.
19:27.37yelim using mod_auth_cookie too i have to
19:27.59yellook apache needs 2 stuff mod_auth_cookie and mod_auth_mysql too
19:28.09puffYeah... there's a lot of awkwardness added by having to do part of it in apache and part of it in tomcat.
19:28.12yelsoo he know he should gets the userdata from the cookie
19:28.22puffHow's your C?
19:28.23yeland he have  to check users on the database
19:28.41yelC ?
19:28.49*** join/#tomcat Hugh_ (n=Hugh@base-aaisp.mxtelecom.com)
19:28.49yelsorry i dont understand :)
19:29.03puffThat's what you write apache modules in :-)
19:29.18yelahh :)
19:29.21yelokay i see
19:29.28yelwell okay basics
19:35.18yelpuff, got it ?
19:38.12puffyel: Hm, according to a cryptographically secure cookie.
19:38.46puffACcording to mod_auth_cookie_mysql's site, it uses a cryptographically secure cookie. http://www.qwk.net/opensource/mod_auth_cookie_mysql/
19:39.59puffThis looks interesting:  http://www.frogdot.org/mod_auth_mda/
19:40.15yelok
19:40.27*** join/#tomcat Hugh (n=Hugh@base-aaisp.mxtelecom.com)
19:43.36puffGotta get busy IRL.
19:44.50yelokay thanks for the help
19:48.47*** join/#tomcat gLoB`` (n=test@209.228.81.225)
19:49.10gLoB``hi... does tomcat 4.1.31 have any issues in recognizing soft links ?
19:52.00linuxfreckgLoB``: tomcat doesn't follow symlinks by default
19:52.48gLoB``linuxfreck: how can I make tomcat follow sym links ?
19:52.59gLoB``are there any conf settings that I can change ?
19:53.20linuxfreckgLoB``: http://www.jguru.com/faq/view.jsp?EID=1028397
19:53.46gLoB``thanks !
19:53.53linuxfrecknote that the config changed in 5.0
19:54.30gLoB``right... but i have to use 4.1.31
19:54.33gLoB``:/
19:54.39gLoB``other dependencies
19:55.43linuxfreckwell I have the same problem here, I just told you in case you're upgrading or something
20:08.45gLoB``cool, np
20:08.57gLoB``testing it right now
20:13.23yelis there anyway to set an independant instance of the admin app for each vhost ?
20:15.21yelwich only shows the vhost-related config ??
20:16.49FreemaniaXHey Guys, lately my production server has been getting outofMemoryexceptions, I'm trying to pin down the cause. This is 5.0.30 on jdk 1.4.2
20:19.05PR0JECTanyone know the setting to make one log file instead of seperate ones for each day?
20:19.19puffFreemaniaX: Hm, we've been dealign with a similar issue.  Are you seeing a lot o fload?
20:20.25puffFreemaniaX: We're running jdk1.4.2_09/tomcat 4.1.31/mysql 4.0.26.  We were on 1.4.2/4.1.30/4.0.24, but we did some minor upgrades to see if they'd help.
20:20.49puffFreemaniaX: They didn't. However, we did some OS level tweaks and some mysql server config tweaks that _seem_ to be helpnig (we think).
20:21.32puffFreemaniaX: Our current hypothesis (yet to be proven but does seem to be helping) includes:  1) it's a specific resource issue, not general memory. 2) it's load-related.
20:21.48puffOne step we started with is upping the ulimit on the tomcat process.
20:22.15puffWe also noticed a lot of connections in CLOSE_WAIT state in netstat and lsof -i output.
20:22.45puffWe noticed that mysql's server configuration had the closewait_timeout set to 60 seconds, so we upped it to several hours, those went away, but the problem in general did not.
20:23.19puffFreemaniaX: I am very interested in any conclusions or ideas you come up with.  
20:23.44puffFreemaniaX: We are unable to consistently reproduce the problem, though we've just got a load testing framework in place and will start testing that soon.
20:24.13yelback to classes :)
20:24.48puffThe four things that changed before this problem cropped up are 1) more webapps (went from 30ish to 40ish), 2) more activity in our webapps, 3) changed to using WAR files, 4) upgraded to ConnectorJ 3.1.10.
20:25.28puffThere was an issue with the manager app, solved in the tomcat 4.1.31 release, causing similar behavior, which confused us for a bit.
20:25.41puffThat is, it caused tomcat to thrash/lock up.
20:25.51puffBut we stopped using it and the problem persisted.
20:26.41puffFreemaniaX: There were some other clues that lead me to believe it's related to filehandles/connection issues.
20:27.00yelis it possible to have an admin app per vhost, wich shows only its resource ?
20:27.55puffFreemaniaX: First, I ran into the ulimit/filehandle problem being reported as an OutOfMemory error long, long ago.  Second, last year we had a similar issue that I fixed by being more aggressive about cleaning up outbound connections (part of our app uses http posts to communicate with another app).
20:28.37puffThird, one place we saw the OutOfMemory errors was at the point where our app attempts to do the HTTP post, thus indicating that the connection/filehandle was an issue.
20:46.12FreemaniaXsorry, was away from keyboard
20:47.17FreemaniaXpuff I will report back
20:52.20FreemaniaXI'll probably blog the experience in  http://jlampking.blogspot.com/
21:05.51*** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
21:12.53*** join/#tomcat leonel (n=leonel@dsl-200-78-92-65.prod-infinitum.com.mx)
21:29.52puffFreemaniaX: You could start by describing your situation and how much it matches or does not match ours.
21:39.18leoneldoes tomcat works with   gcj / eclipse   instead of  sun's jre ?
21:43.02yelpuff im dealing with the security filter now
21:51.08FreemaniaXpuff, I'm sorry man. I'm in a daze today
21:51.28FreemaniaXan IRC buddy of mine died over the weekend
21:51.42FreemaniaXHe was a java developer in Brazil
21:51.56FreemaniaXnever met him in real life
21:52.27FreemaniaXbut we worked on some projects together on the side
21:52.40FreemaniaXA good guy, solid programmer
21:52.46yelohh sound sad
21:53.33yelFreemaniaX, may he rest in peace !
21:53.44FreemaniaXThanks yel
21:55.15FreemaniaXpuff,  I'm using tomcat 5.0.30 with jdk 1.4.2 and ConnectorJ 3.1.16
21:55.35FreemaniaXI'm thinking it might be a file descriptor issue now
21:57.18yelim using tc 5.0.30 too and connector 3.1.11
21:59.30FreemaniaXcheck out the last couple of lines of my catalina.out : http://pastebin.com/421069
21:59.54FreemaniaXa lot of bugs seems to have been fixed in 3.1.16
22:00.15FreemaniaXmy bad
22:00.28FreemaniaXI meant version 3.111
22:00.32FreemaniaX3.1.11
22:00.38FreemaniaXof ConnectorJ
22:01.52FreemaniaXwhat I'm wondering is , did tomcat's not being able to find the mbean descriptor cause outofmemory or the other way around?
22:05.09*** join/#tomcat fdfdfdfdff (n=yopi@128.68.98-84.rev.gaoland.net)
22:06.32fdfdfdfdffHello :) I would like to be able to view the log files via http.. is there a war file that can allow me to see the logs files ?
22:10.17yelFreemaniaX,  i think if you try to comment out the peace of code callin the bean  you will be able to find that out  but im not sure about
22:18.04*** join/#tomcat algebra (n=yel@xdsl-84-44-176-237.netcologne.de)
22:27.00FreemaniaXyel, I discovered I built the jar file wrong
22:27.16yelhow did you build it ?
22:27.20FreemaniaXput the mbean descriptor in the wrong place
22:27.49FreemaniaXmaybe that is why it was crying about not being able to open the file
22:28.32FreemaniaXgoing to redeploy the app soon, will restart tomcat to use the corrected MyRealm.jar
22:28.45yelgood luck!
22:31.15*** join/#tomcat shaym (i=HydraIRC@komenkodey.dyndns.org)
22:31.18shaymhello
22:31.32shaymis there a way to view remotly tomcat logs via the web ?
22:31.47shayma little opensource webapp tool for example
22:31.49fdfdfdfdffi saw u shaym m:)
22:31.58fdfdfdfdffit's trom :)
22:32.05shaymfdfdfdfdff, :p
22:32.27shaymthe world is little :)
22:34.07fdfdfdfdffthe world is small :)
22:34.13shaym:)
22:39.44*** join/#tomcat valmont (n=chrishol@germany.pspdev.pas.earthlink.net)
22:52.06*** join/#tomcat snibri1 (n=jh@p54A3F4B9.dip.t-dialin.net)
23:09.30yelpuff, are you around !
23:19.19puffyel: Yup.
23:19.36*** join/#tomcat {aaron} (n=none@dpc6935161148.direcpc.com)
23:19.41yelohh great that your here
23:19.45{aaron}so apparently i can't access an accessor like getResource(string) via bean.resource[name] in JSP EL
23:19.53{aaron}so does that mean i HAVE to expose those as a List? :(
23:19.55yeli have reall trouble with security filter :s
23:20.09{aaron}I'm going to have to screw up my data model just to make EL happy >:(
23:20.41puffyel: Sorry 'bout that.
23:21.22yelpuff what i wanted to do is to take one of its eaxamples the  catalina one but i real have no clue how to start with that
23:21.42yelwell i habe checked the whole project tree from the sf cvs
23:23.34yelpuff, but sources are separted from the binaries , and i dont know how, and wich files to modify in the project tree to get the job done any
23:24.01puffyel: Are you asking about the configuration or about the code?
23:24.14yelconfiguration
23:24.31puffyel: Ah... hm.  Well, I have our working security filter config, but of course I can't send you that.
23:24.49yeli dont want a working one
23:25.13puffyel: You read this? http://cymulacrum.net/writings/secfil/t1.html
23:25.29yelall i do really need is a project file for ready to deploy porject based on the securityfilter to be able to append it
23:31.07yelpuff thanks thats enough for now
23:31.28yeli ll have first to go that step by step and than make my own
23:31.29puffCool.
23:31.30puffGood luck.
23:31.47yelsorry again for stressing you
23:31.56yelmerci
23:32.43puffNo sweat.

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.