IRC log for #tomcat on 20070905

00:00.37bobbytechnope
00:01.03bobbytechall I have to do is have log4j.jar in web-inf/lib and this warning occurs
00:01.23bobbytechI think to avoid this, I need to pass log4j.defaultInitOverride=true as a system property
00:51.35*** join/#tomcat vjvjvj (n=vijay@CPE00195b952739-CM0011e6ecdb26.cpe.net.cable.rogers.com)
01:18.29*** join/#tomcat compair176 (i=compair1@gateway/tor/x-cf9b859c99a8b689)
01:45.26*** join/#tomcat ramza3 (n=Berlin@c-24-98-96-151.hsd1.ga.comcast.net)
01:53.24*** join/#tomcat columbo (n=columbo@pool-71-104-1-42.lsanca.dsl-w.verizon.net)
02:11.52*** join/#tomcat karstensrage (n=karstens@c-69-181-220-5.hsd1.ca.comcast.net)
03:29.21*** join/#tomcat acidjnk (i=acid@p5B3EA5A7.dip0.t-ipconnect.de)
04:11.30*** join/#tomcat odin (n=dlm@host86-150-213-117.range86-150.btcentralplus.com)
04:28.21*** join/#tomcat ramza3 (n=Berlin@c-24-98-96-151.hsd1.ga.comcast.net)
04:48.58*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-68-153.w81-48.abo.wanadoo.fr)
05:16.03*** join/#tomcat tomisina (n=tomisina@c-71-195-76-7.hsd1.pa.comcast.net)
05:23.48*** join/#tomcat hyksos (n=bob@p5B221F73.dip0.t-ipconnect.de)
07:03.21*** part/#tomcat TomWork (n=tom@r-3e22-tom.univ-avignon.fr)
08:37.39*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
08:42.23*** part/#tomcat vinse (n=vinse@208.253.223.146)
09:07.15*** join/#tomcat tom17bombadil_ (n=tross@T9f17.t.pppool.de)
10:13.31*** join/#tomcat skybert (n=torstein@a62-101-198-35.bluecom.no)
11:24.23*** join/#tomcat exstan (n=exstan@213.145.102.60)
11:25.06exstanhow can i dynamically find the virtual FQDN of a running server?
11:27.47*** join/#tomcat deux__ (n=deux@203.116.157.202)
11:31.52*** part/#tomcat skybert (n=torstein@a62-101-198-35.bluecom.no)
11:45.53exstananybody?
11:46.27yassineexstan: from an application?
11:47.09exstanyassine, yeah
11:48.15exstanyassine, i need to get this through java to use it in another project on the same server
11:48.36exstanyassine, or there maybe better way of accessing the other project ?
11:48.49yassineis it on the same server?
11:49.15exstanyassine, project = application. yes both are delpoyed on the same tc instance
11:49.41yassineso you will need to call your app with theire uri
11:49.56yassine/applicationName
11:50.55exstanyassine, yeah but i need the FQDN URI otherwise i get host/app1/app2 but i need just host/app2
11:51.29yassineyour right, one sec let me think a bit
11:54.45yassineexstan: http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getLocalAddr()
11:55.57exstanyassine, this would resolve to the host machine IP
11:56.26exstanyassine, this is a problem since it can be more than one virtual host or domain
11:58.42yassinemhh
12:48.32*** join/#tomcat randrewj (n=raj-user@user-160u65b.cable.mindspring.com)
13:31.46*** join/#tomcat bobbytek (n=bob@CPE000625891a44-CM00e06f1b676c.cpe.net.cable.rogers.com)
14:42.09*** join/#tomcat slak (n=alexey@ool-43567ed8.dyn.optonline.net)
15:18.35*** join/#tomcat barnum (i=pt@disgruntled.sysadmins.com)
15:25.55*** join/#tomcat ramza3 (n=Berlin@c-24-98-96-151.hsd1.ga.comcast.net)
15:29.06*** join/#tomcat a4akb (n=a4akb@62.215.156.215)
15:43.34a4akbhi
15:43.43a4akbibot seen jasonb
15:43.47ibotjasonb <i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net> was last seen on IRC in channel #tomcat, 9d 10h 4m 39s ago, saying: 'So, am I crazy?  :)'.
15:47.42*** join/#tomcat junis (n=tsenotan@87-126-210-118.btc-net.bg)
15:49.38junisif i put a <init-param> into a <listener> which is a ServletContextListener then how do i access param-value in contextInitialized() ?????
15:59.59*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
16:11.52*** join/#tomcat eternal_p (n=eternal_@wsp05956026wss.cr.net.cable.rogers.com)
16:12.48eternal_pgood afternoon all, I have, what I think is tomcat/axis setup, the tomcat page loads fine, the axis page I get a org.apache.jasper.JasperException: No Java compiler available error, tomcat version 5.5.23, axis (I believe 2-1.2) and CentOS 4.5
16:18.38eternal_pdid I miss anything on the three things
16:18.39*** join/#tomcat karstensrage (n=karstens@75.55.199.5)
17:20.29randrewjeternal_p: java version
17:22.00eternal_p1.4.2_09-b05
17:26.46*** join/#tomcat aixenv (n=aixenv@adsl-75-25-5-175.dsl.irvnca.sbcglobal.net)
17:27.09aixenvquestion for some workers.properties guru
17:27.29aixenvim trying to use virtual hosting with name based resolution between tomcat and ajp13 using mod_jk
17:27.46aixenvi have 4 sites specified in my workers.properties file
17:27.55aixenvsite1, site2, site3, site4
17:28.12aixenvi have a worker.site1.port=8009, then worker.site2.port=8010 etc
17:28.21aixenvhost=localhost for all and type=ajp13
17:28.55aixenvquestion is this
17:28.57aixenvam i doing this right?
17:29.15aixenvdo you associate a different site port to each worker.site ?
17:29.34randrewjeternal_p: Are jasper-compiler-jdt.jar and jasper-compiler.jar not in tomcat/common/lib/ ?
17:30.15aixenvif that part is right maybe it's my server.xml that's missing something
17:30.58aixenvsite for port 8009 works, the port 8009 in my server.xml is associated to the Coyote/JK2 AJP 1.3 Connector
17:33.42eternal_prandrewj: i'll check now
17:34.59eternal_prandrewj: nope, there are no jasper files in that directory
17:36.00randrewjaixenv: i think it's more conventional to have a single connector handle multiple hosts. tomcat can sort out the requests based on host name.
17:37.26eternal_prandrewj: installing now (I think)
17:37.27randrewjeternal_p: compare with a binary distribution from tomcat.apache.org. maybe consult your tomcat packager for support.
17:38.09randrewjeternal_p: might be cleaner to go with a standard binary dist. at least you know what you've got then.
17:38.32eternal_pi'll have to try that...I used Jpackage for centos/rhel to get my tomcat running
17:38.51eternal_pthe jasper5 compilers are in /usr/share/java
17:38.59eternal_pjasper5-compiler-5.5.23.jar
17:39.45randrewjeternal_p: must be an extra step to allow tomcat to find them. it must be a jpackage faq.
17:40.52eternal_prandrewj: unfortunetly not that I have found, which is what brought me here
17:40.57aixenvrandrewj: so i dont need the 4 workers in the workers.properties?
17:42.48randrewjaixenv: it's probably not necessary. you can have a single connector and different hosts configure in server.xml
17:43.04aixenvok that's how i have it atm
17:43.12aixenvthere's a site for 8080, 8081, and 8082
17:43.17aixenvthey work with that port
17:43.24aixenvhowever the developer wanted everythign to go over port 80
17:43.47aixenvso i used mod_jk to do that that apache using the JkMount /* ajp13 directive on the vhost
17:43.58aixenvthe site for 8080 works, the other 2 dont
17:44.05aixenvso im thinking something is different in the server.xml
17:44.18aixenvor it's because i have the workers.properties wrong
17:45.01randrewjaixenv: each of the vhosts is JkMounted to the one worker now?
17:45.15aixenvno sir, i currently have 1 worker.site for each vhost
17:45.22aixenvso im not sure that's the right way to do it since it's not working hehe
17:45.36aixenvi can pm you the workers.properties if youw ant to see what i have
17:45.57randrewjaixenv: which v tomcat
17:45.57randrewj?
17:46.04aixenv4.1.36
17:53.48aixenvright now i have like JkMount /* site1 associated to vhost1 ; JkMount /* site2 associated to vhost2 ; etc ..
17:54.22aixenvis that not necessary? i can just do JkMount /* site and have just one connector in the workers.properties ?
17:56.06randrewjaixenv: that's right
17:56.15randrewjaixenv: one connector
17:56.23aixenvok
17:56.25aixenvtrying that
17:57.04aixenvcan i pm you the new workers to verify ?
17:59.55randrewjaixenv: paste it somewhere. in your server.xml try something like this: http://pastie.caboo.se/94281
18:00.04aixenvok
18:00.47aixenvworkers.properties = http://pastie.caboo.se/94282
18:01.29aixenvand then for vhosts.conf ill just put for each vhost JkMount /* site
18:01.59randrewjaixenv: worker.lsit should be site1
18:02.04aixenvok
18:02.17randrewjaixenv: or change site1 -> site
18:02.22aixenvoh ok ya i see what i did
18:02.27aixenvi was edditting really quick my bad
18:02.31aixenvill cahnge it to site
18:02.41aixenvok fixed that
18:02.49aixenvlooking at your example
18:07.50randrewjaixenv: i tested it with coyoteconnector doing http on 8080, it should work with ajp13.
18:09.00randrewjaixenv: it matches hostname in browser request to determine which host in server.xml should handle req.
18:10.58aixenvhttp://pastie.caboo.se/94286
18:11.11aixenvthats what server.xml looks like, the relevant snippet
18:11.57aixenvintra and extra are the 2 sites im trying to get to work
18:12.06aixenvthe developer named all this stuff
18:12.15aixenvand has it working on port 8081 and 8082
18:12.29aixenvim trying to just make all 3 sites work via port 80 based off their name
18:14.37*** join/#tomcat tomisina (n=tomisina@c-71-195-76-7.hsd1.pa.comcast.net)
18:15.38aixenvhmm now intra and extra work
18:15.40aixenvbut not the main one
18:16.13aixenvvhosts looks ok
18:16.17*** part/#tomcat tomisina (n=tomisina@c-71-195-76-7.hsd1.pa.comcast.net)
18:26.00randrewjaixenv: for validity you need </Host> </Service> before </Server>
18:28.14*** join/#tomcat dvayanu (n=another@ppp-82-135-69-77.dynamic.mnet-online.de)
18:29.23aixenvok
18:30.12aixenvdont i have that?
18:30.15aixenvwhat line are you referring to?
18:34.19randrewjaixenv: that paste is confusing. you have three <Service> and only two </Service>.
18:34.56aixenvrandrew: it was a really long file i too out a bunch of database related connectoins and some jserv stuff that had password info and stuff out
18:35.13aixenvi basiclaly just wanted you to see what i had for virtual host directives and the 8080/8081/8082 directives
18:35.17aixenvto see if i was missing something in those
18:36.45randrewjaixenv: will there be different hostnames to distinguish the three?
18:36.58aixenvthere could be, he has like tomcat-extra atm
18:37.12aixenvbut yes there will be 3 FQDNs
18:37.21aixenvso yes diferrent hostnames
18:43.47randrewjaixenv: something like this http://pastie.caboo.se/94298
18:45.49aixenvok looking tyvm
18:46.23randrewjaixenv: also, if you're explicitly defining your apps in server.xml you might want to set autodeploy false. (for instance, you should test that your 'intra' app is only available via the hostname you intend.)
18:46.26randrewjk
18:47.22aixenvok
18:47.34aixenvim looking at all that now
18:47.56aixenvi had to create some new A records to point these new staging/dev sites to a testable fqdn
18:48.09aixenvthat way i can test each of the 4 is doing what it's supposed to
18:53.08randrewjaixenv: if you can test from same host, you may also be able to coerce dns resolution via /etc/hosts
18:53.51*** join/#tomcat aarcane (n=aarcane@69.62.232.46)
18:54.25*** join/#tomcat compair176 (i=compair1@gateway/tor/x-9ae94654e0a1441f)
18:54.53aarcaneHi, My tomcat and java versions aren't set yet, as I haven't installed.  my os is either arch linux or debian gnu/linux, don't panic or etch, respectively.  My qeustion is:  What is tomcat, and why do I want it ?
18:55.48aixenvapt-cache search tomcat
18:56.31aixenvtomcat's a java servlet engine
18:57.35randrewjyou would use it to develop servlet/jsp based web applications
18:58.42*** join/#tomcat linuxfreck (n=freck@82.113.106.16)
19:00.54aixenvrandrewj: http://pastie.caboo.se/94309 ; im thinking he might have the tags wrong, i just wanted to verify before i moved everything around
19:01.06aixenvthat is essentially everything starting with the first vhost
19:01.34aixenvrandrewj: looks to me like after that first </Host> is where you want me to put vhost2 and 3's info
19:01.58aixenvrandrewj: he has a </Engine> </Service> then he starts them with <Service  name> THEN a <Host>
19:02.21aixenvactually he does Service then Engine then Host
19:03.17aixenvis that how youd o it? <Service><Connector><Engine><Host><Context> ? and then end all your tags ?
19:03.45aixenvif that's right then only thing i need to fix is the hostname of localhost
19:03.52aixenvfor both the 2nd and 3rd vhosts
19:04.03aixenvand i can leave his service name alone
19:06.13aixenvand in that case i'd just change the first servic which has Tomcat-Standalone to like Tomcat-www
19:07.39linuxfreckaixenv: what are you trying to do?
19:08.46aixenvlinuxfreck: im using apache and tomcat 4.1.36, using mod_jk to change the ports from 8080/8081/8082 to port 80 and then trying to use named based resolution to port each host to the proper tomcat data
19:09.22aixenvbasically there's 4 sites that work on 8080-8084, the developer wants all of them to come from port 80, and then use the corresponding fqdn
19:09.44aixenvi had 1 of them working but not the other 2, randrewj helped me figure out what i was doing wrong with workers.properties
19:09.50RedFyrein tomcat 4.1.31, where can I tell tomcat which interfaces to bind to (I only want it to listen on localhost)?
19:10.19randrewjRedFyre: 'host' attribute of connector in server.xml
19:11.32aixenvok restarting apache & tomcat
19:11.36aixenvgonna see if this works
19:11.36randrewjaixenv: i think you need to decide on one way or the other. i believe both can be made to work: http://pastie.caboo.se/94315
19:11.40RedFyrerandrewj - which connector? I have org.apache.ajp.tomcat4.Ajp13Connector (which I am guessing is wrong since that listens on port 8009) and org.apache.coyote.tomcat4.CoyoteConnector
19:12.14randrewjRedFyre: are you intending to run tomcat standalone or behind a web server?
19:12.25aixenvrandrewj: ok thank you ill look over the syntax
19:12.45RedFyrerandrewj - behind a webserver which listens on port 443 ssl and internally redirects
19:13.03RedFyredon't want people to be able to get to it bypassing the ssl webserver
19:13.04aixenvrandrewj: the developer should know if he needs a different engine and service per website right?
19:13.12aixenvthe first way you specified seems more clean to me
19:14.13*** join/#tomcat AngryElf (n=jsharpe@ip24-255-126-187.dc.dc.cox.net)
19:14.43RedFyreand, setting host="localhost" doesn't do it
19:15.31randrewjRedFyre: then you probably should disable all connectors except your ajp/1.3 on 8009. you can add an attribute to that connector  address="127.0.0.1"
19:15.34RedFyrehm... let's try t his address= thing
19:16.35RedFyrerandrewj - I would think that disabling the 8080 connector would break the web server redirecting ot it
19:17.07randrewjRedFyre: ah, what is your webserver<->tomcat connection?
19:17.36RedFyrerandrewj - it is ProxyPass /cocoon http://localhost:8080/cocoon
19:17.52RedFyreand then JKMount /cocoon/xreporter* ajp13
19:17.59RedFyreand, of course, ProxyPassReverse
19:18.30RedFyrerandrewj - I will, of course, have to fix the proxypass to include the fqdn and short name of the web server
19:19.04randrewjRedFyre: uhh. you probably don't need both JKMount and ProxyPass. Generally you do one or the other.
19:19.46RedFyreok the address= line works
19:20.03randrewjRedFyre: JKMount would direct to a connector using ajp13, typically port 8009. ProxyPass would use a http connector, typically 8080.
19:20.28RedFyrehmmm... maybe xreporter sorta uses both?
19:20.49randrewjRedFyre: a given URI will only use one or the other.
19:21.19RedFyrehmmm... I'll bring that up w. the guy who's heading this project, then
19:21.46randrewjRedFyre: you could try disabling each, to find out which you are using  : P
19:21.48RedFyrefrom what you're saying, tho, I should be able to comment out the proxypass stuff and stuff might still work
19:22.13randrewjRedFyre: depends on httpd.conf and server.xml
19:22.40RedFyrewell, commenting out proxypass lines broke it
19:22.46RedFyrerequested url not found
19:23.23randrewjRedFyre: so try commenting out the JKMount, too.
19:23.39randrewjRedFyre: (with the proxypass enabled)
19:25.13RedFyreit appears to just use the proxypass stuff
19:27.55aixenvrandrewj: true/false, you can ONLY specify a PORT in a connector
19:28.01aixenvim thinkin true
19:30.05RedFyrerandrewj - well, you got me why xreporter uses both... who knows what it's doing
19:30.14RedFyremaybe it doesn't really use both :)
19:31.36randrewjaixenv: false, <Server> has a port attribute, but probably not relevant.
19:31.40aixenvok
19:31.58aixenvim just understanding why the dev did it this way
19:32.02randrewjRedFyre: it's enough trouble to get one way owrking
19:32.09aixenvhe didnt have access tohostnames, so he could only change ports thats' why he had allt he connectors
19:32.14RedFyrerandrewj - indeed
19:32.18randrewjaixenv: right
19:33.02aixenvi like the cleanliness of the first way
19:33.07aixenvim gonna clean up this file
19:33.18aixenvtyvm, ill let you know if it works in a fw
19:33.20aixenvfew
19:47.59*** join/#tomcat cobman (n=justinas@212.47.107.22)
19:48.48aixenvok server.xml cleaned up, testing now
19:49.11aixenv500 errors
19:51.04aixenvok here's the situatoin im close
19:51.10aixenvthe 4 sites all work on port 8080
19:51.24aixenvbut 500 error on the apache/mod_jk redirect to port 80
19:53.09*** join/#tomcat DeaTH-mATCH (i=DeaTH-mA@196.203.221.244)
19:53.12DeaTH-mATCHhello
19:53.23aixenvrandrewj: thoughtS?
19:53.42aixenvafter all the changes i did restart apache with graceful
19:53.53DeaTH-mATCHwhere can i find a tutorial concerning installation and configuration of the struts framework 2.0.x on tomcat 6.xx
19:54.22DeaTH-mATCHwhere can i find a tutorial concerning installation and configuration of the struts framework 2.0.x on tomcat 6.xx ON windows 2000 server
19:54.35aixenvi think i found the problem
19:56.20aixenvhmm nope sam ething, checkin logs
20:03.57randrewjaixenv: what's server.xml look like?
20:04.35aixenvhang on ill paste it
20:05.22DeaTH-mATCHthanx for your help !
20:05.27DeaTH-mATCHciao
20:07.33randrewjaixenv: I would do a stop/start of apache instead of graceful, if I changed workers.properties, just to be sure.
20:09.03aixenvrandrewj: i think this is right, here is the ful file minus p/w info
20:09.05aixenvhttp://pastie.caboo.se/94346
20:10.06aixenvi got rid of all the comments
20:10.11aixenvand made it look like your example #1
20:10.20aixenvpretty sure i did it right syntax wise
20:10.36aixenvlike i said the virtual hosts work .. all on port 80 and redirect to the right docbase
20:10.49aixenvit's just the port 80 transition from mod_jk that isnt working
20:10.59randrewjaixenv: you mean they work on 8080
20:11.08aixenvcorrect sorry
20:11.11aixenvyes 8080 works
20:11.31aixenvi have an idea
20:11.32aixenvone sec
20:12.15aixenvim a dumbass
20:12.18aixenvlol
20:12.37aixenvi think this might fix it
20:12.42aixenvi need to restart tomcat & apache
20:12.55aixenvi had the workers.properties file moved to a dif place and forgot to update httpd.conf doh!
20:14.52aixenvhmm now tomcat doesnt start
20:14.59aixenvi must have missed somethign in the server.xml
20:15.01aixenvlemme revert real quick
20:25.37*** join/#tomcat vinse (n=vinse@208.253.223.146)
20:34.46aixenvrandrewj: woot tyvm
20:34.49aixenvi got it working
20:34.52aixenvWITH your help
20:45.43*** join/#tomcat odin (n=dlm@host86-150-213-117.range86-150.btcentralplus.com)
20:46.19*** join/#tomcat odin_ (n=dlm@host86-150-213-117.range86-150.btcentralplus.com)
20:47.04aarcanebut what are servlet/jsp based applications, and why do I want them instead of something else, which is more established, and doesn't force me to learn something new ?
20:53.50deeboand by more established are you talking about php aka swiss cheese?
21:09.22*** part/#tomcat a4akb (n=a4akb@62.215.156.215)
21:09.30*** join/#tomcat bugfixer (n=bugfixer@42gis175.gulftel.com)
21:22.17*** join/#tomcat dirkster (i=dirkster@p50875FE0.dip.t-dialin.net)
21:24.52dirksterI am using Tomcat 5.5.23, Java 1.5.0 on Windows does anyone know whether it is possible to use a JSP page from within Java?
21:25.35dirksterI'd like to generate the page by a java program, execute it the page and show the resulting output to the user
21:26.13dirksterCan I do this without Service and /or web-server in a plain java application?
21:30.22dirksterOne way to this with PHP would be:
21:30.22dirkster1> Generate a PHP page
21:30.22dirkster2> Run the page using: php.exe myPage.php > out.txt (as shell task)
21:30.22dirksterBut I'd like to do the same using java technologies only. Does anyone have an idea how to do this please?
21:30.22dirksterThanx Dirk
21:41.03*** join/#tomcat cubaproject (n=andoni@87.198.194.246)
21:46.29*** join/#tomcat misos (n=misos@unaffiliated/misos)
21:50.18aarcanedeebo, as in php, c++, java as CGI, Perl, TCL/TK/, Ruby, Etc...\
21:51.09misosHello, I'm having problems running Tomcat 5.5.17, Axis 1.4 and JDK 1.6.0_02-b06, the "standard" error: java.lang.RuntimeException: No compiler found in your classpath!  (you may need to add 'tools.jar')
21:51.40misosOS: Windows XP SP2
21:51.56randrewjmisos: Are jasper-compiler-jdt.jar and jasper-compiler.jar not in tomcat/common/lib/ ?
21:52.14misosyes
21:52.40misosJAVA_HOME is set to c:\Java\jdk1.6.0_02\
21:53.05misosand the JRE is installed in C:\Java\jre1.6.0_02
21:53.27montesluphp is "more established" than servlet/jsp ?
21:53.28monteslucool
21:59.08*** part/#tomcat randrewj (n=raj-user@user-160u65b.cable.mindspring.com)
23:07.40pfnaarcane makes no sense, that last statement
23:13.13aarcanepfn, My question is what are the reasons I should choose jsp instead of some other more established technology
23:19.19pfnjsp is very well established
23:19.23pfnwhat are you comparing against here
23:57.46montesluoracle has been writing business apps in jsp for almost ten years now, better tell them it's not established
23:58.59aarcanepfn, I'm not comparing yet, I'd just like to know what JSP can do that CGI, PHP, Perl, TCL, Ruby, and all the other languages in use on the web can't do, or what it can do better or easier than they can.
23:59.51*** join/#tomcat valmont (n=chrishol@cpe-24-24-236-113.socal.res.rr.com)

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