irclog2html for #tomcat on 20030618

00:00.08CtrlFreq"we booted it up and it went to a blue scree...yup thats windows"
00:00.37HellaenergyThey got rid of the blue screen now
00:00.52Hellaenergynow its just freeze the current state of your machine
00:14.41*** join/#tomcat GodFodder (~rcc@pcp02876841pcs.watrfd01.mi.comcast.net)
00:15.07*** join/#tomcat ibot (ibot@208.186.182.172)
00:15.07*** topic/#tomcat is Tomcat Servlet Container Discussion; The Tomcat project is located at http://jakarta.apache.org/tomcat ; Servlet JSP Javadocs http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html ; Check out - Tomcat: The Definitive Guide here: http://www.oreilly.com/catalog/tomcat/ ; If you would like to paste some code or configs for others to see please use http://www.hellaweb.com/hellabot/
01:40.54*** join/#tomcat CtrlFreq ([ya4doMx6e@crtntx1-ar9-4-65-161-127.crtntx1.dsl-verizon.net)
01:44.52*** join/#tomcat heaps (eapolo01@hills.ccsf.cc.ca.us)
03:02.21*** join/#tomcat Pktloss (oWiRC@dyn-dialup-250.144.jet2.net)
03:02.25Pktlosshey heaps
03:05.08PktlossIm working on the jndi tutorial in the Tomcat docs, with MySQL. However, I cant seem to get it to work
03:23.27PktlossI don't know how to check this connection beyond what I'm doing, its why im running this small test
03:33.12*** join/#tomcat mod_cure (~Cure@cs6668188-51.austin.rr.com)
03:47.06PktlossI can find the error in stack trace: java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'. But ive got no idea on how to resolve it
03:50.34heapsI suggest you learn the basic jdbc first :)
03:51.36PktlossHow do i learn JDBC without being able to connect to the DB?
03:53.34PktlossI did figure out that class name bit
03:53.35heapsthat is it, the basic stuff would have taught you this
03:54.08heapsusing jndi and a server is a bit advanced
03:54.09PktlossAnd heck, i even tried adding the jndi.jar class to the classpath incase that was why it wouldnt find it
03:54.26heapsgo start with an application using jdbc
03:54.38heapsthen you'll get the idea
03:55.46Pktlossam i missing something small and stupid?
03:56.03heapsyep
03:58.33heapsnow you do know how to find a resource to learn the basics of jdbc right?
03:58.46Pktloss250 pages later in that textbook
03:59.20heapswell maybe this is the part you can jump into quickly and immersed
03:59.52PktlossDid i miss something in the sun tutorial, or does it gloss over assuming somthing
04:00.06Pktlossi switched to their DB system, in hopes of being able to follow it step by step
04:00.09heapsfrom our convo last night, i  seem to recall you havent got the compilation quite pat down yet
04:00.18Pktlossive got it compiling
04:00.31Pktlossand have figgured out the class path bit
04:01.03Pktlosseven tried adding the jndi.jar to that, thinking that, that missing bit would be in there
04:01.08heapsyou're getting warm, similar ideas come into play here
04:01.50heapsperhaps take a detour and learn how to use jars..its essential me thinks
04:04.11Pktlosshmm
04:04.37PktlossIs there a command line tool to see what a jar has inside it?
04:05.05heapsasked google yet?
04:05.35PktlossSome information on bug collection
04:06.27PktlossIm really glad i got this new monitor, easier on eye
04:06.31Pktlosss
04:08.39Pktlosswhoohoo To view the contents of a JAR file jar tf jar-file
04:09.47Pktlossdamn windows, wheres grep when you need it
04:18.18PktlossCan I have another hint?
04:18.39heapsyou're on the right track
04:19.05Pktlosshmm
04:19.19PktlossI didn't see anything that looked like that error in the obvious looking jars
04:19.35Pktlossjndi, commons-dbcp, or jbc2.
04:19.56heapsaha, thats why i said about basics of jdbc, as these are covered in them extensively
04:20.11PktlossHmm
04:20.31heapsi started like that,  perseverance paid off
04:20.46PktlossHmm
04:22.00Pktlossmy text book is weak in that respect
04:22.12Pktlossbut if im missing a jar, shouldnt an include be failing
04:23.13heapslets go back to where you were stuck last night. how did you resolve that symbol unresolve error?
04:23.45PktlossI set my classpath. set CLASSPATH=C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;
04:24.14*** join/#tomcat _sho_ (eclark@p5080106F.dip.t-dialin.net)
04:24.16heapsokay
04:24.25_sho_hey, got a question (doesnt everyone? :p )
04:24.39heapsso here it should be similar process setting a ?
04:24.57PktlossI extended my classpath.
04:25.00Pktlossset CLASSPATH=C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\jndi.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\jdbc2_0-stdext.jar;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\commons-dbcp.jar;
04:25.04_sho_if i have a class in WEB-INF/lib that executes a xml.writeobject bit to a class not in that same directory, why would tomcat block this
04:26.57heapsPktloss: you know how to read a script right? you can open up catalina.sh and get some ideas of what they do
04:27.11heapskey there is classpath
04:27.54heapssho: huh? whats an xml.writeobject? and it writes to a class?
04:28.10_sho_writes it out as a string to be referenced by a class not in the same directory
04:28.21Pktlosshmm, they use colons, rather than semi-colons
04:28.48_sho_java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.1_01/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
04:28.51heapssho: referenced by a class? which class is referencing it?
04:29.38_sho_ah, i do not know for sure. 8/
04:30.36heapssho: have any other java programs run before this?
04:30.47_sho_hm. yep
04:32.09heapsumm maybe you can re-run as root  ldconfig or whatever that command is to do the update
04:32.22_sho_hm.
04:32.34_sho_so its related then to current class path?
04:33.00heapsi was talking to pktloss on classpath, that wasnt for you
04:33.11_sho_ah, didnt think so. :p
04:33.13_sho_8)
04:33.18PktlossHmm. Pardon?
04:33.31heapssee i already lost him :)
04:34.01PktlossI re-compiled the servlet after updaing the classpath. (shot in dark)
04:34.55*** join/#tomcat jasonb (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
04:35.27_sho_ah hm
04:35.49_sho_if a servlet doesnt have a servlet-mapping, then any strings handed across classes would be lost since it doesnt know where the destination is, right?
04:35.53heapsPktloss: its a known fact, tomcat sets its own classpath
04:36.08PktlossYes
04:36.10_sho_nod@heaps
04:36.35PktlossAnd since the JNDI is working through tomcat, it needs to know where the classes are
04:36.38heapssho: something like that, but if you use the invoker..
04:36.41Pktloss(my current though)
04:36.58_sho_yeah, invoking
04:37.00PktlossBut, the jars all came with Tomcat, shouldnt it be including it
04:37.01_sho_but will doublecheck
04:37.28*** join/#tomcat rslow (~rslow@CPE0002e310270b-CM400035712080.cpe.net.cable.rogers.com)
04:37.31heapsPktloss: thats specific to your web application and not tomcat
04:40.06heapsPktloss: btw have you found it yet by unpacking those jar where that specific class resides and was causing you problems?
04:41.23Pktlossno, not yet
04:41.31Pktlosswindows really needs better command line tools
04:41.51heapsyou didnt take my suggestion of taking a detour to jars :(
04:41.51Pktlossjar tf *.jar | grep would really help
04:42.06Pktlossim reading up on jars
04:42.13Pktlosshttp://java.sun.com/docs/books/tutorial/jar/basics/
04:42.27heapsyou can always transfer it over to your linux and do the unpacking there
04:42.34heapserr copy it over
04:43.56Pktlossyup
04:44.19heapscool
04:45.15Pktlosssorry, im usually on dsl through router to share connection, im on dial up now, with wireless nic to connect to router to connect to linux. didnt know if the multi-network thing woudl work
04:46.04heapswell time to find out :)
04:46.34jasonbPktloss: Better command line tools for Windows (free): http://www.cygwin.com
04:47.26Pktlossall for naught
04:47.32Pktlossaparently jar tf doesnt like wildcards
04:48.04jasonbunzip -l *
04:48.25jasonberr..  unzip -l *.jar
04:48.39Pktloss[Paul@pktloss jars]$ unzip -l *.jar
04:48.39PktlossArchive: activation.jar
04:48.53PktlossLength Date Time Name
04:48.53Pktloss-------- ---- ---- ----
04:48.53Pktloss-------- -------
04:48.53Pktloss0 0 files
04:48.55heapsmy suggestion to him was to search with in the jars to find his missing class :)
04:49.27jasonbhow about "ls -la *.jar" and see if they're empty..
04:49.29Pktlosscan i have the name of the class im looking for or will it match that error
04:49.55Pktlossno, they all have sizes
04:50.02heapsyour errror is your clue dude!
04:50.18jasonbls -1 | grep '.jar' | xargs -i jar tf {}
04:50.22heapsam running him through the steps, how to troubleshoot a missing class :)
04:50.43jasonbheaps: Yeah, it's always a little tough to do that.
04:52.12heapsam giving him hints and possible resource to use (google!) :)
04:52.13jasonbls -1 | grep '.jar' | xargs -i jar tf {} | grep TheNameOfTheClassYerLookinFor
04:52.32Pktlosstried that
04:52.32Pktloss[Paul@pktloss jars]$ ls -1 | grep '.jar' | xargs -i jar tf {}|grep mysql
04:52.32Pktloss[Paul@pktloss jars]$
04:52.35Pktlossno results
04:52.58Pktlosssame thing on gjt
04:53.23heapsyou have not picked the right jar to look yet..and i am asserting again.. please learn the basic jdbc connectivity
04:54.00jasonbPktloss: Or, do this.. cd back a few directories, but still within a limited tree where your jar is sure to be, then do:
04:54.06jasonbfind . -name "*.jar" | xargs -i jar tf {} | grep TheNameOfTheClassYerLookinFor
04:54.39jasonbahh, you might also want grep -i
04:54.44jasonbfind . -name "*.jar" | xargs -i jar tf {} | grep -i TheNameOfTheClassYerLookinFor
04:55.17Pktlossmoment
04:55.50jasonbThat will at least tell you if the class is in a jar at all.  It won't, however, show you *which* jar it's in.
04:56.38Pktlossi copied the entire tomcat\common dir to run that through, no dice
04:56.44PktlossSo i'm missing a class?
04:56.59heapswhat do you think the error was?
04:57.27PktlossI dont think im missing a class.
04:57.34PktlossOr the includes should have failed
04:57.53jasonbPktloss: you really need Cygwin.
04:58.02jasonb(or to get rid of Windows)
04:58.18Pktlosswindows is a job requirement
04:58.24Pktlossheaps: am i close?
04:58.27jasonbSo install Cygwin.
04:58.34heapsright, i forget, its way back, it was not able to load the class
04:58.58heapspaste the error again
04:59.04Pktlossjava.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver'
04:59.04Pktlossat org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
04:59.04Pktlossrce.java:529)
04:59.51jasonbPktloss: You need to make sure your mm mysql driver jar is in a dir where it can be opened and loaded by the code you're telling to load it.
04:59.58heapsthat Driver is a class, you know?
05:00.46PktlossYes, hopefully in a class i have
05:01.06heapsin a jar file you mean.
05:01.21Pktlosswell, wouldnt the class be in a jar
05:01.50heapsanything can be in a jar.
05:02.23Pktlossyes.
05:02.38PktlossSo hopefully i have the jar that has the class that the mysql driver is in
05:02.53heapsright
05:03.03heapsand tomcat can find and load it
05:03.08Pktlosswait
05:03.16PktlossTomcat needs to find it, or the application needs to find it
05:03.49Pktlosssorry, the compiler compiling my .java file
05:04.11_sho_yawn
05:04.14heapsright also
05:04.20*** part/#tomcat _sho_ (eclark@p5080106F.dip.t-dialin.net)
05:04.31Pktlossright on which point, or both
05:04.53heapsboth
05:05.02Pktlossokay
05:05.16PktlossHmm
05:05.24heapshttp://www.javaskyline.com/learnjdbc.html  <-- start here for the jdbc basics
05:05.33Pktlossso i can compile my .java file, so the compiler knows where to find the jar
05:05.41Pktlossbut tomcat bails, so it doesnt?
05:06.07heapswhat i said earlier about a know fact? you read that?
05:06.16heapss/know/known/
05:06.28Pktlosstomcat sets its own path
05:06.50heapsso if tomcat sets its own path, is that same as yours ?
05:06.53Pktlossno
05:06.59heapspath here being classpaht
05:07.07Pktlossk
05:08.44Pktlossso tomcats class doesnt include one of those jars, and i need it
05:09.14heapsyep
05:09.43heapstry running tomcat with -debug and see some interesting stuff
05:10.58Pktlossthat was fun
05:11.36Pktlossit looks like its including all of them
05:12.00heapslooks may have decieved you! :)
05:12.41Pktlosswell back when i only had servlet.jar in my classpath, it was compiling
05:12.44Pktlossand that one is included
05:13.15heapsonce more, may i suggest the link i posted for the jdbc basics?
05:13.54PktlossFor Tomcat, just copy the JDBC driver (jar or zip) into Tomcat's lib directory. Tomcat's startup script automatically includes the lib directory and all jars.
05:14.44heapsok. you seem to be in the right track
05:17.07Pktlosshttp://mmmysql.sourceforge.net/
05:18.24PktlossIs that getting warmer?
05:18.39heapsyep
05:18.51Pktlossi really hoped so
05:18.58Pktlossooc, do you have an affero account?
05:19.13heapsquomo?
05:19.24Pktlossi dont know what that one means
05:19.26Pktlosswww.affero.org
05:19.37Pktlossjust a nice way to thank people who help you.
05:19.54heapsoh..am embarrassed :)
05:20.28Pktlosswell, youve been helping me for 2hrs tonight, plus like another 2 yesterday
05:20.45Pktlosswhoa
05:20.47heapsi hope something is sinking in.
05:20.52Pktlosshttp://www.mysql.com/downloads/api-jdbc-stable.html
05:21.08Pktlossthats a lot of files
05:21.20Pktlosswhoa there we go
05:21.23Pktlossfound the jars
05:21.55heapsalright, which one are you downloading?
05:22.00Pktlosszip
05:22.24heapsnothing in jar format? even though you can rename zip to jar
05:22.25Pktlossjdbc2_0-stext.jar, mysql-connector and jta-spec
05:22.35Pktlossthose three jars are in there
05:22.59heapsokay
05:23.13heapsthen start unjarring them to match that Driver you seek
05:23.26Pktlosscan i just drop the three jars into the /lib
05:23.41Pktlosslet it include the whole things
05:23.48heapsyou can try, but its best to know which particular jar your Driver is in
05:24.17heapswhich tomcat version you have?
05:24.35Pktlosshmm
05:24.39Pktlosstomcat 4.1 i thin
05:24.43Pktlossone jar was allready thread
05:24.47Pktlossdidnt overwrite
05:24.57Pktlossput other two in, restarted
05:25.06Pktlossand oh joy, it ran
05:25.24heapslook at the sample index page..i think it'll tell you what version
05:25.36PktlossApache Tomcat/4.1.24
05:25.59heapsok, am on .18 but shouldnt be that much different i hope
05:27.30Pktlossahh the new malibu commercial is great
05:27.46Pktlossso yeah, it ran
05:28.01Pktlossim gonna live on the edge, and change the db data, and see if that works
05:28.25Pktlossaww yeah
05:28.40heapsmalibu? cheverolet nova malibu
05:28.41heaps?
05:28.46Pktlossnah, the alcahol
05:29.08heapsoh. okay
05:29.13Pktlossgot these jamican guys trying to doc their boat to go to a party, all yelling at each other, trying to park,
05:29.25Pktlosssleep deprevation euphoria is setting in, sorry
05:30.04heapsyou dont sleep much?
05:30.43PktlossDidnt sleep much past 2-3 nights
05:30.52Pktlossearly classes or job interviews
05:31.05heapsget rid of the woman, :)
05:31.10Pktlossand CSI is on at midnight 7days a week (and its a good time to catch you)
05:31.29PktlossYeah, actually just took care of that
05:31.57heapsactually the woman should da put you to sleep <wink>
05:32.27PktlossThat does work. but then theres the degredation of sleep quality when sharing a bed.
05:32.52heapsspecially if its a waterbed. man do they move!
05:33.03PktlossThough im generally indifferent, petite women are easier to sleep (actually sleep) with.
05:33.16PktlossHmm, never had a waterbed
05:33.40heapsi had a waterbed once, it didnt last for a couple of month
05:34.07heapsshe moved too much and i awaken :)
05:34.23Pktlossmore than one in a bed does age it far more quickly, esp if its an extra long (like a twin, but longer)
05:34.23PktlossAnyways.
05:34.28Pktlossyeah, that would suck
05:34.48PktlossI know SQL, if done a lot of work with PHP and MySQL.
05:34.59PktlossAm i likely to run into any other walls?
05:35.14heapsokay, put them at tomcat/common/lib
05:35.21Pktlossdone
05:35.24Pktlossrestarted tomcat
05:35.26Pktlossapp ran
05:35.39heapscool. no more of that error?
05:35.48Pktlossno
05:35.51Pktlossdata came up nicely
05:35.57heapscool
05:36.25Pktlossi thought so
05:36.55PktlossHmm
05:37.13Pktlossdo i need to re-do all the server.xml stuff for each app that needs to access a database
05:37.29heapsumm no
05:38.11heapsyou can specify the GlobalResources and each of them uses that
05:38.13Pktlossjust the ResourceParams bit
05:38.23Pktlossok
05:39.26Pktloss0. Introduction
05:39.27PktlossVersions of MySQL and the mm.mysql JDBC driver when have been reported to work:
05:40.31heapswhat do you mean? maybe older versions have compatibility problems
05:40.37Pktlosswell
05:40.47Pktlossthats where they started mentioning external drivers and versions
05:40.55Pktlosswhich, now, seems quite aparently important
05:41.40heapsi guess thats why they attempt to have it at the very beginning but usually ignored :)
05:41.48Pktloss<G>
05:42.46heapsactually i never recall having problems with mysql drivers
05:43.15heapsits when setting up the datasource in tomcat that was shall i say overly complex in earlier times
05:43.22Pktlossnot problematic, i just would have expected a tutorial that gave you c/p'able code to give you a hyperlink if you needed to download something to make it work
05:44.12heapsif you had looked at oracle it does have the link but off course you'd be using oracle
05:44.43Pktlosssince you could have mysql and Tomcat before, perfectly fine, and not had that
05:45.20PktlossYeah, Oracle is out of my price range
05:46.33heapsam off for now..laters
05:46.42Pktlossthank you /very/ much
05:46.49Pktlossthe scavenger hunt was great
05:46.57Pktlossgnite all
05:46.58heapsyou're welcome..am glad you learned something
05:47.23heapsotherwise id be disappointed if you didnt learn anything :)
06:13.21rslowi was reading some article about tomcat. saying that you can use tomcat to set up for development
06:13.27rslowwhat does tomcat do in deployment?
07:02.20*** join/#tomcat willem (~willem@213-84-243-32.adsl.xs4all.nl)
07:23.41*** join/#tomcat Adelheit (~none@80.146.165.65)
07:45.01*** join/#tomcat Happy_daddy (~chatzilla@fw2rst.beeline3G.ru)
08:16.43*** join/#tomcat cs|sking (~knows@i109-147.nv.iinet.net.au)
08:17.20cs|skingis this help forum?
08:18.06cs|skingif not is there a help forum for tomcat questions?
09:06.29*** join/#tomcat Jaster (~jaster@eleanor.handeldsbanken.se)
09:13.39JasteroI, I'm new to tomcat, when I used resin before there was a way to cache stuff in it, is that possible in tomcat?
09:48.42*** part/#tomcat farmer_ (black@bsdzone.net)
10:38.39*** join/#tomcat jkk (~www@h000625d7017a.ne.client2.attbi.com)
11:26.29*** join/#tomcat vx`schlumpf (~vx_schlum@dsl-213-023-049-049.arcor-ip.net)
12:40.46*** join/#tomcat Mikk (~Mikk@37-060.vivanet.hu)
12:40.58Mikkhi
12:41.09Mikkcan somebody help me?
12:41.18Mikki cannot see the servlets from my browser
12:41.45Mikkthe "Hello World" example works not, it results an error404 message
12:47.07Mikkhahooo
13:30.18*** join/#tomcat vx`schlumpf2 (~vx_schlum@dsl-213-023-049-049.arcor-ip.net)
13:51.07*** join/#tomcat Adelheit (~none@80.146.165.65) [NETSPLIT VICTIM]
13:51.07*** join/#tomcat willem (~willem@213-84-243-32.adsl.xs4all.nl) [NETSPLIT VICTIM]
13:51.07*** join/#tomcat TPABKA (~tar@gecko.roadtoad.net) [NETSPLIT VICTIM]
13:51.07*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
14:31.06*** join/#tomcat jkk (~www@h000625d7017a.ne.client2.attbi.com)
14:49.07*** join/#tomcat Hellaenergy (~Hellaener@mail.ubiqinc.com)
14:49.31Hellaenergyhi
14:49.44Hellaenergyanyone here involved in the java.net project?
15:15.30*** join/#tomcat d1rty (jmahood@dsanchez.advance.net)
15:37.04*** join/#tomcat Superpig (~Superpig@proxy.malcol.org)
15:37.37Superpigany awake and feeling helpful enough to take pity on this humble newb?
15:37.57Hellaenergyjust ask
15:38.22SuperpigI've installed tomcat on a gentoo box, and I'm having problems with the Admin webapp
15:38.32Superpigit's the authentication
15:38.38Hellaenergyhow did you install it?
15:38.38Superpigit's getting stuck at j_security_check
15:38.44Superpigwith error 403 - direct access
15:38.46Superpigemerge
15:38.49Superpig(portage)
15:39.10Hellaenergydid you add an admin user to your tomcat-users.xml?
15:39.19Hellaenergyibot: tomcat-admin
15:39.20Hellaenergy: i don't know
15:39.24Hellaenergyibot: tomcat admin
15:39.24Hellaenergy: have you tried http://www.tldp.org/ ?
15:39.31Superpigyeah, I did that
15:39.36Superpighey, *whoa*
15:39.46Hellaenergyso the user is in the admin group?
15:39.47Superpigoh, dammit. It's a browser problem
15:40.03SuperpigI just logged in ok through firebird.... must be a Safari problem
15:40.09Superpigthanks for your help, anyhow :)
15:40.16*** part/#tomcat Superpig (~Superpig@proxy.malcol.org)
15:40.18Hellaenergy:)
15:40.32HellaenergyYou should do your configs by hand anyways
15:40.39Hellaenergyimho
16:09.48*** join/#tomcat TPABKA (~tar@gecko.roadtoad.net) [NETSPLIT VICTIM]
16:09.48*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
17:02.43*** join/#tomcat Remm (~chatzilla@AToulouse-206-1-14-62.w81-50.abo.wanadoo.fr)
17:03.18*** join/#tomcat vx`schlumpf (~vx_schlum@dsl-213-023-039-228.arcor-ip.net)
17:08.08*** join/#tomcat Spline (~dj_aia@anja.isisnetworks.net)
17:15.58*** join/#tomcat mod_cure (~Cure@cs6668188-51.austin.rr.com)
17:21.02*** join/#tomcat n0ir` (~vol@65.162.94.30)
17:23.07n0ir`anyone know how to fix a autom4te error for invalid option --language=autoconf when running the build script for webapp module?
18:10.20*** join/#tomcat Hellaenergy (~Hellaener@mail.ubiqinc.com) [NETSPLIT VICTIM]
18:11.06*** join/#tomcat jasonb (~jasonb@nat1.sp.collab.net)
18:23.55n0ir`what would be the best choice to use as a connector between apache and tomcat?
18:24.41Remmthe current practice is JK 2; use the older JK for a well tested solution
18:27.35HellaenergyRemm: There is not setup docs on JK 2 though
18:27.50Hellaenergys/not/no/
18:28.20HellaenergyThat new book comming out on tomcat will have it. But, nothing for now.
18:28.24Remmhttp://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/
18:28.55Hellaenergybad link
18:28.59Hellaenergyurl
18:31.25Hellaenergyhm.. maybe its my connection
18:31.50jasonbHellaenergy: The URL does load for me.  It's just not good docs.  :)
18:32.07HellaenergyYa I've think I have seen those then :)
18:33.07HellaenergyI am having trouble with the keyboard chair interface today
18:33.49Hellaenergybrb
18:48.24*** join/#tomcat Hellaenergy (~Hellaener@209.181.237.141)
18:53.31HellaenergyWhat was that jk 2 doc url again?
18:55.04HellaenergyYa that doc is for someone who already knows how to setup jk2 or something.
18:56.24Remmyep, it doesn't really cover the basics
18:57.45n0ir`Hellaenergy: what is that new book you were talking about?
18:58.15Hellaenergyn0ir`: look at the topic ;)
18:58.47n0ir`is it released?
18:59.32Hellaenergyshould be any day now
18:59.44Hellaenergyjasonb: what is the status on that damn book?
19:00.12Hellaenergyhttp://www.oreilly.com/catalog/tomcat/
19:00.29Remmthere's always the list of books on the TC site for reference: http://jakarta.apache.org/tomcat/resources.html
19:01.00SplineI saw it available at barnesandnoble.com
19:01.10Hellaenergyplug :) Apache Tomcat Performance Handbook, by Peter Lin, Remy Maucherat
19:01.56Hellaenergywow now I see why there is no documentation on mod_jk
19:02.00Hellaenergy2
19:02.44n0ir`why?
19:03.06Hellaenergybecause all the guys who would otherwise are writing books ;)
19:03.19n0ir`oh heh
19:03.37*** mode/#tomcat [+o Hellaenergy] by ChanServ
19:04.25*** topic/#tomcat by Hellaenergy -> Tomcat Servlet Container Discussion; The Tomcat project is located at http://jakarta.apache.org/tomcat ; Servlet JSP Javadocs http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html ; For books on Tomcat see: http://jakarta.apache.org/tomcat/resources.html ; If you would like to paste some code or configs for others to see please use http://www.hellaweb.com/hellabot/
19:05.00*** topic/#tomcat by Hellaenergy -> Tomcat Servlet Container Discussion; The Tomcat project is located at http://jakarta.apache.org/tomcat ; Servlet JSP Javadocs http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html ; For books or articles on Tomcat see: http://jakarta.apache.org/tomcat/resources.html ; If you would like to paste some code or configs for others to see please use http://www.hellaweb.com/hellabot/
19:05.15*** part/#tomcat Hellaenergy (~Hellaener@209.181.237.141)
19:05.17*** join/#tomcat Hellaenergy (~Hellaener@209.181.237.141)
19:11.06fox__wii
19:11.08fox__hmm
19:18.40*** part/#tomcat n0ir` (~vol@65.162.94.30)
19:18.48*** join/#tomcat n0ir` (~vol@65.162.94.30)
19:19.53jasonbHellaenergy: It looks like the major online book stores still don't have our book.. or, maybe they had it and sold out of it already, filling back orders.  *shrug*
19:20.16jasonbHellaenergy: I actually think the bulk of them are being printed right now, and probably the major distributors haven't received them yet.
19:27.37n0ir`grrar i can't get any modules to build x_X
19:32.31*** join/#tomcat bar4ka (~bar4ka@200.217.16.78)
19:36.55*** part/#tomcat dkr (~dkr@65.126.114.10)
19:36.59TPABKAgrr
19:37.14TPABKAjk2 messes up apache vhosts...
19:37.54TPABKAi define locations for one vhost and can see it in others
19:38.12TPABKAideas?
20:12.11n0ir`hmm is there supposed to be a buildconf.sh script with jk?
20:12.16n0ir`jk source that is
20:14.16TPABKAthere is
20:14.57TPABKAin native or native2
20:21.17*** join/#tomcat Hylander (~johnjohn@5.208.216.216.transedge.com)
20:37.41TPABKAwhat does "context path (webapp style)" mean?
20:45.45*** join/#tomcat Hellaenergy (~Hellaener@209.181.237.141)
20:48.42*** join/#tomcat _m0nk3y (~bigdaddy@209.144.151.2)
20:49.56_m0nk3yCould someone help me with a realm authentication quesiton?
20:53.56HellaenergyJust Ask
20:55.37*** join/#tomcat vx`schlumpf2 (~vx_schlum@dsl-213-023-049-023.arcor-ip.net)
20:55.54Hellaenergyhi
20:55.56_m0nk3yI have 3 security constraints setup w/ a different user in each.  Once I login successfully to one of the areas, I can then access all 3.
20:56.35_m0nk3yIs the afforementioned a bug in Tomcat or am I trying to do something that isn't possible.
20:56.50Hellaenergyhttp://www.oreilly.com/catalog/tomcat/chapter/index.html
20:58.03_m0nk3yI'll take a read and see what I find.  Thanks for the link.
20:58.03Hellaenergy_m0nk3y: I wouldn't tell you. I have not worked with Tomcat security-constraints much
20:58.28_m0nk3yI tried looking at request.isUserInRole(..) and the user role doesn't match the constraint however Tomcat lets me in.
20:58.52Hellaenergywhat version of Tomcat?
20:58.57_m0nk3y4.1.24
20:59.07HellaenergyLinux or Windows?
20:59.11_m0nk3ywindows
20:59.20_m0nk3yyep
20:59.23Hellaenergy:)
21:04.09*** join/#tomcat heaps (eapolo01@hills.ccsf.cc.ca.us)
21:18.12heapstomcat is inconsistent on symlinks? a symlinked war at webapps/gets expanded, yet a symlinked dir attached to webapps/example/ is not finding it
21:21.40jasonbYeah, symlinks may not work..  There's some history of confusion about that.
21:22.08*** join/#tomcat vx`schlumpf3 (~vx_schlum@dsl-213-023-050-022.arcor-ip.net)
21:22.08jasonbheaps: It also might be that symlinks are considered too much of a security hole by the Tomcat authors, and may be explicitly not allowed by the code.
21:22.55jasonbheaps: Also, I seem to remember some kind of attribute in server.xml called something like allowLinking="true" that must be added, but I forget if that's to make the code allow symlinks.. I think so..  
21:23.04heapsthe inconsistency is driving me nuts :)  it works on that webapps/someapp.war
21:27.00*** join/#tomcat Condor (condor@nikita.isw.student.khleuven.be)
21:27.26Condorgood evening!
21:27.33jasonbheaps: Does the war file you want to link to reside on the same filesystem as the Tomcat webapps/ directory?
21:28.10Condori've got a problem with tomcat 4.0.3 + apache 1.3.26 and the mod_jk 1 module (debian woody packages)
21:28.38Condortomcat works flawlessly standalone,but not with mod_jk
21:28.43Condorfor example: http://condor.madoka.be/jsp/numguess.jsp
21:29.46jasonbdebian sucks.
21:29.51heapsjasonb: the link i have is webapps/cocoon.war  and cocoon.war resides at /home/srcocooon/cocoon2.1/pathhere/
21:29.51Condorthat's the same numguess.jsp as in the tomcat4-webapps , only thru apache, it keeps complaining the file can't be found
21:30.16heapsand yes they are on same file system
21:30.21*** part/#tomcat _m0nk3y (~bigdaddy@209.144.151.2)
21:30.28heapsnot mounted from another hd or NFS
21:30.33jasonbheaps: Ahh, okay.  So don't use a symlink.  Instead, use a hard link.
21:30.49Condorjasonb: not to start a distro war, but this doesn't really seem a distro specific problem, does it?
21:31.00jasonb(at least until I can figure out what the deal is with this allowLinking attribute.)
21:31.24Condori've tried adjusting the JkMount in each virtualhost, but in vain
21:31.42heapsjasonb: okay thanks ill try the hardlinks
21:32.17jasonbCondor: debian just doesn't support Java well, so us Java people don't support debian well either.
21:32.41jasonbCondor: 99% of the time, when debian users complain about Tomcat, the problem is caused by debian suckage, not Tomcat suckage.
21:33.02HellaenergyDebian supports Java just fine
21:33.11HellaenergyYou Redhat lover!
21:33.15Condoric.. well, i'm using the 1.3 java sun jre
21:33.19jasonbCondor: And, apache 1.3 and mod_jk suck about as bad as debian, mainly because they're so old and crufty.
21:33.33Hellaenergy:()
21:33.46jasonbHellaenergy: Debian's Tomcat packages have invariably been broken, and installing them correctly means installing a broken Tomcat.
21:33.57Hellaenergywhats broken?
21:33.59jasonbThen everyone comes here and asks why Tomcat's broken.
21:34.00Condorjasonb: that very well might be, but that isn't a solution..
21:34.23HellaenergyThe only thing i have seen is people complain that the admin app is not included.
21:34.28Condorwe are not going to throw out an otherwise perfect setup because of 1 item (tomcat)
21:34.32jasonbCondor: Use an OS that works.. That's all I'm saying.  My best advice to you in order to fix your problems is to not run Debian, and that comes from experience.
21:34.52jasonbCondor: Then you're on your own with your broken Tomcat package.
21:35.10Hellaenergyjust download it from the tomcat site and forget the deb
21:35.17Condorjasonb: i've been using debian for quite a few years now, and i can't really complain
21:35.17Hellaenergythats what I did
21:35.46Hellaenergyapt-get rocks!
21:36.01Condori have been googling for a solution, and have come up with a number of sites with the identical same problem
21:36.27Condorthis one for example: http://www.geopolitis.net/geopol/geo/article/arti1016622010aaaeE-EY9gay-ATJ.html
21:36.35jasonbmod_jk* tends to be broken anyway.  Especially if you're using Apache 1.3.x.
21:36.47Condoror this one: http://www2.us.elsevierhealth.com/scripts/scripts/om.dll/serve?action=searchform
21:37.03Condori see
21:37.25jasonbIf you're not using Apache 2, and you're not compiling mod_jk2 and using that, then expect breakage.
21:37.36jasonbAnd, even if you do those things, expect a little breakage anyway.  :)
21:37.55jasonbheaps: Which error is that?
21:38.31Condorjasonb: apache 2 is out of the question, because of inadequate php module support
21:38.39Hellaenergylol
21:38.48heapsits the absolute path something error caused by (i cant recall which one is causing it off hand..give me a few and ill recompile)
21:39.31jasonbphp sucks.
21:40.11heapsi looked at previous compile errors, its  150 libtool: link: only absolute run-paths are allowed  
21:40.19Hellaenergyhere we go again :\
21:40.25Condorjasonb: ugh
21:40.46*** join/#tomcat p3 (~p3sulliva@pikes200.centura.org)
21:41.07jasonbOne may, with slightly more pain, use mod_jk2 with Apache 1.3.x.  But, the compile & install process is noticeably harder and more error prone.
21:41.27*** join/#tomcat _Epoch_ (~epoch@24.129.7.201)
21:41.27p34.1.25 status?
21:41.33_Epoch_hallo
21:41.40jasonbhallo.  Heh.
21:41.56heapshmm i thought it was Epesh..hehe
21:41.58_Epoch_i guess this is where i come for help
21:42.19_Epoch_i hope
21:42.25p3ubot ibot?
21:42.26jasonbJust don't ask how to fix debian!
21:42.44_Epoch_not going to ask about debian
21:42.56Splinehey, does anyone know how to get tomcat working on debian?
21:43.08p3hole
21:43.13_Epoch_having a problem with configuring Apache-Tomcat 4.1 to run multiple hosts
21:43.22p3OS?
21:43.24jasonbibot: vhosts
21:43.25it has been said that vhosts is at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html
21:43.25TPABKAhey
21:43.35Condortomcat _does_ work, mod_jk bitches
21:43.36TPABKAjk2 screwes apache vhosts
21:43.40_Epoch_win 200 adv
21:44.00TPABKAi can see uris in all the apache vhosts
21:44.12TPABKAnot only in the one the uri is defined in
21:44.14p3And Epoch?
21:44.16_Epoch_i'm using the web administration tool
21:44.23_Epoch_yesh
21:44.25_Epoch_yes
21:44.30jasonbTPABKA: Maybe, but Apache's request processing pipeline is pretty programmable, so you could use stuff like mod_rewrite and others to fix things.. I don't know which problem you're having, though, since I don't use that stuff.
21:44.40heapsmaybe the guy can revive mod_webapp
21:44.54jasonbGood luck.
21:45.01heaps:)
21:45.37_Epoch_i have the DNS pointing to the ip, and a host config'd, but when i type in the domain i get a context not config'd error..but there is one config'd
21:46.11jasonb_Epoch_: Did you read the Host configuration page at the URL above?
21:46.14p3bind-ed?
21:46.15_Epoch_yes
21:46.48jasonb_Epoch_: If you're sure you read and understood it and your config is right, then paste it into the paste server at http://www.hellaweb.com/hellabot/
21:47.00Condorjasonb: so, without blaming apache 1.3 , jk1, debian, or php, you don't know the solution ? :)
21:47.40_Epoch_well...i'm using the web admin tool
21:47.47_Epoch_not directly editing the files
21:47.52heapstake a look at this, this may give some suggested solutions http://wiki.cocoondev.org/Wiki.jsp?page=ApacheModProxy
21:48.06_Epoch_and i must say..the admin tool is quite worthless IMO
21:48.25p3check files for commits?
21:49.12jasonbCondor: There are lots of solutions.  But, most of the time people who need a solution don't like the answers.
21:49.20*** part/#tomcat p3 (~p3sulliva@pikes200.centura.org)
21:50.03jasonb_Epoch_: Don't use the admin tool if it doesn't work for what you're doing.  You're probably better off editing the server.xml.
21:52.14heapsbtw that link i just posted, the author is the mod_webapp author, so you might some pointers on that link
21:52.21_Epoch_i think i will
21:52.27_Epoch_thanks
21:52.37_Epoch_have them all open
21:53.34Condorjasonb: well.. face it: apache 2 = no (inadequate php support), jk2 = no (you said so yourself it causes problems) , other distribution = no (it's an actively used server)
21:53.57Splineresin!
21:54.36Condorand i'm certain it has some problems with the apache vhost configuration.. must be
21:54.58jasonbphp = no.
21:56.20jasonbAnd, I see it the other way around, I guess..  It's not that Apache 2 has no PHP support, it's that PHP has no Apache 2 support.
21:57.15Condorjasonb: i understand, but for the user, the result counts, and that is that apache 2 and php aren't good friends (yet)
21:57.33jasonbWho and PHP *are* good friends?
21:57.55Condori think your opnion on this matter does not reflect the general opinion ;)
21:57.58Splinephp is an apache project now
21:58.04Splinephp and httpd are not good friends
21:58.10Splinebut php and apache get along nicely :)
21:58.45Condoryou can debate about it, but fact remains that setting up an apache with php support is easy
21:58.59jasonbJust not a modern Apache.
21:59.00Condorand an apache & tomcat (with mod_jk*) is not
21:59.25Condorjasonb: there is few reason to use apache 2 on unix/linux..
21:59.42jasonbCondor: Also, Tomcat doesn't need Apache httpd.  Only people who use both PHP and Tomcat need Apache httpd, IMO.
21:59.57SplineI upgraded to apache 2 and then downgraded to apache1 again
22:00.00Splinebegrudgingly
22:00.06Splinebecause I needed cold fusion 4.5 support
22:00.12jasonbblah.
22:00.19SplineI know, I hate cold fusion
22:00.24jasonbSpline: Because your work chose it?
22:00.29Splinejust have an old app I haven't taken the time to rewrite
22:00.36Splinenah, a guy I hired chose it
22:00.54jasonbWelp, if you need to run lots of old stuff, yeah, you probably need an old Apache.
22:00.55SplineI was being a good manager, I suppose
22:01.04Splineits hard to decide when to let someone choose their own tools, you know?
22:01.14Condorjasonb: that's true.. but how bout this: of the 50 sites that use php, there is 1 that would like to use JSP
22:01.32Condormathematically speaking: php is 50 times more important than JSP
22:01.45Condoryou understand what i mean?
22:01.51jasonbCondor: The 1 that wants to use both PHP and JSP is confused.. it's almost always a bad idea to use two templating languages intentionally.
22:02.30SplineCondor: I frown on JSP almost as much as on PHP
22:02.40Splinethe only JSP I continue to write is in conjunction with struts
22:02.47Splineand I am leaning towards switching to velocity
22:02.53Condorjasonb: true.. but tell that to the users!
22:03.27Condorpersonally, i think it's very convenient that apache supports multiple languages such as perl, python, php,...
22:04.27jasonbCondor: If you think PHP is more important, more heavily used than JSP, look at this page and scroll down to the text about JSP: http://www.netcraft.com/Survey/index-200212.html
22:04.59SplineOK, I must go.  I'll continue the religious war later
22:05.05Splineciao!
22:05.09Condori don't even have to look at it to know what it says :)
22:05.26jasonbGood.
22:05.53Condorand yes, JSP is gaining popularity very rappidly
22:06.12Condorbut it still doesn't come close to the PHP popularity
22:06.28Condorthat said, i would like to get back to my original problem :)
22:06.41jasonbCondor: Do you have independent research results to back up that claim?
22:07.16Condorjasonb: no, only practical experience
22:07.17jasonbI didn't think so.
22:07.57Condorbut you can't honestly claim that JSP is almost as big as PHP, can you?
22:08.44jasonbI don't need to.  Netcraft already did.
22:09.09jasonbAnd, not almost..  it is in wider use than PHP.
22:11.18Condori , respectfully of course, disagree
22:11.37Condorno use debating about it though... both languages have their advantages
22:11.46heapswhere should the <DefaultContext> be located at? and this is the global context right?
22:12.49*** join/#tomcat vx`schlumpf2 (~vx_schlum@dsl-213-023-050-245.arcor-ip.net)
22:12.59jasonbheaps: I don't think you need to configure any <DefaultContext>.
22:13.36heapsjasonb: right, but in case i have to, where should that be located at?
22:14.27heapsat same level as those <Context ..> are?
22:16.55jasonbI think..
22:18.14heapsokay
22:22.22hellabot"Hellaenergy" pasted "Does this syntax look right?" at http://www.hellaweb.com/hellabot/7
22:23.13HellaenergyI am getting this in the catalina.out:
22:23.14HellaenergySEVERE: Parse Fatal Error at line 385 column 56: The reference to entity "password" must end with the ';' delimiter.
22:23.29Hellaenergywhats with that?
22:25.01jasonbHellaenergy: What's saying that?  Is it part of an exception stack trace?
22:25.53Hellaenergytomact
22:25.58Hellaenergy<PROTECTED>
22:26.08Hellaenergythats the line its complaining about I think
22:26.27Hellaenergyshould the & be a ;?
22:27.20heapsthat seem to look right & as separator between parameters
22:28.00HellaenergyI literally just copied that config from http://www.rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuide
22:28.46jasonbhmmm
22:29.55Hylanderhello all
22:30.29Hellaenergydo crlf mess with the server.xml parser
22:30.33Hylanderquestion....I'm sure this has been asked several times. .... how can I have a context in my server.xml and then I want some of the files to be in one directory and some other files outside of tomcat all together.
22:30.34heapsi am using th blogger i found from a jsp sample on ibm site, authored by mark kolb.
22:30.49jasonbHellaenergy: Your config looks right to me.  Paste the stack trace or whatever, in its entirety, onto the paste server.
22:30.51*** join/#tomcat groton (userit@ppp-35-66.98-62.inwind.it)
22:30.59grotonHello all
22:31.11HylanderHellaenergy, I bet it does ....unless they fixed it recently. depends on version?
22:31.18heapsHylander: something like a symlink
22:31.45Hylanderheaps: not using *x. how about on windows. (I am mandated to use windows :( )
22:31.47heapsam trying to get that to work at this instance
22:32.19Hylanderheaps: cool....any luck?
22:32.42heapshmm..i sort of recall nt has something akin to symlink, but a tool you have to enable from the cdrom i believe
22:32.48Hylanderheaps: perhaps you have to put the files there and then runtime copy them over to a subdirectory.
22:32.51Hylanderbut that is a hack.
22:33.09Hylanderheaps: cdrom?, Shortcut links don't work of course...
22:33.19Hylanderheaps: as they are not addressable
22:33.19hellabot"Hellaenergy" pasted "stacktrace" at http://www.hellaweb.com/hellabot/8
22:33.39heapsi cant remember the details, perhaps you can google for symlinks in windows
22:34.17Hylanderheaps: I wonder if you can get tomcat to launch under cygwin then have it use that "OS".
22:34.37heapsnow thats sounds very hackish :)
22:35.36Hylanderheaps: I don't think as hackish as runtime copying the files outside of tomcat (using fileio) to the directory under tomcat.
22:35.59Hylanderheaps: maybe a taglib called ( <outerfile:myfile.jpg> )
22:36.40heapsyeah jstl have neat features of acquiring pages from other than its own context
22:36.45heapsusing import
22:36.53Hylanderheaps:  er.... <outerfile:f filename="myfile.jpg" path="/x/y/z"/>
22:37.08Hylanderheaps: import?
22:37.14Hellaenergyjasonb: did you see that post?
22:37.23heapsyeah if you look at jstl  core tags
22:37.39heapsits <c: import ...>
22:37.41Hylanderheaps: but there really should be (by now) a way to just configure this stuff....
22:37.55Hylanderheaps: thanks.
22:38.17heapsthere is in linux, but you said you're limited by windows inability to symlink
22:38.48Hylanderheaps: I guess say you have an image, you'd : <img src="<c:import.../>">
22:39.29heapsHylander: something like that, you can store the imported stuff to a variable and use it later like $var
22:39.34Hylanderheaps: tomcat should just know it can use a directory up some level ie: "../../../myexternalfiles/customerA/images/"
22:39.59Hylanderheaps: or "../../cust/001/x.pdf or x.rpt"
22:40.03heapsHylander: i think its the server specs that limits that because of security issues?
22:40.19heapscan you imagine if one can just ../../../etc/passwd ?
22:40.36Hylanderheaps: any security you turn on I think should be allowed to be disabled then somewhere. obviously that by default is insecure"
22:40.51jasonbHellaenergy: Interesting error.
22:40.53Hylanderheaps: maybe if you specify where it can go.
22:40.59jasonbHellaenergy: I think I know what causes it.
22:41.05Hellaenergyhm?
22:41.09Hylanderheaps: and the security continues to work in the other areas.
22:41.47jasonbHellaenergy: Is line 385 of your server.xml the line that reads:
22:41.49jasonb<value>jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true</value>
22:41.50jasonb?
22:42.05Hellaenergyno its the line below that
22:42.30HellaenergyI just went to the top of the page in vi and did a 385 return
22:42.37Hellaenergyso it might be ;)
22:42.41jasonbYeah, it might be.
22:42.45jasonbOne sec.
22:43.04heapsHylander: here is the link to ibm's tutorial on jstl and use of <c:import>   http://www-106.ibm.com/developerworks/java/library/j-jstl0520/
22:43.33Hylanderheaps: thank you.
22:44.07heapsyou're welcome
22:44.25jasonbHellaenergy: Try making that line look like this instead:
22:44.28jasonb<value><![CDATA[jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true]]></value>
22:44.48Hellaenergyk
22:45.06heaps:P but i prefer a tylenon right now..darn atmospheric pressure triggering my sinus
22:45.15heapseer tylenol
22:46.06Hellaenergyjasonb: its not that line :( that didn't work.
22:46.25Hellaenergythe line in its intirety is:
22:46.26Hellaenergy<PROTECTED>
22:47.13hellabot"Hellaenergy" pasted ""jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true"" at http://www.hellaweb.com/hellabot/9
22:47.16heapsHellaenergy: umm i think you need commas there
22:47.28Hellaenergyhm? where?
22:47.33jasonbnah, no commas.
22:47.37jasonbIt's a URL.
22:48.17jasonbHellaenergy: I'm not talking about that URL line, I'm talking about the one below it in your config file.. the one that looks like this:
22:48.18heapsyeah its a URL but the mysql takes parameters one at a time?
22:48.20jasonb<value>jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true</value>
22:49.08Hellaenergyjasonb: I did the CNAME thing to that line already with no luck
22:49.09heapsso somehow those user password and autoReconnect has to be tokenized and processed individually
22:49.16jasonbHellaenergy: The XML parser is puking on "&password" since it thinks it's an entity, which need to end with semicolons.
22:49.31jasonbHellaenergy: what CNAME thing?
22:49.47Hellaenergysorry dns talk :|
22:49.48Hellaenergy"jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true"
22:49.49jasonbheaps: The mm mysql jdbc driver does that.
22:49.59HellaenergyCDATA i meant
22:50.04heapsokay
22:50.30jasonbHellaenergy: Okay, stop for a sec.  You realize you have this URL twice in your config file, right?  I'm only talking about the second occurrance.
22:50.42jasonbNOT the one with quotes around it.
22:50.52Hellaenergyyes I do
22:52.02jasonbHellaenergy: Next, try making it look like this:
22:52.04jasonb<value>jdbc:mysql://localhost/roller?user=roller&amp;password=tiger&amp;autoReconnect=true</value>
22:52.19Hellaenergywithin the Realm tag?
22:52.47Hellaenergyhttp://hellaweb.com/hellabot/7
22:52.48jasonbHellaenergy: Is that the _second_ occurrance of the URL that I'm talking about?  :)
22:53.10Hellaenergynope
22:53.31HellaenergyI am just confused because the parser is erroring out before it even gets to the tag your talking about
22:53.37Hellaenergybut I will try it
22:53.38jasonbThat's fine.
22:53.54jasonbI'm suggesting fixes to what I suspect may be going wrong.
22:54.49Hellaenergynope same error
22:55.05jasonbOh, also, in the upper occurrance of the URL, you may not be able to put a linefeed between the connectionURL= and the "[url]"
22:55.51HellaenergyI already got rid of that :\
22:55.55Hellaenergy:)
22:56.52HellaenergyI am getting rid of all the lf in that
22:57.23Hellaenergystill no luck
22:58.11HellaenergyDo you think the Realm tag should be below the other stuff?
22:59.27HellaenergyThat didn't work :(
23:03.49jasonbWhat doesn't work about these?  Can you be more specific?
23:03.57jasonbSame error on all of them?
23:04.02Hellaenergysame error every time bro
23:04.17Hellaenergygive or take a line number :)
23:07.16jasonbugh.
23:07.27Hellaenergytell me about it
23:08.27Hellaenergyok now when I do this:
23:08.28Hellaenergy<Realm className="org.apache.catalina.realm.JDBCRealm" driverName="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://localhost/roller?user=roller&password;=tiger&autoReconnect=true" userTable="rolleruser" userNameCol="username" userCredCol="password"  userRoleTable="role" roleNameCol="role" debug="0" />
23:08.36HellaenergyI get:
23:08.54jasonbTry temporarily removing the URL parameters from the JDBC URL and see what happens.  I'm pretty sure the problem is in the parsing of the "&" signs.
23:09.02hellabotSomeone pasted "SEVERE: Parse Fatal Error at l" at http://www.hellaweb.com/hellabot/10
23:09.59Hellaenergykeep connectionURL?
23:10.27jasonbYeah, make it  connectionURL="jdbc:mysql://localhost/roller?user=roller"
23:10.57jasonbAlso, you can try temporarily changing the password to something else just to know which line you should be editing.
23:11.17Hellaenergygood idea
23:13.53HellaenergyI am editing the right line ;)
23:14.09Hellaenergythe one in the Realm
23:14.32jasonbok.  So then what happens when you change  connectionURL="jdbc:mysql://localhost/roller?user=roller"
23:14.36jasonb?
23:14.45Hellaenergysame error
23:14.59jasonbSame line number too?
23:15.08Hellaenergywhen I put a semicolon on the end of password;=tiger ...
23:15.14HellaenergyI get a different error
23:15.35Hellaenergyhttp://hellaweb.com/hellabot/10
23:17.07jasonbNow it's choking on the second occurrance of the JDBC URL.
23:17.27jasonbAt least it seems that way.. what's on that line number?
23:17.39jasonbLine 429?
23:17.51Hellaenergythats what the log said :)
23:17.56jasonbWhat's on that line number?
23:18.22jasonbErr, what's on line 429?
23:18.42Hellaenergythe Realm stuff
23:20.39Hellaenergywhat will the Context debug="0" do for ya?
23:20.48Hellaenergydebug in general
23:20.54Hellaenergyis that while tomcat is running?
23:23.03jasonbTurns off debugging.  Gives you a spot to turn it on or up.
23:23.17jasonbIt's Tomcat's runtime debug logging.
23:23.20Hellaenergywhen is it debugging ?
23:23.22Hellaenergyoh
23:26.28HellaenergyIn here they have it just like I do: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm
23:27.31Hellaenergyah wait
23:28.13Hellaenergydamit never mind
23:30.05Hellaenergyoh well I gotta go
23:30.15Hellaenergythanks for the help
23:30.17jasonbYup.
23:41.53*** join/#tomcat GodFodder (~rcc@pcp02876841pcs.watrfd01.mi.comcast.net)
23:46.20*** join/#tomcat ibot (ibot@208.186.182.172)
23:46.20*** topic/#tomcat is Tomcat Servlet Container Discussion; The Tomcat project is located at http://jakarta.apache.org/tomcat ; Servlet JSP Javadocs http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html ; For books or articles on Tomcat see: http://jakarta.apache.org/tomcat/resources.html ; If you would like to paste some code or configs for others to see please use http://www.hellaweb.com/hellabot/

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.