00:43.18 | dec3pti0n | does the JkMount need to be inside a vhost ? |
00:44.13 | lyken | avoid mod_jk if you can |
00:44.30 | dec3pti0n | what do u use ? |
00:52.09 | pfn | jkmount can appear in a vhost or outside |
00:52.21 | pfn | mod_proxy_ajp is the preferred mechanism |
01:17.50 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-cbc89ab0824ea0e2) |
01:22.35 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
01:32.59 | *** join/#tomcat kanai_ (n=kanai@124.32.114.226) |
01:39.47 | ryoohki | is there a centos/rhel rpm for ant? why are these rpms, like tomcat, not part of the standard intall dvd or yum repos? |
01:45.20 | lyken | use the rpmsthat are in the topic on webdriod |
01:45.23 | lyken | relocatable and good |
02:22.34 | ryoohki | is there a centos/rhel rpm for ant? why are these rpms, like tomcat, not part of the standard intall dvd or yum repos? |
02:26.18 | ryoohki | <PROTECTED> |
02:26.40 | *** part/#tomcat ryoohki (n=ryoohki@208.96.15.252) |
02:26.50 | *** join/#tomcat ryoohki (n=ryoohki@208.96.15.252) |
02:26.53 | ryoohki | is there a centos/rhel rpm for ant? why are these rpms, like tomcat, not part of the standard intall dvd or yum repos? |
02:59.58 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
04:01.17 | *** part/#tomcat Sembiance (n=Sembianc@permafrost.telparia.com) |
04:33.19 | kaos01 | why is mod_proxy_ajp prefered ? |
04:36.01 | lyken | cause it doesnt suck |
04:36.06 | lyken | its easy to setup, you can debug it |
04:36.08 | kaos01 | http://wiki.apache.org/tomcat/FAQ/Connectors |
04:36.10 | lyken | when you follow the instructions it actually works |
04:36.30 | lyken | andif you're usuing 2.2.x apache its fast |
04:43.09 | *** join/#tomcat acidjnk (i=acid@p5B3F3083.dip0.t-ipconnect.de) |
04:48.51 | marx2k | I noticed Tomcat is serving my applications at /webapps/projectname ... but my actual project is in /webapps/projectname/web/ ... how do I deploy at that directory node instead of one node back? |
05:18.43 | marx2k | never mind. I figured out a better way :) |
05:21.58 | *** join/#tomcat Base2 (n=Base2@mail.palantirtech.com) |
05:23.18 | Base2 | Im trying to use tomcat on an application, I've done so a few times in the past but for some reason I am getting a strange error. All the logs suggest that everything is starting up fine, however when I connect to the server over http, tomcat only outputs "ERROR"... Nothing in the logs... Any ideas (Tomcat 5.5, Java 1.5, OS X.5) |
05:33.34 | Base2 | nevermind |
05:50.04 | *** join/#tomcat ^Quiddity (n=steve@c-98-198-199-37.hsd1.tx.comcast.net) |
05:50.21 | *** join/#tomcat kanai_ (n=kanai@124.32.114.226) |
05:53.42 | *** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.mn.comcast.net) |
05:54.41 | *** join/#tomcat kynphlee (i=kynphlee@1Cust1086.an1.atl16.da.uu.net) |
05:55.06 | *** join/#tomcat kynphlee (i=kynphlee@1Cust1086.an1.atl16.da.uu.net) |
05:56.09 | kynphlee | I have Tomcat 6.0.14, Java 1.6 and Windows XP, and i need some assistance |
05:59.01 | *** part/#tomcat kynphlee (i=kynphlee@1Cust1086.an1.atl16.da.uu.net) |
06:17.45 | *** part/#tomcat fifo_ (n=quintin@196.38.199.139) |
06:39.04 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
06:42.02 | *** join/#tomcat kanai__ (n=kanai@124.32.114.226) |
06:44.08 | *** join/#tomcat kanai___ (n=kanai@124.32.114.226) |
07:07.23 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
07:18.55 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
07:41.46 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
08:30.45 | *** join/#tomcat jivedude (n=vanbroej@85.255.197.32) |
08:31.20 | *** join/#tomcat nickkkkkk (n=nickkkkk@89.191.7.78) |
08:31.57 | *** part/#tomcat nickkkkkk (n=nickkkkk@89.191.7.78) |
08:38.59 | *** join/#tomcat jstephan (n=jstephan@vpndfki-2.net.uni-saarland.de) |
08:47.20 | *** join/#tomcat GroovyBob (n=nickkkkk@89.191.7.78) |
08:48.08 | *** join/#tomcat Stein (n=SEB@89.191.7.78) |
08:53.58 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
09:02.27 | Stein | Hello, I'm using TC 5.5.23 without problems on two machines: a WinXP Pro SP2 and a Windows Server 2003 R2 SP2, both with Java 1.5.0_12. My problem is setting up two tomcats side-by-side on these machines. By using service.bat from an older distribution I have managed to get two services running, but the second I start falls down again shortly afterwards. |
09:05.30 | Stein | Service.xml is edited so the ports for the two instances are different (8080, 8005 and 8009 where changed for one of them). Hava had a look in the logs, but don't see any (to me) obvious reasons for the problem. So, where to look next (or again)? |
09:07.54 | Oliber_ | do the services work on their own? |
09:09.11 | Stein | Yes, one at a time. |
09:09.44 | *** join/#tomcat marx2k (n=marx2k@24-158-13-251.dhcp.mdsn.wi.charter.com) |
09:10.01 | Oliber_ | have you turned the logging level to max? |
09:10.03 | marx2k | Anyone know how to change the default Tomcat welcome page to point to my own webapp? |
09:10.24 | Stein | No, that was a good idea, where do I do that? |
09:10.43 | Oliber_ | logging.properties iirc |
09:10.52 | Oliber_ | (hardly use tc myself) |
09:10.59 | Oliber_ | or java for that matter.. |
09:13.10 | marx2k | Anyone? |
09:13.30 | kjkoster5489 | marx2k: either replace the root webapp with yours, change root's context.xml to point to your app or use change the index.jsp in your root app to have a meta-refresh. |
09:13.59 | marx2k | gotcha |
09:15.05 | marx2k | though I do not see a context.xml anywhere within /webapps/ROOT :( |
09:22.15 | GroovyBob | marx2k: you can also add a index.html file to the root folder, that points to your webapp url |
09:23.14 | kjkoster5489 | context.xml is stored somewhere below $TOMCAT_HOME/conf |
09:23.20 | marx2k | Hmm, well I tried putting that redirect into the index.html file that was already in the /webapps/ROOT folder but that didnt work so I am going to try to do it on a blank index.html and see how that works |
09:23.40 | marx2k | yeah I noticed in context.xml there's nowhere to edit for the root tomcat app |
09:25.37 | *** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.mn.comcast.net) |
09:26.09 | marx2k | Hm strange... I edited index.html and it isnt pointing me to my own app. Just keeps showing me index.html |
09:26.50 | GroovyBob | you mean index.jsp now? |
09:27.13 | marx2k | no, index.html |
09:27.19 | marx2k | I kept index.jsp as is |
09:27.43 | *** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.pa.comcast.net) |
09:27.52 | marx2k | but now I have a naked index.html just with the basic HTML tags (HTML, BODY, HEAD) and the one meta tag that does the refresh |
09:28.02 | marx2k | but for some reason I am still seeing index.htmlk |
09:28.10 | marx2k | maybe I should clear my browser cashe... hang on |
09:28.37 | marx2k | Nope... that didnt work |
09:28.55 | marx2k | I wonder why it's still serving the same index.html even though I just wiped it and remade it from scratch |
09:29.22 | marx2k | oh haha I know why... durr... Im editing it in /webapps/build/ROOT |
09:29.42 | GroovyBob | :) |
09:29.48 | marx2k | hah now it works |
09:29.55 | marx2k | :D |
09:30.01 | marx2k | thanks for your help! |
09:30.17 | GroovyBob | np |
09:30.38 | *** join/#tomcat kanai_ (n=kanai@124.32.114.226) |
10:06.12 | *** join/#tomcat torr (n=xinu@bzq-79-176-162-77.red.bezeqint.net) |
10:06.31 | torr | what is the best way to make a service for a java app in linux? |
10:27.53 | *** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt) |
10:33.53 | a4akba | hi |
10:53.53 | *** part/#tomcat Stein (n=SEB@89.191.7.78) |
10:55.34 | *** part/#tomcat GroovyBob (n=nickkkkk@89.191.7.78) |
10:56.02 | *** join/#tomcat GroovyBob (n=nickkkkk@89.191.7.78) |
11:08.21 | a4akba | hi |
11:22.10 | kjkoster5489 | torr: define service |
11:24.05 | *** join/#tomcat alk^ttn (n=cc@87-194-94-237.bethere.co.uk) |
11:57.36 | a4akba | lyken: Hi. |
13:41.03 | *** join/#tomcat dec3pti0n (i=}btorch{@gateway/tor/x-b48f3c8f54bf9853) |
13:49.17 | *** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se) |
14:33.46 | *** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
14:58.27 | MHSL | torr, just use the nohup command to put the app in the background and without the need for an open terminal |
15:14.18 | *** join/#tomcat dec3pti0n (i=}btorch{@gateway/tor/x-a7fa154f52e78754) |
15:14.52 | dec3pti0n | what is the tomcat directive for creating an alias ? kind like the apache ServerAlias directive |
15:15.49 | randrew | dec3pti0n: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html |
15:16.51 | a4akba | randrew hi |
15:20.21 | randrew | hello |
15:21.56 | a4akba | sup |
15:30.29 | randrew | a4akba: Identity 2.0 |
15:30.38 | randrew | a4akba: what a gimmick |
15:34.19 | dec3pti0n | thanks |
15:38.17 | a4akba | L) |
16:09.17 | *** join/#tomcat }btorch{ (i=}btorch{@gateway/tor/x-1c513b344a297b90) |
16:27.39 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
16:28.16 | a4akba | hi |
16:37.15 | a4akba | how is it going |
16:49.30 | *** join/#tomcat Arol (i=z@89.137.18.114) |
16:49.42 | Arol | hello, can I run tomcat under port 443? |
16:57.43 | a4akba | y |
16:58.31 | Arol | how?:) |
17:04.15 | andyt | google ssl tomcat |
17:14.34 | marx2k | tomcat doesnt do php does it? |
17:15.14 | barnum | no |
17:15.37 | barnum | apache does php and can hand off to tocmat if thats really what you need |
17:15.47 | barnum | but php is bad mmkay? |
17:41.07 | *** join/#tomcat Stevo_Slavic (n=chatzill@80.74.164.150) |
17:41.31 | Stevo | hello |
17:41.58 | a4akba | hi |
17:42.23 | Stevo | anyone willing to help? |
17:49.27 | *** join/#tomcat }btorch{ (i=}btorch{@gateway/tor/x-eb8938e3edc2c4cf) |
17:57.09 | Stevo | anyone |
17:58.32 | barnum | the way it works here is you ask your question and someone who knows about it will probably chime in with some assistance |
17:58.45 | barnum | however most people are working or projecting or doing other things so responses might not be immediate :) |
18:06.58 | *** join/#tomcat prgrmr (n=prgrmr@bzq-79-176-182-147.red.bezeqint.net) |
18:16.29 | *** join/#tomcat gregor_k (n=a@stgt-4dbdbf62.pool.einsundeins.de) |
18:17.37 | marx2k | Does anyone know if it's possible to dynamically put info into a JSP's <%@ include directive? |
18:18.56 | marx2k | Like, I want the JSP to load <%@ include file=myStringvariable %> |
18:18.59 | marx2k | is that possible? |
18:26.51 | Stevo | what does following mean "INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path...." |
18:28.44 | marx2k | I get that error all the time. Googling around tells me not to worry about it |
18:30.34 | Stevo | marx2k, why not use jstl, c:import |
18:33.29 | marx2k | I dont know jstl |
18:35.00 | Stevo | i'm not sure if you can use expression language in jsp tags, but try |
18:35.22 | Stevo | instead of just putting myStringvariable use ${myStringvariable } |
18:36.00 | Stevo | here you can find example |
18:36.02 | Stevo | http://forum.java.sun.com/thread.jspa?threadID=708763&messageID=4104044 |
18:36.26 | Stevo | <c:forEach var="service" items='${sessionScope.menu.menuServices["services"]}'> |
18:36.28 | Stevo | <PROTECTED> |
18:36.29 | Stevo | <PROTECTED> |
18:36.31 | Stevo | <PROTECTED> |
18:36.33 | Stevo | </c:forEach> |
18:36.39 | Stevo | this is with jstl |
18:37.11 | marx2k | Ooh I will have to give that a shot! |
18:37.14 | marx2k | Thanks for the info! |
18:37.24 | Stevo | you're welcome |
18:37.52 | Stevo | INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path |
18:38.16 | Stevo | which library is Tomcat referring to? |
18:39.47 | marx2k | http://threebit.net/mail-archive/tomcat-users/msg03681.html |
18:40.16 | Stevo | great |
18:40.20 | Stevo | thank you |
18:48.25 | Stevo | i do not have /usr/local/apr/lib |
18:49.11 | *** part/#tomcat Stevo (n=chatzill@80.74.164.150) |
18:52.20 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
19:08.06 | *** join/#tomcat kuchcha (n=ak@c-24-131-65-156.hsd1.pa.comcast.net) |
19:08.11 | kuchcha | anyone installed tomcat on ubuntu-gutsy |
19:12.39 | *** join/#tomcat deebo (i=globe@funkiest.net) |
19:19.14 | andyt | yeah |
19:29.17 | *** join/#tomcat acidjnk (i=acid@p5B3F0A15.dip0.t-ipconnect.de) |
19:42.27 | *** join/#tomcat cofeineSunshine (n=justinas@78-62-4-27.ip.zebra.lt) |
20:08.22 | *** join/#tomcat mascix_ (n=opera@88.248.140.104) |
20:08.47 | *** join/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net) |
20:27.36 | *** join/#tomcat seevash (n=jixjax@adsl-219-51-90.asm.bellsouth.net) |
20:45.38 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
20:49.08 | *** part/#tomcat mascix_ (n=opera@88.248.140.104) |
21:07.28 | *** join/#tomcat snucko (n=snucko@209.213.84.10) |
21:08.33 | *** join/#tomcat kuchcha (n=ak@c-24-131-65-156.hsd1.pa.comcast.net) |
21:17.34 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
21:18.33 | kuchcha | hey |
21:18.44 | kuchcha | how to add ur directory to tomcat list |
21:19.09 | kuchcha | so we can access /home/user/jsp/index.jsp as localhost/jsp/index.jsp |
21:33.48 | randrew | One way to access /home/user/jsp/index.jsp as http://localhost/jsp/index.jsp would be to define a ROOT context with the path /home/user/. That would be awful. There are even worse ways. |
21:44.33 | *** join/#tomcat cdiggins (n=voric@66.114.114.241) |
22:02.55 | *** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu) |
22:15.43 | *** join/#tomcat acidjnk (i=acid@p5B3F0A15.dip0.t-ipconnect.de) |
22:37.54 | *** join/#tomcat acidjnk (i=acid@p5B3F0A15.dip0.t-ipconnect.de) |
23:17.40 | *** join/#tomcat kelt (n=kelt@c-68-47-129-208.hsd1.ar.comcast.net) |
23:18.06 | kelt | hi, I was wondering what the industry standard for proxying apache and tomcat is? |
23:18.26 | jasonb | More specifically what are you asking about doing? |
23:18.37 | kelt | well I know people use mod_jk |
23:18.49 | kelt | but could you not just do a ProxyPass and ProxyPassReverse in apache? |
23:18.54 | kelt | and accomplish the same thing? |
23:18.59 | pfn | that would be a proxy over http |
23:19.02 | pfn | which is suboptimal |
23:19.25 | kelt | you maen like performance wise? |
23:19.31 | jasonb | pfn: It's actually not really different in performance nor scalability. |
23:19.44 | pfn | jasonb, is that so... interesting |
23:19.51 | pfn | ajp is a binary protocol |
23:19.52 | jasonb | kelt: Have a look at my connector benchmarks here: http://www.oreilly.com/catalog/9780596101060/chapter/index.html |
23:20.02 | kelt | okay... |
23:20.03 | jasonb | pfn: It is indeed so. See my benchmarks. |
23:20.04 | pfn | so at the very least it's more scalable on a network-point-of-view |
23:20.11 | jasonb | "it"? |
23:20.15 | pfn | ajp |
23:20.23 | jasonb | How is it more scalable? |
23:20.32 | pfn | simple, it takes less network traffic |
23:20.37 | kelt | so you are forced to encrypt ajp then? |
23:20.42 | pfn | kelt no |
23:20.45 | kelt | using a secure tunnel? |
23:20.53 | kelt | pfn: is ajp encrypted? |
23:20.57 | pfn | well, you wouldn't want to proxy ajp over the internet |
23:21.16 | kelt | yes, well in industry ajp will be assumed to be sent over internet |
23:21.18 | jasonb | pfn: Considering that most people have both httpd and Tomcat either on the same machine, or on two machines with very high LAN bandwidth between them, this is actually a non-issue, and doesn't make ajp any better than http. |
23:21.29 | kelt | (at least in my case) ... lol |
23:21.43 | kelt | hmm... |
23:21.46 | kelt | well... |
23:21.47 | pfn | kelt, industry doesn't assume that--say what |
23:22.30 | kelt | I was thinking.. what if you use the SSL/TLS connector in tomcat and use ProxyPass/ProxyPassReverse in apache to proxy for that tomcat site? |
23:23.26 | jasonb | You'll want the HTTPS server to be the first-contact web server. |
23:23.27 | pfn | jasonb, 5842 req/s vs. 4647 req/s is insignificant? |
23:23.32 | kelt | pfn: alright... but I mean... if you are dealing with enterprise systems that are setup all over the world it is hard to get away with not sending stuff over the internet... so in my case we will be sending it over ... |
23:23.53 | jasonb | pfn: Percentage-wise, it's not significant. Look at my summary at the end of the benchmarks. |
23:24.06 | pfn | percentage-wise? |
23:24.16 | pfn | 25% performance increase is insignificant |
23:24.26 | kelt | hmm.. |
23:24.30 | kelt | so you ahve benchmarks? |
23:24.42 | kelt | oh I see... I'll have a look |
23:26.10 | kelt | uh... |
23:26.13 | kelt | I see a book |
23:26.17 | kelt | lol |
23:26.24 | pfn | kelt read the free chapter 4 |
23:26.47 | pfn | 1541 vs 1439 isn't a big difference, though |
23:26.53 | pfn | depends on your load profile, I suppose |
23:26.55 | kelt | hmm.. apachebench? |
23:27.30 | kelt | I don't see why people use apache as a proxy anyway... lol |
23:27.46 | pfn | indeed, it should be something lighter weight |
23:27.50 | kelt | why not just go straight to 8443? |
23:28.19 | pfn | because you have to specify the port #, duh |
23:28.24 | kelt | or even just route traffic from 443 to 8443 using iptables or soemthing if you don't want a port number |
23:28.37 | pfn | yes, that would be optimal, imo |
23:28.47 | kelt | lol |
23:28.52 | pfn | apache isn't very exciting as a media-server |
23:29.07 | pfn | if you need a high performance media server, it should be wight lighttpd or nginx, etc. |
23:29.30 | kelt | I think we do it here ... because we just use apache as a DMZ to everything lol |
23:29.47 | kelt | what do you mean high performance media server? |
23:30.03 | pfn | serving static content, e.g. images, html, etc. |
23:30.15 | pfn | stuff that isn't dynamically generated |
23:30.37 | pfn | s/wight/width |
23:30.40 | pfn | ugh, with |
23:30.46 | kelt | uh... |
23:30.48 | kelt | hmm... |
23:30.49 | kelt | okay. |
23:31.46 | kelt | yeah... they way they want to do it is use ajp with a secure tunnel... lol... |
23:32.02 | pfn | that's rather overkill |
23:32.06 | pfn | unless your dmz is full of holes |
23:32.19 | kelt | well traffic goes outside the dmz |
23:33.00 | kelt | so I'm not sure if I should suggest to them something else... or not... |
23:33.09 | kelt | these benchmark tests look neat |
23:33.10 | pfn | you mean it goes out as in: internet <- dmz <- internal |
23:33.20 | kelt | thanks for them jasonb |
23:33.56 | kelt | pfn: as in internal_1 -> dmz_1 -> internet -> dmz_2 -> internal_2 |
23:34.09 | pfn | that's pretty fucked up |
23:34.26 | kelt | why is that? |
23:34.43 | pfn | why are dmz_1 and 2 communicating over the internet? |
23:35.25 | kelt | clustering? I donno... *shrugs* |
23:35.27 | kelt | hey.. |
23:36.34 | kelt | do you guys know any good tools for benchmarking? like if I want to write an SLA and I need to benchmark based on timing and I want to make sure I never miss an SLA? |
23:37.08 | kelt | (basically if something messes up as far as an ejb takes too long to execute or something I get an email |
23:37.20 | kelt | any suggestions? |
23:38.09 | pfn | you're asking about monitoring |
23:38.14 | kelt | yea |
23:38.21 | kelt | pretty much |
23:38.21 | kelt | lol |
23:38.31 | kelt | does JMeter do that? |
23:38.50 | pfn | no |
23:38.57 | pfn | what you need is something that logs performance counters |
23:39.04 | pfn | and then use something like swatch to raise snmp traps |
23:42.26 | *** join/#tomcat }btorch{ (i=}btorch{@gateway/tor/x-2bb9498b4ba18940) |
23:43.18 | kelt | swatch isn't anything to do with jboss? |
23:43.26 | kelt | err tomcat I mean |
23:44.48 | pfn | independent |
23:45.25 | kelt | yeah I'm looking at the site |
23:45.45 | kelt | so there isn't like a timing and performance monitor tool for tomcat or jboss |
23:46.02 | kelt | hmm... man, that seems... kinda like it would have a lot of support |
23:46.07 | kelt | like a lot of people would want that |
23:46.45 | kelt | I mean can you imagine going into the jmx-console and accessing a mbean that gave you all that gave you the time it took for every process to run? |
23:47.00 | kelt | or something like that? |
23:47.19 | pfn | look at mbeans are available |
23:47.36 | pfn | if it's not there, then you'll need to add something |
23:49.11 | kelt | it looks like on the AMD64 |
23:49.24 | kelt | that mod_proxy_http and mod_proxy_ajp out did mod_jk |
23:49.33 | kelt | unless I'm reading that wrong |
23:50.20 | kelt | (that's on page 147) |