00:12.42 | *** join/#tomcat lalle (lars@h229n2fls31o267.telia.com) [NETSPLIT VICTIM] |
02:01.47 | *** join/#tomcat obscured (~jhong@su-nat.datapipe.net) |
02:15.49 | *** join/#tomcat kms (~kms@pc3-cowc1-3-cust62.renf.cable.ntl.com) |
02:57.20 | *** join/#tomcat Nurbs (tom@pD9E09697.dip.t-dialin.net) |
02:59.02 | *** join/#tomcat bla (tom@p50859E76.dip.t-dialin.net) |
04:02.45 | *** join/#tomcat Hellaenergy (~Hellaener@hellaweb.com) |
04:02.56 | Hellaenergy | who has mod_jk2 working with apache 13? |
04:14.29 | cee | hell, you made me feel bad so I fixed ashpool.com |
04:27.57 | Hellaenergy | I'm sorry |
04:28.19 | Hellaenergy | It'll be good for everyone in the long run, though |
05:04.55 | jasonb | Hellaenergy: From what I've read, I think mod_jk2 supports Apache 1.3, but just barely. That means people other than the author(s) may not ever see it working. |
05:05.05 | jasonb | Hellaenergy: It's really meant for Apache 2.x. |
05:19.41 | Hellaenergy | jasonb: you there? |
05:19.44 | Hellaenergy | still |
05:20.15 | jasonb | Yes. |
05:20.37 | Hellaenergy | I know I read that too |
05:20.46 | Hellaenergy | It seems like I am so close though |
05:20.50 | Hellaenergy | anyways |
05:20.53 | jasonb | What's it doing? |
05:20.58 | jasonb | Also, what platform is this on? |
05:21.04 | Hellaenergy | linux |
05:21.06 | jasonb | ok. |
05:21.09 | Hellaenergy | 1.3.26 |
05:21.21 | jasonb | What's it doing? |
05:21.31 | Hellaenergy | one sec here is the dump |
05:21.45 | Hellaenergy | ready |
05:21.49 | jasonb | Heh. Sure. |
05:21.51 | Hellaenergy | [Sat Feb 01 05:04:42 2003] ( info) [jk_logger_file.c (217)]: Level DEBUG 0 |
05:21.52 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_env.c (298)]: env.createBean2(): Factory error creating channel.jni:jni ( channel.jni, jni) |
05:21.52 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_config.c (418)]: config.update(): Can't create channel.jni:jni |
05:21.52 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_env.c (298)]: env.createBean2(): Factory error creating vm: ( vm, ) |
05:21.52 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_config.c (418)]: config.update(): Can't create vm: |
05:21.53 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_env.c (298)]: env.createBean2(): Factory error creating worker.jni:onStartup ( worker.jni, onStartup) |
05:21.56 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_config.c (418)]: config.update(): Can't create worker.jni:onStartup |
05:22.01 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_env.c (298)]: env.createBean2(): Factory error creating worker.jni:onShutdown ( worker.jni, onShutdown) |
05:22.04 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (error) [jk_config.c (418)]: config.update(): Can't create worker.jni:onShutdown |
05:22.06 | Hellaenergy | [Sat Feb 01 05:04:42 2003] ( info) [jk_logger_file.c (177)]: Initializing log file /usr/local/apache/logs/jk2.log |
05:22.09 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (337)]: uriMap.init() Fixing Host * |
05:22.12 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri (null) context (null) |
05:22.13 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /examples context /examples |
05:22.16 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /examples/servlets/* context (null) |
05:22.19 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /examples/*.jsp context (null) |
05:22.21 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /examples/* context (null) |
05:22.23 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /servlet/* context /ROOT |
05:22.25 | Hellaenergy | [Sat Feb 01 05:04:42 2003] ( info) [jk_uriMap.c (445)]: uriMap: creating context */ROOT |
05:22.26 | Hellaenergy | [Sat Feb 01 05:04:42 2003] (debug) [jk_uriMap.c (423)]: uriMap: fix uri /arcimsServletConnector/servlet/* context (null) |
05:22.32 | Hellaenergy | [Sat Feb 01 05:0 |
05:22.52 | jasonb | Okay, let me ask you some questions. |
05:22.58 | Hellaenergy | k |
05:23.10 | jasonb | First question: What form of communication do you want between mod_jk2 and Tomcat? |
05:23.23 | Hellaenergy | honestly I don't know |
05:23.35 | jasonb | Your choices are: Network Sockets, UNIX domain sockets, JNI. |
05:23.42 | jasonb | That's probably your main problem. |
05:23.46 | Hellaenergy | whats best |
05:23.48 | jasonb | You have to choose one of these. |
05:24.09 | jasonb | Do you run both Apache and Tomcat on the same machine? |
05:24.12 | Hellaenergy | yes |
05:24.23 | jasonb | Do you run only/exactly one Apache httpd? |
05:24.39 | Hellaenergy | yes |
05:24.47 | jasonb | (for example, you don't have two front-end web server machines, each with Apache and mod_jk2 on it, right? |
05:24.48 | jasonb | ) |
05:24.52 | Hellaenergy | you mean on instance of it? |
05:25.04 | jasonb | Sure, say "instance" then. |
05:25.14 | Hellaenergy | I have 9 in ps aux |
05:25.22 | jasonb | Well, that's not what I'm asking. |
05:25.26 | Hellaenergy | ok |
05:25.38 | jasonb | One "instance" of Apache httpd, in my book, is when you do apachectl start just one time on one box. |
05:25.59 | Hellaenergy | well then the answer is yes, just one. |
05:26.19 | jasonb | 1.3 preforks off lots of processes, each one can serve a request, but not stand-alone.. it needs a controller httpd process. I'm wanting to know how many controller httpd processes you're intending to run. |
05:26.23 | jasonb | I'm assuming one. |
05:26.34 | jasonb | Okay, now how many Tomcat instances are you running? |
05:26.41 | Hellaenergy | one |
05:26.53 | jasonb | Do you intend to always run one httpd and one Tomcat? |
05:27.01 | Hellaenergy | yes for now |
05:27.09 | Hellaenergy | Its a dev box |
05:27.18 | jasonb | Okay, because the choice you make today may mean some rework if you choose to change that. |
05:27.24 | jasonb | Okay. |
05:27.27 | jasonb | So one and one. |
05:27.28 | Hellaenergy | Okay |
05:27.40 | jasonb | Now, do you intend to always run both of those on the same computer? |
05:27.49 | jasonb | Or, do you plan to separate Tomcat off to another machine? |
05:27.49 | Hellaenergy | yes |
05:28.06 | Hellaenergy | same machine |
05:28.29 | jasonb | Okay. So you still have those same three choices then.. TCP Sockets, UNIX domain sockets, and JNI. |
05:28.37 | jasonb | I suggest that you do *not* try to use JNI. |
05:28.48 | jasonb | I actually don't even think JNI works with Apache 1.3. |
05:28.58 | Hellaenergy | ok thats what I am doing now |
05:29.01 | jasonb | (I also couldn't get it to work with 2.x) |
05:29.06 | Hellaenergy | ;) |
05:29.18 | jasonb | Okay, so I suggest you pick either TCP sockets or UNIX domain sockets. |
05:29.30 | Hellaenergy | what do you suggest |
05:29.31 | jasonb | I personally think TCP sockets are better, although they're very slightly slower. |
05:29.55 | Hellaenergy | TCP sockets it is |
05:30.25 | jasonb | Some folks think UNIX domain sockets are much faster than TCP sockets, and in some cases they may be, but I also think that TCP sockets are plenty fast enough. Plus, with TCP sockets, if you want to you can easily point Apache/mod_jk2 to a Tomcat instance on another machine.. a simple reconfigure of one line I believe. |
05:30.42 | jasonb | You can change to UNIX domain sockets if you want to later. |
05:30.49 | Hellaenergy | nice |
05:31.09 | jasonb | Okay, so, now you need the right settings in your workers2.properties file for TCP sockets. |
05:31.20 | jasonb | Make sure that you basically have NOTHING defined in your jk2.properties file. |
05:31.35 | Hellaenergy | nothing at all |
05:31.41 | Hellaenergy | ? |
05:31.56 | Hellaenergy | do you know the workers2.properties directive? |
05:32.22 | jasonb | It's multiple lines of config. I have it, at least what I set up for Apache 2.0 (which may just work for 1.3 too). |
05:32.30 | jasonb | Here it comes: |
05:32.43 | jasonb | #---- workers2.properties |
05:32.43 | jasonb | # Define the TCP socket communication channel |
05:32.43 | jasonb | [channel.socket:localhost:8009] |
05:32.43 | jasonb | info=Ajp13 forwarding over a TCP socket |
05:32.43 | jasonb | tomcatId=localhost:8009 |
05:32.44 | jasonb | debug=0 |
05:32.46 | jasonb | # Map the Tomcat "examples" webapp to the Web server uri space |
05:32.48 | jasonb | [uri:/examples/*] |
05:32.50 | jasonb | info=Map the entire "examples" webapp |
05:32.54 | jasonb | debug=0 |
05:32.56 | jasonb | # Configure the shared memory file |
05:32.58 | jasonb | [shm] |
05:33.00 | jasonb | file=/usr/local/apache2/logs/shm.file |
05:33.02 | jasonb | size=1048576 |
05:33.04 | jasonb | debug=0 |
05:33.06 | jasonb | #---- end of workers2.properties |
05:33.14 | jasonb | Of course you'll need to change the /usr/local/apache2 path to the path of your Apache 1.3. |
05:33.34 | cee | I think I need to email whoever, like, wrote catalina |
05:33.36 | cee | Chris something? |
05:34.12 | jasonb | After you do that, you must have your Tomcat's Coyote AJP connector configured and listening on port 8009. |
05:34.30 | jasonb | Shut down both Apache httpd and Tomcat and make sure they're both all the way down. |
05:34.47 | jasonb | Then, start up Tomcat first.. wait to make sure it's completely up.. then start Apache httpd. |
05:35.16 | jasonb | Then you *should* be able to access the /examples context through Apache. |
05:35.42 | jasonb | If you can't, then you probably have some other config wrong, or my directives don't work right on Apache 1.3.. (I've actually never tested this on Apache 1.3). |
05:35.55 | Hellaenergy | k |
05:36.19 | Hellaenergy | brb |
05:36.56 | jasonb | cee: What do you need from the Catalina authors? |
05:40.07 | Hellaenergy | jasonb: ready for the errors |
05:40.08 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [info] (null) |
05:40.09 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create info |
05:40.09 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [tomcatId] (null) |
05:40.09 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create tomcatId |
05:40.10 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [debug] (null) |
05:40.13 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create debug |
05:40.15 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [info] (null) |
05:40.18 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create info |
05:40.20 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [tomcatId] (null) |
05:40.23 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create tomcatId |
05:40.25 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_env.c (259)]: env.createBean2(): Error getting factory for [debug] (null) |
05:40.28 | Hellaenergy | [Sat Feb 01 05:43:34 2003] (error) [jk_config.c (418)]: config.update(): Can't create debug |
05:41.33 | jasonb | Hellaenergy: What do you see from the web browser? |
05:42.02 | Hellaenergy | jasonb: nothing |
05:42.11 | Hellaenergy | what uri should I be calling it from |
05:42.14 | jasonb | Hellaenergy: Did you try making a request? |
05:42.21 | Hellaenergy | I have several vhosts on this machine |
05:42.36 | jasonb | Hellaenergy: Try http://whateverhostitis/examples/index.html |
05:43.06 | Hellaenergy | The page cannot be displayed |
05:43.34 | jasonb | Actually.. http://whateverhostitis/examples/jsp/index.html |
05:44.10 | Hellaenergy | na still nothing :( |
05:44.24 | jasonb | Look in your catalina logs and tell me if it shows any new requests. |
05:44.26 | jasonb | (probably not) |
05:44.33 | Hellaenergy | k |
05:46.00 | Hellaenergy | nope |
05:46.02 | jasonb | Okay, so now answer each of these next questions: How did you install mod_jk2? Where did you get it? How did you install it? |
05:46.21 | Hellaenergy | From the Tomcat site eapi |
05:46.27 | Hellaenergy | LoadModule |
05:46.40 | jasonb | Okay, so you downloaded a binary release of mod_jk2? |
05:46.50 | Hellaenergy | workers2.properties is in /usr/local/apache/conf |
05:46.53 | Hellaenergy | yes |
05:47.03 | jasonb | That may be your next biggest problem. |
05:47.13 | Hellaenergy | why? |
05:47.21 | Hellaenergy | I need to compile it myself? |
05:47.43 | jasonb | From my own experimentation with mod_jk2, it's very tough to get a binary release of it to work at all since it's compiled against specific version of Apache 2 that we're probably not all going to have. |
05:48.05 | jasonb | And, even though I've heard some people say it'll work on other versions too, I have personally found that to not be the case (at least in my setups). |
05:48.16 | jasonb | I have, however, gotten it to work when I pull the source and compile it myself. |
05:48.42 | Hellaenergy | Can you help me with mod_jk? |
05:48.48 | jasonb | You could probably compile it against a binary of Apache 1.3, but I'm not sure about the 1.3 part since I've only compiled it (successfully) against binaries of Apache 2. |
05:49.03 | jasonb | No, I've actually never set up mod_jk. Only mod_jk2. |
05:49.30 | Hellaenergy | you running apache2? |
05:49.32 | jasonb | Let me ask you this: Why do you have to run Apache 1.3 as opposed to Apache 2.x? |
05:49.45 | Hellaenergy | I need php4 and mod_perl support |
05:49.58 | jasonb | Hellaenergy: Also, I suggest NOT downloading a package of the mod_jk2 source.. I suggest pulling it from the cvs repository instead. |
05:50.16 | jasonb | Hmm. Okay, you may need Apache 1.3 for now then. |
05:50.18 | Hellaenergy | where is that again? |
05:51.20 | jasonb | cvs -d :pserver:anoncvs@cvs.apache.org:2401/home/cvspublic login |
05:51.35 | jasonb | <let me get the anon password> |
05:52.01 | jasonb | password: anoncvs |
05:52.11 | jasonb | cvs -d :pserver:anoncvs@cvs.apache.org:2401/home/cvspublic co jakarta-tomcat-connectors |
05:53.17 | Hellaenergy | downloading... |
05:53.45 | jasonb | Cool. |
05:53.56 | Hellaenergy | thanks btw |
05:54.16 | Hellaenergy | do I need the "latest" ant? |
05:54.54 | Hellaenergy | done downloading |
05:55.12 | jasonb | I'm not real sure which Ant it requires. |
05:55.19 | jasonb | Which Ant version do you have? |
05:55.38 | Hellaenergy | 1.5 |
05:55.52 | Hellaenergy | July 25 2002 |
05:55.55 | jasonb | (and you're welcome.. I'm walking you through this in part because it helps me with something I'm doing to know whether or not all this will work on Apache 1.3. :) |
05:56.01 | jasonb | You might be okay there. |
05:56.05 | jasonb | Okay.. |
05:56.09 | Hellaenergy | right on |
05:56.26 | Hellaenergy | just type ant or do I have to configure something? |
05:57.26 | jasonb | Just a sec. |
05:58.03 | jasonb | Here's the commands.. I'll walk you through them. |
05:58.06 | jasonb | cd jakarta-tomcat-connectors |
05:58.16 | jasonb | PATH=$PATH:/usr/local/jakarta-ant-1.5 |
05:58.21 | jasonb | (or wherever it is) |
05:58.26 | Hellaenergy | ant is setup already |
05:58.28 | jasonb | export PATH |
05:58.37 | jasonb | which ant |
05:58.42 | cee | ahh all this configuration complexity will be a thing of the past once my connector works. |
05:58.44 | jasonb | Then, make sure it shows where ant is. |
05:58.45 | Hellaenergy | 1.5 |
05:58.57 | jasonb | cee: What connector? |
05:59.04 | Hellaenergy | why jasonb? |
05:59.09 | Hellaenergy | its in my path |
05:59.21 | cee | jason, I am writing a direct invokation connector for an interior implementation of tomcat/catalina for my webserver (ashpool.com) |
05:59.31 | jasonb | Yeah, but type "which ant" and hit enter.. you want to MAKE SURE that it's set to run only the newest one you've got.. 1.5.x. |
05:59.47 | Hellaenergy | /usr/local/ant/bin/ant |
06:00.06 | jasonb | cee: Cool. But, for those who need TCP socket connectors so that Apache httpd and Tomcat can be on different machines, we'll still need mod_jk2. |
06:00.11 | jasonb | Hellaenergy: Okay. |
06:00.20 | jasonb | echo $JAVA_HOME |
06:00.21 | cee | jason, I already support http passthrough |
06:00.26 | jasonb | (that must also be set) |
06:00.39 | jasonb | cee: Http Proxy? |
06:00.44 | Hellaenergy | /usr/local/java/j2sdk1.4.1_01 |
06:00.44 | cee | yes |
06:00.52 | jasonb | cee: If people wanted that, they'd just use mod_proxy which is already part of Apache. |
06:00.57 | cee | most people who use that architecture with my product use ATG dynamo though. |
06:00.57 | jasonb | Hellaenergy: Ok. |
06:01.03 | cee | jason shrug sure |
06:01.13 | cee | but most people don't run 2n architectures |
06:01.26 | jasonb | Hellaenergy: Create a useable copy of the util/build.properties file: |
06:01.32 | jasonb | cp util/build.properties.sample util/build.properties |
06:01.43 | jasonb | Hellaenergy: Create a useable copy of the jk/build.properties file: |
06:01.44 | cee | I have interior binary support for the ATG requestor protocol for dynamo |
06:01.50 | jasonb | cp jk/build.properties.sample jk/build.properties |
06:01.51 | cee | I've considered supporting AJK or whatever it is for catalina |
06:02.03 | jasonb | cee: That would be great. |
06:02.16 | jasonb | Hellaenergy: Edit the new jk/build.properties file. |
06:02.38 | jasonb | Hellaenergy: ONLY change the lines that have to do with your exact setup, and leave all the others alone! |
06:02.42 | cee | What is the supposed benefit from using the binary catalina protocol vs. http proxy? |
06:02.59 | Hellaenergy | jasonb: do I have to pull the tomcat source? |
06:03.07 | cee | the load balancing? |
06:03.14 | jasonb | cee: String manipulation takes longer and has an impact on performance. So, AJP is a binary protocol that is supposed to be faster. |
06:03.22 | jasonb | Hellaenergy: I don't think you do. |
06:03.30 | jasonb | Hellaenergy: Does it say in there that you have to? |
06:03.43 | cee | jason I am skeptical but I'll accept that argument. |
06:03.51 | Hellaenergy | apache13.home is? |
06:03.53 | Hellaenergy | no |
06:03.53 | cee | Coyote isn't exactly the greatest code I've ever seen |
06:03.59 | jasonb | cee: I'm skeptical too, but I've also so far accepted it. :) |
06:04.13 | jasonb | cee: No doubt. |
06:04.38 | jasonb | Hellaenergy: You do need to set apache13.home to the abs fs path to your apache13 dir. |
06:04.51 | Hellaenergy | /usr/local/apache? |
06:05.11 | jasonb | Probably. |
06:05.12 | cee | jason I have everything working except I need to figure out how to get a reference to my instanced connector object in the catalina loader back into native so I can call it when requests come in through JNI |
06:05.19 | cee | it's making me sad right at the moment |
06:05.30 | Hellaenergy | tomcat41.home=../../jakarta-tomcat-4.1/build |
06:05.46 | Hellaenergy | jasonb: that looks like it needs src |
06:05.46 | jasonb | cee: Let me finish with Hellaenergy here and I'll see if I can give you some answers too. |
06:05.56 | jasonb | Hellaenergy: It doesn't. |
06:06.11 | jasonb | Hellaenergy: the "build" dir is where the binaries go.. so you can point it to the binaries of TC4. |
06:06.28 | Hellaenergy | $CATALINA_HOME/bin? |
06:06.51 | jasonb | Hellaenergy: No, CATALINA_HOME. |
06:07.02 | jasonb | Hellaenergy: That's the binary distribution dir for TC4. |
06:07.10 | Hellaenergy | done |
06:07.16 | jasonb | Hellaenergy: Create a useable copy of the coyote/build.properties file: |
06:07.23 | jasonb | cp coyote/build.properties.sample coyote/build.properties |
06:07.45 | jasonb | Hellaenergy: Edit the new coyote/build.properties file, changing the value of catalina.home to point to your Tomcat installation directory. |
06:08.16 | Hellaenergy | done |
06:08.32 | jasonb | Okay, now run ant in the top level of the jakarta-tomcat-connectors dir. |
06:08.36 | jasonb | ant |
06:08.57 | Hellaenergy | failed |
06:08.59 | Hellaenergy | one sec |
06:09.03 | jasonb | hmmm |
06:10.43 | Hellaenergy | Is there a log file for the build |
06:11.02 | jasonb | If you don't catch the output in your scrollback, it's gone. |
06:11.19 | jasonb | And, if by now you don't have a few thousand line scrollback buffer, you better set that up! |
06:11.49 | Hellaenergy | :) |
06:11.51 | Hellaenergy | I do |
06:12.20 | Hellaenergy | no errors verbosed |
06:12.30 | Hellaenergy | one warnning |
06:13.03 | jasonb | If it failed, then there was an error. |
06:13.03 | Hellaenergy | here is the dump |
06:13.07 | Hellaenergy | compile-only: |
06:13.08 | Hellaenergy | <PROTECTED> |
06:13.08 | Hellaenergy | <PROTECTED> |
06:13.08 | Hellaenergy | <PROTECTED> |
06:13.08 | Hellaenergy | <PROTECTED> |
06:13.10 | Hellaenergy | <PROTECTED> |
06:13.13 | Hellaenergy | <PROTECTED> |
06:13.15 | Hellaenergy | <PROTECTED> |
06:13.17 | Hellaenergy | <PROTECTED> |
06:13.19 | Hellaenergy | <PROTECTED> |
06:13.21 | Hellaenergy | <PROTECTED> |
06:13.24 | Hellaenergy | <PROTECTED> |
06:13.26 | Hellaenergy | <PROTECTED> |
06:13.28 | Hellaenergy | <PROTECTED> |
06:13.30 | jasonb | That's all I need. |
06:13.30 | Hellaenergy | <PROTECTED> |
06:13.32 | Hellaenergy | <PROTECTED> |
06:13.37 | Hellaenergy | <PROTECTED> |
06:13.39 | Hellaenergy | <PROTECTED> |
06:13.41 | Hellaenergy | <PROTECTED> |
06:13.42 | jasonb | ugh. |
06:13.43 | Hellaenergy | <PROTECTED> |
06:13.45 | Hellaenergy | <PROTECTED> |
06:13.47 | Hellaenergy | <PROTECTED> |
06:13.49 | Hellaenergy | <PROTECTED> |
06:13.51 | Hellaenergy | cant find the classes uh |
06:14.14 | jasonb | You are missing the modeler. |
06:14.23 | Hellaenergy | hm? |
06:14.28 | jasonb | Get that out of the TC4 dist. |
06:14.33 | jasonb | just a sec. |
06:14.56 | Hellaenergy | /usr/local/tomcat/server/lib/commons-modeler.jar? |
06:15.43 | jasonb | Yes, you need that on your CLASSPATH. |
06:15.52 | Hellaenergy | doing that now |
06:18.02 | Hellaenergy | <PROTECTED> |
06:18.36 | Hellaenergy | only 3 errors now :) |
06:18.41 | jasonb | do this: |
06:18.53 | jasonb | rm /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/http11/build/classes/*.class |
06:19.13 | jasonb | Then build again. |
06:19.30 | Hellaenergy | rm: cannot remove `/home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/http11/build/classes/*.class': No such file or directory |
06:20.03 | jasonb | Okay, then do this: |
06:20.29 | jasonb | find /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/http11/build/classes -name "*.class" | xargs -i rm {} |
06:20.29 | Hellaenergy | in /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/http11/build/classes/org/apache/coyote/http11 there are classes |
06:21.49 | Hellaenergy | <PROTECTED> |
06:22.05 | jasonb | try "ant clean" |
06:22.19 | jasonb | Does "ant clean" seem to clean out the last compile? |
06:22.41 | Hellaenergy | did the clean and rebuilt and that failed too? |
06:22.43 | Hellaenergy | :( |
06:22.53 | jasonb | Same error message? |
06:23.01 | Hellaenergy | Compiling 14 source files to /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/http11/build/classes |
06:23.02 | Hellaenergy | <PROTECTED> |
06:23.02 | Hellaenergy | <PROTECTED> |
06:23.02 | Hellaenergy | <PROTECTED> |
06:23.03 | Hellaenergy | <PROTECTED> |
06:23.05 | jasonb | I only want the very first error message. |
06:23.05 | Hellaenergy | <PROTECTED> |
06:23.09 | Hellaenergy | <PROTECTED> |
06:23.12 | Hellaenergy | <PROTECTED> |
06:23.16 | Hellaenergy | <PROTECTED> |
06:23.17 | Hellaenergy | <PROTECTED> |
06:23.19 | Hellaenergy | <PROTECTED> |
06:23.22 | Hellaenergy | <PROTECTED> |
06:23.25 | Hellaenergy | <PROTECTED> |
06:23.28 | Hellaenergy | <PROTECTED> |
06:23.30 | Hellaenergy | <PROTECTED> |
06:23.32 | Hellaenergy | <PROTECTED> |
06:23.34 | Hellaenergy | <PROTECTED> |
06:23.36 | Hellaenergy | <PROTECTED> |
06:23.40 | Hellaenergy | <PROTECTED> |
06:23.42 | Hellaenergy | sorry :) |
06:24.11 | jasonb | Looks like it either can't find some JMX stuff, or can't find some Tomcat class stuff. |
06:24.15 | jasonb | just a sec. |
06:26.07 | jasonb | What I'd do is: try putting mx4j.jar and catalina.jar on your CLASSPATH. |
06:26.17 | Hellaenergy | k |
06:26.21 | jasonb | <PROTECTED> |
06:26.32 | jasonb | Then do another "ant". |
06:26.52 | jasonb | It may not be seeing your commons-modeler.jar though. |
06:27.04 | jasonb | Oh, actually, it probably is. |
06:27.27 | Hellaenergy | CLASSPATH=/common/lib/servlet.jar:/common/lib/mail.jar:/usr/local/java/j2sdk1.4.1_01/lib/servlet.jar:/usr/local/java/j2sdk1.4.1_01/lib/mail.jar:/usr/local/tomcat/server/lib/commons-modeler.jar |
06:27.39 | jasonb | Well, maybe not. |
06:28.11 | jasonb | Yeah, add to that your mx4j-jmx.jar and catalina.jar. |
06:30.30 | Hellaenergy | I don't have mx4j-jmx.jar |
06:30.44 | jasonb | Really? |
06:30.54 | jasonb | In your CATALINA_HOME/server/lib ? |
06:31.03 | jasonb | Which version of Tomcat is it? |
06:31.37 | Hellaenergy | ok I do |
06:33.08 | Hellaenergy | no luck |
06:33.57 | Hellaenergy | I found the problem |
06:34.17 | Hellaenergy | the build.properties in http11 is still the sample |
06:35.29 | jasonb | Yeah, that'd to it. |
06:35.36 | Hellaenergy | didn't help :( |
06:35.48 | jasonb | Okay. I may be able to fix it anyway. |
06:35.53 | jasonb | Same error msg? |
06:35.58 | Hellaenergy | yes |
06:36.12 | jasonb | Okay, cd into the http11 dir. |
06:36.15 | jasonb | Edit the build.xml file. |
06:36.33 | jasonb | Find the spot in the file that starts like this: |
06:36.36 | jasonb | <PROTECTED> |
06:36.36 | jasonb | <PROTECTED> |
06:36.56 | Hellaenergy | k |
06:36.58 | jasonb | And add classpath path elements in there for the jars it can't find. |
06:37.46 | jasonb | I would suggest absolute filepaths.. |
06:37.55 | Hellaenergy | what jars cant it find? |
06:38.06 | jasonb | It can't find commons-modeler.jar.. add that one first. |
06:39.28 | jasonb | Why it can't just find these, I don't know.. but these build files never were robust. |
06:40.08 | Hellaenergy | adding commons didn't help what next? |
06:40.20 | jasonb | you added commons-modeler.jar? |
06:40.25 | Hellaenergy | yes |
06:40.31 | jasonb | Next add the mx4j-jmx.jar. |
06:40.44 | Hellaenergy | <property name="commons-modeler.jar" location="../../jakarta-commons/modeler/dist/commons-modeler.jar" /> |
06:41.08 | jasonb | Where did you get that? |
06:42.12 | Hellaenergy | up top |
06:42.29 | jasonb | Well, but is there anything in the compile.classpath section about that? |
06:43.33 | Hellaenergy | <PROTECTED> |
06:43.33 | Hellaenergy | <PROTECTED> |
06:43.38 | Hellaenergy | noting same error |
06:43.43 | jasonb | Did you put those in? |
06:43.47 | Hellaenergy | yes |
06:43.54 | jasonb | Okay, now add your catalina.jar file. |
06:45.12 | Hellaenergy | nope |
06:45.36 | jasonb | Okay, now, starting with the very first line of build output that says there was a problem, and ending five lines later, paste that in here. |
06:46.11 | Hellaenergy | Compiling 59 source files to /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/util/build/classes |
06:46.11 | Hellaenergy | <PROTECTED> |
06:46.36 | Hellaenergy | Tomcat4 detected |
06:46.50 | Hellaenergy | Note: /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/Request.java uses or overrides a deprecated API. |
06:46.51 | Hellaenergy | <PROTECTED> |
06:47.00 | jasonb | Those are all warnings. |
06:47.04 | Hellaenergy | yup |
06:47.05 | jasonb | I want to see errors. |
06:47.15 | Hellaenergy | nothing else but what I dumped |
06:47.23 | jasonb | So did it say BUILD SUCCESSFUL ? |
06:47.50 | Hellaenergy | oh no :) |
06:47.51 | Hellaenergy | BUILD FAILED |
06:48.04 | jasonb | Okay, and if it failed, there were errors reported |
06:48.07 | jasonb | I want to see those. |
06:48.24 | jasonb | (but just the first 5 lines, max) |
06:48.46 | Hellaenergy | there are no errors I'm telling you |
06:48.53 | Hellaenergy | its a very short output |
06:48.56 | Hellaenergy | 50 lines |
06:49.11 | Hellaenergy | the snip I have dumped it the whole of it |
06:49.13 | jasonb | So just before it says BUILD FAILED, what did it say? |
06:49.26 | Hellaenergy | [javac] 3 errors |
06:49.32 | jasonb | Yeah. What were they? |
06:49.47 | Hellaenergy | location: class org.apache.commons.modeler.Registry |
06:49.47 | Hellaenergy | <PROTECTED> |
06:49.57 | Hellaenergy | c] location: class org.apache.commons.modeler.Registry |
06:49.57 | Hellaenergy | <PROTECTED> |
06:50.14 | Hellaenergy | <PROTECTED> |
06:50.15 | Hellaenergy | <PROTECTED> |
06:50.37 | Hellaenergy | there is a caret under the getRegistry() on all of those |
06:50.43 | jasonb | Yeah. |
06:51.02 | Hellaenergy | Those are the three errors |
06:52.46 | jasonb | Okay, now paste in the section from your http11/build.xml where it builds the build.classpath. |
06:53.11 | jasonb | compile.classpath I mean. |
06:53.36 | Hellaenergy | <!-- Construct compile classpath --> |
06:53.36 | Hellaenergy | <PROTECTED> |
06:53.36 | Hellaenergy | <PROTECTED> |
06:53.36 | Hellaenergy | <PROTECTED> |
06:53.36 | Hellaenergy | <PROTECTED> |
06:53.37 | Hellaenergy | <PROTECTED> |
06:53.39 | Hellaenergy | <PROTECTED> |
06:53.43 | Hellaenergy | <PROTECTED> |
06:53.45 | Hellaenergy | <PROTECTED> |
06:53.47 | Hellaenergy | <PROTECTED> |
06:53.49 | Hellaenergy | <PROTECTED> |
06:54.47 | Hellaenergy | I hate how troublesome classpaths can be |
06:54.59 | jasonb | Yeah, this is one of those. |
06:56.19 | jasonb | Hmm.. registerComponent().. |
06:56.50 | Hellaenergy | I don't have junit.jar=/java/junit/junit.jar |
06:57.02 | Hellaenergy | and the properties file is looking for it |
06:57.12 | jasonb | That's okay.. |
06:57.19 | jasonb | Umm, hold on. |
06:59.27 | Hellaenergy | what about the native2 in jk |
07:01.17 | jasonb | Here's what's going on.. |
07:01.43 | jasonb | For the src in http11 to compile, it has to have this Registry.registerComponent() method to compile against. |
07:01.56 | jasonb | Registry is a class that commons-modeler.jar has in it. |
07:02.14 | jasonb | But, the one in there doesn't have a registerComponent() method. |
07:02.36 | Hellaenergy | thats bleeding edge for you |
07:02.55 | jasonb | That looks to me like either this source doesn't match with this commons-modeler.jar, or I'm looking at the wrong Registry class (which I doubt). |
07:03.21 | jasonb | Hellaenergy: What I had you do was to pull the *latest* jakarta-tomcat-connectors src.. which I'm now thinking was a bad idea. |
07:03.38 | jasonb | Hellaenergy: What we could do is we could stop, remove that src, and pull one that I know works. |
07:03.41 | Hellaenergy | me too |
07:03.48 | Hellaenergy | k |
07:05.08 | jasonb | So, rm -rf that whole jakarta-tomcat-connectors/ tree. |
07:05.17 | jasonb | We'll pull the JK2_2_0_1 tagged one. |
07:05.39 | Hellaenergy | I'm with ya |
07:06.35 | jasonb | cvs -d :pserver:anoncvs@cvs.apache.org:2401/home/cvspublic co -rJK2_2_0_1 jakarta-tomcat-connectors |
07:07.17 | jasonb | This is the exact version that I played with. |
07:07.30 | Hellaenergy | what version of tomcat? |
07:07.35 | Hellaenergy | are you using? |
07:07.38 | jasonb | I don't know if it supports Apache 1.3, but it at least builds and is useable with Apache 2.0. |
07:07.45 | jasonb | I was using 4.1.17 at the time. |
07:07.58 | Hellaenergy | I am using 18 |
07:08.04 | jasonb | Yeah, 18 is better. |
07:08.12 | Hellaenergy | security fix |
07:08.16 | jasonb | Yup! |
07:10.35 | jasonb | Just the util/ and jk/ ones. |
07:10.51 | jasonb | oh, and coyote/ |
07:12.50 | Hellaenergy | BUILD SUCCESSFUL |
07:12.56 | jasonb | w00 h00! |
07:13.02 | jasonb | Now: |
07:13.05 | jasonb | cd jk |
07:13.09 | jasonb | ant native |
07:13.36 | Hellaenergy | ouch |
07:13.36 | Hellaenergy | BUILD FAILED |
07:14.05 | Hellaenergy | file:/home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/jk/native/build.xml:63: Compile failed /home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/jk/native/jni/jk_jnicb.c |
07:14.31 | jasonb | I need the next line of output to see why it couldn't compile that. |
07:15.06 | Hellaenergy | <PROTECTED> |
07:15.06 | Hellaenergy | <PROTECTED> |
07:15.06 | Hellaenergy | rs/jk/native/jni/jk_jnicb.c |
07:15.21 | Hellaenergy | /usr/local/java/j2sdk1.4.1_01/jre/../include/jni.h:27: jni_md.h: No such file or directory |
07:15.42 | jasonb | Okay, just a sec. |
07:16.57 | Hellaenergy | /usr/local/java/j2sdk1.4.1_01/include/linux/jni_md.h |
07:17.18 | Hellaenergy | should I symlink it |
07:19.12 | jasonb | You might be able to |
07:19.38 | Hellaenergy | no that just causes it to not be able to see like thirty other .h's |
07:19.49 | Hellaenergy | apr.h |
07:19.55 | Hellaenergy | apt*.h |
07:19.59 | Hellaenergy | apr*.h |
07:20.09 | jasonb | Is there an apr.h in /usr/local/java/j2sdk1.4.1_01/include/linux/ ? |
07:20.42 | Hellaenergy | /usr/local/apache2/include/apr.h |
07:20.47 | Hellaenergy | :( |
07:20.48 | jasonb | :) |
07:21.02 | jasonb | Now, do you know what APR is? |
07:21.25 | Hellaenergy | no |
07:21.30 | jasonb | Apache Portable Runtime. |
07:21.48 | jasonb | It's something that is built into Apache 2, but not Apache 1.3.x if I remember right. |
07:21.49 | Hellaenergy | Sounds interesting |
07:22.06 | jasonb | mod_jk2 does need this APR stuff, but Apache 1.3 itself doesn't. |
07:22.20 | Hellaenergy | ah |
07:22.25 | jasonb | I was hoping that since we were compiling it against Apache 1.3 it'd just not use APR, but I guess it does anyway. |
07:22.37 | jasonb | APR is actually something you can get separate from Apache 2, I'm pretty sure. |
07:22.37 | Hellaenergy | oh well |
07:22.56 | jasonb | So, in theory, you could get APR and compile mod_jk2 anyway. |
07:23.10 | jasonb | Or, maybe you could even compile it against your Apache2's APR. |
07:24.14 | jasonb | http://apr.apache.org/ |
07:25.17 | Hellaenergy | one sec |
07:25.34 | jasonb | You could get an APR src snapshot, unpack that, and try to point your build at that in addition to your Apache 1.3. |
07:25.55 | Hellaenergy | I forgot to point to the apache13 dir |
07:25.59 | Hellaenergy | in the properties |
07:26.14 | Hellaenergy | I pointed to both 13 and 2 and now its going good |
07:26.54 | jasonb | Umm, that's probably not a good idea! |
07:27.01 | Hellaenergy | <PROTECTED> |
07:27.01 | Hellaenergy | <PROTECTED> |
07:27.01 | Hellaenergy | <PROTECTED> |
07:27.04 | Hellaenergy | ouch |
07:27.09 | jasonb | You should point it at exactly one Apache. |
07:27.14 | jasonb | Either 1.3 or 2.0, not both! |
07:27.56 | Hellaenergy | k retrying |
07:28.52 | Hellaenergy | still not working :( with 13 |
07:28.59 | jasonb | What's it choking on'? |
07:29.18 | Hellaenergy | ,-soname -Wl,libjkjni.so -o .libs/libjkjni.so |
07:29.18 | Hellaenergy | <PROTECTED> |
07:29.18 | Hellaenergy | <PROTECTED> |
07:29.18 | Hellaenergy | <PROTECTED> |
07:29.35 | jasonb | At this point, you should pull a copy of apr and point it to that.. |
07:29.37 | Hellaenergy | file:/home/nschuetz/workbench/connectors/jakarta-tomcat-connectors/jk/native2/build.xml:341: Link failed libjkjni |
07:29.47 | jasonb | let me see if there's an easy way of pointing it to a separate APR. |
07:30.52 | jasonb | Yeah, in jk/build.properties set your apr.home to point to your apr.. |
07:31.15 | jasonb | You're going to need both the apr src (for the headers), and the binaries. |
07:31.34 | jasonb | So, if you pull the src, you'll need to build it.. if you pull the binaries, you'll also need to pull the source. :) |
07:32.35 | jasonb | It was choking because Apache httpd 1.3 doesn't contain APR, and you were only pointing it to Apache 1.3. It aparently does need APR anyway. |
07:32.45 | Hellaenergy | cat: ./include/arch/unix/apr_private.h.in: No such file or directory |
07:32.50 | Hellaenergy | on the apr configure |
07:32.59 | jasonb | Neat. |
07:33.12 | jasonb | Are you following their build instructions exactly? |
07:33.23 | Hellaenergy | its there too |
07:33.56 | jasonb | Well, you don't know where it's thinking ./ is. :) |
07:34.35 | jasonb | Maybe you should pull a binary release of APR, and then pull its corresponding src release, and just point the build at each of those. |
07:34.45 | jasonb | That way, you won't have to worry about building APR. |
07:35.50 | Hellaenergy | jasonb: I got to give up and go beat my neighbors ass |
07:35.52 | jasonb | Right now the audience is probably thinking how much mod_jk2 sucks because of the hell we're going through trying to get it working.. which is true.. but remember that mod_jk2 wasn't meant to be used with Apache 1.3. Let this be a lesson to you! ;) |
07:36.06 | Hellaenergy | true |
07:36.14 | Hellaenergy | I am going to go with mod_jk |
07:36.32 | jasonb | Hellaenergy: Suuuure, go 98% of the way and then drop it.. :) |
07:36.47 | Hellaenergy | jasonb: I am sorry man |
07:36.59 | jasonb | I can't really say I blame you. |
07:37.06 | Hellaenergy | I got to go deal with this asshole though real quick |
07:37.13 | jasonb | Okay. |
07:37.23 | Hellaenergy | thank you very much though |
07:37.24 | jasonb | Pretend he's the author of mod_jk2. |
07:37.29 | Hellaenergy | seriously |
07:37.33 | jasonb | Yeah, no prob. |
07:38.22 | cee | god still at it? |
07:38.27 | jasonb | hehe |
07:38.33 | jasonb | cee: Not any more. |
07:39.04 | Hellaenergy | fuck mod_jk2 |
07:39.24 | jasonb | Well.. yeah, but fuck Apache 1.3 too. :) |
07:39.32 | Hellaenergy | :) |
07:40.08 | jasonb | I do think it would have compiled with APR installed. |
07:40.08 | cee | hell, you need a http://www.tessier.com/image/pcd0147/img_4351.html |
07:40.34 | Hellaenergy | Ya I do |
07:41.08 | Hellaenergy | cee: where do you stay? |
07:41.16 | cee | pardon? |
07:41.26 | Hellaenergy | Where are you? |
07:41.30 | cee | Kansas City. |
07:41.39 | cee | I'm an import, I grew up in Vancouver. |
07:41.42 | Hellaenergy | ah |
07:41.53 | Hellaenergy | On a Visa? |
07:41.58 | cee | Dual citizen. |
07:42.02 | Hellaenergy | ah |
07:42.04 | Hellaenergy | nice |
07:42.21 | cee | Yeah it has some perks. |
07:42.23 | Hellaenergy | Go back to Canada before Bush starts his rampage |
07:42.47 | cee | plenty of time for that. |
07:43.09 | Hellaenergy | Where you at jasonb? |
07:43.37 | cee | hell, go to http://www.tessier.com/evo12/photography.html and keep clicking reload, with a drink in hand it'll help numb your mind |
07:43.56 | jasonb | http://www.madkane.com/bush.html |
07:45.00 | Hellaenergy | :) |
07:45.17 | Hellaenergy | cee: you like to take pictures heh? |
07:45.37 | cee | hell, I guess you could say that. http://www.tessier.com/image/portfolio/ |
07:46.40 | Hellaenergy | nice work |
07:46.54 | cee | Thanks. |
07:48.03 | cee | If you look at every picture on there for 19 seconds, it will take 24 hours. |
07:48.26 | cee | but is even less time than it takes to get jk2 to work |
07:48.26 | jasonb | cee: How much storage space does that all take up? :) |
07:48.49 | cee | uh 4.5 gig I think, minus Oracle |
07:49.05 | jasonb | mmmmmmm, 0racle! |
07:49.37 | Hellaenergy | Where are all of em ? |
07:49.43 | Hellaenergy | <PROTECTED> |
07:49.46 | cee | all the pictures? |
07:49.52 | Hellaenergy | ya |
07:49.53 | cee | well you can reload http://www.tessier.com/evo12/photography.html forever |
07:50.00 | cee | or troll through tessier.com/photos.html |
07:50.07 | cee | the latter is a lot more coherant |
07:50.38 | Hellaenergy | When do you find the time to code |
07:50.45 | cee | "tomorrow I am going to get that damned thing to work" |
07:51.12 | cee | It's usually more like when do I find the time to take pictures. |
07:51.18 | Hellaenergy | did you do that drawing on the front page? |
07:51.25 | cee | no, but it's of me. |
07:51.32 | cee | I can't draw. |
07:51.46 | Hellaenergy | Your a mac guy? |
07:52.02 | cee | I am not really an anything, but I normally use a powerbook. |
07:52.18 | cee | If you want to pin me to an os it's probably solaris |
07:52.53 | cee | all I talked about for days was tomcat, so she drew java |
07:52.55 | cee | err |
07:52.58 | cee | http://www.tessier.com/image/sketch/java_whore.jpg |
07:53.12 | cee | I have a cartoon for when I get it to work but it's not time yet ;) |
07:53.42 | Hellaenergy | Is that your g friend? |
07:54.05 | cee | Who, that draws them? |
07:54.14 | Hellaenergy | I wish I knew an artist |
07:54.24 | jasonb | hehe |
07:55.02 | Hellaenergy | what kind of camera do you use? |
07:55.09 | cee | depends |
07:55.25 | cee | I own many. |
07:55.35 | cee | I tend to favor antiques but lately I've been shooting digital on a canon d30 |
07:55.39 | Hellaenergy | digital pride and joy? |
07:55.46 | Hellaenergy | ah |
07:56.03 | cee | http://www.tessier.com/image/pcd0126/ is my camera |
07:56.32 | cee | see also, http://www.tessier.com/image/pcd0094/ |
07:57.17 | Hellaenergy | You got a nice server (fast) |
07:57.30 | cee | yeah I own a couple colo boxes. |
07:57.32 | cee | One in ny and one in dallas. |
07:57.36 | jasonb | The one that has two lenses, is that a 3-d camera? |
07:57.52 | cee | jason, no actually. It's called a TLR twin lens reflex, which was a very popular design in the 50s. |
07:57.57 | Hellaenergy | old school 3d |
07:58.02 | jasonb | ahh. |
07:58.03 | cee | One lens is for the view screen and the other is for the film. |
07:58.13 | jasonb | cee: Have you tried any 3d cameras? |
07:58.17 | cee | The view screen is 6cm x 6cm, same size as the film. It's like a little TV. |
07:58.33 | Hellaenergy | thats cool |
07:58.35 | cee | no, I am not very interested in stereoptics as a medium because it is difficult to present. |
07:58.50 | jasonb | Currently, yeah. |
07:59.06 | cee | Some of the old stereoptics from the 1800s are really beautiful though, particularly if you have a nice old viewer. |
07:59.12 | jasonb | There are some new monitors coming out for presenting 3d images. |
07:59.27 | cee | sure but if I can't hang it on my wall, it's not much good. |
07:59.30 | Hellaenergy | I heard about those |
07:59.30 | cee | as art anyways. |
07:59.43 | cee | You can do 3d now with shutter glasses. |
07:59.49 | cee | I have a rig for my crimson |
07:59.51 | Hellaenergy | holograms are nice to hang |
07:59.54 | jasonb | cee: Actually, you can, you can print them in a way (in some type of plastic) that shows them in 3d too. |
08:00.09 | cee | jason, I haven't heard of that process. |
08:00.15 | cee | hell, holograms are amazing |
08:00.22 | jasonb | hehe |
08:00.38 | cee | My old roomate had a huge one that was a microscope, and you could actually look down the eyepiece of the hologram and see the slide |
08:00.54 | Hellaenergy | I have seen that before |
08:01.14 | Hellaenergy | very cool |
08:01.15 | cee | yeah they were a fad around 97, but still amazing |
08:01.25 | Hellaenergy | I agree |
08:02.38 | cee | jason anyways most people who shoot stereo use two cameras on a brakcet like thing that mounts them at the right distance apart |
08:02.50 | cee | although I have seen weird cameras that can do it in one unit |
08:03.04 | jasonb | cee: Yes, I like the weird cameras. :) |
08:04.02 | cee | Do you do that? |
08:04.38 | jasonb | I don't, but when I got married, in addition to the regular (2d) photographer, we also hired a 3d photographer and they came out great. |
08:05.12 | cee | Pretty cool. |
08:07.13 | jasonb | Yeah. I just wish I had one of those new 3d monitors.. :) But, we got some plastic viewers that we can look at them with. Later, I'm going to scan 'em all. |
08:08.05 | cee | If they are the traditional dimensions you might consider trying to find an antique viewer for a little more class. |
08:08.18 | cee | If you ever get out to London it's kind of common to find them in the optical antiques stores. |
08:08.31 | jasonb | http://coolstuff.sytes.net/cameras/3dcamera/ |
08:08.33 | cee | There is one near greenich in particular that had a pile |
08:09.14 | jasonb | That one looks a little lame, but I'm sure there are better ones. :) |
08:09.45 | cee | The optical panoramic cameras are pretty cool too |
08:09.50 | jasonb | http://www.loreo.com/pages/press/loreo_pr_2002092601.html |
08:11.00 | cee | neat |
08:11.10 | *** join/#tomcat Charlie (trilluser@ip68-101-124-72.oc.oc.cox.net) |
08:11.18 | Hellaenergy | Hi |
08:11.24 | Charlie | hi |
08:12.33 | Hellaenergy | what does afk mean? |
08:13.25 | jasonb | Away From Keyboard. |
08:13.33 | Hellaenergy | ah |
08:13.39 | jasonb | IHTLAs. |
08:14.03 | jasonb | (I Hate Three Letter Acronyms) |
08:15.51 | Hellaenergy | [Sat Feb 01 02:19:22 2003] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker |
08:15.51 | Hellaenergy | [Sat Feb 01 02:19:22 2003] [jk_uri_worker_map.c (477)]: Attempting to map URI '/tls' |
08:15.51 | Hellaenergy | [Sat Feb 01 02:19:22 2003] [jk_uri_worker_map.c (491)]: jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ajp13 -> /tls |
08:15.51 | Hellaenergy | [Sat Feb 01 02:19:22 2003] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13 |
08:15.51 | Hellaenergy | [Sat Feb 01 02:19:22 2003] [jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker |
08:15.53 | Hellaenergy | ~ |
08:16.11 | Hellaenergy | what do you think that means |
08:16.14 | jasonb | Is this mod_jk again? |
08:16.20 | Hellaenergy | mod_jk yes |
08:16.25 | Hellaenergy | not 2 |
08:17.51 | Hellaenergy | done did not found a worker |
08:17.57 | Hellaenergy | do you |
08:18.48 | Hellaenergy | from nmap |
08:18.49 | Hellaenergy | 8009/tcp open ajp13 |
08:19.18 | Hellaenergy | JkMount /tls ajp13 |
08:19.18 | Hellaenergy | JkMount /tls/* ajp13 |
08:19.23 | Hellaenergy | wtf |
08:25.28 | Hellaenergy | I got mod_jk to work finally |
08:26.23 | Hellaenergy | thank you thank you... |
08:27.53 | Hellaenergy | I just got to figure out how to configure my vhosts to point to the root of $CATALINA_HOME/webapps/tls |
08:28.02 | Hellaenergy | and still use the container |
08:30.26 | Hellaenergy | night |
08:31.55 | jasonb | You're welcome. |
09:43.34 | Hellaenergy | anyone around |
09:52.27 | Hellaenergy | hey |
09:52.42 | Hellaenergy | me neither if that helps |
09:52.49 | jasonb | hehe |
09:52.57 | jasonb | oh well. |
09:53.08 | Hellaenergy | I do think I am having trouble with my classpath |
09:53.13 | Hellaenergy | TempConvert.java:7: cannot resolve symbol |
09:53.13 | Hellaenergy | symbol : class servlet |
09:53.13 | Hellaenergy | location: package javax |
09:53.13 | Hellaenergy | import javax.servlet; |
09:53.22 | Hellaenergy | and my classpath is |
09:53.22 | jasonb | heh! |
09:53.39 | Hellaenergy | CLASSPATH=/usr/local/java/j2sdk1.4.1_01/lib/servlet.jar:/usr/local/java/j2sdk1.4.1_01/lib/mail.jar: |
09:53.46 | Hellaenergy | whats up with that |
09:53.55 | jasonb | Actually, that should be "import javax.servlet.*" |
09:54.03 | jasonb | oops.. semicolon on the end of that! |
09:54.35 | jasonb | You aren't copying servlet.jar into your JDK's lib dir, are you?! |
09:55.01 | Hellaenergy | I have yes |
09:55.09 | jasonb | ugh. You're really asking for it. |
09:55.52 | Hellaenergy | Well that helped the servlet stuff now swing is complaining |
09:55.58 | Hellaenergy | jasonb: why? |
09:56.27 | jasonb | Hellaenergy: There are lots of different servlet.jars floating around, with different classes and different methods and different implementations. |
09:56.40 | Hellaenergy | ah |
09:56.45 | jasonb | And, whatever's in that JDK lib dir is the only one that your JDK is gonna try to use. |
09:57.19 | jasonb | As a general rule, and no matter what the docs for anything says, it's a very bad idea to copy any jars/zips/classes into your JDK's dir tree! |
09:57.19 | Hellaenergy | does my jdk load the jars in the lib dir without me pointing to it with my classpath? |
09:57.33 | jasonb | Hellaenergy: Yes, I'm pretty sure. |
09:58.04 | Hellaenergy | hm |
09:58.12 | Hellaenergy | Is swing built in? |
09:58.14 | jasonb | I'm not totally sure about JDK1.4.x/lib, but in the past there have been dirs like that where the JDK finds/uses stuff in there regardless of your CLASSPATH. |
09:58.30 | jasonb | Yes, Swing classes have been part of the core JDK classes since JDK 1.2. |
09:59.02 | Hellaenergy | How come this then? |
09:59.03 | Hellaenergy | TempConvert.java:17: cannot resolve symbol |
09:59.03 | Hellaenergy | symbol : variable JOptionPane |
09:59.03 | Hellaenergy | location: class TempConvert |
09:59.03 | Hellaenergy | <PROTECTED> |
09:59.27 | jasonb | What have you imported to use that? |
09:59.46 | Hellaenergy | import javax.swing.JComponent.*; |
09:59.51 | Hellaenergy | import javax.swing.JComponent; |
09:59.55 | Hellaenergy | too |
10:00.28 | jasonb | Well, first thing: package names are (now) almost always in all lowercase. Classes are in InitialCapsLikeThis. |
10:00.54 | jasonb | Variable names are in initialCapsExceptForTheFirstWordLikeThis. |
10:01.19 | Hellaenergy | Oh I'm looking for JOptionPane oops |
10:01.40 | jasonb | So, in your "import javax.swing.JComponent.*;", it looks like you're trying to reference a package name where the last component of the package name has caps.. which is probably the name of a class in the javax.swing package. :) |
10:01.52 | jasonb | JComponent is a class I think. |
10:01.56 | jasonb | (Not a package) |
10:02.08 | Hellaenergy | JOptionPane is what I wanted |
10:02.16 | jasonb | If you say "import javax.swing.JComponent;", then you're saying to import the JComponent class from the javax.swing package. |
10:02.33 | Hellaenergy | what does the .* do again? |
10:02.34 | jasonb | (which may make sense, depending on where that JComponent class really is) |
10:02.56 | Hellaenergy | everything in that package |
10:03.06 | jasonb | the .* on the end means, "If there are any classes in the package name to the left of this dot star, import all of them!" |
10:03.13 | jasonb | But, beware.. |
10:04.13 | jasonb | If you have packages "org.foo.coolthing" and "org.foo.coolthing.util", and if you say "import org.foo.coolthing.*;", that will NOT import any of the classes that reside in the "org.foo.coolthing.util" package! |
10:04.22 | Hellaenergy | then how come I have to import javax.servlet.* and javax.servlet.http.*? |
10:04.41 | Hellaenergy | :) |
10:05.00 | jasonb | .* only imports what's in the exact package named to the left. |
10:05.07 | Hellaenergy | ah |
10:05.14 | Hellaenergy | good to know |
10:05.20 | jasonb | It is not any recursive package importer. |
10:05.25 | Hellaenergy | How do I deploy my servlet now |
10:05.29 | Hellaenergy | it compiled |
10:05.34 | jasonb | congrats. |
10:05.40 | Hellaenergy | thanks |
10:05.44 | jasonb | Is it just one class file? |
10:05.49 | Hellaenergy | yes |
10:06.06 | Hellaenergy | :) |
10:06.13 | Hellaenergy | I don't know if will work |
10:06.29 | jasonb | What's the package name of the class? |
10:06.36 | Hellaenergy | don't they use swing in the Tomcat Manager app? |
10:06.42 | jasonb | heh.. NO. |
10:06.43 | Hellaenergy | TempConvert |
10:06.58 | Hellaenergy | don't they use swing in the Tomcat Admin |
10:07.09 | Hellaenergy | with the tree and stuff |
10:07.11 | jasonb | No part of Tomcat uses Swing. |
10:07.18 | Hellaenergy | Its a webapp |
10:07.32 | jasonb | Swing is 100% graphical, and Tomcat is 100% web. |
10:07.35 | Hellaenergy | ibot: Tomcat manager |
10:07.36 | | i guess tomcat manager is at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html |
10:08.06 | jasonb | Nothing that comes with Tomcat uses Swing, let me put it that way. |
10:09.05 | jasonb | Hellaenergy: You have gotten your Servlet to compile, young Skywalker. But you are not a Jedi yet. |
10:09.10 | jasonb | :) |
10:09.17 | Hellaenergy | :) |
10:09.30 | Hellaenergy | How do you deploy it obi-wan |
10:10.43 | Hellaenergy | jasonb: Then what do they use for the tree stuff in the Administration Tool? |
10:10.53 | jasonb | You can copy your servlet class into the CATALINA_HOME/shared/classes tree.. |
10:11.19 | jasonb | Hellaenergy: I haven't picked it apart yet, but it's JSPs with all kinds of code and some images to make the tree work on a web page. |
10:11.34 | jasonb | Hellaenergy: There are lots of implementations of that for servlet containers.. |
10:11.41 | jasonb | Hellaenergy: Some use JavaScript, and some don't. |
10:11.52 | Hellaenergy | hm |
10:11.58 | jasonb | Hellaenergy: I don't know if the Admin webapp authors decided to use JavaScript or not. |
10:11.59 | Hellaenergy | why now swing it |
10:12.33 | jasonb | Hellaenergy: Because in order for users across the net to see that, Tomcat would need to serve that up somehow, and they'd have to have a JDK installed. |
10:12.36 | jasonb | (on the client end) |
10:12.45 | jasonb | Hellaenergy: You know, the whole client/server model. |
10:12.54 | Hellaenergy | OK |
10:13.01 | jasonb | If you're running Tomcat on your own machine, you've just got it all on one machine. |
10:13.05 | Hellaenergy | so most likley my servlet wont work |
10:13.19 | jasonb | But, users of an Admin app like that don't have anything on their machine except a browser (that's the theory). |
10:13.38 | jasonb | Any platform with a browser could remotely use the Admin webapp. |
10:14.14 | Hellaenergy | How could I display from a browser with swing |
10:14.23 | jasonb | Your servlet will probably work.. heh Just on that one machine. :) |
10:14.33 | Hellaenergy | I mean how would I kick off the jre |
10:15.14 | jasonb | Okay, computer A is running Tomcat, and computer B accesses a page from computer A's Tomcat from a remote location. |
10:15.24 | Hellaenergy | I am on my laptop and the server is in the other room :) |
10:15.25 | jasonb | Computer A has a JDK -- it's running Tomcat. |
10:15.39 | jasonb | Okay, the server in the other room is Computer A. |
10:15.44 | jasonb | Your laptop is computer B. |
10:16.12 | jasonb | First, depending on what you're doing and who your audience/user base is, you may not be able to assume that computer B has a Java-capable browser. |
10:16.28 | jasonb | That can be a big problem.. If there's no Java on the client, case closed.. Swing apps don't work. |
10:17.08 | jasonb | And, since M$ doesn't like Java (they don't make money on it), they crippled all their browsers's Java VMs.. so those don't work. |
10:17.19 | Hellaenergy | yup |
10:17.23 | jasonb | Only some Mozilla and Netscape browsers's JVMs work. |
10:17.29 | jasonb | And, most of those are disabled. |
10:17.35 | Hellaenergy | I do have the Java Plugin on this laptop though |
10:17.41 | jasonb | (because most Java applets suck) |
10:18.17 | jasonb | Okay, if you want to always assume that the client computer (B) has Java Plugin, then you have a little more control over how Java works on the client, but it's a pain to set up in the first place (for the end user). |
10:18.47 | Hellaenergy | gotcha |
10:18.47 | jasonb | Some folks do write Java PlugIn stuff that works. |
10:18.58 | jasonb | Even better than PlugIn is Java WebStart. |
10:19.01 | Hellaenergy | So the code can work its the implementation that sucks |
10:19.10 | Hellaenergy | ah webstart |
10:19.18 | Hellaenergy | who uses that though |
10:19.24 | Hellaenergy | nobody |
10:19.31 | jasonb | Well, the code works great when the client has a working, installed, and enabled JVM. |
10:19.49 | jasonb | Well, that's like PlugIn, since anyone can install it into their browser. |
10:20.16 | Hellaenergy | I have never randomly run accross a webstart app have you? |
10:20.25 | Hellaenergy | How do I run this servlet anyway? |
10:20.25 | jasonb | YEs. |
10:20.28 | jasonb | Not very many. |
10:20.32 | jasonb | hehe |
10:20.41 | jasonb | Okay, what's the package that your servlet resides in? |
10:20.48 | Hellaenergy | none |
10:20.54 | jasonb | :) |
10:20.58 | jasonb | Okay, do this: |
10:21.09 | Hellaenergy | I put it in the shared dir |
10:21.09 | jasonb | cd $CATALINA_HOME/shared/classes |
10:21.12 | Hellaenergy | done |
10:21.15 | jasonb | ahh.. |
10:21.20 | jasonb | copied it in there? |
10:21.25 | Hellaenergy | yup |
10:21.48 | jasonb | Okay. If you have a mostly stock config setup, the invoker servlet is turned on (by default). |
10:22.03 | Hellaenergy | do I need to restart tomcat? |
10:22.05 | Hellaenergy | I do |
10:22.09 | jasonb | The invoker servlet lets you invoke servlets without them being in a webapp, and without configuring them in the global web.xml. |
10:22.17 | jasonb | No, you don't need to restart Tomcat for this. |
10:22.24 | Hellaenergy | nice |
10:22.34 | jasonb | You should be able to invoke it with a URL something like this: |
10:23.15 | jasonb | http://whateverhostitis/servlets/TempConvert |
10:23.44 | Hellaenergy | its not working |
10:23.50 | Hellaenergy | http://www.thelinuxshack.com/tls/TempConvert |
10:23.57 | jasonb | And, if it runs, and if it uses Swing, the desktop of your server should now be showing your new Swing window. :) |
10:24.28 | jasonb | nah.. not /tls/TempConvert.. /servlets/TempConvert |
10:24.40 | Hellaenergy | I don't have a servlets dir |
10:25.32 | jasonb | I know you don't. |
10:25.45 | Hellaenergy | http://www.thelinuxshack.com:8080/servlets/TempConvert |
10:26.00 | jasonb | That might be it. |
10:26.13 | Hellaenergy | The requested resource (/servlets/TempConvert) is not available |
10:26.27 | jasonb | Try "TempConvert.class" then. |
10:26.48 | Hellaenergy | no it doesn't |
10:26.53 | Hellaenergy | still nothing |
10:27.04 | jasonb | Also, it may need to go into CATALINA_HOME/common/classes or server/classes |
10:27.07 | jasonb | I'm not sure which one it is. |
10:27.43 | jasonb | And, you have to have the invoker servlet configured in your CATALINA_HOME/conf/web.xml. |
10:27.51 | jasonb | (by default it is) |
10:28.23 | jasonb | And, I also forget if it's "/servlets/" or "/servlet/", but I think it's the former. |
10:28.27 | Hellaenergy | then yes to the web.xml |
10:29.29 | jasonb | <PROTECTED> |
10:29.29 | jasonb | <!-- |
10:29.29 | jasonb | <PROTECTED> |
10:29.29 | jasonb | <PROTECTED> |
10:29.29 | jasonb | <PROTECTED> |
10:29.30 | jasonb | <PROTECTED> |
10:29.32 | jasonb | --> |
10:29.34 | jasonb | That's the problem.. |
10:29.40 | jasonb | Uncomment the invoker servlet's servlet-mapping. |
10:29.49 | jasonb | (and then restart Tomcat! :) |
10:30.15 | jasonb | Then try http://www.thelinuxshack.com:8080/servlet/TempConvert |
10:30.48 | jasonb | I guess they no longer have the invoker servlet turned on by default if it's not mapped. Hrm.. |
10:32.01 | Hellaenergy | OK that found the servlet :) |
10:32.07 | jasonb | Of course. :) |
10:32.13 | Hellaenergy | It did not work, but it found it :) |
10:32.35 | jasonb | Did it throw an exception? |
10:33.02 | Hellaenergy | No All I did was take an app and put extends HttpServlet on it :) |
10:33.12 | jasonb | Neat. |
10:33.21 | jasonb | Yeah, that's *almost* a servlet! :) |
10:38.51 | Hellaenergy | :) |
10:39.06 | jasonb | Being twice as smart counts as two votes, you know. |
10:39.12 | Hellaenergy | Ya you earned it |
10:45.12 | *** join/#tomcat Remm_ (~chatzilla@AToulouse-206-1-2-215.abo.wanadoo.fr) |
10:45.43 | Hellaenergy | Hey Remm_ |
10:45.54 | Remm_ | hi :) |
10:47.22 | Remm_ | there are actually many people on the channel now :) |
10:47.43 | jasonb | Yup. |
10:47.51 | jasonb | Only a few of us talk though. |
10:47.51 | Hellaenergy | Ya there is sometimes more that this |
10:48.00 | jasonb | The rest are mute. :) |
10:48.35 | Remm_ | well, there are a lot of lurkers on IRC channels |
10:58.18 | Hellaenergy | So when a servlet is ran out of the shared/classes lib once it stays in memory forever? |
10:58.40 | Hellaenergy | I deleted the class and the app is still there |
10:58.53 | jasonb | Heh.. not forever. |
10:59.02 | jasonb | When you shut down Tomcat, it's gone from memory. |
10:59.09 | Hellaenergy | thats what I meant |
10:59.10 | Hellaenergy | :) |
10:59.14 | jasonb | :) |
10:59.17 | Hellaenergy | Are all servers like that? |
10:59.26 | Hellaenergy | s/servers/servlets |
10:59.39 | Hellaenergy | no matter where you run them? |
11:00.03 | jasonb | Well, the ones I've seen, yeah. |
11:00.20 | jasonb | I think old servlet specifications may have meant it to be that way. |
11:00.53 | Hellaenergy | That makes development a bitch |
11:01.12 | Hellaenergy | jsp's recompile when they change |
11:01.53 | jasonb | You can turn servlet reloading on and when you change the class file, it should reload the class. |
11:02.13 | jasonb | Don't ask me how. :) |
11:02.27 | Hellaenergy | I know you can do it through the admin tool |
11:02.36 | Hellaenergy | but for the shared dir I don't know |
11:02.57 | jasonb | It's probably documented for Tomcat in the configuration reference in the web docs somewhere. |
11:03.24 | Hellaenergy | I bet your right. One of the few things that are documented |
11:03.32 | Hellaenergy | http://www.thelinuxshack.com:8080/servlet/HelloWorld |
11:03.42 | Hellaenergy | the moment you where waiting for :) |
11:04.34 | Hellaenergy | night |
11:04.38 | Remm_ | nope, you can't reload the shared classes |
11:04.46 | Hellaenergy | ah man |
11:05.06 | Hellaenergy | How do I run that mug out of a non shared dir? |
11:05.53 | Remm_ | the problem is that you can't reload individual classes, and since Tomcat is loaded from the shared CL, there's a problem |
11:05.58 | jasonb | Oh, not if they're in shared... but maybe in one of the other dirs. |
11:06.03 | Remm_ | i don't know what you're trying to run ;-) |
11:06.39 | Hellaenergy | just a Helloworld servlet out of a dir in webapps |
11:06.47 | Hellaenergy | tls to be specific |
11:06.56 | Hellaenergy | not the protocal |
11:06.57 | Remm_ | if they are in a webapp, then you can set reloadable to true |
11:07.24 | jasonb | Remm_: He was trying to use the invoker servlet to load/invoke a servlet class (before) and he wanted it to be reloadable too. |
11:07.53 | Remm_ | the invoker servlet itself being reloadable ? |
11:08.00 | jasonb | No, the class it invokes. |
11:08.59 | Remm_ | you shouldn't use the invoker in deployment (it has security issues) |
11:08.59 | Hellaenergy | my web.xml has to be in my webapps/tls/WEB-INF dir? |
11:09.15 | jasonb | Remm_: This is just for development. |
11:09.33 | Remm_ | put the servlet class in /WEB-INF/classes |
11:09.35 | Hellaenergy | Well I didn't know that though |
11:09.50 | Hellaenergy | How do I call it then |
11:09.52 | Remm_ | then you should be able to use <Context ... reloadable="true" /> |
11:10.09 | Remm_ | ok, no worries, then |
11:11.21 | Remm_ | in server.xml, there's an example using the "examples" webapp. did you look at it ? |
11:11.31 | Hellaenergy | k |
11:12.35 | Hellaenergy | Contex? |
11:12.42 | Hellaenergy | Context |
11:13.00 | Hellaenergy | I though it was a web.xml thing |
11:13.13 | Hellaenergy | local web.xml thing |
11:13.28 | Hellaenergy | I already have the webapp dir defined |
11:13.53 | Remm_ | no, it's in server.xml (or a fragment of it, as used for the manager and admin webapp) |
11:14.45 | Hellaenergy | so you have to specify each servlet individually in the servler.xml? |
11:15.40 | Remm_ | no, reloading is webapp wide |
11:16.04 | Hellaenergy | Oh Remm_ I am not talking about reloading anymore :) |
11:16.20 | Hellaenergy | I am talking about haveing and running the servlet from a webapp dir |
11:17.00 | Remm_ | ok, i'm loast ;-) |
11:17.02 | Remm_ | lost |
11:17.12 | Hellaenergy | other than shared/classes |
11:17.33 | Hellaenergy | /usr/local/tomcat/webapps/tls/ |
11:17.56 | Hellaenergy | is where i want to run it from because that webapp is reloadable unlike shared |
11:18.09 | Remm_ | you can put the servlet classes in .../webapps/tls/WEB-INF/classes |
11:18.11 | Hellaenergy | How do I call my class? |
11:18.14 | Remm_ | was that the question ? |
11:18.23 | Hellaenergy | yes |
11:18.24 | Remm_ | well, anything you want |
11:18.46 | Hellaenergy | no not what do I call it how do I call it |
11:18.49 | Hellaenergy | from the url |
11:19.11 | Remm_ | you need to create a directory structure according to the package name, like in shared/classes |
11:19.32 | Hellaenergy | I have it in tls/classes |
11:19.37 | Remm_ | ok, with the invoker, the URL is /tls/servlet/CLASS_NAME |
11:19.49 | Hellaenergy | I have it in tls/WEB-INF/classes |
11:20.06 | Hellaenergy | should it be tls/classes? |
11:20.17 | Hellaenergy | ah |
11:20.20 | Remm_ | no /WEB-INF/classes |
11:20.27 | jasonb | Hellaenergy: The invoker servlet is always mounted on "/servlet/" relative to the webapp context root. |
11:20.43 | Remm_ | after that, you can map it differently using web.xml |
11:20.51 | Remm_ | not anymore in 4.1 |
11:21.07 | jasonb | hmm |
11:21.10 | Remm_ | you have to enable it in $CATALINA_HOME/conf/web.xml |
11:21.19 | jasonb | Well, okay. |
11:21.19 | Hellaenergy | thanks guys I got it now ;) |
11:21.32 | Hellaenergy | enable what? |
11:21.45 | Remm_ | (it was a major security headache, as it allowed alternate paths to access one given servlet) |
11:22.02 | Remm_ | the invoker servlet; by default it's not enabled since you're using 4.1.18 |
11:22.02 | jasonb | Remm_: Yeah, I remember that. |
11:22.16 | jasonb | Remm_: We enabled it in his. |
11:22.17 | Hellaenergy | so local web.xmls |
11:22.43 | Hellaenergy | jasonb: whats up should I comment it out again? |
11:22.43 | Remm_ | you can define the mapping for your webapp only in the local web.xml |
11:22.55 | jasonb | Hellaenergy: If you're not using it, yeah, comment it out. |
11:23.04 | Remm_ | otherwise, you can uncomment the global mapping in conf/web.xml |
11:23.05 | Hellaenergy | what do I do then? |
11:23.28 | Remm_ | personally, I would define individual servlet mappings |
11:23.32 | Hellaenergy | create a web.xml and put it where? |
11:23.34 | Remm_ | in the local web.xml |
11:23.50 | Hellaenergy | where does that site in the webapp dir? |
11:23.51 | jasonb | Hellaenergy: CATALINA_HOME/webapps/tls/WEB-INF/web.xml |
11:23.55 | Remm_ | the webapp web.xml goes in /WEB-INF/web.xml |
11:23.55 | Hellaenergy | sit |
11:24.23 | Hellaenergy | what would the config look like? :) |
11:25.28 | Hellaenergy | Hey it's chinese new year! |
11:25.49 | Remm_ | ah, ok, cool :) |
11:26.17 | Remm_ | i thin you can look at the example webapp web.xml file for an example |
11:26.34 | Hellaenergy | Remm_ : do you own tomcat.org? |
11:26.41 | Remm_ | no |
11:26.48 | Hellaenergy | the global one? |
11:27.20 | Hellaenergy | sorry |
11:27.40 | Remm_ | nope, the one in webapps/examples/WEB-INF |
11:28.00 | Remm_ | although the other one has plenty of servlet mapping examples |
11:30.37 | Hellaenergy | So I should take |
11:30.39 | Hellaenergy | <PROTECTED> |
11:30.39 | Hellaenergy | <PROTECTED> |
11:30.39 | Hellaenergy | <PROTECTED> |
11:30.39 | Hellaenergy | <PROTECTED> |
11:30.46 | Hellaenergy | out of the global |
11:30.51 | Hellaenergy | for security reasons? |
11:32.40 | jasonb | Pretty much. |
11:32.45 | jasonb | Just comment it out. |
11:32.49 | Hellaenergy | K |
11:33.03 | Hellaenergy | sorry bout the simple questions |
11:33.11 | Hellaenergy | I should be up to par in a couple of days |
11:35.24 | jasonb | heh |
11:35.43 | Hellaenergy | that is funny huh |
11:35.44 | jasonb | I think that's what I thought in '99. |
11:36.01 | jasonb | er.. '98 |
11:44.53 | Hellaenergy | night yall thanks again |
12:43.53 | bla | what is the difference between "tomcat-4.1.18.tar.gz" and "tomcat-4.1.18-LE-jdk14.tar.gz"? is the latter meant for 1.4.x installations? what does the LE stand for? |
12:47.36 | Nurbs | oh, nevermind. the original mirror includes comments about that... |
16:58.01 | *** join/#tomcat eQ (~chatzilla@p7222-ipad02maru.tokyo.ocn.ne.jp) |
17:05.46 | eQ | Hi. New to IRC (and Tomcat).... questions ok? |
17:17.05 | eQ | guess not..... bye |
19:58.27 | *** join/#tomcat gremid (~gremid@pD9E0E568.dip.t-dialin.net) |
20:08.09 | *** part/#tomcat gremid (~gremid@pD9E0E568.dip.t-dialin.net) |
20:15.49 | *** join/#tomcat Hellaenergy (~Hellaener@hellaweb.com) |
20:16.33 | Hellaenergy | morning |
20:20.23 | *** join/#tomcat tang^ ([MkBZvScpx@ahgn23wky5824.ab.hsia.telus.net) |
20:24.16 | Hellaenergy | hi tang^ |
21:08.37 | *** join/#tomcat Archeroff (archeron@archeron.wavefire.com) |
21:17.58 | *** join/#tomcat bune0 (~hito@ppp-209-232-55-252.dialup.snfc21.pacbell.net) |
21:22.45 | *** join/#tomcat funkman (~tafunk@pcp01470022pcs.lncstr01.pa.comcast.net) |
21:24.22 | *** join/#tomcat Foo_Bar (~foo@su-nat.datapipe.net) |
21:24.50 | Foo_Bar | is there a way to keep catalina.out log file but not have each and every 'Mapping Request' in it ? |
21:27.14 | Hellaenergy | Foo_Bar: I don't know. What are you trying to acheive? |
21:27.44 | Foo_Bar | well.. each connection to this customer's server generates a 'Mapping Request' (which outputs like 6 lines) |
21:27.55 | Foo_Bar | these are connections mapped from apache |
21:28.05 | Foo_Bar | the file gets too large too quick |
21:28.05 | Hellaenergy | what connector? |
21:28.17 | Foo_Bar | JK i believe |
21:29.37 | Foo_Bar | see.. the startup script for catalina is what generates that log file |
21:29.54 | Foo_Bar | i am trying to figure out if this is something that's configurable |
21:32.06 | *** join/#tomcat Archersttls (~wade@h24-81-20-16.ok.shawcable.net) |
21:33.57 | Foo_Bar | Hellaenergy~:~ do you know if the Logger attiributes even come into play for that particular log? |
21:36.05 | Hellaenergy | no I don't |
21:36.45 | Foo_Bar | hm... it looks like a per webapp thing.. i'll try that |
21:38.47 | bune0 | does it not depend on which level the logger was put in? |
21:41.24 | Foo_Bar | see.. that setting probably goes into web.xml |
21:41.28 | Foo_Bar | which is per webapp |
21:41.37 | Foo_Bar | but this is more like an overall server log |
21:41.43 | bune0 | you have the Logger set at server.xml |
21:42.22 | Hellaenergy | Foo_Bar: what version of Tomcat? |
21:43.43 | Hellaenergy | Use http://localhost:8080/admin to configure the Logger |
21:44.21 | Foo_Bar | 4.0.4 i think |
21:44.43 | Hellaenergy | nevermind then the admin app is a 4.1 thing |
21:44.48 | Foo_Bar | :) |
21:44.57 | Foo_Bar | yeah. i haven't seen it in server.xml |
21:45.24 | Hellaenergy | Foo_Bar: look for the Logger directive in the server.xml |
21:46.14 | Foo_Bar | i am |
21:46.24 | Foo_Bar | it seems to relate to domainname.com.access style logs mostly |
21:47.41 | Foo_Bar | hm.. i wonder if it takes a 'verbosity' paramter there |
21:49.12 | Hellaenergy | http://www.cict.fr:8880/tomcat-docs/config/logger.html |
21:49.35 | Foo_Bar | http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/logger.html |
21:49.36 | Foo_Bar | :) |
21:59.10 | *** join/#tomcat kylev (~kylev@darth.beeker.net) |
21:59.37 | kylev | gar. |
21:59.40 | kylev | lame question |
21:59.47 | lalle | Hmmm |
21:59.51 | lalle | Shoot |
21:59.51 | lalle | =) |
22:00.00 | kylev | how do I do the equiv of "Alias" on tomcat 4.0 |
22:00.00 | kylev | ? |
22:00.19 | kylev | I want "/static/" to map to a place on my filesystem |
22:00.50 | kylev | a place where my other servers serve up static common image content |
22:01.05 | lalle | Os? |
22:01.24 | kylev | Linux |
22:01.36 | lalle | I think you could create a symlink? |
22:01.37 | kylev | tried this: |
22:01.39 | kylev | <PROTECTED> |
22:01.39 | kylev | <PROTECTED> |
22:01.40 | kylev | <PROTECTED> |
22:01.51 | kylev | oh jeebuz |
22:01.57 | kylev | Connect? |
22:02.01 | kylev | should I be shot? |
22:02.16 | lalle | No, shoot you question |
22:02.16 | lalle | =) |
22:02.31 | lalle | try this ln -s /home/kylev/perforce/staging/vhosts/static.yaga.com/html static |
22:02.41 | lalle | In case it dosnt work |
22:02.58 | kylev | sadly: also needs to work on Windows |
22:03.07 | lalle | Contect should be context i think |
22:03.08 | kylev | need a config that I can do in both places |
22:03.42 | lalle | But if you create an a new context that is an a new webapplication |
22:03.52 | lalle | Am i right? |
22:04.05 | kylev | Bah, shit |
22:04.17 | kylev | my version works, if I change it to Context |
22:04.34 | lalle | Problem solved? |
22:04.37 | Foo_Bar | Hellaenergy~:~ thanks for the help |
22:04.38 | *** part/#tomcat Foo_Bar (~foo@su-nat.datapipe.net) |
22:04.40 | kylev | yeah |
22:04.58 | kylev | nothing like embarassing yourself in public to open your eyes |
22:05.08 | kylev | I'll have to try it on Windows later |
22:05.18 | kylev | stupid web designers use that inferior OS |
22:05.49 | lalle | hehe =) I use windows for design and development... but my applications runs under gentoo linux |
22:07.13 | kylev | mmm. gentoo. |
22:07.17 | kylev | neat distro. |
22:07.23 | kylev | if you have infinite time. ;) |
22:07.40 | kylev | emerge kde |
22:07.45 | kylev | go on a week vacation |
22:08.12 | lalle | I dont run a any grapical applications on my server =) |
22:08.51 | kylev | me either. |
22:09.08 | kylev | sadly, it also bites you there |
22:09.19 | kylev | I really prefer the ability to distribute binaries |
22:09.34 | kylev | 20 server farm... |
22:09.39 | kylev | sshd exploit comes out.... |
22:09.45 | kylev | I can patch my systems in minutes |
22:10.07 | kylev | but gentoo is unbelievable clean and cool |
22:10.24 | lalle | kylev: I like NetBSD too =) |
22:11.04 | kylev | ah, a ports fan |
22:11.21 | lalle | kylev: You could run emerge sync ; emerge --update world every hour if you want to be safe =) |
22:11.30 | kylev | Ha! |
22:11.34 | lalle | kylev: Jepps, ports is great =) |
22:11.53 | kylev | and, at some point, your server might actually serve something |
22:12.07 | lalle | kylev: hehe =) |
22:12.29 | lalle | kylev: It is no problem you could just write a script connecting to all server with some command.... |
22:13.03 | kylev | yeah, true. there are hacks you can do all over the place. |
22:13.07 | kylev | it can definitely work. |
22:13.40 | lalle | =) |
22:13.59 | kylev | one thing I don't like is that you end up leaving tools on your servers |
22:14.17 | kylev | I actually don't want gcc laying out there for a script kiddie to use |
22:15.07 | kylev | my production machines lack compilers and/or header -devel packages |
22:15.41 | lalle | kylev: And another good thing is hardware firewall (not talking about some simple broadband firewall). Im working for a isp named Interlite World AB, and we have an excelent firewall.. Even though the person that configured it isnt the greatest in configurating |
22:15.45 | lalle | =) |
22:16.35 | kylev | trust me, we're locked down like a mofo |
22:16.46 | *** part/#tomcat bune0 (~hito@ppp-209-232-55-252.dialup.snfc21.pacbell.net) |
22:16.46 | lalle | mofo? |
22:17.00 | kylev | VP: "Are our servers down? I can ping the www server from home." |
22:17.08 | kylev | Me: "There is no ping." |
22:17.16 | kylev | mofo == motherfucker |
22:17.47 | lalle | hehe =) |
22:18.09 | kylev | he actually called me on his cell phone to ask that. |
22:18.12 | lalle | kylev: Tell VP to stfu then =) |
22:18.18 | kylev | before actually trying http |
22:18.33 | kylev | hey, moron, did you test it with a web browser? |
22:19.12 | kylev | I spend a lot of time on the edge of getting fired |
22:19.20 | kylev | :) |
22:19.45 | lalle | kylev: hoho, you should be nice to people that knows less then you =) |
22:20.08 | kylev | screw them, they just make more work for me ;) |
22:20.09 | lalle | kylev: Hm, what sites are you developing |
22:20.28 | kylev | I never reveal my company on IRC ;) |
22:21.08 | kylev | AFAIK, you're sitting there with a Tomcat 4 exploit, looking for targets |
22:21.21 | kylev | :) |
22:21.38 | lalle | hehe, well... im not =) But you dont have to tell me |
22:21.38 | kylev | granted, you could just scroll back and look at my config paste, heh |
22:22.17 | lalle | hahaha =) |
22:22.41 | kylev | I've revealed too much |
22:22.49 | lalle | kylev: Just currious. Dont worry =) |
22:23.08 | kylev | I'm saying most of that tongue in cheek |
22:23.19 | kylev | I'm not gonna paste you any code, though |
22:23.20 | kylev | :D |
22:23.21 | lalle | Hmmm, i must import mp3.se to the cvs soon... |
22:24.36 | kylev | what, working outside of CVS? |
22:25.33 | kylev | I love forcing people into source control |
22:26.16 | kylev | "Are you stupid? Remember, I have cvs logs....." |
22:27.51 | lalle | hehe =) Its just me on that developing mp3.se... and jbuilder backups pretty good, and i backup my homedir every day =) |
22:28.14 | lalle | At least it should, think i turned it of a couple of weeks ago |
22:28.36 | lalle | Well, have to go to the bathroom now, brb |
22:28.44 | lalle | || bbl |
22:28.44 | lalle | =) |
23:28.24 | *** join/#tomcat Hellaenergy (~Hellaener@hellaweb.com) |