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.08 | Lord_E | Tomcat 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.51 | nylon_ | lo |
05:39.09 | nylon_ | anyone use proxy rewrite? |
05:39.27 | nylon_ | i'm having problems |
05:39.41 | nylon_ | running IIS on port 81 |
05:39.56 | nylon_ | running apache on port 80 |
05:40.23 | nylon_ | all links from IIS are written as http://page:81 |
05:40.39 | nylon_ | i don't want the 81 in the resulting path link |
05:40.47 | nylon_ | what must i do? |
05:55.54 | *** join/#tomcat optraz (n=cyzie@47.101.48.60.wmu01-home.tm.net.my) |
05:56.21 | optraz | hi, 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.53 | optraz | hi, 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.09 | Rembane | Good 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.34 | Rembane | OS: 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.25 | killerbun | Im getting a WARNING: Exception Processing ErrorPage[errorCode=404, location=/jsp/error/404.jsp] and a clientAbortException |
09:13.49 | killerbun | I know its due to a missing img/css/js, but i dont know which and from where. |
09:14.06 | killerbun | How can i find out which request caused the 404? |
09:26.42 | kjkoster5489 | killerbun: check the acces log |
09:26.52 | kjkoster5489 | If it is not enabled, enable it in server.xml |
09:26.54 | killerbun | kjkoster5489, tanks |
09:26.58 | kjkoster5489 | logvalve |
09:26.59 | killerbun | will 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.36 | frego | Hello, I want to have a class that extends HttpServlet. But I want to have this class coded inline (<%! %>). Is it possible? |
11:00.58 | deebo | what |
11:01.07 | deebo | all jsp's are servlets |
11:02.32 | frego | but if you want to extend HttpServlet, you need to map it in web.xml, am i correct? |
11:06.02 | deebo | i have no idea what you actually want |
11:06.05 | deebo | and why would you want that |
11:06.32 | frego | sorry, I am a bit confused as well |
11:07.01 | frego | I have a jsp page (single file), in which I have some java code inside (using <%! %>) |
11:07.23 | frego | I want to make a new class to extend HttpServlet to make a custom doGET and doPOST |
11:07.56 | frego | But how can I tell the jsp page to use my new class |
11:08.31 | frego | if I do <%@ ... extends="myclass" ..., I have a Unable to compile class error |
11:08.39 | deebo | you dont, thats bad design |
11:09.09 | frego | I know it's bad design, but I need to have all the code in a single jsp page |
11:09.15 | frego | not a regular war file |
11:09.28 | deebo | i wont help you shoot yourself in the foot |
11:09.33 | deebo | doubt if its even possible |
11:10.19 | frego | I am making an SOCKS5 proxy within an HTTP tunnel |
11:10.56 | frego | and I want it to be in a single jsp page, I can easily upload |
11:11.59 | deebo | use php then |
11:12.17 | frego | I already have a working php version |
11:12.29 | frego | I 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.50 | frego | I have a second question also |
11:17.35 | frego | supposing 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.43 | deebo | you will get an appropriate exception |
11:43.56 | *** join/#tomcat ahughes (n=Owner@219-90-244-57.ip.adam.com.au) |
11:44.20 | ahughes | what happened to setenv.bat in tomcat v6? How can I set some environmnet params? |
11:44.29 | ahughes | startup param's I should say |
11:47.01 | *** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr) |
11:54.45 | ahughes | what do I hack the registry or something? |
11:59.53 | ahughes | anyone :'( |
12:13.24 | *** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net) |
12:40.56 | kjkoster5489 | ahughes: check out the registry suggestion here: http://java-monitor.com/forum/showthread.php?t=205 |
12:42.20 | ahughes | kjkoster5489, you are a lifesaver, thanks! |
12:42.27 | kjkoster5489 | np |
12:42.35 | kjkoster5489 | That'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.12 | C_Kode | Is this the correct channel for mod_jk issues? |
15:36.47 | *** join/#tomcat vanksi (n=vanksi@stekt2.oulu.fi) |
15:51.37 | C_Kode | mod_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.43 | C_Kode | The 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.07 | FN2zoiqoR | Hi. 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.21 | CanyonMan | (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.10 | C_Kode | refuses to answer any questions. |
17:42.15 | *** join/#tomcat TomSping (i=812e05d1@gateway/web/ajax/mibbit.com/x-7443f270412ab533) |
17:42.51 | TomSping | tomcat 6 - rhel4 - java6 ... how do I restrict who can connect to my application? |
17:44.25 | C_Kode | TomSping: like IPs? |
17:44.42 | TomSping | yeah, Im not talking about manager login |
17:44.46 | TomSping | but im talking AJP |
17:45.07 | TomSping | how do I prevent rogue server (apache servers with mod_jk) connecting to my tomcat server |
17:45.10 | C_Kode | How about Remote Address Filter |
17:45.32 | C_Kode | I'm not a guru, so I'm just guessing here. |
17:45.54 | TomSping | where do you add that? |
17:46.37 | TomSping | or better yet, rather than a deny have a allow from only list |
17:47.40 | C_Kode | http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html |
17:48.07 | TomSping | yeah I was just reading that. |
17:48.07 | C_Kode | You can allow and deny |
17:48.16 | TomSping | I hate the fact they dont give you an example.. |
17:48.42 | C_Kode | Found this, not sure how old it is |
17:48.42 | C_Kode | http://ask.metafilter.com/18978/How-to-block-IPs-in-Apache-Tomcat |
17:48.44 | TomSping | also, I usually have my webservers load balanced on remote locations |
17:48.59 | TomSping | thats the exact one I was looking at .. |
17:49.10 | C_Kode | ah |
17:49.14 | TomSping | so this is the thing.. you can block IP using regexp but my webserver are usually in different regions |
17:49.39 | C_Kode | TomSping: Thats what firewalls are for. |
17:50.16 | TomSping | I hear you... but if everytime I setup a new web/app server I have to get in touch with networking... |
17:50.19 | C_Kode | While it has the ability, I'm not sure the setting was meant to be a firewall. |
17:50.29 | TomSping | yeah, I hear ya.. |
17:50.44 | TomSping | I was reading you can fake IP pretty easily via proxy |
17:51.11 | C_Kode | Another reason to have a good firewall. They can detect ip spoofing |
17:52.08 | TomSping | A 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.25 | TomSping | hmm |
17:53.17 | TomSping | <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="61\.145\.233\.118|61\.234\.323\.232" /> |
17:53.22 | TomSping | I wonder if that will work |
17:53.29 | C_Kode | Are you running this on Linux? |
17:54.05 | TomSping | yeah |
17:54.06 | TomSping | rhel |
17:54.32 | C_Kode | use iptables to block any all ips except the ones you want for those ports. |
17:55.44 | TomSping | yeah, that probably the cleanest way to do it.. |
17:55.55 | TomSping | but then I have to contact linux admin |
17:56.05 | C_Kode | and easily replicated accross many servers. |
17:56.08 | C_Kode | lol |
17:56.11 | TomSping | I just wanted to know if there was a way I can do it without contacting other ppl |
17:56.18 | TomSping | its a wierd situation ;) |
17:56.26 | TomSping | its not like I cant do it.. |
17:56.30 | C_Kode | It's not in your best interest to firewall with tomcat hehe |
17:56.30 | TomSping | they dont want me doing it |
17:57.36 | TomSping | let me go play with this valve while I have 15 minutes to spare.. |
17:57.43 | TomSping | I will report back if I have any luck |
18:09.01 | TomSping | holy shnikes, I got it work |
18:09.26 | C_Kode | congrats |
18:09.45 | TomSping | danke for your help |
18:10.19 | C_Kode | you're lucky to get anything out me in this channel hah |
18:10.44 | TomSping | I take what I can get.. |
18:10.49 | TomSping | there 55 ppl in here |
18:10.54 | TomSping | yet no one talks |
18:17.18 | *** join/#tomcat ngauthier (n=ngauthie@12.167.154.53) |
18:18.27 | sjb| | yeah |
18:18.30 | ngauthier | Hello. 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.32 | sjb| | that's what I tried to tell that retard pfn yesterday |
18:18.54 | ngauthier | oops, sorry Java version is sun 1.6. |
18:19.23 | TomSping | logs not being written to is another problem |
18:19.33 | ngauthier | Tomcat 5.5.25-5ubuntu1.2 |
18:19.33 | TomSping | the reason your SSL is not working should be listen in the logs |
18:19.42 | TomSping | fix the log problem and that will help resolve the SSL.. |
18:19.42 | ngauthier | TomSping, yes, I think so too. |
18:19.53 | TomSping | most of the times is something wrong with teh keystore.. |
18:19.58 | ngauthier | TomSping, right. My thoughts exactly. Seen this before? |
18:20.05 | TomSping | either invalid path, or password, either way fix logs |
18:20.16 | C_Kode | permissions to write the logs? |
18:20.17 | ngauthier | TomSping, it's hard to debug the log problem when I can't read the logs :-D |
18:20.19 | TomSping | I dont think I understand the for some reason |
18:20.36 | TomSping | well, I suggest you back track |
18:20.42 | TomSping | undo or comment out SSL changes |
18:20.56 | ngauthier | yep. Done that. 8080 works fine |
18:21.11 | TomSping | so you have a healthy catalina.out? |
18:21.27 | ngauthier | C_Kode, permissions on the log files and folder at tomcatt55::nogroup, 500 |
18:21.47 | ngauthier | TomSping, 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.39 | TomSping | okay, |
18:22.45 | TomSping | but is it logging correctly? |
18:22.51 | TomSping | start/stop container and see if it logs there |
18:23.25 | ngauthier | /etc/init.d/tomcat5.5 restart yeilds clean output |
18:23.46 | ngauthier | I re-ran chown -R tomcat55:nogroup on /var/lib/tomcat5.5 and /var/log/tomcat5.5 |
18:23.54 | ngauthier | and restarted. |
18:24.11 | ngauthier | TomSping, thanks for your help by the way, you are being very responsive and it is very much appreciated. |
18:24.23 | TomSping | okay, so if you answer to "is the logging problem fixed" is yes |
18:24.30 | ngauthier | no |
18:24.35 | TomSping | then if you SSL errors should show up there |
18:24.46 | ngauthier | TomSping, it is still not logging anything. |
18:24.56 | TomSping | okay who is the container running as? |
18:24.57 | ngauthier | TomSping, when I restart the server, it just says "done" |
18:25.15 | TomSping | make sure the perms to log dir are 'writeable' |
18:25.20 | ngauthier | TomSping, running as user tomcat55 |
18:25.28 | ngauthier | perms are 500, user is tomcat55 |
18:25.48 | ngauthier | err sorry perms are 600 |
18:25.54 | ngauthier | r-rw------- |
18:26.01 | ngauthier | -rw------- |
18:26.14 | ngauthier | so 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.59 | TomSping | did you undo the SSL changes in the conf? |
18:29.14 | ngauthier | TomSping, yes |
18:31.59 | *** join/#tomcat da_krowa (i=Miranda@chello089078230060.chello.pl) |
18:43.51 | C_Kode | Does messages report any errors while trying to start tomcat? |
18:45.09 | ngauthier | C_Kode, nope, it just says "...done." |
18:45.25 | C_Kode | in /var/log/messages? |
18:46.26 | ngauthier | C_Kode, nothing is output when I tail -f /var/log/messages then run tomcat restart |
18:48.17 | C_Kode | Where is ...done coming from? |
18:52.44 | ngauthier | "> /etc/init.d/tomcat55 restart" |
18:56.46 | *** join/#tomcat soa2ii (n=quassel@i59F54479.versanet.de) |
18:57.30 | C_Kode | What PID is it running under? |
18:59.14 | ngauthier | C_Kode, "root 31819 0.0 0.1 16516 368 ? Ss 18:46 0:00 /usr/bin/jsvc -user tomcat55 ..." |
18:59.35 | C_Kode | Once you find that goto /proc/(PIDNUMBER)/fd |
18:59.47 | C_Kode | You have it running as root? |
19:00.04 | ngauthier | root runs the jsvc which then runs it under user tomcat55 |
19:00.08 | C_Kode | Do this |
19:00.10 | ngauthier | see the end of the line I pasted |
19:00.24 | C_Kode | lsof | grep tomcat55 | grep log |
19:00.49 | C_Kode | You should get a list of log files it has open. (if any) |
19:01.11 | ngauthier | C_Kode, two entries, each pointing to the same file: /usr/share/java/commons-logging-api-1.1.jar |
19:01.26 | C_Kode | You don't see any .log files? |
19:01.46 | C_Kode | It's not opening any logfiles then. |
19:02.26 | ngauthier | yeah |
19:03.05 | C_Kode | You should start looking at your configs. It appears you have logging turned off or something. |
19:03.05 | C_Kode | Did it just stop logging? |
19:03.05 | C_Kode | Or never started |
19:04.25 | TomSping | check in the catalina.sh |
19:04.29 | TomSping | thats the first place I would look |
19:04.38 | TomSping | I dont think you messed with anything there |
19:04.41 | TomSping | for SSL |
19:05.03 | C_Kode | Is the server even functioning properly? |
19:06.24 | ngauthier | C_Kode, yes, it serves up content on port 8080 |
19:06.41 | ngauthier | TomSping, catalina.sh has not been modified, I am not sure what to look for |
19:06.58 | TomSping | when did logging stop working properly |
19:07.04 | TomSping | was it after you made the SSL changes? |
19:07.24 | ngauthier | I think so |
19:08.46 | TomSping | this is why you should make backups for configs before you modify them |
19:09.03 | TomSping | running a diff against two conf files saves you allot of time |
19:09.04 | ngauthier | I copied and commented out the originals |
19:09.13 | TomSping | then roll back.. |
19:09.16 | TomSping | to last know working copy |
19:09.16 | ngauthier | I did |
19:09.24 | ngauthier | that's what I am running :-/ |
19:09.59 | TomSping | well what is the last date in the logs you have running |
19:10.56 | ngauthier | last night at 7:13pm |
19:11.12 | ngauthier | I just read through all the files in /etc/tomcat55 timestamped after that point |
19:12.00 | TomSping | when did you make the SSL changes? |
19:12.08 | ngauthier | this morning |
19:14.48 | TomSping | I dunno, double check that you rolled back properly.. |
19:15.07 | ngauthier | TomSping, yeah. I'm going to try the setup on another computer too |
19:15.35 | TomSping | yeah, when you have it setup.. SSL problems are usually logged in detail |
19:15.57 | C_Kode | Do you have a backup of the configs? |
19:16.02 | C_Kode | A real backup |
19:16.14 | C_Kode | from tape, disk to disk backup |
19:16.34 | ngauthier | C_Kode, no. I just made a few modifications to the default config. It's a test setup, so it is very simple |
19:17.24 | C_Kode | It's odd that nothing would log. When is the last time you restarted this server? Maybe the issue is deeper than tomcat |
19:17.47 | ngauthier | C_Kode, you mean physical restart? never. It is less than a month old |
19:17.51 | ngauthier | it is a VPS |
19:18.39 | C_Kode | Maybe a physical restart is in order. I find it extremely odd that it servers up stuff, but cannot open any logs whatsoever. |
19:25.58 | ngauthier | C_Kode, it is now working on the other computer |
19:26.23 | C_Kode | what is working on the other computer? There are two of them? |
19:26.33 | ngauthier | SSL |
19:26.37 | C_Kode | Is it logging? |
19:26.39 | ngauthier | I have a development and a staging box |
19:26.53 | ngauthier | I was trying to get SSL working on development before putting tomcat on staging |
19:27.02 | ngauthier | so I just deployed tomcat to staging and enabled ssl |
19:27.23 | C_Kode | Somethng is screwed up in your testing then. |
19:27.29 | C_Kode | Did you restart it? |
19:28.19 | ngauthier | yeah I did |
19:28.22 | ngauthier | still no logs :-( |
19:28.36 | ngauthier | I probably just messed something up I can't find |
19:28.46 | ngauthier | I'll just redeploy the application and reinstall tomcat |
19:28.46 | C_Kode | So deploy staging on testing! |
19:28.54 | ngauthier | lol it's not that easy |
19:29.02 | C_Kode | rsync -> :P |
19:29.06 | C_Kode | :D |
19:29.18 | ngauthier | hahahaha |
19:29.35 | ngauthier | rsync my_server:/ other_server:/ --delete = recipe for disaster (and muffins) |
19:30.05 | C_Kode | rsync -avz /dev/null server:/ |
19:30.30 | ngauthier | yeah, make sure it put in the -z flag, that'll save you loads since /dev/null is all 0s. |
19:30.37 | ngauthier | all 0s compress well |
19:30.48 | C_Kode | yep. |
19:32.36 | TomSping | I step away for a sec |
19:32.43 | TomSping | and there alls sorts of helpfull info |
19:32.51 | TomSping | being shared |
19:33.21 | C_Kode | TomSping: what like compressing /dev/null's zeros while you rsync them? :P |
19:35.00 | TomSping | yeah... |
19:35.07 | TomSping | heh |
19:35.24 | TomSping | I saw another command recently that was pretty awesome to |
19:35.48 | TomSping | it involved dev null and im glad I can't remember it right now |
19:35.58 | TomSping | it could never be used for the power of good |
19:39.19 | ngauthier | I 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.34 | ngauthier | so then when people come to my desk |
19:39.46 | ngauthier | and ask me if X does Y and it is a silly question |
19:39.51 | ngauthier | I say, "hold on a sec" |
19:39.58 | ngauthier | and type "$> does X do Y?" |
19:40.02 | ngauthier | and it says "hells yeah" |
19:40.31 | philihp | i think you can do that with the "yes" command |
19:41.26 | TomSping | heh |
19:41.41 | kerouac | beer + tomcat == good work environment |
19:42.07 | TomSping | http://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.57 | TomSping | aint no party like a tomcat party |
19:43.28 | C_Kode | prefers whiskey + anything that doesn't result in spontaneous combustion |
19:43.49 | TomSping | bourbon > whiskey |
19:44.32 | philihp | so 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.48 | C_Kode | Jack Daniels kentucky straight bourbon |
19:44.54 | TomSping | yeap |
19:45.32 | TomSping | philihph: http://tinyurl.com/c7ddqr |
19:46.34 | philihp | heh. |
20:01.46 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
20:03.40 | *** join/#tomcat tom17bombadil_ (n=tom@BAAc8fa.baa.pppool.de) |
20:29.05 | atpa8a | hmm |
20:30.37 | atpa8a | trying to configure the SSL connector... there's a key in %HOME%/.keystore... but i cannot connect via https |
20:30.40 | atpa8a | any hints? |
20:32.37 | atpa8a | the admin app shows [Key|Trust][Store|Type] as null |
20:52.08 | CanyonMan | neat, 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.25 | jmut | hi. how can I setup tomcat application to be served for specific domain port |
21:23.49 | BillyBop | Hi, 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.07 | kjkoster5489 | BillyBop: just delete them if you want to. |
21:25.18 | kjkoster5489 | jmut: what is a domain port? |
21:25.39 | jmut | kjkoster5489: I mean specific domain and port |
21:26.01 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
21:26.33 | kjkoster5489 | jmut: have you looked at -- and read the documentation of -- server.xml? |
21:27.06 | jmut | I am currently using conf/Catalina/localhost I guess should be conf/Catalina/example.com/... |
21:27.09 | jmut | yep. will do |
21:31.39 | jmut | tomcat 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.29 | atpa8a | can anyone help with ssl configuration? |
21:55.32 | BillyBop | atpa8a: hum, I just did it, what do you want to do? |
21:56.04 | BillyBop | atpa8a: I'm absolutly not an expert , I'm begining with tomcat |
21:56.47 | atpa8a | trying to configure the SSL connector... there's a key in %HOME%/.keystore... but i cannot connect via https |
21:56.52 | atpa8a | the admin app shows [Key|Trust][Store|Type] as null |
21:57.05 | atpa8a | i get fatal error 552 |
21:57.28 | BillyBop | atpa8a: have you generated your certificate with keytool |
21:57.30 | BillyBop | ? |
21:57.47 | atpa8a | yes |
21:57.56 | atpa8a | even imported it into VM cacerts |
21:58.17 | BillyBop | ... have you selected the good alias for your key? |
21:58.53 | atpa8a | good meaning? |
21:59.35 | BillyBop | I think the alias for the certificate need to be called "tomcat" |
21:59.54 | atpa8a | i specified the alias in the connector |
22:00.19 | atpa8a | keyAlias="mykey" |
22:01.08 | atpa8a | the funny thing is that it's not the first time i do that... |
22:01.17 | BillyBop | hum, then I think I can't help you, my understanding stop here :) |
22:01.33 | atpa8a | thanks anyways :) |
22:01.39 | BillyBop | do the www user has access rights to the keystore? |
22:02.11 | atpa8a | yes |
22:02.17 | BillyBop | strange... |
22:02.17 | atpa8a | i think... i figured it out |
22:02.31 | atpa8a | all because of tcnative dll |
22:02.33 | BillyBop | no logs? |
22:02.39 | atpa8a | nothing in the logs |
22:02.43 | BillyBop | damn |
22:02.51 | atpa8a | removed tcnative and it worked |
22:03.59 | atpa8a | altho... can't access the default / page via ssl... |
22:04.13 | atpa8a | but at least it asks me if i trust the cert |
22:05.13 | BillyBop | that means that the certificate is found by tomcat then no? |
22:06.13 | atpa8a | correct |
22:06.27 | atpa8a | hmm |
22:06.39 | atpa8a | actually IE did display the index page... |
22:06.51 | atpa8a | what's with opera?.. |
22:08.03 | atpa8a | just cached something funky it seems |
22:08.06 | atpa8a | thanks BillyBop |
22:09.52 | atpa8a | i hate computers :P |
22:12.23 | BillyBop | lol |
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.41 | marvi | atpa8a: I think the main reason for tcnative is to replace the SSL mnagement. |
23:10.15 | marvi | So 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.51 | Lord_E | Tomcat 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.14 | Lord_E | any help would be appreciated |
23:21.48 | marvi | Lord_E: What happens if you drop the war manually in webapps? |
23:22.30 | marvi | Does /usr/local/tomcat/webapps exist and is it writeable by the account running Ant? |
23:23.31 | Lord_E | yes it exists, and the .war file ends up in TOMCAT/webapps just fine |
23:24.14 | Lord_E | but tomcat is supposed to expand that .war on startup, right? |
23:24.35 | Lord_E | i've set deployOnStartup="true" on the <Host> in tomcat/conf/server.xml |
23:24.43 | marvi | Yes. Does Tomcat have the right permissions? |
23:24.54 | TomSping | actually take a look at the logs |
23:24.59 | marvi | The defaault is to autodeploy. |
23:25.00 | TomSping | and see how its handling the war file |
23:25.14 | Lord_E | hm, that's a good question... how do i check tomcat's permissions? |
23:25.22 | TomSping | ls -la |
23:25.28 | marvi | clean-deploy looks wierd. A subdirectory in webapps? |
23:25.36 | TomSping | ps -ef |grep java |grep <instance name> |
23:27.22 | Lord_E | hm, 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.41 | Lord_E | oh, it seems tomcat does expand the war after all... |
23:30.49 | Lord_E | still, 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.04 | Lord_E | in a web browser that is, as in http://server:8080/Entropy |
23:37.41 | Lord_E | marvi: what's weird with clean-deploy? |
23:38.42 | marvi | Lord_E: no, nothing. I misunderstood. |
23:39.12 | Lord_E | ok, what about my index.jsp? |
23:39.29 | marvi | Even if it is expanded it might not have succeeded deploying. Check the log. |
23:39.44 | Lord_E | ok, the catalina log? |
23:40.08 | marvi | yeah, or if you app has its own log file. |
23:40.30 | marvi | ls -lt --reverse in the log directory is nice when there are a lot of files. |
23:41.22 | Lord_E | hm? list by last modified? |
23:41.54 | marvi | Yes, see where you have the latest log lines . |
23:42.01 | marvi | Then tail those. |
23:45.21 | marvi | is getting ready for bed. |
23:46.44 | Lord_E | http://pastebin.com/d1b4fcf97 |
23:47.24 | marvi | Looks ok. |
23:47.40 | marvi | Are you sure index.jsp is the entry point? |
23:48.39 | Lord_E | it 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.15 | marvi | Well, maybe you can't. The servlet might grab all URI:s. |
23:50.05 | Lord_E | <PROTECTED> |
23:50.46 | Lord_E | i get error 404 - "description The requested resource () is not available." |
23:50.58 | marvi | Can you get some resource like a image os css or something? |
23:51.17 | Lord_E | i'll try |
23:51.20 | marvi | Anything new in the log? |
23:51.59 | *** join/#tomcat Inc` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net) |
23:55.13 | Lord_E | ah... found something |
23:55.18 | Lord_E | SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener |
23:55.19 | Lord_E | org.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.21 | Lord_E | ...java.lang.IllegalStateException: No persistence units parsed from {classpath*:META-INF/persistence.xml} |
23:55.59 | marvi | Ok, you have a database setup? |
23:56.03 | Lord_E | yeah |
23:56.26 | Lord_E | it works just fine on my developer machine (this one) with a local MySQL server |
23:56.40 | Lord_E | i've installed MySQL on the server too and created a database |
23:57.11 | Lord_E | same username/password and all |
23:57.34 | marvi | Can you connect to the db on the command line? |
23:57.44 | Lord_E | using mysql-admin, yes |
23:57.55 | marvi | With that user? |
23:58.04 | Lord_E | mysql -u root -p |
23:58.11 | Lord_E | and then the password |
23:58.18 | marvi | Oh, you are using root in the app too? |
23:58.22 | Lord_E | yeah |
23:58.33 | marvi | Odd. :-) |
23:59.04 | Lord_E | well, this is a bit of a hobby and i don't have anything worth protecting on the server :P |
23:59.18 | Lord_E | plus, it can't be reached from outside yet => |