IRC log for #tomcat on 20080125

00:43.18dec3pti0ndoes the JkMount need to be inside a vhost ?
00:44.13lykenavoid mod_jk if you can
00:44.30dec3pti0nwhat do u use ?
00:52.09pfnjkmount can appear in a vhost or outside
00:52.21pfnmod_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.47ryoohkiis 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.20lykenuse the rpmsthat are in the topic on webdriod
01:45.23lykenrelocatable and good
02:22.34ryoohkiis 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.18ryoohki<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.53ryoohkiis 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.19kaos01why is mod_proxy_ajp prefered ?
04:36.01lykencause it doesnt suck
04:36.06lykenits easy to setup, you can debug it
04:36.08kaos01http://wiki.apache.org/tomcat/FAQ/Connectors
04:36.10lykenwhen you follow the instructions it actually works
04:36.30lykenandif you're usuing 2.2.x apache its fast
04:43.09*** join/#tomcat acidjnk (i=acid@p5B3F3083.dip0.t-ipconnect.de)
04:48.51marx2kI 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.43marx2knever mind. I figured out a better way :)
05:21.58*** join/#tomcat Base2 (n=Base2@mail.palantirtech.com)
05:23.18Base2Im 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.34Base2nevermind
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.09kynphleeI 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.27SteinHello, 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.30SteinService.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.54Oliber_do the services work on their own?
09:09.11SteinYes, one at a time.
09:09.44*** join/#tomcat marx2k (n=marx2k@24-158-13-251.dhcp.mdsn.wi.charter.com)
09:10.01Oliber_have you turned the logging level to max?
09:10.03marx2kAnyone know how to change the default Tomcat welcome page to point to my own webapp?
09:10.24SteinNo, that was a good idea, where do I do that?
09:10.43Oliber_logging.properties iirc
09:10.52Oliber_(hardly use tc myself)
09:10.59Oliber_or java for that matter..
09:13.10marx2kAnyone?
09:13.30kjkoster5489marx2k: 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.59marx2kgotcha
09:15.05marx2kthough I do not see a context.xml anywhere within /webapps/ROOT :(
09:22.15GroovyBobmarx2k: you can also add a index.html file to the root folder, that points to your webapp url
09:23.14kjkoster5489context.xml is stored somewhere below $TOMCAT_HOME/conf
09:23.20marx2kHmm, 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.40marx2kyeah 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.09marx2kHm strange... I edited index.html and it isnt pointing me to my own app. Just keeps showing me index.html
09:26.50GroovyBobyou mean index.jsp now?
09:27.13marx2kno, index.html
09:27.19marx2kI kept index.jsp as is
09:27.43*** join/#tomcat tomisina (n=tomisina@c-24-3-194-97.hsd1.pa.comcast.net)
09:27.52marx2kbut 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.02marx2kbut for some reason I am still seeing index.htmlk
09:28.10marx2kmaybe I should clear my browser cashe... hang on
09:28.37marx2kNope... that didnt work
09:28.55marx2kI wonder why it's still serving the same index.html even though I just wiped it and remade it from scratch
09:29.22marx2koh haha I know why... durr... Im editing it in /webapps/build/ROOT
09:29.42GroovyBob:)
09:29.48marx2khah now it works
09:29.55marx2k:D
09:30.01marx2kthanks for your help!
09:30.17GroovyBobnp
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.31torrwhat 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.53a4akbahi
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.21a4akbahi
11:22.10kjkoster5489torr: define service
11:24.05*** join/#tomcat alk^ttn (n=cc@87-194-94-237.bethere.co.uk)
11:57.36a4akbalyken: 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.27MHSLtorr, 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.52dec3pti0nwhat is the tomcat directive for creating an alias ? kind like the apache ServerAlias directive
15:15.49randrewdec3pti0n: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
15:16.51a4akbarandrew hi
15:20.21randrewhello
15:21.56a4akbasup
15:30.29randrewa4akba: Identity 2.0
15:30.38randrewa4akba: what a gimmick
15:34.19dec3pti0nthanks
15:38.17a4akbaL)
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.16a4akbahi
16:37.15a4akbahow is it going
16:49.30*** join/#tomcat Arol (i=z@89.137.18.114)
16:49.42Arolhello, can I run tomcat under port 443?
16:57.43a4akbay
16:58.31Arolhow?:)
17:04.15andytgoogle ssl tomcat
17:14.34marx2ktomcat doesnt do php does it?
17:15.14barnumno
17:15.37barnumapache does php and can hand off to tocmat if thats really what you need
17:15.47barnumbut php is bad mmkay?
17:41.07*** join/#tomcat Stevo_Slavic (n=chatzill@80.74.164.150)
17:41.31Stevohello
17:41.58a4akbahi
17:42.23Stevoanyone willing to help?
17:49.27*** join/#tomcat }btorch{ (i=}btorch{@gateway/tor/x-eb8938e3edc2c4cf)
17:57.09Stevoanyone
17:58.32barnumthe way it works here is you ask your question and someone who knows about it will probably chime in with some assistance
17:58.45barnumhowever 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.37marx2kDoes anyone know if it's possible to dynamically put info into a JSP's <%@ include directive?
18:18.56marx2kLike, I want the JSP to load <%@ include file=myStringvariable %>
18:18.59marx2kis that possible?
18:26.51Stevowhat 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.44marx2kI get that error all the time. Googling around tells me not to worry about it
18:30.34Stevomarx2k, why not use jstl, c:import
18:33.29marx2kI dont know jstl
18:35.00Stevoi'm not sure if you can use expression language in jsp tags, but try
18:35.22Stevoinstead of just putting myStringvariable use ${myStringvariable }
18:36.00Stevohere you can find example
18:36.02Stevohttp://forum.java.sun.com/thread.jspa?threadID=708763&messageID=4104044
18:36.26Stevo<c:forEach var="service" items='${sessionScope.menu.menuServices["services"]}'>
18:36.28Stevo<PROTECTED>
18:36.29Stevo<PROTECTED>
18:36.31Stevo<PROTECTED>
18:36.33Stevo</c:forEach>
18:36.39Stevothis is with jstl
18:37.11marx2kOoh I will have to give that a shot!
18:37.14marx2kThanks for the info!
18:37.24Stevoyou're welcome
18:37.52StevoINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
18:38.16Stevowhich library is Tomcat referring to?
18:39.47marx2khttp://threebit.net/mail-archive/tomcat-users/msg03681.html
18:40.16Stevogreat
18:40.20Stevothank you
18:48.25Stevoi 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.11kuchchaanyone installed tomcat on ubuntu-gutsy
19:12.39*** join/#tomcat deebo (i=globe@funkiest.net)
19:19.14andytyeah
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.33kuchchahey
21:18.44kuchchahow to add ur directory to tomcat list
21:19.09kuchchaso we can access /home/user/jsp/index.jsp as localhost/jsp/index.jsp
21:33.48randrewOne 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.06kelthi, I was wondering what the industry standard for proxying apache and tomcat is?
23:18.26jasonbMore specifically what are you asking about doing?
23:18.37keltwell I know people use mod_jk
23:18.49keltbut could you not just do a ProxyPass and ProxyPassReverse in apache?
23:18.54keltand accomplish the same thing?
23:18.59pfnthat would be a proxy over http
23:19.02pfnwhich is suboptimal
23:19.25keltyou maen like performance wise?
23:19.31jasonbpfn: It's actually not really different in performance nor scalability.
23:19.44pfnjasonb, is that so... interesting
23:19.51pfnajp is a binary protocol
23:19.52jasonbkelt: Have a look at my connector benchmarks here: http://www.oreilly.com/catalog/9780596101060/chapter/index.html
23:20.02keltokay...
23:20.03jasonbpfn: It is indeed so.  See my benchmarks.
23:20.04pfnso at the very least it's more scalable on a network-point-of-view
23:20.11jasonb"it"?
23:20.15pfnajp
23:20.23jasonbHow is it more scalable?
23:20.32pfnsimple, it takes less network traffic
23:20.37keltso you are forced to encrypt ajp then?
23:20.42pfnkelt no
23:20.45keltusing a secure tunnel?
23:20.53keltpfn: is ajp encrypted?
23:20.57pfnwell, you wouldn't want to proxy ajp over the internet
23:21.16keltyes, well in industry ajp will be assumed to be sent over internet
23:21.18jasonbpfn: 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.29kelt(at least in my case) ... lol
23:21.43kelthmm...
23:21.46keltwell...
23:21.47pfnkelt, industry doesn't assume that--say what
23:22.30keltI 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.26jasonbYou'll want the HTTPS server to be the first-contact web server.
23:23.27pfnjasonb, 5842 req/s vs. 4647 req/s is insignificant?
23:23.32keltpfn: 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.53jasonbpfn: Percentage-wise, it's not significant.  Look at my summary at the end of the benchmarks.
23:24.06pfnpercentage-wise?
23:24.16pfn25% performance increase is insignificant
23:24.26kelthmm..
23:24.30keltso you ahve benchmarks?
23:24.42keltoh I see... I'll have a look
23:26.10keltuh...
23:26.13keltI see a book
23:26.17keltlol
23:26.24pfnkelt read the free chapter 4
23:26.47pfn1541 vs 1439 isn't a big difference, though
23:26.53pfndepends on your load profile, I suppose
23:26.55kelthmm.. apachebench?
23:27.30keltI don't see why people use apache as a proxy anyway... lol
23:27.46pfnindeed, it should be something lighter weight
23:27.50keltwhy not just go straight to 8443?
23:28.19pfnbecause you have to specify the port #, duh
23:28.24keltor even just route traffic from 443 to 8443 using iptables or soemthing if you don't want a port number
23:28.37pfnyes, that would be optimal, imo
23:28.47keltlol
23:28.52pfnapache isn't very exciting as a media-server
23:29.07pfnif you need a high performance media server, it should be wight lighttpd or nginx, etc.
23:29.30keltI think we do it here ... because we just use apache as a DMZ to everything lol
23:29.47keltwhat do you mean high performance media server?
23:30.03pfnserving static content, e.g. images, html, etc.
23:30.15pfnstuff that isn't dynamically generated
23:30.37pfns/wight/width
23:30.40pfnugh, with
23:30.46keltuh...
23:30.48kelthmm...
23:30.49keltokay.
23:31.46keltyeah... they way they want to do it is use ajp with a secure tunnel... lol...
23:32.02pfnthat's rather overkill
23:32.06pfnunless your dmz is full of holes
23:32.19keltwell traffic goes outside the dmz
23:33.00keltso I'm not sure if I should suggest to them something else... or not...
23:33.09keltthese benchmark tests look neat
23:33.10pfnyou mean it goes out as in: internet <- dmz <- internal
23:33.20keltthanks for them jasonb
23:33.56keltpfn: as in internal_1 -> dmz_1 -> internet -> dmz_2 -> internal_2
23:34.09pfnthat's pretty fucked up
23:34.26keltwhy is that?
23:34.43pfnwhy are dmz_1 and 2 communicating over the internet?
23:35.25keltclustering? I donno... *shrugs*
23:35.27kelthey..
23:36.34keltdo 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.08kelt(basically if something messes up as far as an ejb takes too long to execute or something I get an email
23:37.20keltany suggestions?
23:38.09pfnyou're asking about monitoring
23:38.14keltyea
23:38.21keltpretty much
23:38.21keltlol
23:38.31keltdoes JMeter do that?
23:38.50pfnno
23:38.57pfnwhat you need is something that logs performance counters
23:39.04pfnand then use something like swatch to raise snmp traps
23:42.26*** join/#tomcat }btorch{ (i=}btorch{@gateway/tor/x-2bb9498b4ba18940)
23:43.18keltswatch isn't anything to do with jboss?
23:43.26kelterr tomcat I mean
23:44.48pfnindependent
23:45.25keltyeah I'm looking at the site
23:45.45keltso there isn't like a timing and performance monitor tool for tomcat or jboss
23:46.02kelthmm... man, that seems... kinda like it would have a lot of support
23:46.07keltlike a lot of people would want that
23:46.45keltI 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.00keltor something like that?
23:47.19pfnlook at mbeans are available
23:47.36pfnif it's not there, then you'll need to add something
23:49.11keltit looks like on the AMD64
23:49.24keltthat mod_proxy_http and mod_proxy_ajp out did mod_jk
23:49.33keltunless I'm reading that wrong
23:50.20kelt(that's on page 147)

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