IRC log for #tomcat on 20090303

00:03.43*** join/#tomcat excelblue (n=excelblu@unaffiliated/excelblue)
00:21.35*** join/#tomcat Lord_E (n=chatzill@81-231-180-5-no61.tbcn.telia.com)
00:24.08Lord_ETomcat 6.0.18, Java 1.6.0_07, Ubuntu 8.04.1
00:31.55*** join/#tomcat sjb_ (n=jayjay@c-9b60e055.017-25-68626710.cust.bredbandsbolaget.se)
00:33.53*** join/#tomcat Nicke_ (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
00:34.48*** join/#tomcat karstensrage (n=karstens@c-76-103-32-139.hsd1.ca.comcast.net)
00:36.36*** join/#tomcat reisi_ (i=koivunej@tutor.cc.tut.fi)
00:40.56*** join/#tomcat randrewj (n=raj-user@user-160uub9.cable.mindspring.com)
01:39.10*** join/#tomcat Inc`` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net)
01:53.22*** join/#tomcat kanai (n=kanai@124.32.114.226)
02:25.46*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
03:09.07*** join/#tomcat chrisjw (n=ed@5ac3c00e.bb.sky.com)
03:18.06*** join/#tomcat keith80403 (n=keith804@71-208-213-52.hlrn.qwest.net)
04:58.50*** join/#tomcat shashi_ (n=shashi@122.181.1.158)
05:07.55*** join/#tomcat sjb| (n=jayjay@c-9b60e055.017-25-68626710.cust.bredbandsbolaget.se)
05:23.05*** join/#tomcat Gopaul (n=chatzill@61.95.156.130)
05:31.23*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
05:32.21*** join/#tomcat dvayanu (n=another@ppp-93-104-58-158.dynamic.mnet-online.de)
05:38.45*** join/#tomcat nylon_ (n=chatzill@adsl-068-209-113-138.sip.asm.bellsouth.net)
05:38.51nylon_lo
05:39.09nylon_anyone use proxy rewrite?
05:39.27nylon_i'm having problems
05:39.41nylon_running IIS on port 81
05:39.56nylon_running apache on port 80
05:40.23nylon_all links from IIS are written as http://page:81
05:40.39nylon_i don't want the 81 in the resulting path link
05:40.47nylon_what must i do?
05:55.54*** join/#tomcat optraz (n=cyzie@47.101.48.60.wmu01-home.tm.net.my)
05:56.21optrazhi, when user entered new password, which method is called (with md5)?
06:09.41*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
06:16.46*** join/#tomcat tom17bombadil (n=tom@BAAc8fa.baa.pppool.de)
06:32.07*** join/#tomcat Vince-0 (n=vincent@196.213.176.2)
06:33.25*** join/#tomcat kanai_ (n=kanai@124.32.114.226)
06:48.35*** join/#tomcat kanai__ (n=kanai@124.32.114.226)
06:56.53optrazhi, when user entered new password, which method is called (with md5)?
06:58.17*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
07:04.32*** join/#tomcat kjkoster5489 (n=kjkoster@193.79.224.62)
07:36.36*** join/#tomcat Rembane (i=rembane@burken.org)
07:40.09RembaneGood morning. How do I add a folder to my library path? My apr doesn't live in $CATALINA_HOME/lib so I want to add /usr/lib to my path.
07:43.34RembaneOS: ArchLinux. Tomcat 5.5.27 Java 1.6.0_11
07:51.18*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
08:01.53*** join/#tomcat kjkoster5489 (n=kjkoster@nimbuzz.xs4all.nl)
08:27.59*** join/#tomcat kjkoster5489_ (n=kjkoster@193.79.224.62)
08:35.55*** join/#tomcat kjkoster5489 (n=kjkoster@unl201395.nl.customer.alter.net)
08:36.11*** join/#tomcat kjkoster5489 (n=kjkoster@unl201395.nl.customer.alter.net)
08:39.33*** join/#tomcat kjkoster5489 (n=kjkoster@unl201395.nl.customer.alter.net)
08:41.03*** join/#tomcat Vince-0 (n=vincent@mx.metonymy.co.za)
09:01.32*** join/#tomcat soa2ii (n=quassel@i59F54479.versanet.de)
09:12.56*** join/#tomcat killerbun (n=kp@home0.cue.dk)
09:13.25killerbunIm getting a WARNING: Exception Processing ErrorPage[errorCode=404, location=/jsp/error/404.jsp] and a clientAbortException
09:13.49killerbunI know its due to a missing img/css/js, but i dont know which and from where.
09:14.06killerbunHow can i find out which request caused the 404?
09:26.42kjkoster5489killerbun: check the acces log
09:26.52kjkoster5489If it is not enabled, enable it in server.xml
09:26.54killerbunkjkoster5489, tanks
09:26.58kjkoster5489logvalve
09:26.59killerbunwill look into it
09:34.32*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
09:37.33*** join/#tomcat libin_v (i=a4a49719@gateway/web/ajax/mibbit.com/x-174d3dd3480beac8)
09:37.40*** part/#tomcat libin_v (i=a4a49719@gateway/web/ajax/mibbit.com/x-174d3dd3480beac8)
09:43.54*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
10:37.57*** join/#tomcat kanai (n=kanai@124.32.114.226)
10:52.34*** join/#tomcat frego (n=nifaal@teliance.net)
10:53.36fregoHello, I want to have a class that extends HttpServlet. But I want to have this class coded inline (<%! %>). Is it possible?
11:00.58deebowhat
11:01.07deeboall jsp's are servlets
11:02.32fregobut if you want to extend HttpServlet, you need to map it in web.xml, am i correct?
11:06.02deeboi have no idea what you actually want
11:06.05deeboand why would you want that
11:06.32fregosorry, I am a bit confused as well
11:07.01fregoI have a jsp page (single file), in which I have some java code inside (using <%! %>)
11:07.23fregoI want to make a new class to extend HttpServlet to make a custom doGET and doPOST
11:07.56fregoBut how can I tell the jsp page to use my new class
11:08.31fregoif I do <%@ ... extends="myclass" ..., I have a Unable to compile class error
11:08.39deeboyou dont, thats bad design
11:09.09fregoI know it's bad design, but I need to have all the code in a single jsp page
11:09.15fregonot a regular war file
11:09.28deeboi wont help you shoot yourself in the foot
11:09.33deebodoubt if its even possible
11:10.19fregoI am making an SOCKS5 proxy within an HTTP tunnel
11:10.56fregoand I want it to be in a single jsp page, I can easily upload
11:11.59deebouse php then
11:12.17fregoI already have a working php version
11:12.29fregoI need a jsp version as well, as later a asp.net version
11:16.26*** join/#tomcat dz0 (n=andres-r@63-3-235-201.fibertel.com.ar)
11:16.50fregoI have a second question also
11:17.35fregosupposing a page is really long to load and the client disconnects. Is it possible to get an alert the socket is dead?
11:26.13*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
11:27.43deeboyou will get an appropriate exception
11:43.56*** join/#tomcat ahughes (n=Owner@219-90-244-57.ip.adam.com.au)
11:44.20ahugheswhat happened to setenv.bat in tomcat v6? How can I set some environmnet params?
11:44.29ahughesstartup param's I should say
11:47.01*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
11:54.45ahugheswhat do I hack the registry or something?
11:59.53ahughesanyone :'(
12:13.24*** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net)
12:40.56kjkoster5489ahughes: check out the registry suggestion here: http://java-monitor.com/forum/showthread.php?t=205
12:42.20ahugheskjkoster5489, you are a lifesaver, thanks!
12:42.27kjkoster5489np
12:42.35kjkoster5489That's what I started Java-monitor for. :)
12:44.31*** join/#tomcat kp (n=kp@home0.cue.dk)
12:48.59*** join/#tomcat kp (n=kp@home0.cue.dk)
13:05.46*** join/#tomcat Gopaul (n=chatzill@61.95.156.130)
13:07.10*** join/#tomcat vanksi_ (n=vanksi@stekt2.oulu.fi) [NETSPLIT VICTIM]
13:10.29*** join/#tomcat acidjnk (i=acid@pD950905D.dip0.t-ipconnect.de)
13:25.22*** join/#tomcat gigasoft (n=gigasoft@77.222.15.52)
13:36.00*** join/#tomcat marvi (n=marvi@pdpc/supporter/active/marvi)
13:43.10*** join/#tomcat randrew (n=raj@dyn-128-59-52-242.dyn.columbia.edu)
14:08.34*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
14:18.24*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
14:26.12*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
14:50.11*** join/#tomcat talso (n=talso@S0106000eb578ccb2.cg.shawcable.net)
15:06.36*** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com)
15:09.12*** join/#tomcat vanksi_ (n=vanksi@stekt2.oulu.fi) [NETSPLIT VICTIM]
15:26.12*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
15:31.50*** join/#tomcat C_Kode (n=_C_Kode@38.108.104.210)
15:32.12C_KodeIs this the correct channel for mod_jk issues?
15:36.47*** join/#tomcat vanksi (n=vanksi@stekt2.oulu.fi)
15:51.37C_Kodemod_jk question.  Is workers.maintain  set by default if not in the config?  Also, the documentation on JkWatchdogInterval is slightly  confusing about what is a good time to set it too.  If workers.maintain is set to 60 is 30 good for JkWatchdogInterval?  I'm having loads of connection ping timeout issues causing delays in responses from the tomcat server when people first start using it.
15:53.19*** join/#tomcat FN2zoiqoR (i=fn2zoiqo@henryjackson78.cims.rit.edu)
15:53.43C_KodeThe mod_jk logs reports stuff like "failed sending request, socket -1 prepost cping/cpong failure (errno=110)" then seems to create a new connection and move complete the request.    My guess is it's trying to use dead connections, fails, then creates a new one.  I want it to stop attemptin to use dead connections by cleaning them up.  (which is what I'm guessing workers.maintain and JkWatchdogInterval do.
15:55.07FN2zoiqoRHi.  Tomcat 6.0.18 / JVM sun 1.6.0_10-b33, linux ... I am stuck.  I am trying to use resource injection i.e. @Resource(name="jdbc/something", class=DataSource.class) ... and it is NOT working.  I am gathering that i need to somehow configure/register an InjectionProvider.  Anybody got any docs or somethign that could point me in the right direction?
15:55.21CanyonMan(sorry for the screwed up nick. client default.)
16:01.46*** join/#tomcat puskar (n=puskar@PUSKAR.ES.ITS.NYU.EDU)
16:13.21*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
16:26.15*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
16:44.50*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
17:09.25*** join/#tomcat loddafnir (n=mike@at-vie-gaso-r11a.upc.at)
17:26.18*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
17:35.05*** join/#tomcat prgrmr_ (n=prgrmr@unaffiliated/prgrmr)
17:35.10C_Koderefuses to answer any questions.
17:42.15*** join/#tomcat TomSping (i=812e05d1@gateway/web/ajax/mibbit.com/x-7443f270412ab533)
17:42.51TomSpingtomcat 6 - rhel4 - java6 ... how do I restrict who can connect to my application?
17:44.25C_KodeTomSping: like IPs?
17:44.42TomSpingyeah, Im not talking about manager login
17:44.46TomSpingbut im talking AJP
17:45.07TomSpinghow do I prevent rogue server (apache servers with mod_jk) connecting to my tomcat server
17:45.10C_KodeHow about Remote Address Filter
17:45.32C_KodeI'm not a guru, so I'm just guessing here.
17:45.54TomSpingwhere do you add that?
17:46.37TomSpingor better yet, rather than a deny have a allow from only list
17:47.40C_Kodehttp://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
17:48.07TomSpingyeah I was just reading that.
17:48.07C_KodeYou can allow and deny
17:48.16TomSpingI hate the fact they dont give you an example..
17:48.42C_KodeFound this, not sure how old it is
17:48.42C_Kodehttp://ask.metafilter.com/18978/How-to-block-IPs-in-Apache-Tomcat
17:48.44TomSpingalso, I usually have my webservers load balanced on remote locations
17:48.59TomSpingthats the exact one I was looking at ..
17:49.10C_Kodeah
17:49.14TomSpingso this is the thing.. you can block IP using regexp but my webserver are usually in different regions
17:49.39C_KodeTomSping: Thats what firewalls are for.
17:50.16TomSpingI hear you... but if everytime I setup a new web/app server I have to get in touch with networking...
17:50.19C_KodeWhile it has the ability, I'm not sure the setting was meant to be a firewall.
17:50.29TomSpingyeah, I hear ya..
17:50.44TomSpingI was reading you can fake IP pretty easily via proxy
17:51.11C_KodeAnother reason to have a good firewall.  They can detect ip spoofing
17:52.08TomSpingA comma-separated list of regular expression patterns that the remote client's IP address is compared to. If this attribute is specified, the remote address MUST match for this request to be accepted
17:52.25TomSpinghmm
17:53.17TomSping<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="61\.145\.233\.118|61\.234\.323\.232" />
17:53.22TomSpingI wonder if that will work
17:53.29C_KodeAre you running this on Linux?
17:54.05TomSpingyeah
17:54.06TomSpingrhel
17:54.32C_Kodeuse iptables to block any all ips except the ones you want for those ports.
17:55.44TomSpingyeah, that probably the cleanest way to do it..
17:55.55TomSpingbut then I have to contact linux admin
17:56.05C_Kodeand easily replicated accross many servers.
17:56.08C_Kodelol
17:56.11TomSpingI just wanted to know if there was a way I can do it without contacting other ppl
17:56.18TomSpingits a wierd situation ;)
17:56.26TomSpingits not like I cant do it..
17:56.30C_KodeIt's not in your best interest to firewall with tomcat hehe
17:56.30TomSpingthey dont want me doing it
17:57.36TomSpinglet me go play with this valve while I have 15 minutes to spare..
17:57.43TomSpingI will report back if I have any luck
18:09.01TomSpingholy shnikes,  I got it work
18:09.26C_Kodecongrats
18:09.45TomSpingdanke for your help
18:10.19C_Kodeyou're lucky to get anything out me in this channel hah
18:10.44TomSpingI take what I can get..
18:10.49TomSpingthere 55 ppl in here
18:10.54TomSpingyet no one talks
18:17.18*** join/#tomcat ngauthier (n=ngauthie@12.167.154.53)
18:18.27sjb|yeah
18:18.30ngauthierHello. I need some help setting up SSL. I have already read the Apache documentation, set up a key with the default password, and uncommented the SSL section in the server.xml file. However when I connect to my server at 8443, I get a connection refused. Also, for some reason my log files haven't been written to at all today while I have been working. I am on Ubuntu running Tomcat 5.5. Thanks.
18:18.32sjb|that's what I tried to tell that retard pfn yesterday
18:18.54ngauthieroops, sorry Java version is sun 1.6.
18:19.23TomSpinglogs not being written to is another problem
18:19.33ngauthierTomcat 5.5.25-5ubuntu1.2
18:19.33TomSpingthe reason your SSL is not working should be listen in the logs
18:19.42TomSpingfix the log problem and that will help resolve the SSL..
18:19.42ngauthierTomSping, yes, I think so too.
18:19.53TomSpingmost of the times is something wrong with teh keystore..
18:19.58ngauthierTomSping, right. My thoughts exactly. Seen this before?
18:20.05TomSpingeither invalid path, or password, either way fix logs
18:20.16C_Kodepermissions to write the logs?
18:20.17ngauthierTomSping, it's hard to debug the log problem when I can't read the logs :-D
18:20.19TomSpingI dont think I understand the for some reason
18:20.36TomSpingwell, I suggest you back track
18:20.42TomSpingundo or comment out SSL changes
18:20.56ngauthieryep. Done that. 8080 works fine
18:21.11TomSpingso you have a healthy catalina.out?
18:21.27ngauthierC_Kode, permissions on the log files and folder at tomcatt55::nogroup, 500
18:21.47ngauthierTomSping, I do not have catalina.out, I have catalina.2009-03-02.log
18:22.38*** join/#tomcat trifon (n=chatzill@78.90.20.97)
18:22.39TomSpingokay,
18:22.45TomSpingbut is it logging correctly?
18:22.51TomSpingstart/stop container and see if it logs there
18:23.25ngauthier/etc/init.d/tomcat5.5 restart yeilds clean output
18:23.46ngauthierI re-ran chown -R tomcat55:nogroup on /var/lib/tomcat5.5 and /var/log/tomcat5.5
18:23.54ngauthierand restarted.
18:24.11ngauthierTomSping, thanks for your help by the way, you are being very responsive and it is very much appreciated.
18:24.23TomSpingokay, so if you answer to "is the logging problem fixed" is yes
18:24.30ngauthierno
18:24.35TomSpingthen if you SSL errors should show up there
18:24.46ngauthierTomSping, it is still not logging anything.
18:24.56TomSpingokay who is the container running as?
18:24.57ngauthierTomSping, when I restart the server, it just says "done"
18:25.15TomSpingmake sure the perms to log dir are 'writeable'
18:25.20ngauthierTomSping, running as user tomcat55
18:25.28ngauthierperms are 500, user is tomcat55
18:25.48ngauthiererr sorry perms are 600
18:25.54ngauthierr-rw-------
18:26.01ngauthier-rw-------
18:26.14ngauthierso tomcat 55 has rw, nothing for group or all
18:26.20*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
18:26.59TomSpingdid you undo the SSL changes in the conf?
18:29.14ngauthierTomSping, yes
18:31.59*** join/#tomcat da_krowa (i=Miranda@chello089078230060.chello.pl)
18:43.51C_KodeDoes messages report any errors while trying to start tomcat?
18:45.09ngauthierC_Kode, nope, it just says "...done."
18:45.25C_Kodein /var/log/messages?
18:46.26ngauthierC_Kode, nothing is output when I tail -f /var/log/messages then run tomcat restart
18:48.17C_KodeWhere is ...done coming from?
18:52.44ngauthier"> /etc/init.d/tomcat55 restart"
18:56.46*** join/#tomcat soa2ii (n=quassel@i59F54479.versanet.de)
18:57.30C_KodeWhat PID is it running under?
18:59.14ngauthierC_Kode,  "root     31819  0.0  0.1  16516   368 ?        Ss   18:46   0:00 /usr/bin/jsvc -user tomcat55 ..."
18:59.35C_KodeOnce you find that goto /proc/(PIDNUMBER)/fd
18:59.47C_KodeYou have it running as root?
19:00.04ngauthierroot runs the jsvc which then runs it under user tomcat55
19:00.08C_KodeDo this
19:00.10ngauthiersee the end of the line I pasted
19:00.24C_Kodelsof | grep tomcat55 | grep log
19:00.49C_KodeYou should get a list of log files it has open.  (if any)
19:01.11ngauthierC_Kode, two entries, each pointing to the same file: /usr/share/java/commons-logging-api-1.1.jar
19:01.26C_KodeYou don't see any .log files?
19:01.46C_KodeIt's not opening any logfiles then.  
19:02.26ngauthieryeah
19:03.05C_KodeYou should start looking at your configs.  It appears you have logging turned off or something.
19:03.05C_KodeDid it just stop logging?
19:03.05C_KodeOr never started
19:04.25TomSpingcheck in the catalina.sh
19:04.29TomSpingthats the first place I would look
19:04.38TomSpingI dont think you messed with anything there
19:04.41TomSpingfor SSL
19:05.03C_KodeIs the server even functioning properly?
19:06.24ngauthierC_Kode, yes, it serves up content on port 8080
19:06.41ngauthierTomSping, catalina.sh has not been modified, I am not sure what to look for
19:06.58TomSpingwhen did logging stop working properly
19:07.04TomSpingwas it after you made the SSL changes?
19:07.24ngauthierI think so
19:08.46TomSpingthis is why you should make backups for configs before you modify them
19:09.03TomSpingrunning a  diff against two conf files saves you allot of time
19:09.04ngauthierI copied and commented out the originals
19:09.13TomSpingthen roll back..
19:09.16TomSpingto last know working copy
19:09.16ngauthierI did
19:09.24ngauthierthat's what I am running :-/
19:09.59TomSpingwell what is the last date in the logs you have running
19:10.56ngauthierlast night at 7:13pm
19:11.12ngauthierI just read through all the files in /etc/tomcat55 timestamped after that point
19:12.00TomSpingwhen did you make the SSL changes?
19:12.08ngauthierthis morning
19:14.48TomSpingI dunno, double check that you rolled back properly..
19:15.07ngauthierTomSping, yeah. I'm going to try the setup on another computer too
19:15.35TomSpingyeah, when you have it setup.. SSL problems are usually logged in detail
19:15.57C_KodeDo you have a backup of the configs?
19:16.02C_KodeA real backup
19:16.14C_Kodefrom tape, disk to disk backup
19:16.34ngauthierC_Kode, no. I just made a few modifications to the default config. It's a test setup, so it is very simple
19:17.24C_KodeIt's odd that nothing would log.  When is the last time you restarted this server?  Maybe the issue is deeper than tomcat
19:17.47ngauthierC_Kode, you mean physical restart? never. It is less than a month old
19:17.51ngauthierit is a VPS
19:18.39C_KodeMaybe a physical restart is in order.  I find it extremely odd that it servers up stuff, but cannot open any logs whatsoever.
19:25.58ngauthierC_Kode, it is now working on the other computer
19:26.23C_Kodewhat is working on the other computer?  There are two of them?
19:26.33ngauthierSSL
19:26.37C_KodeIs it logging?
19:26.39ngauthierI have a development and a staging box
19:26.53ngauthierI was trying to get SSL working on development before putting tomcat on staging
19:27.02ngauthierso I just deployed tomcat to staging and enabled ssl
19:27.23C_KodeSomethng is screwed up in your testing then.
19:27.29C_KodeDid you restart it?
19:28.19ngauthieryeah I did
19:28.22ngauthierstill no logs :-(
19:28.36ngauthierI probably just messed something up I can't find
19:28.46ngauthierI'll just redeploy the application and reinstall tomcat
19:28.46C_KodeSo deploy staging on testing!
19:28.54ngauthierlol it's not that easy
19:29.02C_Kodersync -> :P
19:29.06C_Kode:D
19:29.18ngauthierhahahaha
19:29.35ngauthierrsync my_server:/ other_server:/ --delete = recipe for disaster (and muffins)
19:30.05C_Kodersync -avz /dev/null server:/
19:30.30ngauthieryeah, make sure it put in the -z flag, that'll save you loads since /dev/null is all 0s.
19:30.37ngauthierall 0s compress well
19:30.48C_Kodeyep.
19:32.36TomSpingI step away for a sec
19:32.43TomSpingand there alls sorts of helpfull info
19:32.51TomSpingbeing shared
19:33.21C_KodeTomSping: what like compressing /dev/null's zeros while you rsync them? :P
19:35.00TomSpingyeah...
19:35.07TomSpingheh
19:35.24TomSpingI saw another command recently that was pretty awesome to
19:35.48TomSpingit involved dev null and im glad I can't remember it right now
19:35.58TomSpingit could never be used for the power of good
19:39.19ngauthierI wrote a shell script called "does". All it does it print our "hells yeah". So you can call it like: "$> does it blend?    =>   hells yeah!"
19:39.34ngauthierso then when people come to my desk
19:39.46ngauthierand ask me if X does Y and it is a silly question
19:39.51ngauthierI say, "hold on a sec"
19:39.58ngauthierand type "$> does X do Y?"
19:40.02ngauthierand it says "hells yeah"
19:40.31philihpi think you can do that with the "yes" command
19:41.26TomSpingheh
19:41.41kerouacbeer + tomcat == good work environment
19:42.07TomSpinghttp://tinyurl.com/bymvo9
19:42.12*** join/#tomcat trifon (n=chatzill@78.90.20.97)
19:42.18*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
19:42.57TomSpingaint no party like a tomcat party
19:43.28C_Kodeprefers whiskey + anything that doesn't result in spontaneous combustion
19:43.49TomSpingbourbon > whiskey
19:44.32philihpso here's a question for the channel... at work here we use weblogic and not tomcat, because weblogic does EJBs. what are EJBs? they encapsulate "business logic" (whatever that is), but couldn't that be done with a class file?
19:44.48C_KodeJack Daniels kentucky straight bourbon
19:44.54TomSpingyeap
19:45.32TomSpingphilihph: http://tinyurl.com/c7ddqr
19:46.34philihpheh.
20:01.46*** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org)
20:03.40*** join/#tomcat tom17bombadil_ (n=tom@BAAc8fa.baa.pppool.de)
20:29.05atpa8ahmm
20:30.37atpa8atrying to configure the SSL connector... there's a key in %HOME%/.keystore... but i cannot connect via https
20:30.40atpa8aany hints?
20:32.37atpa8athe admin app shows [Key|Trust][Store|Type] as null
20:52.08CanyonManneat, I got @Resource injection working with Jersey :-)
21:10.33*** part/#tomcat Rembane (i=rembane@burken.org)
21:22.37*** join/#tomcat BillyBop (n=scoony@ter75-4-88-170-218-60.fbx.proxad.net)
21:23.06*** join/#tomcat jmut (n=jmut@78-83-249-65.spectrumnet.bg)
21:23.25jmuthi. how can I setup tomcat application to be served for specific domain port
21:23.49BillyBopHi, I'm new to tomcat. What are the "tomcat, role1 and both" users created by default on tomcat? may I delete theses roles and users? or my I change the passwords of theses users?
21:25.07kjkoster5489BillyBop: just delete them if you want to.
21:25.18kjkoster5489jmut: what is a domain port?
21:25.39jmutkjkoster5489: I mean specific domain and port    
21:26.01*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
21:26.33kjkoster5489jmut: have you looked at -- and read the documentation of -- server.xml?
21:27.06jmutI am currently using conf/Catalina/localhost    I guess should be conf/Catalina/example.com/...                
21:27.09jmutyep. will do
21:31.39jmuttomcat really lacks linking in that documentation
21:33.39*** part/#tomcat randrew (n=raj@dyn-128-59-52-242.dyn.columbia.edu)
21:34.56*** join/#tomcat dvayanu (n=another@ppp-93-104-58-158.dynamic.mnet-online.de)
21:40.29atpa8acan anyone help with ssl configuration?
21:55.32BillyBopatpa8a: hum, I just did it, what do you want to do?
21:56.04BillyBopatpa8a: I'm absolutly not an expert , I'm begining with tomcat
21:56.47atpa8atrying to configure the SSL connector... there's a key in %HOME%/.keystore... but i cannot connect via https
21:56.52atpa8athe admin app shows [Key|Trust][Store|Type] as null
21:57.05atpa8ai get fatal error 552
21:57.28BillyBopatpa8a: have you generated your certificate with keytool
21:57.30BillyBop?
21:57.47atpa8ayes
21:57.56atpa8aeven imported it into VM cacerts
21:58.17BillyBop... have you selected the good alias for your key?
21:58.53atpa8agood meaning?
21:59.35BillyBopI think the alias for the certificate need to be called "tomcat"
21:59.54atpa8ai specified the alias in the connector
22:00.19atpa8akeyAlias="mykey"
22:01.08atpa8athe funny thing is that it's not the first time i do that...
22:01.17BillyBophum, then I think I can't help you, my understanding stop here :)
22:01.33atpa8athanks anyways :)
22:01.39BillyBopdo the www user has access rights to the keystore?
22:02.11atpa8ayes
22:02.17BillyBopstrange...
22:02.17atpa8ai think... i figured it out
22:02.31atpa8aall because of tcnative dll
22:02.33BillyBopno logs?
22:02.39atpa8anothing in the logs
22:02.43BillyBopdamn
22:02.51atpa8aremoved tcnative and it worked
22:03.59atpa8aaltho... can't access the default / page via ssl...
22:04.13atpa8abut at least it asks me if i trust the cert
22:05.13BillyBopthat means that the certificate is found by tomcat then no?
22:06.13atpa8acorrect
22:06.27atpa8ahmm
22:06.39atpa8aactually IE did display the index page...
22:06.51atpa8awhat's with opera?..
22:08.03atpa8ajust cached something funky it seems
22:08.06atpa8athanks BillyBop
22:09.52atpa8ai hate computers :P
22:12.23BillyBoplol
22:34.46*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
22:37.58*** join/#tomcat Inc` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net)
22:45.23*** part/#tomcat dz0 (n=andres-r@63-3-235-201.fibertel.com.ar)
23:09.41marviatpa8a: I think the main reason for tcnative is to replace the SSL mnagement.
23:10.15marviSo with that enabled I think SSL is configured in another way. It is using openssl I believe.
23:12.10*** part/#tomcat CanyonMan (i=fn2zoiqo@henryjackson78.cims.rit.edu)
23:12.31*** join/#tomcat Lord_E (n=chatzill@81-231-180-5-no61.tbcn.telia.com)
23:12.38*** part/#tomcat C_Kode (n=_C_Kode@38.108.104.210)
23:18.51Lord_ETomcat 6.0.18; Java 1.6.0_07; Ubuntu Server Edition 8.04.1; i'm having trouble deploying my webapp to my tomcat server, could anyone help? i'm checking my webapp project out using subversion to ~/Entropy and using ANT to build and deploy a .war file using this script: http://pastebin.com/d7aa42f7a but tomcat doesn't seem to find the .war
23:19.14Lord_Eany help would be appreciated
23:21.48marviLord_E: What happens if you drop the war manually in webapps?
23:22.30marviDoes /usr/local/tomcat/webapps exist and is it writeable by the account running Ant?
23:23.31Lord_Eyes it exists, and the .war file ends up in TOMCAT/webapps just fine
23:24.14Lord_Ebut tomcat is supposed to expand that .war on startup, right?
23:24.35Lord_Ei've set deployOnStartup="true" on the <Host> in tomcat/conf/server.xml
23:24.43marviYes. Does Tomcat have the right permissions?
23:24.54TomSpingactually take a look at the logs
23:24.59marviThe defaault is to autodeploy.
23:25.00TomSpingand see how its handling the war file
23:25.14Lord_Ehm, that's a good question... how do i check tomcat's permissions?
23:25.22TomSpingls -la
23:25.28marviclean-deploy looks wierd. A subdirectory in webapps?
23:25.36TomSpingps -ef |grep java |grep <instance name>
23:27.22Lord_Ehm, gimme a sec... i just noticed there IS in fact a directory in webapps that i can't remember creating manually... i'll check it out
23:29.41Lord_Eoh, it seems tomcat does expand the war after all...
23:30.49Lord_Estill, my webapp doesn't seem to work... i have an index.jsp in the root of the webapp, shouldn't tomcat get that for me if i just navigate to servername/Entropy ?
23:32.04Lord_Ein a web browser that is, as in http://server:8080/Entropy
23:37.41Lord_Emarvi: what's weird with clean-deploy?
23:38.42marviLord_E: no, nothing. I misunderstood.
23:39.12Lord_Eok, what about my index.jsp?
23:39.29marviEven if it is expanded it might not have succeeded deploying. Check the log.
23:39.44Lord_Eok, the catalina log?
23:40.08marviyeah, or if you app has its own log file.
23:40.30marvils -lt --reverse in the log directory is nice when there are a lot of files.
23:41.22Lord_Ehm? list by last modified?
23:41.54marviYes, see where you have the latest log lines .
23:42.01marviThen tail those.
23:45.21marviis getting ready for bed.
23:46.44Lord_Ehttp://pastebin.com/d1b4fcf97
23:47.24marviLooks ok.
23:47.40marviAre you sure index.jsp is the entry point?
23:48.39Lord_Eit usually isn't, /login.action usually is but i figured it'd be easier to check if tomcat is working at all by requesting a jsp directly rather than a struts action
23:49.15marviWell, maybe you can't. The servlet might grab all URI:s.
23:50.05Lord_E<PROTECTED>
23:50.46Lord_Ei get error 404 - "description The requested resource () is not available."
23:50.58marviCan you get some resource like a image os css or something?
23:51.17Lord_Ei'll try
23:51.20marviAnything new in the log?
23:51.59*** join/#tomcat Inc` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net)
23:55.13Lord_Eah... found something
23:55.18Lord_ESEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
23:55.19Lord_Eorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memberDAO': Injection of persistence methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is...
23:55.21Lord_E...java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml}
23:55.59marviOk, you have a database setup?
23:56.03Lord_Eyeah
23:56.26Lord_Eit works just fine on my developer machine (this one) with a local MySQL server
23:56.40Lord_Ei've installed MySQL on the server too and created a database
23:57.11Lord_Esame username/password and all
23:57.34marviCan you connect to the db on the command line?
23:57.44Lord_Eusing mysql-admin, yes
23:57.55marviWith that user?
23:58.04Lord_Emysql -u root -p
23:58.11Lord_Eand then the password
23:58.18marviOh, you are using root in the app too?
23:58.22Lord_Eyeah
23:58.33marviOdd. :-)
23:59.04Lord_Ewell, this is a bit of a hobby and i don't have anything worth protecting on the server :P
23:59.18Lord_Eplus, it can't be reached from outside yet =>

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