00:00.54 | ats | http://fpaste.org/5Y7q/ |
00:01.34 | ats | http://fpaste.org/162e/ |
00:02.24 | jasonb | debug="0" is for far older Tomcats, like Tomcat 4.1.. |
00:02.53 | ats | ok should i remove it? |
00:03.22 | jasonb | Yes. |
00:04.15 | ats | done |
00:06.16 | jasonb | It's not able to find your keystore file C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\kcert.bin |
00:06.49 | jasonb | It's also saying that somewhere in your server.xml there is a "{1}" that really should be a port number instead. |
00:06.53 | jasonb | (probably an installer bug) |
00:09.11 | ats | About 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.26 | ats | I dont know what to say about the keystore file since I can confirm its there |
00:10.20 | jasonb | Maybe 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.34 | ats | I 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.23 | jasonb | Not necessarily on Windows 7.. I'm not sure. |
00:17.20 | jasonb | Also, what are the steps/commands you used to create your keystore and populate it? |
00:18.15 | ats | Actually 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.37 | ats | in regards to the steps I use, here it is: |
00:19.40 | ats | %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore kcert.bin |
00:23.00 | ats | BTW the error messages when I access https://localhost:8443/ are different in Chrome and Firefox. |
00:23.26 | ats | In Chrome I get Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error. |
00:24.40 | ats | Whereas in Firefox I get (Error code: ssl_error_rx_record_too_long) |
00:27.50 | jasonb | If 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.11 | ats | Oh! 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.07 | jasonb | Well, 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.52 | jasonb | I use a command more like: keytool -genkeypair -alias tomcat -keyalg RSA -keysize 1024 -validity 365 -keystore /opt/tomcat/conf/keystore |
00:36.44 | ats | ok let me try that |
00:42.56 | ats | no luck... it behaves just the same |
00:48.52 | *** join/#tomcat silbo____ (~quassel@90.132.191.90.dyn.estpak.ee) |
00:51.26 | jasonb | ats: One more thing to try: store your keystore in a directory path that does not contain any spaces. |
00:58.49 | ats | I executed the command just above.. Should connector configuration say 'keystore' or '.keystore'? |
01:00.49 | ats | i meant under the parameter 'keystoreFile=' |
01:03.02 | *** join/#tomcat hex` (~hex@unaffiliated/hex/x-261681) |
01:20.47 | jasonb | Ahh, 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.25 | kotique | Hi. How do I debug tomcat's ssl? |
09:10.45 | kotique | it says can't verify the certificatte, how do I know the details? |
09:56.38 | kotique | http://stackoverflow.com/questions/266606/tls-handshake-event-in-tomcat-is-there-something-like-that |
09:56.40 | kotique | crap |
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.44 | tomsreejithp | hi |
12:45.21 | tomsreejithp | my 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.21 | tomsreejithp | can 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.08 | PepperBob | hi guys |
13:21.10 | PepperBob | we' |
13:21.19 | PepperBob | re running tomcat5.5 and using jndi for connection stuff |
13:21.27 | PepperBob | database connection pooling |
13:21.44 | PepperBob | this is going via DBCP iirc |
13:21.52 | PepperBob | is there any chance to use C3P0 instead? |
13:22.23 | PepperBob | due to the project structure i have to use jndi and let tomcat manage the pooling instead of hibernate |
13:25.10 | PepperBob | from 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.03 | tomsreejithp | #springsource.com |
14:00.38 | reisi | PepperBob: context.xml, you mean you are using spring? |
14:00.55 | reisi | PepperBob: are you sure you have the pool up and running when your context starts? |
14:00.57 | PepperBob | reisi: nope, this is a jersey webapp - nothing special |
14:01.57 | reisi | PepperBob: 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.17 | PepperBob | reisi: well, hibernate looks up the jndi resource - that's fine so far |
14:02.44 | PepperBob | reisi: but i'm not satisfied with dbcp which is used as the default pooling for tomcat, right? |
14:03.04 | reisi | PepperBob: it's the default, how come you are not satisfied with it? |
14:03.08 | PepperBob | reisi: now i thought it could be possible to use c3p0 for pooling |
14:03.26 | PepperBob | reisi: it's not that capable as c3p0 - i need more settings expecially timeouts and stuff |
14:04.25 | reisi | PepperBob: 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.38 | LabWorkey | wow |
14:05.18 | PepperBob | reisi: my context defines maxActive and maxIdle - isn't that pooling stuff? |
14:05.31 | LabWorkey | been a while since someone cold /msg'ed me in a support channel |
14:05.58 | reisi | LabWorkey: for some reason i get that like once in 1-2 days |
14:06.06 | reisi | PepperBob: that is correct |
14:06.24 | PepperBob | reisi: the issue was that one of the DBs was not available due to line outage |
14:06.53 | LabWorkey | reisi: 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.24 | LabWorkey | but if I'm idle (perhaps for days) I don't get msgs |
14:07.28 | LabWorkey | haven't for years |
14:07.29 | PepperBob | reisi: 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.16 | reisi | LabWorkey: 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.58 | reisi | PepperBob: 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.23 | PepperBob | in c3p0 there's stuff like acquireRetryAttempts and acquireRetryDelay which could help here, but it seems dbcp is quite limited here... |
14:11.16 | PepperBob | reisi: i just want to control how often and in which delays a connection attempt is made before sending a HTTP 500 |
14:12.23 | reisi | PepperBob: oki |
14:13.08 | PepperBob | reisi: can't be set using dbcp? |
14:14.30 | *** join/#tomcat sree007 (~chatzilla@220.227.26.90) |
14:22.52 | reisi | PepperBob: 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.24 | PepperBob | reisi: any hints for exchanging dbcp with c3p0? looks like there is something for tomcat7 though... |
14:24.54 | reisi | PepperBob: have you looked the jndi part of tomcat6 manual? |
14:25.28 | PepperBob | reisi: 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.16 | kotique | <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.10 | iwkse | Hi, 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.45 | iwkse | actually i changed the default PATH in /etc/default/tomcat5.5 in the way of: |
16:31.22 | iwkse | JAVA_HOME=/usr/lib/jvm/java-6-sun |
16:31.46 | iwkse | CATALINA_BASE=/home/www/lib/tomcat5.5 |
16:31.57 | iwkse | in the same way i modified the init script |
16:32.15 | iwkse | there'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.49 | PepperBob | iwkse: you installed java and tomcat from the debian repos? |
16:41.56 | iwkse | PepperBob: yes |
16:42.23 | iwkse | PepperBob: it's broken from there? |
16:42.55 | PepperBob | iwkse: 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.03 | iwkse | PepperBob: yes |
16:43.21 | iwkse | /etc/init.d/tomcat5.5 start |
16:43.24 | PepperBob | iwkse: and it doesn't start? |
16:43.42 | iwkse | PepperBob: no it doesn't and give such error in the syslog |
16:44.04 | iwkse | PepperBob: as i wrote i had to change path |
16:44.18 | iwkse | PepperBob: but i did test with the default path and doesn't work the same |
16:45.18 | PepperBob | iwkse: the env part of my startup script looks like http://pastie.org/1398261 |
16:46.52 | PepperBob | compared to yours: any difference? |
16:47.16 | iwkse | PepperBob: yes..there's a tiny difference in the export JAVA_HOME |
16:47.26 | iwkse | PepperBob: i just have export JAVA_HOME |
16:48.02 | iwkse | i can try to set it as yours |
16:48.07 | PepperBob | well, give it a try |
16:50.25 | iwkse | PepperBob: it doesn't :| |
16:50.53 | PepperBob | iwkse: do you start that with "sudo /etc/init.d/tomcat5.5"? |
16:51.02 | iwkse | es |
16:51.04 | iwkse | yes |
16:51.06 | iwkse | and add start |
16:51.09 | PepperBob | iwkse: ahhh! |
16:51.18 | PepperBob | iwkse: sudo su to root |
16:51.19 | iwkse | why? |
16:51.21 | PepperBob | and start again |
16:51.24 | iwkse | ah |
16:51.58 | iwkse | PepperBob: it doesn't change |
16:52.31 | PepperBob | damnit. i see i added the JAVA_HOME=.. to /etc/environment - but i think that was only to fix the issue with sudo |
16:52.55 | iwkse | i added too in /etc/profile |
16:53.46 | PepperBob | iwkse: i added this to environment so that it is available for cron job too |
16:53.57 | iwkse | PepperBob: ah ok |
16:54.01 | iwkse | i'll change it |
16:55.18 | PepperBob | iwkse: 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.23 | iwkse | PepperBob: yes i checked now |
16:56.34 | iwkse | PepperBob: JAVA_HOME is set |
16:56.41 | iwkse | but still it doesn't work |
16:57.02 | iwkse | still the same erorr |
16:57.09 | iwkse | java.lang.classNotFoundException: org.apache.catalina.startup.Bootstrap |
16:57.21 | iwkse | looks like CATALINA_HOME is not set properly |
16:57.23 | iwkse | or 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.49 | iwkse | because the bootstrap.jar should be inside of tomcat |
16:58.26 | PepperBob | iwkse: i double checked. no more changes to the env stuff... |
17:00.01 | PepperBob | iwkse: can you post the output of java -version |
17:00.13 | iwkse | PepperBob: yes |
17:00.43 | iwkse | java version "1.6.0_22" |
17:00.44 | iwkse | Java(TM) SE Runtime Environment (build 1.6.0_22-b04) |
17:00.44 | iwkse | Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode) |
17:01.16 | PepperBob | iwkse: ok, running exactly the same. i suggest asking the debian folks. |
17:02.53 | iwkse | PepperBob: i'll try |
17:03.06 | PepperBob | iwkse: oh just to make sure |
17:03.08 | iwkse | PepperBob: can you tell me if you get something out of echo $CATALINA_HOME? |
17:03.28 | PepperBob | no, not set globally... |
17:03.47 | iwkse | i see |
17:04.05 | PepperBob | dpkg -l | grep tomcat |
17:04.06 | PepperBob | http://pastie.org/1398311 |
17:04.12 | PepperBob | you have all those packages? |
17:04.52 | PepperBob | i mean it should have it installed automatically... but you never know.. |
17:05.03 | iwkse | PepperBob: exactly the same, i just have a more package, the webapps |
17:05.24 | PepperBob | well ok, i left this. yeah - ask #debian - maybe someone has a clue |
17:06.13 | iwkse | PepperBob: that's anyway for your help |
17:06.19 | iwkse | PepperBob: i'll try in #debian |
17:06.20 | iwkse | :-) |
17:06.35 | PepperBob | you're welcome. good luck,. |
17:07.49 | iwkse | thx |
17:25.04 | iwkse | PepperBob: i managed to make it runs |
17:25.13 | PepperBob | so what was it? |
17:25.15 | iwkse | PepperBob: i remove the packages and installed again |
17:25.24 | iwkse | PepperBob: and left the default configuration |
17:25.26 | PepperBob | iwkse: yeah - simple but effective ;) |
17:25.44 | iwkse | PepperBob: yes but what i needs is..just to separate the wepapps dir |
17:25.53 | iwkse | PepperBob: because it has to the in the user www |
17:26.05 | iwkse | PepperBob: i saw there's an ENV var that should control that :) |
17:26.13 | PepperBob | hehe .. again :D |
17:26.14 | iwkse | PepperBob: so it could be just easy to change only this one |
17:27.42 | iwkse | should be CATALINA_BASE |
17:27.46 | iwkse | let's see if it works :) |
17:28.25 | iwkse | seems ye |
17:28.26 | iwkse | :-) |
17:37.32 | *** join/#tomcat netstak (~objectwav@unaffiliated/netstak) |
17:37.35 | *** join/#tomcat ats (~ats@amreg.logitech.com) |
17:39.06 | netstak | Hi 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.27 | ats | Apache 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) |