00:00.08 | CtrlFreq | "we booted it up and it went to a blue scree...yup thats windows" |
00:00.37 | Hellaenergy | They got rid of the blue screen now |
00:00.52 | Hellaenergy | now 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.25 | Pktloss | hey heaps |
03:05.08 | Pktloss | Im working on the jndi tutorial in the Tomcat docs, with MySQL. However, I cant seem to get it to work |
03:23.27 | Pktloss | I 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.06 | Pktloss | I 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.34 | heaps | I suggest you learn the basic jdbc first :) |
03:51.36 | Pktloss | How do i learn JDBC without being able to connect to the DB? |
03:53.34 | Pktloss | I did figure out that class name bit |
03:53.35 | heaps | that is it, the basic stuff would have taught you this |
03:54.08 | heaps | using jndi and a server is a bit advanced |
03:54.09 | Pktloss | And heck, i even tried adding the jndi.jar class to the classpath incase that was why it wouldnt find it |
03:54.26 | heaps | go start with an application using jdbc |
03:54.38 | heaps | then you'll get the idea |
03:55.46 | Pktloss | am i missing something small and stupid? |
03:56.03 | heaps | yep |
03:58.33 | heaps | now you do know how to find a resource to learn the basics of jdbc right? |
03:58.46 | Pktloss | 250 pages later in that textbook |
03:59.20 | heaps | well maybe this is the part you can jump into quickly and immersed |
03:59.52 | Pktloss | Did i miss something in the sun tutorial, or does it gloss over assuming somthing |
04:00.06 | Pktloss | i switched to their DB system, in hopes of being able to follow it step by step |
04:00.09 | heaps | from our convo last night, i seem to recall you havent got the compilation quite pat down yet |
04:00.18 | Pktloss | ive got it compiling |
04:00.31 | Pktloss | and have figgured out the class path bit |
04:01.03 | Pktloss | even tried adding the jndi.jar to that, thinking that, that missing bit would be in there |
04:01.08 | heaps | you're getting warm, similar ideas come into play here |
04:01.50 | heaps | perhaps take a detour and learn how to use jars..its essential me thinks |
04:04.11 | Pktloss | hmm |
04:04.37 | Pktloss | Is there a command line tool to see what a jar has inside it? |
04:05.05 | heaps | asked google yet? |
04:05.35 | Pktloss | Some information on bug collection |
04:06.27 | Pktloss | Im really glad i got this new monitor, easier on eye |
04:06.31 | Pktloss | s |
04:08.39 | Pktloss | whoohoo To view the contents of a JAR file jar tf jar-file |
04:09.47 | Pktloss | damn windows, wheres grep when you need it |
04:18.18 | Pktloss | Can I have another hint? |
04:18.39 | heaps | you're on the right track |
04:19.05 | Pktloss | hmm |
04:19.19 | Pktloss | I didn't see anything that looked like that error in the obvious looking jars |
04:19.35 | Pktloss | jndi, commons-dbcp, or jbc2. |
04:19.56 | heaps | aha, thats why i said about basics of jdbc, as these are covered in them extensively |
04:20.11 | Pktloss | Hmm |
04:20.31 | heaps | i started like that, perseverance paid off |
04:20.46 | Pktloss | Hmm |
04:22.00 | Pktloss | my text book is weak in that respect |
04:22.12 | Pktloss | but if im missing a jar, shouldnt an include be failing |
04:23.13 | heaps | lets go back to where you were stuck last night. how did you resolve that symbol unresolve error? |
04:23.45 | Pktloss | I 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.16 | heaps | okay |
04:24.25 | _sho_ | hey, got a question (doesnt everyone? :p ) |
04:24.39 | heaps | so here it should be similar process setting a ? |
04:24.57 | Pktloss | I extended my classpath. |
04:25.00 | Pktloss | set 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.57 | heaps | Pktloss: you know how to read a script right? you can open up catalina.sh and get some ideas of what they do |
04:27.11 | heaps | key there is classpath |
04:27.54 | heaps | sho: 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.21 | Pktloss | hmm, 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.51 | heaps | sho: referenced by a class? which class is referencing it? |
04:29.38 | _sho_ | ah, i do not know for sure. 8/ |
04:30.36 | heaps | sho: have any other java programs run before this? |
04:30.47 | _sho_ | hm. yep |
04:32.09 | heaps | umm 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.00 | heaps | i 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.18 | Pktloss | Hmm. Pardon? |
04:33.31 | heaps | see i already lost him :) |
04:34.01 | Pktloss | I 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.53 | heaps | Pktloss: its a known fact, tomcat sets its own classpath |
04:36.08 | Pktloss | Yes |
04:36.10 | _sho_ | nod@heaps |
04:36.35 | Pktloss | And since the JNDI is working through tomcat, it needs to know where the classes are |
04:36.38 | heaps | sho: something like that, but if you use the invoker.. |
04:36.41 | Pktloss | (my current though) |
04:36.58 | _sho_ | yeah, invoking |
04:37.00 | Pktloss | But, 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.31 | heaps | Pktloss: thats specific to your web application and not tomcat |
04:40.06 | heaps | Pktloss: btw have you found it yet by unpacking those jar where that specific class resides and was causing you problems? |
04:41.23 | Pktloss | no, not yet |
04:41.31 | Pktloss | windows really needs better command line tools |
04:41.51 | heaps | you didnt take my suggestion of taking a detour to jars :( |
04:41.51 | Pktloss | jar tf *.jar | grep would really help |
04:42.06 | Pktloss | im reading up on jars |
04:42.13 | Pktloss | http://java.sun.com/docs/books/tutorial/jar/basics/ |
04:42.27 | heaps | you can always transfer it over to your linux and do the unpacking there |
04:42.34 | heaps | err copy it over |
04:43.56 | Pktloss | yup |
04:44.19 | heaps | cool |
04:45.15 | Pktloss | sorry, 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.04 | heaps | well time to find out :) |
04:46.34 | jasonb | Pktloss: Better command line tools for Windows (free): http://www.cygwin.com |
04:47.26 | Pktloss | all for naught |
04:47.32 | Pktloss | aparently jar tf doesnt like wildcards |
04:48.04 | jasonb | unzip -l * |
04:48.25 | jasonb | err.. unzip -l *.jar |
04:48.39 | Pktloss | [Paul@pktloss jars]$ unzip -l *.jar |
04:48.39 | Pktloss | Archive: activation.jar |
04:48.53 | Pktloss | Length Date Time Name |
04:48.53 | Pktloss | -------- ---- ---- ---- |
04:48.53 | Pktloss | -------- ------- |
04:48.53 | Pktloss | 0 0 files |
04:48.55 | heaps | my suggestion to him was to search with in the jars to find his missing class :) |
04:49.27 | jasonb | how about "ls -la *.jar" and see if they're empty.. |
04:49.29 | Pktloss | can i have the name of the class im looking for or will it match that error |
04:49.55 | Pktloss | no, they all have sizes |
04:50.02 | heaps | your errror is your clue dude! |
04:50.18 | jasonb | ls -1 | grep '.jar' | xargs -i jar tf {} |
04:50.22 | heaps | am running him through the steps, how to troubleshoot a missing class :) |
04:50.43 | jasonb | heaps: Yeah, it's always a little tough to do that. |
04:52.12 | heaps | am giving him hints and possible resource to use (google!) :) |
04:52.13 | jasonb | ls -1 | grep '.jar' | xargs -i jar tf {} | grep TheNameOfTheClassYerLookinFor |
04:52.32 | Pktloss | tried that |
04:52.32 | Pktloss | [Paul@pktloss jars]$ ls -1 | grep '.jar' | xargs -i jar tf {}|grep mysql |
04:52.32 | Pktloss | [Paul@pktloss jars]$ |
04:52.35 | Pktloss | no results |
04:52.58 | Pktloss | same thing on gjt |
04:53.23 | heaps | you have not picked the right jar to look yet..and i am asserting again.. please learn the basic jdbc connectivity |
04:54.00 | jasonb | Pktloss: 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.06 | jasonb | find . -name "*.jar" | xargs -i jar tf {} | grep TheNameOfTheClassYerLookinFor |
04:54.39 | jasonb | ahh, you might also want grep -i |
04:54.44 | jasonb | find . -name "*.jar" | xargs -i jar tf {} | grep -i TheNameOfTheClassYerLookinFor |
04:55.17 | Pktloss | moment |
04:55.50 | jasonb | That 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.38 | Pktloss | i copied the entire tomcat\common dir to run that through, no dice |
04:56.44 | Pktloss | So i'm missing a class? |
04:56.59 | heaps | what do you think the error was? |
04:57.27 | Pktloss | I dont think im missing a class. |
04:57.34 | Pktloss | Or the includes should have failed |
04:57.53 | jasonb | Pktloss: you really need Cygwin. |
04:58.02 | jasonb | (or to get rid of Windows) |
04:58.18 | Pktloss | windows is a job requirement |
04:58.24 | Pktloss | heaps: am i close? |
04:58.27 | jasonb | So install Cygwin. |
04:58.34 | heaps | right, i forget, its way back, it was not able to load the class |
04:58.58 | heaps | paste the error again |
04:59.04 | Pktloss | java.sql.SQLException: Cannot load JDBC driver class 'org.gjt.mm.mysql.Driver' |
04:59.04 | Pktloss | at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou |
04:59.04 | Pktloss | rce.java:529) |
04:59.51 | jasonb | Pktloss: 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.58 | heaps | that Driver is a class, you know? |
05:00.46 | Pktloss | Yes, hopefully in a class i have |
05:01.06 | heaps | in a jar file you mean. |
05:01.21 | Pktloss | well, wouldnt the class be in a jar |
05:01.50 | heaps | anything can be in a jar. |
05:02.23 | Pktloss | yes. |
05:02.38 | Pktloss | So hopefully i have the jar that has the class that the mysql driver is in |
05:02.53 | heaps | right |
05:03.03 | heaps | and tomcat can find and load it |
05:03.08 | Pktloss | wait |
05:03.16 | Pktloss | Tomcat needs to find it, or the application needs to find it |
05:03.49 | Pktloss | sorry, the compiler compiling my .java file |
05:04.11 | _sho_ | yawn |
05:04.14 | heaps | right also |
05:04.20 | *** part/#tomcat _sho_ (eclark@p5080106F.dip.t-dialin.net) |
05:04.31 | Pktloss | right on which point, or both |
05:04.53 | heaps | both |
05:05.02 | Pktloss | okay |
05:05.16 | Pktloss | Hmm |
05:05.24 | heaps | http://www.javaskyline.com/learnjdbc.html <-- start here for the jdbc basics |
05:05.33 | Pktloss | so i can compile my .java file, so the compiler knows where to find the jar |
05:05.41 | Pktloss | but tomcat bails, so it doesnt? |
05:06.07 | heaps | what i said earlier about a know fact? you read that? |
05:06.16 | heaps | s/know/known/ |
05:06.28 | Pktloss | tomcat sets its own path |
05:06.50 | heaps | so if tomcat sets its own path, is that same as yours ? |
05:06.53 | Pktloss | no |
05:06.59 | heaps | path here being classpaht |
05:07.07 | Pktloss | k |
05:08.44 | Pktloss | so tomcats class doesnt include one of those jars, and i need it |
05:09.14 | heaps | yep |
05:09.43 | heaps | try running tomcat with -debug and see some interesting stuff |
05:10.58 | Pktloss | that was fun |
05:11.36 | Pktloss | it looks like its including all of them |
05:12.00 | heaps | looks may have decieved you! :) |
05:12.41 | Pktloss | well back when i only had servlet.jar in my classpath, it was compiling |
05:12.44 | Pktloss | and that one is included |
05:13.15 | heaps | once more, may i suggest the link i posted for the jdbc basics? |
05:13.54 | Pktloss | For 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.44 | heaps | ok. you seem to be in the right track |
05:17.07 | Pktloss | http://mmmysql.sourceforge.net/ |
05:18.24 | Pktloss | Is that getting warmer? |
05:18.39 | heaps | yep |
05:18.51 | Pktloss | i really hoped so |
05:18.58 | Pktloss | ooc, do you have an affero account? |
05:19.13 | heaps | quomo? |
05:19.24 | Pktloss | i dont know what that one means |
05:19.26 | Pktloss | www.affero.org |
05:19.37 | Pktloss | just a nice way to thank people who help you. |
05:19.54 | heaps | oh..am embarrassed :) |
05:20.28 | Pktloss | well, youve been helping me for 2hrs tonight, plus like another 2 yesterday |
05:20.45 | Pktloss | whoa |
05:20.47 | heaps | i hope something is sinking in. |
05:20.52 | Pktloss | http://www.mysql.com/downloads/api-jdbc-stable.html |
05:21.08 | Pktloss | thats a lot of files |
05:21.20 | Pktloss | whoa there we go |
05:21.23 | Pktloss | found the jars |
05:21.55 | heaps | alright, which one are you downloading? |
05:22.00 | Pktloss | zip |
05:22.24 | heaps | nothing in jar format? even though you can rename zip to jar |
05:22.25 | Pktloss | jdbc2_0-stext.jar, mysql-connector and jta-spec |
05:22.35 | Pktloss | those three jars are in there |
05:22.59 | heaps | okay |
05:23.13 | heaps | then start unjarring them to match that Driver you seek |
05:23.26 | Pktloss | can i just drop the three jars into the /lib |
05:23.41 | Pktloss | let it include the whole things |
05:23.48 | heaps | you can try, but its best to know which particular jar your Driver is in |
05:24.17 | heaps | which tomcat version you have? |
05:24.35 | Pktloss | hmm |
05:24.39 | Pktloss | tomcat 4.1 i thin |
05:24.43 | Pktloss | one jar was allready thread |
05:24.47 | Pktloss | didnt overwrite |
05:24.57 | Pktloss | put other two in, restarted |
05:25.06 | Pktloss | and oh joy, it ran |
05:25.24 | heaps | look at the sample index page..i think it'll tell you what version |
05:25.36 | Pktloss | Apache Tomcat/4.1.24 |
05:25.59 | heaps | ok, am on .18 but shouldnt be that much different i hope |
05:27.30 | Pktloss | ahh the new malibu commercial is great |
05:27.46 | Pktloss | so yeah, it ran |
05:28.01 | Pktloss | im gonna live on the edge, and change the db data, and see if that works |
05:28.25 | Pktloss | aww yeah |
05:28.40 | heaps | malibu? cheverolet nova malibu |
05:28.41 | heaps | ? |
05:28.46 | Pktloss | nah, the alcahol |
05:29.08 | heaps | oh. okay |
05:29.13 | Pktloss | got these jamican guys trying to doc their boat to go to a party, all yelling at each other, trying to park, |
05:29.25 | Pktloss | sleep deprevation euphoria is setting in, sorry |
05:30.04 | heaps | you dont sleep much? |
05:30.43 | Pktloss | Didnt sleep much past 2-3 nights |
05:30.52 | Pktloss | early classes or job interviews |
05:31.05 | heaps | get rid of the woman, :) |
05:31.10 | Pktloss | and CSI is on at midnight 7days a week (and its a good time to catch you) |
05:31.29 | Pktloss | Yeah, actually just took care of that |
05:31.57 | heaps | actually the woman should da put you to sleep <wink> |
05:32.27 | Pktloss | That does work. but then theres the degredation of sleep quality when sharing a bed. |
05:32.52 | heaps | specially if its a waterbed. man do they move! |
05:33.03 | Pktloss | Though im generally indifferent, petite women are easier to sleep (actually sleep) with. |
05:33.16 | Pktloss | Hmm, never had a waterbed |
05:33.40 | heaps | i had a waterbed once, it didnt last for a couple of month |
05:34.07 | heaps | she moved too much and i awaken :) |
05:34.23 | Pktloss | more than one in a bed does age it far more quickly, esp if its an extra long (like a twin, but longer) |
05:34.23 | Pktloss | Anyways. |
05:34.28 | Pktloss | yeah, that would suck |
05:34.48 | Pktloss | I know SQL, if done a lot of work with PHP and MySQL. |
05:34.59 | Pktloss | Am i likely to run into any other walls? |
05:35.14 | heaps | okay, put them at tomcat/common/lib |
05:35.21 | Pktloss | done |
05:35.24 | Pktloss | restarted tomcat |
05:35.26 | Pktloss | app ran |
05:35.39 | heaps | cool. no more of that error? |
05:35.48 | Pktloss | no |
05:35.51 | Pktloss | data came up nicely |
05:35.57 | heaps | cool |
05:36.25 | Pktloss | i thought so |
05:36.55 | Pktloss | Hmm |
05:37.13 | Pktloss | do i need to re-do all the server.xml stuff for each app that needs to access a database |
05:37.29 | heaps | umm no |
05:38.11 | heaps | you can specify the GlobalResources and each of them uses that |
05:38.13 | Pktloss | just the ResourceParams bit |
05:38.23 | Pktloss | ok |
05:39.26 | Pktloss | 0. Introduction |
05:39.27 | Pktloss | Versions of MySQL and the mm.mysql JDBC driver when have been reported to work: |
05:40.31 | heaps | what do you mean? maybe older versions have compatibility problems |
05:40.37 | Pktloss | well |
05:40.47 | Pktloss | thats where they started mentioning external drivers and versions |
05:40.55 | Pktloss | which, now, seems quite aparently important |
05:41.40 | heaps | i guess thats why they attempt to have it at the very beginning but usually ignored :) |
05:41.48 | Pktloss | <G> |
05:42.46 | heaps | actually i never recall having problems with mysql drivers |
05:43.15 | heaps | its when setting up the datasource in tomcat that was shall i say overly complex in earlier times |
05:43.22 | Pktloss | not 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.12 | heaps | if you had looked at oracle it does have the link but off course you'd be using oracle |
05:44.43 | Pktloss | since you could have mysql and Tomcat before, perfectly fine, and not had that |
05:45.20 | Pktloss | Yeah, Oracle is out of my price range |
05:46.33 | heaps | am off for now..laters |
05:46.42 | Pktloss | thank you /very/ much |
05:46.49 | Pktloss | the scavenger hunt was great |
05:46.57 | Pktloss | gnite all |
05:46.58 | heaps | you're welcome..am glad you learned something |
05:47.23 | heaps | otherwise id be disappointed if you didnt learn anything :) |
06:13.21 | rslow | i was reading some article about tomcat. saying that you can use tomcat to set up for development |
06:13.27 | rslow | what 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.20 | cs|sking | is this help forum? |
08:18.06 | cs|sking | if not is there a help forum for tomcat questions? |
09:06.29 | *** join/#tomcat Jaster (~jaster@eleanor.handeldsbanken.se) |
09:13.39 | Jaster | oI, 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.58 | Mikk | hi |
12:41.09 | Mikk | can somebody help me? |
12:41.18 | Mikk | i cannot see the servlets from my browser |
12:41.45 | Mikk | the "Hello World" example works not, it results an error404 message |
12:47.07 | Mikk | hahooo |
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.31 | Hellaenergy | hi |
14:49.44 | Hellaenergy | anyone 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.37 | Superpig | any awake and feeling helpful enough to take pity on this humble newb? |
15:37.57 | Hellaenergy | just ask |
15:38.22 | Superpig | I've installed tomcat on a gentoo box, and I'm having problems with the Admin webapp |
15:38.32 | Superpig | it's the authentication |
15:38.38 | Hellaenergy | how did you install it? |
15:38.38 | Superpig | it's getting stuck at j_security_check |
15:38.44 | Superpig | with error 403 - direct access |
15:38.46 | Superpig | emerge |
15:38.49 | Superpig | (portage) |
15:39.10 | Hellaenergy | did you add an admin user to your tomcat-users.xml? |
15:39.19 | Hellaenergy | ibot: tomcat-admin |
15:39.20 | | Hellaenergy: i don't know |
15:39.24 | Hellaenergy | ibot: tomcat admin |
15:39.24 | | Hellaenergy: have you tried http://www.tldp.org/ ? |
15:39.31 | Superpig | yeah, I did that |
15:39.36 | Superpig | hey, *whoa* |
15:39.46 | Hellaenergy | so the user is in the admin group? |
15:39.47 | Superpig | oh, dammit. It's a browser problem |
15:40.03 | Superpig | I just logged in ok through firebird.... must be a Safari problem |
15:40.09 | Superpig | thanks for your help, anyhow :) |
15:40.16 | *** part/#tomcat Superpig (~Superpig@proxy.malcol.org) |
15:40.18 | Hellaenergy | :) |
15:40.32 | Hellaenergy | You should do your configs by hand anyways |
15:40.39 | Hellaenergy | imho |
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.07 | n0ir` | 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.55 | n0ir` | what would be the best choice to use as a connector between apache and tomcat? |
18:24.41 | Remm | the current practice is JK 2; use the older JK for a well tested solution |
18:27.35 | Hellaenergy | Remm: There is not setup docs on JK 2 though |
18:27.50 | Hellaenergy | s/not/no/ |
18:28.20 | Hellaenergy | That new book comming out on tomcat will have it. But, nothing for now. |
18:28.24 | Remm | http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/ |
18:28.55 | Hellaenergy | bad link |
18:28.59 | Hellaenergy | url |
18:31.25 | Hellaenergy | hm.. maybe its my connection |
18:31.50 | jasonb | Hellaenergy: The URL does load for me. It's just not good docs. :) |
18:32.07 | Hellaenergy | Ya I've think I have seen those then :) |
18:33.07 | Hellaenergy | I am having trouble with the keyboard chair interface today |
18:33.49 | Hellaenergy | brb |
18:48.24 | *** join/#tomcat Hellaenergy (~Hellaener@209.181.237.141) |
18:53.31 | Hellaenergy | What was that jk 2 doc url again? |
18:55.04 | Hellaenergy | Ya that doc is for someone who already knows how to setup jk2 or something. |
18:56.24 | Remm | yep, it doesn't really cover the basics |
18:57.45 | n0ir` | Hellaenergy: what is that new book you were talking about? |
18:58.15 | Hellaenergy | n0ir`: look at the topic ;) |
18:58.47 | n0ir` | is it released? |
18:59.32 | Hellaenergy | should be any day now |
18:59.44 | Hellaenergy | jasonb: what is the status on that damn book? |
19:00.12 | Hellaenergy | http://www.oreilly.com/catalog/tomcat/ |
19:00.29 | Remm | there's always the list of books on the TC site for reference: http://jakarta.apache.org/tomcat/resources.html |
19:01.00 | Spline | I saw it available at barnesandnoble.com |
19:01.10 | Hellaenergy | plug :) Apache Tomcat Performance Handbook, by Peter Lin, Remy Maucherat |
19:01.56 | Hellaenergy | wow now I see why there is no documentation on mod_jk |
19:02.00 | Hellaenergy | 2 |
19:02.44 | n0ir` | why? |
19:03.06 | Hellaenergy | because all the guys who would otherwise are writing books ;) |
19:03.19 | n0ir` | 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.06 | fox__ | wii |
19:11.08 | fox__ | 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.53 | jasonb | Hellaenergy: 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.16 | jasonb | Hellaenergy: I actually think the bulk of them are being printed right now, and probably the major distributors haven't received them yet. |
19:27.37 | n0ir` | 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.59 | TPABKA | grr |
19:37.14 | TPABKA | jk2 messes up apache vhosts... |
19:37.54 | TPABKA | i define locations for one vhost and can see it in others |
19:38.12 | TPABKA | ideas? |
20:12.11 | n0ir` | hmm is there supposed to be a buildconf.sh script with jk? |
20:12.16 | n0ir` | jk source that is |
20:14.16 | TPABKA | there is |
20:14.57 | TPABKA | in native or native2 |
20:21.17 | *** join/#tomcat Hylander (~johnjohn@5.208.216.216.transedge.com) |
20:37.41 | TPABKA | what 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 | _m0nk3y | Could someone help me with a realm authentication quesiton? |
20:53.56 | Hellaenergy | Just Ask |
20:55.37 | *** join/#tomcat vx`schlumpf2 (~vx_schlum@dsl-213-023-049-023.arcor-ip.net) |
20:55.54 | Hellaenergy | hi |
20:55.56 | _m0nk3y | I 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 | _m0nk3y | Is the afforementioned a bug in Tomcat or am I trying to do something that isn't possible. |
20:56.50 | Hellaenergy | http://www.oreilly.com/catalog/tomcat/chapter/index.html |
20:58.03 | _m0nk3y | I'll take a read and see what I find. Thanks for the link. |
20:58.03 | Hellaenergy | _m0nk3y: I wouldn't tell you. I have not worked with Tomcat security-constraints much |
20:58.28 | _m0nk3y | I tried looking at request.isUserInRole(..) and the user role doesn't match the constraint however Tomcat lets me in. |
20:58.52 | Hellaenergy | what version of Tomcat? |
20:58.57 | _m0nk3y | 4.1.24 |
20:59.07 | Hellaenergy | Linux or Windows? |
20:59.11 | _m0nk3y | windows |
20:59.20 | _m0nk3y | yep |
20:59.23 | Hellaenergy | :) |
21:04.09 | *** join/#tomcat heaps (eapolo01@hills.ccsf.cc.ca.us) |
21:18.12 | heaps | tomcat 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.40 | jasonb | Yeah, 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.08 | jasonb | heaps: 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.55 | jasonb | heaps: 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.04 | heaps | the 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.26 | Condor | good evening! |
21:27.33 | jasonb | heaps: Does the war file you want to link to reside on the same filesystem as the Tomcat webapps/ directory? |
21:28.10 | Condor | i've got a problem with tomcat 4.0.3 + apache 1.3.26 and the mod_jk 1 module (debian woody packages) |
21:28.38 | Condor | tomcat works flawlessly standalone,but not with mod_jk |
21:28.43 | Condor | for example: http://condor.madoka.be/jsp/numguess.jsp |
21:29.46 | jasonb | debian sucks. |
21:29.51 | heaps | jasonb: the link i have is webapps/cocoon.war and cocoon.war resides at /home/srcocooon/cocoon2.1/pathhere/ |
21:29.51 | Condor | that's the same numguess.jsp as in the tomcat4-webapps , only thru apache, it keeps complaining the file can't be found |
21:30.16 | heaps | and yes they are on same file system |
21:30.21 | *** part/#tomcat _m0nk3y (~bigdaddy@209.144.151.2) |
21:30.28 | heaps | not mounted from another hd or NFS |
21:30.33 | jasonb | heaps: Ahh, okay. So don't use a symlink. Instead, use a hard link. |
21:30.49 | Condor | jasonb: not to start a distro war, but this doesn't really seem a distro specific problem, does it? |
21:31.00 | jasonb | (at least until I can figure out what the deal is with this allowLinking attribute.) |
21:31.24 | Condor | i've tried adjusting the JkMount in each virtualhost, but in vain |
21:31.42 | heaps | jasonb: okay thanks ill try the hardlinks |
21:32.17 | jasonb | Condor: debian just doesn't support Java well, so us Java people don't support debian well either. |
21:32.41 | jasonb | Condor: 99% of the time, when debian users complain about Tomcat, the problem is caused by debian suckage, not Tomcat suckage. |
21:33.02 | Hellaenergy | Debian supports Java just fine |
21:33.11 | Hellaenergy | You Redhat lover! |
21:33.15 | Condor | ic.. well, i'm using the 1.3 java sun jre |
21:33.19 | jasonb | Condor: And, apache 1.3 and mod_jk suck about as bad as debian, mainly because they're so old and crufty. |
21:33.33 | Hellaenergy | :() |
21:33.46 | jasonb | Hellaenergy: Debian's Tomcat packages have invariably been broken, and installing them correctly means installing a broken Tomcat. |
21:33.57 | Hellaenergy | whats broken? |
21:33.59 | jasonb | Then everyone comes here and asks why Tomcat's broken. |
21:34.00 | Condor | jasonb: that very well might be, but that isn't a solution.. |
21:34.23 | Hellaenergy | The only thing i have seen is people complain that the admin app is not included. |
21:34.28 | Condor | we are not going to throw out an otherwise perfect setup because of 1 item (tomcat) |
21:34.32 | jasonb | Condor: 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.52 | jasonb | Condor: Then you're on your own with your broken Tomcat package. |
21:35.10 | Hellaenergy | just download it from the tomcat site and forget the deb |
21:35.17 | Condor | jasonb: i've been using debian for quite a few years now, and i can't really complain |
21:35.17 | Hellaenergy | thats what I did |
21:35.46 | Hellaenergy | apt-get rocks! |
21:36.01 | Condor | i have been googling for a solution, and have come up with a number of sites with the identical same problem |
21:36.27 | Condor | this one for example: http://www.geopolitis.net/geopol/geo/article/arti1016622010aaaeE-EY9gay-ATJ.html |
21:36.35 | jasonb | mod_jk* tends to be broken anyway. Especially if you're using Apache 1.3.x. |
21:36.47 | Condor | or this one: http://www2.us.elsevierhealth.com/scripts/scripts/om.dll/serve?action=searchform |
21:37.03 | Condor | i see |
21:37.25 | jasonb | If you're not using Apache 2, and you're not compiling mod_jk2 and using that, then expect breakage. |
21:37.36 | jasonb | And, even if you do those things, expect a little breakage anyway. :) |
21:37.55 | jasonb | heaps: Which error is that? |
21:38.31 | Condor | jasonb: apache 2 is out of the question, because of inadequate php module support |
21:38.39 | Hellaenergy | lol |
21:38.48 | heaps | its 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.31 | jasonb | php sucks. |
21:40.11 | heaps | i looked at previous compile errors, its 150 libtool: link: only absolute run-paths are allowed |
21:40.19 | Hellaenergy | here we go again :\ |
21:40.25 | Condor | jasonb: ugh |
21:40.46 | *** join/#tomcat p3 (~p3sulliva@pikes200.centura.org) |
21:41.07 | jasonb | One 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.27 | p3 | 4.1.25 status? |
21:41.33 | _Epoch_ | hallo |
21:41.40 | jasonb | hallo. Heh. |
21:41.56 | heaps | hmm 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.25 | p3 | ubot ibot? |
21:42.26 | jasonb | Just don't ask how to fix debian! |
21:42.44 | _Epoch_ | not going to ask about debian |
21:42.56 | Spline | hey, does anyone know how to get tomcat working on debian? |
21:43.08 | p3 | hole |
21:43.13 | _Epoch_ | having a problem with configuring Apache-Tomcat 4.1 to run multiple hosts |
21:43.22 | p3 | OS? |
21:43.24 | jasonb | ibot: vhosts |
21:43.25 | | it has been said that vhosts is at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html |
21:43.25 | TPABKA | hey |
21:43.35 | Condor | tomcat _does_ work, mod_jk bitches |
21:43.36 | TPABKA | jk2 screwes apache vhosts |
21:43.40 | _Epoch_ | win 200 adv |
21:44.00 | TPABKA | i can see uris in all the apache vhosts |
21:44.12 | TPABKA | not only in the one the uri is defined in |
21:44.14 | p3 | And Epoch? |
21:44.16 | _Epoch_ | i'm using the web administration tool |
21:44.23 | _Epoch_ | yesh |
21:44.25 | _Epoch_ | yes |
21:44.30 | jasonb | TPABKA: 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.40 | heaps | maybe the guy can revive mod_webapp |
21:44.54 | jasonb | Good luck. |
21:45.01 | heaps | :) |
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.11 | jasonb | _Epoch_: Did you read the Host configuration page at the URL above? |
21:46.14 | p3 | bind-ed? |
21:46.15 | _Epoch_ | yes |
21:46.48 | jasonb | _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.00 | Condor | jasonb: 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.52 | heaps | take 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.25 | p3 | check files for commits? |
21:49.12 | jasonb | Condor: 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.03 | jasonb | _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.14 | heaps | btw 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.34 | Condor | jasonb: 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.57 | Spline | resin! |
21:54.36 | Condor | and i'm certain it has some problems with the apache vhost configuration.. must be |
21:54.58 | jasonb | php = no. |
21:56.20 | jasonb | And, 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.15 | Condor | jasonb: i understand, but for the user, the result counts, and that is that apache 2 and php aren't good friends (yet) |
21:57.33 | jasonb | Who and PHP *are* good friends? |
21:57.55 | Condor | i think your opnion on this matter does not reflect the general opinion ;) |
21:57.58 | Spline | php is an apache project now |
21:58.04 | Spline | php and httpd are not good friends |
21:58.10 | Spline | but php and apache get along nicely :) |
21:58.45 | Condor | you can debate about it, but fact remains that setting up an apache with php support is easy |
21:58.59 | jasonb | Just not a modern Apache. |
21:59.00 | Condor | and an apache & tomcat (with mod_jk*) is not |
21:59.25 | Condor | jasonb: there is few reason to use apache 2 on unix/linux.. |
21:59.42 | jasonb | Condor: Also, Tomcat doesn't need Apache httpd. Only people who use both PHP and Tomcat need Apache httpd, IMO. |
21:59.57 | Spline | I upgraded to apache 2 and then downgraded to apache1 again |
22:00.00 | Spline | begrudgingly |
22:00.06 | Spline | because I needed cold fusion 4.5 support |
22:00.12 | jasonb | blah. |
22:00.19 | Spline | I know, I hate cold fusion |
22:00.24 | jasonb | Spline: Because your work chose it? |
22:00.29 | Spline | just have an old app I haven't taken the time to rewrite |
22:00.36 | Spline | nah, a guy I hired chose it |
22:00.54 | jasonb | Welp, if you need to run lots of old stuff, yeah, you probably need an old Apache. |
22:00.55 | Spline | I was being a good manager, I suppose |
22:01.04 | Spline | its hard to decide when to let someone choose their own tools, you know? |
22:01.14 | Condor | jasonb: 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.32 | Condor | mathematically speaking: php is 50 times more important than JSP |
22:01.45 | Condor | you understand what i mean? |
22:01.51 | jasonb | Condor: 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.30 | Spline | Condor: I frown on JSP almost as much as on PHP |
22:02.40 | Spline | the only JSP I continue to write is in conjunction with struts |
22:02.47 | Spline | and I am leaning towards switching to velocity |
22:02.53 | Condor | jasonb: true.. but tell that to the users! |
22:03.27 | Condor | personally, i think it's very convenient that apache supports multiple languages such as perl, python, php,... |
22:04.27 | jasonb | Condor: 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.59 | Spline | OK, I must go. I'll continue the religious war later |
22:05.05 | Spline | ciao! |
22:05.09 | Condor | i don't even have to look at it to know what it says :) |
22:05.26 | jasonb | Good. |
22:05.53 | Condor | and yes, JSP is gaining popularity very rappidly |
22:06.12 | Condor | but it still doesn't come close to the PHP popularity |
22:06.28 | Condor | that said, i would like to get back to my original problem :) |
22:06.41 | jasonb | Condor: Do you have independent research results to back up that claim? |
22:07.16 | Condor | jasonb: no, only practical experience |
22:07.17 | jasonb | I didn't think so. |
22:07.57 | Condor | but you can't honestly claim that JSP is almost as big as PHP, can you? |
22:08.44 | jasonb | I don't need to. Netcraft already did. |
22:09.09 | jasonb | And, not almost.. it is in wider use than PHP. |
22:11.18 | Condor | i , respectfully of course, disagree |
22:11.37 | Condor | no use debating about it though... both languages have their advantages |
22:11.46 | heaps | where 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.59 | jasonb | heaps: I don't think you need to configure any <DefaultContext>. |
22:13.36 | heaps | jasonb: right, but in case i have to, where should that be located at? |
22:14.27 | heaps | at same level as those <Context ..> are? |
22:16.55 | jasonb | I think.. |
22:18.14 | heaps | okay |
22:22.22 | hellabot | "Hellaenergy" pasted "Does this syntax look right?" at http://www.hellaweb.com/hellabot/7 |
22:23.13 | Hellaenergy | I am getting this in the catalina.out: |
22:23.14 | Hellaenergy | SEVERE: Parse Fatal Error at line 385 column 56: The reference to entity "password" must end with the ';' delimiter. |
22:23.29 | Hellaenergy | whats with that? |
22:25.01 | jasonb | Hellaenergy: What's saying that? Is it part of an exception stack trace? |
22:25.53 | Hellaenergy | tomact |
22:25.58 | Hellaenergy | <PROTECTED> |
22:26.08 | Hellaenergy | thats the line its complaining about I think |
22:26.27 | Hellaenergy | should the & be a ;? |
22:27.20 | heaps | that seem to look right & as separator between parameters |
22:28.00 | Hellaenergy | I literally just copied that config from http://www.rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuide |
22:28.46 | jasonb | hmmm |
22:29.55 | Hylander | hello all |
22:30.29 | Hellaenergy | do crlf mess with the server.xml parser |
22:30.33 | Hylander | question....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.34 | heaps | i am using th blogger i found from a jsp sample on ibm site, authored by mark kolb. |
22:30.49 | jasonb | Hellaenergy: 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.59 | groton | Hello all |
22:31.11 | Hylander | Hellaenergy, I bet it does ....unless they fixed it recently. depends on version? |
22:31.18 | heaps | Hylander: something like a symlink |
22:31.45 | Hylander | heaps: not using *x. how about on windows. (I am mandated to use windows :( ) |
22:31.47 | heaps | am trying to get that to work at this instance |
22:32.19 | Hylander | heaps: cool....any luck? |
22:32.42 | heaps | hmm..i sort of recall nt has something akin to symlink, but a tool you have to enable from the cdrom i believe |
22:32.48 | Hylander | heaps: perhaps you have to put the files there and then runtime copy them over to a subdirectory. |
22:32.51 | Hylander | but that is a hack. |
22:33.09 | Hylander | heaps: cdrom?, Shortcut links don't work of course... |
22:33.19 | Hylander | heaps: as they are not addressable |
22:33.19 | hellabot | "Hellaenergy" pasted "stacktrace" at http://www.hellaweb.com/hellabot/8 |
22:33.39 | heaps | i cant remember the details, perhaps you can google for symlinks in windows |
22:34.17 | Hylander | heaps: I wonder if you can get tomcat to launch under cygwin then have it use that "OS". |
22:34.37 | heaps | now thats sounds very hackish :) |
22:35.36 | Hylander | heaps: I don't think as hackish as runtime copying the files outside of tomcat (using fileio) to the directory under tomcat. |
22:35.59 | Hylander | heaps: maybe a taglib called ( <outerfile:myfile.jpg> ) |
22:36.40 | heaps | yeah jstl have neat features of acquiring pages from other than its own context |
22:36.45 | heaps | using import |
22:36.53 | Hylander | heaps: er.... <outerfile:f filename="myfile.jpg" path="/x/y/z"/> |
22:37.08 | Hylander | heaps: import? |
22:37.14 | Hellaenergy | jasonb: did you see that post? |
22:37.23 | heaps | yeah if you look at jstl core tags |
22:37.39 | heaps | its <c: import ...> |
22:37.41 | Hylander | heaps: but there really should be (by now) a way to just configure this stuff.... |
22:37.55 | Hylander | heaps: thanks. |
22:38.17 | heaps | there is in linux, but you said you're limited by windows inability to symlink |
22:38.48 | Hylander | heaps: I guess say you have an image, you'd : <img src="<c:import.../>"> |
22:39.29 | heaps | Hylander: something like that, you can store the imported stuff to a variable and use it later like $var |
22:39.34 | Hylander | heaps: tomcat should just know it can use a directory up some level ie: "../../../myexternalfiles/customerA/images/" |
22:39.59 | Hylander | heaps: or "../../cust/001/x.pdf or x.rpt" |
22:40.03 | heaps | Hylander: i think its the server specs that limits that because of security issues? |
22:40.19 | heaps | can you imagine if one can just ../../../etc/passwd ? |
22:40.36 | Hylander | heaps: any security you turn on I think should be allowed to be disabled then somewhere. obviously that by default is insecure" |
22:40.51 | jasonb | Hellaenergy: Interesting error. |
22:40.53 | Hylander | heaps: maybe if you specify where it can go. |
22:40.59 | jasonb | Hellaenergy: I think I know what causes it. |
22:41.05 | Hellaenergy | hm? |
22:41.09 | Hylander | heaps: and the security continues to work in the other areas. |
22:41.47 | jasonb | Hellaenergy: Is line 385 of your server.xml the line that reads: |
22:41.49 | jasonb | <value>jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true</value> |
22:41.50 | jasonb | ? |
22:42.05 | Hellaenergy | no its the line below that |
22:42.30 | Hellaenergy | I just went to the top of the page in vi and did a 385 return |
22:42.37 | Hellaenergy | so it might be ;) |
22:42.41 | jasonb | Yeah, it might be. |
22:42.45 | jasonb | One sec. |
22:43.04 | heaps | Hylander: 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.33 | Hylander | heaps: thank you. |
22:44.07 | heaps | you're welcome |
22:44.25 | jasonb | Hellaenergy: Try making that line look like this instead: |
22:44.28 | jasonb | <value><![CDATA[jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true]]></value> |
22:44.48 | Hellaenergy | k |
22:45.06 | heaps | :P but i prefer a tylenon right now..darn atmospheric pressure triggering my sinus |
22:45.15 | heaps | eer tylenol |
22:46.06 | Hellaenergy | jasonb: its not that line :( that didn't work. |
22:46.25 | Hellaenergy | the line in its intirety is: |
22:46.26 | Hellaenergy | <PROTECTED> |
22:47.13 | hellabot | "Hellaenergy" pasted ""jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true"" at http://www.hellaweb.com/hellabot/9 |
22:47.16 | heaps | Hellaenergy: umm i think you need commas there |
22:47.28 | Hellaenergy | hm? where? |
22:47.33 | jasonb | nah, no commas. |
22:47.37 | jasonb | It's a URL. |
22:48.17 | jasonb | Hellaenergy: 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.18 | heaps | yeah its a URL but the mysql takes parameters one at a time? |
22:48.20 | jasonb | <value>jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true</value> |
22:49.08 | Hellaenergy | jasonb: I did the CNAME thing to that line already with no luck |
22:49.09 | heaps | so somehow those user password and autoReconnect has to be tokenized and processed individually |
22:49.16 | jasonb | Hellaenergy: The XML parser is puking on "&password" since it thinks it's an entity, which need to end with semicolons. |
22:49.31 | jasonb | Hellaenergy: what CNAME thing? |
22:49.47 | Hellaenergy | sorry dns talk :| |
22:49.48 | Hellaenergy | "jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true" |
22:49.49 | jasonb | heaps: The mm mysql jdbc driver does that. |
22:49.59 | Hellaenergy | CDATA i meant |
22:50.04 | heaps | okay |
22:50.30 | jasonb | Hellaenergy: 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.42 | jasonb | NOT the one with quotes around it. |
22:50.52 | Hellaenergy | yes I do |
22:52.02 | jasonb | Hellaenergy: Next, try making it look like this: |
22:52.04 | jasonb | <value>jdbc:mysql://localhost/roller?user=roller&password=tiger&autoReconnect=true</value> |
22:52.19 | Hellaenergy | within the Realm tag? |
22:52.47 | Hellaenergy | http://hellaweb.com/hellabot/7 |
22:52.48 | jasonb | Hellaenergy: Is that the _second_ occurrance of the URL that I'm talking about? :) |
22:53.10 | Hellaenergy | nope |
22:53.31 | Hellaenergy | I am just confused because the parser is erroring out before it even gets to the tag your talking about |
22:53.37 | Hellaenergy | but I will try it |
22:53.38 | jasonb | That's fine. |
22:53.54 | jasonb | I'm suggesting fixes to what I suspect may be going wrong. |
22:54.49 | Hellaenergy | nope same error |
22:55.05 | jasonb | Oh, 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.51 | Hellaenergy | I already got rid of that :\ |
22:55.55 | Hellaenergy | :) |
22:56.52 | Hellaenergy | I am getting rid of all the lf in that |
22:57.23 | Hellaenergy | still no luck |
22:58.11 | Hellaenergy | Do you think the Realm tag should be below the other stuff? |
22:59.27 | Hellaenergy | That didn't work :( |
23:03.49 | jasonb | What doesn't work about these? Can you be more specific? |
23:03.57 | jasonb | Same error on all of them? |
23:04.02 | Hellaenergy | same error every time bro |
23:04.17 | Hellaenergy | give or take a line number :) |
23:07.16 | jasonb | ugh. |
23:07.27 | Hellaenergy | tell me about it |
23:08.27 | Hellaenergy | ok now when I do this: |
23:08.28 | Hellaenergy | <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.36 | Hellaenergy | I get: |
23:08.54 | jasonb | Try 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.02 | hellabot | Someone pasted "SEVERE: Parse Fatal Error at l" at http://www.hellaweb.com/hellabot/10 |
23:09.59 | Hellaenergy | keep connectionURL? |
23:10.27 | jasonb | Yeah, make it connectionURL="jdbc:mysql://localhost/roller?user=roller" |
23:10.57 | jasonb | Also, you can try temporarily changing the password to something else just to know which line you should be editing. |
23:11.17 | Hellaenergy | good idea |
23:13.53 | Hellaenergy | I am editing the right line ;) |
23:14.09 | Hellaenergy | the one in the Realm |
23:14.32 | jasonb | ok. So then what happens when you change connectionURL="jdbc:mysql://localhost/roller?user=roller" |
23:14.36 | jasonb | ? |
23:14.45 | Hellaenergy | same error |
23:14.59 | jasonb | Same line number too? |
23:15.08 | Hellaenergy | when I put a semicolon on the end of password;=tiger ... |
23:15.14 | Hellaenergy | I get a different error |
23:15.35 | Hellaenergy | http://hellaweb.com/hellabot/10 |
23:17.07 | jasonb | Now it's choking on the second occurrance of the JDBC URL. |
23:17.27 | jasonb | At least it seems that way.. what's on that line number? |
23:17.39 | jasonb | Line 429? |
23:17.51 | Hellaenergy | thats what the log said :) |
23:17.56 | jasonb | What's on that line number? |
23:18.22 | jasonb | Err, what's on line 429? |
23:18.42 | Hellaenergy | the Realm stuff |
23:20.39 | Hellaenergy | what will the Context debug="0" do for ya? |
23:20.48 | Hellaenergy | debug in general |
23:20.54 | Hellaenergy | is that while tomcat is running? |
23:23.03 | jasonb | Turns off debugging. Gives you a spot to turn it on or up. |
23:23.17 | jasonb | It's Tomcat's runtime debug logging. |
23:23.20 | Hellaenergy | when is it debugging ? |
23:23.22 | Hellaenergy | oh |
23:26.28 | Hellaenergy | In here they have it just like I do: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRealm |
23:27.31 | Hellaenergy | ah wait |
23:28.13 | Hellaenergy | damit never mind |
23:30.05 | Hellaenergy | oh well I gotta go |
23:30.15 | Hellaenergy | thanks for the help |
23:30.17 | jasonb | Yup. |
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/ |