IRC log for #tomcat on 20101222

00:00.54atshttp://fpaste.org/5Y7q/
00:01.34atshttp://fpaste.org/162e/
00:02.24jasonbdebug="0" is for far older Tomcats, like Tomcat 4.1..
00:02.53atsok should i remove it?
00:03.22jasonbYes.
00:04.15atsdone
00:06.16jasonbIt's not able to find your keystore file C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\kcert.bin
00:06.49jasonbIt's also saying that somewhere in your server.xml there is a "{1}" that really should be a port number instead.
00:06.53jasonb(probably an installer bug)
00:09.11atsAbout the {1}, yes I was having issues but I fixed it at about 2.15PM timestamp on the file.. You wont notice it after that
00:09.26atsI dont know what to say about the keystore file since I can confirm its there
00:10.20jasonbMaybe the system user that runs the Tomcat JVM doesn't have read permission to the keystore file?
00:10.38*** join/#tomcat calavera (~calavera_@23.Red-83-42-211.dynamicIP.rima-tde.net)
00:11.34atsI am trying to test an application so I am testing tomcat on my regular windows desktop machine... the same one I am chatting on right now. I am logged in as myself and have admin permissions on this machine. Would'nt that be fine?
00:13.23jasonbNot necessarily on Windows 7..  I'm not sure.
00:17.20jasonbAlso, what are the steps/commands you used to create your keystore and populate it?
00:18.15atsActually I am looking at the catalina log file and do notice that error about the keystore file. I was having all sorts of issues initially and was able to fix it by 2.30 PM.. I restarted it around 4.03 PM and you would notice there arent any error messages.
00:18.37atsin regards to the steps I use, here it is:
00:19.40ats%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore kcert.bin
00:23.00atsBTW the error messages when I access https://localhost:8443/ are different in Chrome and Firefox.
00:23.26atsIn Chrome I get Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
00:24.40atsWhereas in Firefox I get (Error code: ssl_error_rx_record_too_long)
00:27.50jasonbIf that's the only command you used to generate and populate your keystore, then you have to fix that first.  You didn't populate it with a server certificate.
00:29.11atsOh! I am looking at the documentation at http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html#Configuration and thats the command thats given
00:35.07jasonbWell, that's actually the syntax for an older JDK version, but if it let you run it that way, then maybe it is okay.
00:35.52jasonbI use a command more like: keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore /opt/tomcat/conf/keystore
00:36.44atsok let me try that
00:42.56atsno luck... it behaves just the same
00:48.52*** join/#tomcat silbo____ (~quassel@90.132.191.90.dyn.estpak.ee)
00:51.26jasonbats: One more thing to try: store your keystore in a directory path that does not contain any spaces.
00:58.49atsI executed the command just above.. Should connector configuration say 'keystore' or '.keystore'?
01:00.49atsi meant under the parameter 'keystoreFile='
01:03.02*** join/#tomcat hex` (~hex@unaffiliated/hex/x-261681)
01:20.47jasonbAhh, yeah, keystore="something" vs. keystoreFile="something"
01:33.40*** join/#tomcat }ls{ (~}ls{@p5DD1C2BF.dip.t-dialin.net)
02:17.17*** join/#tomcat ats (ats@c-98-207-58-243.hsd1.ca.comcast.net)
02:25.20*** join/#tomcat }ls{ (~}ls{@p5DD1C2BF.dip.t-dialin.net)
02:35.32*** join/#tomcat }ls{ (~}ls{@p5DD1C2BF.dip.t-dialin.net)
02:45.59*** join/#tomcat }ls{ (~}ls{@p5DD1C2BF.dip.t-dialin.net)
03:09.54*** join/#tomcat MHSL- (MHSL@cm94.sigma137.maxonline.com.sg)
03:10.25*** join/#tomcat Boohemian (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)
04:48.14*** join/#tomcat km (~km@little-black-box.vmware.com)
04:52.41*** join/#tomcat none (~km@little-black-box.vmware.com)
05:57.26*** join/#tomcat jasonb (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:18.09*** join/#tomcat silbo_ (~quassel@pro8.proekspert.ee)
07:37.12*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-78-34-215-82.netcologne.de)
07:38.19*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-78-34-215-82.netcologne.de)
09:06.50*** join/#tomcat ExtraSpice (~XtraSpice@88.118.33.48)
09:10.18*** join/#tomcat kotique (~kotique@crius.pantheon.fused.net)
09:10.25kotiqueHi. How do I debug tomcat's ssl?
09:10.45kotiqueit says can't verify the certificatte, how do I know the details?
09:56.38kotiquehttp://stackoverflow.com/questions/266606/tls-handshake-event-in-tomcat-is-there-something-like-that
09:56.40kotiquecrap
10:32.40*** join/#tomcat tux33 (~tux@unaffiliated/tux33)
10:43.49*** join/#tomcat jarod51 (~Jarod51@2a00:fc8:0:7:221:9bff:fe32:cd0f)
11:13.42*** join/#tomcat tomsreejithp (~chatzilla@220.227.26.90)
11:36.14*** join/#tomcat }ls{ (~}ls{@p4FF0A53C.dip.t-dialin.net)
12:41.44tomsreejithphi
12:45.21tomsreejithpmy question is related to the tomcat clustering settup with session replication on my CentOS machine.....the version of the tomcat that i am using is the 5.5.28 and the i am using the java version 1.5.0_17...
12:46.21tomsreejithpcan anyone help me to setup this session replication setup
12:57.24*** join/#tomcat dvayanu (~another@ds87-230-56-22.dedicated.hosteurope.de)
13:11.43*** join/#tomcat Boohemian_ (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)
13:20.52*** join/#tomcat PepperBob (~chatzilla@145.253.176.34)
13:21.08PepperBobhi guys
13:21.10PepperBobwe'
13:21.19PepperBobre running tomcat5.5 and using jndi for connection stuff
13:21.27PepperBobdatabase connection pooling
13:21.44PepperBobthis is going via DBCP iirc
13:21.52PepperBobis there any chance to use C3P0 instead?
13:22.23PepperBobdue to the project structure i have to use jndi and let tomcat manage the pooling instead of hibernate
13:25.10PepperBobfrom some blogs/howtos/manuals i read about setting type and beanfactory in my context.xml but no luck :/ though lib and all are on the classpath
13:58.03tomsreejithp#springsource.com
14:00.38reisiPepperBob: context.xml, you mean you are using spring?
14:00.55reisiPepperBob: are you sure you have the pool up and running when your context starts?
14:00.57PepperBobreisi: nope, this is a jersey webapp - nothing special
14:01.57reisiPepperBob: aah, sorry, don't know about jersey.. but your problem is that hibernate just cannot lookup the datasource through jndi? could you pastebin the initalization exception
14:02.17PepperBobreisi: well, hibernate looks up the jndi resource - that's fine so far
14:02.44PepperBobreisi: but i'm not satisfied with dbcp which is used as the default pooling for tomcat, right?
14:03.04reisiPepperBob: it's the default, how come you are not satisfied with it?
14:03.08PepperBobreisi: now i thought it could be possible to use c3p0 for pooling
14:03.26PepperBobreisi: it's not that capable as c3p0 - i need more settings expecially timeouts and stuff
14:04.25reisiPepperBob: just that what i've read is that c3p0 is inheritly deadlock prone, and afair hibernate supports setting timeouts as well (query level, dbcp supports lease-level ones)
14:04.38LabWorkeywow
14:05.18PepperBobreisi: my context defines maxActive and maxIdle - isn't that pooling stuff?
14:05.31LabWorkeybeen a while since someone cold /msg'ed me in a support channel
14:05.58reisiLabWorkey: for some reason i get that like once in 1-2 days
14:06.06reisiPepperBob: that is correct
14:06.24PepperBobreisi: the issue was that one of the DBs was not available due to line outage
14:06.53LabWorkeyreisi: more often with me the case is that if I'm actively talking in a channel people assume that I want to answer their questions... but they typically do that in the channel
14:07.24LabWorkeybut if I'm idle (perhaps for days) I don't get msgs
14:07.28LabWorkeyhaven't for years
14:07.29PepperBobreisi: this lead to an ongoing connection re-tries which actually hooked up other webapps. i couldn't find any parameters that could tweak the behaviour when the a connection fails.
14:08.16reisiLabWorkey: for me it seems to be the exact opposite; less i talk more random privmsgs (i wish ppl would ask their question right away, rather than 'hi' :D)
14:09.58reisiPepperBob: not sure what kind of behaviour would you had preferred then? granted, your jersey app probably should start returning some internal server error code immediatedly on resource exception like db-server dying, but would that be logic you implement
14:10.23PepperBobin c3p0 there's stuff like acquireRetryAttempts and acquireRetryDelay which could help here, but it seems dbcp is quite limited here...
14:11.16PepperBobreisi: i just want to control how often and in which delays a connection attempt is made before sending a HTTP 500
14:12.23reisiPepperBob: oki
14:13.08PepperBobreisi: can't be set using dbcp?
14:14.30*** join/#tomcat sree007 (~chatzilla@220.227.26.90)
14:22.52reisiPepperBob: i doubt that.. i think dbcp is always one get-connection -call one attempt to get the connection
14:23.14*** join/#tomcat schmolly159 (~schmolly1@rrcs-76-79-50-2.west.biz.rr.com)
14:24.24PepperBobreisi: any hints for exchanging dbcp with c3p0? looks like there is something for tomcat7 though...
14:24.54reisiPepperBob: have you looked the jndi part of tomcat6 manual?
14:25.28PepperBobreisi: we're running tomcat5.5 - i looked through that but what i found was quite sparse
14:34.47*** join/#tomcat tux33 (~tux@unaffiliated/tux33)
14:58.16kotique<PROTECTED>
16:21.13*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-78-34-215-82.netcologne.de)
16:22.43*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-78-34-215-82.netcologne.de)
16:27.16*** join/#tomcat iwkse (~iwkse@unaffiliated/iwkse)
16:30.10iwkseHi, i'm trying to install Tomcat 5.5 on Debian Lenny, Java 6 but there's some problems to start it. It looks like a PATH issue because java.lang.classNotFoundException: org.apache.catalina.startup.Bootstrap
16:30.45iwkseactually i changed the default PATH in /etc/default/tomcat5.5 in the way of:
16:31.22iwkseJAVA_HOME=/usr/lib/jvm/java-6-sun
16:31.46iwkseCATALINA_BASE=/home/www/lib/tomcat5.5
16:31.57iwksein the same way i modified the init script
16:32.15iwksethere's a better way to debug it? (i'm new to java)
16:34.20*** join/#tomcat km (~km@little-black-box.vmware.com)
16:41.49PepperBobiwkse: you installed java and tomcat from the debian repos?
16:41.56iwksePepperBob: yes
16:42.23iwksePepperBob: it's broken from there?
16:42.55PepperBobiwkse: no should work out of the box. you started tomcat with the init script?
16:42.56*** join/#tomcat randrewj (~raj-user@user-160u6q7.cable.mindspring.com)
16:43.03iwksePepperBob: yes
16:43.21iwkse/etc/init.d/tomcat5.5 start
16:43.24PepperBobiwkse: and it doesn't start?
16:43.42iwksePepperBob: no it doesn't and give such error in the syslog
16:44.04iwksePepperBob: as i wrote i had to change path
16:44.18iwksePepperBob: but i did test with the default path and doesn't work the same
16:45.18PepperBobiwkse: the env part of my startup script looks like http://pastie.org/1398261
16:46.52PepperBobcompared to yours: any difference?
16:47.16iwksePepperBob: yes..there's a tiny difference in the export JAVA_HOME
16:47.26iwksePepperBob: i just have export JAVA_HOME
16:48.02iwksei can try to set it as yours
16:48.07PepperBobwell, give it a try
16:50.25iwksePepperBob: it doesn't :|
16:50.53PepperBobiwkse: do you start that with "sudo /etc/init.d/tomcat5.5"?
16:51.02iwksees
16:51.04iwkseyes
16:51.06iwkseand add start
16:51.09PepperBobiwkse: ahhh!
16:51.18PepperBobiwkse: sudo su to root
16:51.19iwksewhy?
16:51.21PepperBoband start again
16:51.24iwkseah
16:51.58iwksePepperBob: it doesn't change
16:52.31PepperBobdamnit. i see i added the JAVA_HOME=.. to /etc/environment -  but i think that was only to fix the issue with sudo
16:52.55iwksei added too in /etc/profile
16:53.46PepperBobiwkse: i added this to environment so that it is available for cron job too
16:53.57iwksePepperBob: ah ok
16:54.01iwksei'll change it
16:55.18PepperBobiwkse: before running the startup script you might want to make sure that JAVA_HOME is set - it's weird that it doesn't run out of the box. but it's merely a debian issue
16:56.23iwksePepperBob: yes i checked now
16:56.34iwksePepperBob: JAVA_HOME is set
16:56.41iwksebut still it doesn't work
16:57.02iwksestill the same erorr
16:57.09iwksejava.lang.classNotFoundException: org.apache.catalina.startup.Bootstrap
16:57.21iwkselooks like CATALINA_HOME is not set properly
16:57.23iwkseor something like that
16:57.42*** join/#tomcat AJC_Z0 (~AJC_Z0@ip68-110-245-153.dc.dc.cox.net)
16:57.42*** join/#tomcat AJC_Z0 (~AJC_Z0@pdpc/supporter/professional/ajz0)
16:57.49iwksebecause the bootstrap.jar should be inside of tomcat
16:58.26PepperBobiwkse: i double checked. no more changes to the env stuff...
17:00.01PepperBobiwkse: can you post the output of java -version
17:00.13iwksePepperBob: yes
17:00.43iwksejava version "1.6.0_22"
17:00.44iwkseJava(TM) SE Runtime Environment (build 1.6.0_22-b04)
17:00.44iwkseJava HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
17:01.16PepperBobiwkse: ok, running exactly the same. i suggest asking the debian folks.
17:02.53iwksePepperBob: i'll try
17:03.06PepperBobiwkse: oh just to make sure
17:03.08iwksePepperBob: can you tell me if you get something out of echo $CATALINA_HOME?
17:03.28PepperBobno, not set globally...
17:03.47iwksei see
17:04.05PepperBobdpkg -l | grep tomcat
17:04.06PepperBobhttp://pastie.org/1398311
17:04.12PepperBobyou have all those packages?
17:04.52PepperBobi mean it should have it installed automatically... but you never know..
17:05.03iwksePepperBob: exactly the same, i just have a more package, the webapps
17:05.24PepperBobwell ok, i left this. yeah - ask #debian - maybe someone has a clue
17:06.13iwksePepperBob: that's anyway for your help
17:06.19iwksePepperBob: i'll try in #debian
17:06.20iwkse:-)
17:06.35PepperBobyou're welcome. good luck,.
17:07.49iwksethx
17:25.04iwksePepperBob: i managed to make it runs
17:25.13PepperBobso what was it?
17:25.15iwksePepperBob: i remove the packages and installed again
17:25.24iwksePepperBob: and left the default configuration
17:25.26PepperBobiwkse: yeah - simple but effective ;)
17:25.44iwksePepperBob: yes but what i needs is..just to separate the wepapps dir
17:25.53iwksePepperBob: because it has to the in the user www
17:26.05iwksePepperBob: i saw there's an ENV var that should control that :)
17:26.13PepperBobhehe .. again :D
17:26.14iwksePepperBob: so it could be just easy to change only this one
17:27.42iwkseshould be CATALINA_BASE
17:27.46iwkselet's see if it works :)
17:28.25iwkseseems ye
17:28.26iwkse:-)
17:37.32*** join/#tomcat netstak (~objectwav@unaffiliated/netstak)
17:37.35*** join/#tomcat ats (~ats@amreg.logitech.com)
17:39.06netstakHi Guys, I'm having problems to start tomcat on boot, I tried to add the Symbolic link to the runlevel 3 but it didn't work, it worked just when I added Tomcar to the runlevel 5, Do you know what could be wrong?
17:40.27atsApache Tomcat 7.0.5 on Windows 7 with java version "1.6.0_21". Unable to configure SSL. I am configuring it on port 8443 based on documentation provided. After configuration and restarting the Apache Tomcat 7 service I am able to connect to http://localhost:8080 but not to https://localhost:8443. Strangely http://localhost:8443 works fine
17:49.46*** join/#tomcat }ls{ (~}ls{@p4FF0A53C.dip.t-dialin.net)
18:05.06*** part/#tomcat netstak (~objectwav@unaffiliated/netstak)
18:15.22*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-138-53.netcologne.de)
18:27.19*** join/#tomcat jasonb (~jasonb@12.201.129.162)
18:36.54*** join/#tomcat km (~km@little-black-box.vmware.com)
18:48.57*** join/#tomcat acidjnk (havenone@46-229-103-86.dynamic.dsl.tng.de)
19:37.39*** part/#tomcat randrewj (~raj-user@user-160u6q7.cable.mindspring.com)
20:19.14*** join/#tomcat silbo (~quassel@90.132.191.90.dyn.estpak.ee)
20:30.43*** join/#tomcat silbo (~quassel@90.132.191.90.dyn.estpak.ee)
20:54.40*** join/#tomcat LeoAtWork_ (~Leonardo@186.220.128.246)
20:58.33*** join/#tomcat rmrfslash (~quassel@140.247.89.20)
21:12.10*** join/#tomcat Narcissus (~alex@unaffiliated/narcissus)
21:58.15*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-138-53.netcologne.de)
22:23.09*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-138-53.netcologne.de)
22:38.50*** join/#tomcat Boohemian (~Boohemian@c-24-60-253-179.hsd1.ma.comcast.net)
23:11.42*** join/#tomcat dvayanu (~another@p578E9EEF.dip.t-dialin.net)
23:24.25*** join/#tomcat MHSL (MHSL@cm94.sigma137.maxonline.com.sg)
23:47.10*** join/#tomcat Boohemian_ (~Boohemian@209-6-67-222.c3-0.abr-ubr1.sbo-abr.ma.cable.rcn.com)
23:57.35*** join/#tomcat dvayanu (~another@p578E9EEF.dip.t-dialin.net)

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