IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.50 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-06-11
[00:08]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[00:53]<l2uz>so I'm trying to figure out how to get requests for / in apache to map to a particular context on tomcat
[00:54]<l2uz>say, /foo
[00:54]<l2uz>It appears I need to use a ProxyPass directive
[00:54]<l2uz>but is there another way with mod_jk?
[02:45]<sz__>hi
[02:46]<sz__>small question: I want some servlets and jsp to be able to access classes which are defined in some far directories
[02:46]<sz__>is there a way to set some sort of classpath to let tomcat know where to find those classes in my local computer's HD ?
[02:48]<sz__>when specifying the CLASSPATH var env before starting tomcat it does not work
[02:51]<drssygn>sr__, you want the classes to be available servlet container wide ?
[02:51]<sz__>yes
[02:52]<sz__>but I dont want to have to add them into the WEB-INF/classes folder
[02:52]<sz__>like there are somewhere else
[02:52]<sz__>they
[02:52]<sz__>on my computer
[02:52]<drssygn>are they packages into a jar ?
[02:52]<drssygn>are they packageD into a jar ?
[02:53]<sz__>nop
[02:53]<sz__>in a folder
[02:53]<drssygn>package them and copy you package.jar into $CATALINA_HOME/common/lib
[02:54]<sz__>no
[02:54]<sz__>that's what I dont wanna do
[02:54]<sz__>because Im developping those classes from somewhere else
[02:54]<drssygn>so you can put them in WEB-INF/lib
[02:55]<sz__>and I dont want to have to copy everything or jar stuff when I change a single thing in my classes
[02:55]<sz__>from eclipse I have a plugin where I checked "add this project to tomcat classpath" and it works really well
[02:55]<sz__>my problem is when trying to run tomcat not from this plugin
[02:55]<drssygn>so /WEB-INF/lib is the place where you can put them
[02:55]<sz__>but I dont
[02:56]<drssygn>you dont want that too ?
[02:56]<sz__>well I cant
[02:56]<drssygn>explain in more details please
[02:56]<sz__>cant I just specifiy tomcat to go see in another folder on my computer for classes ?
[02:56]<drssygn>yes you can
[02:56]<drssygn>in catalina.sh
[02:56]<sz__>this is bascially what Im looking for
[02:56]<sz__>ok
[02:56]<drssygn>there is a directive
[02:56]<sz__>let me see
[02:56]<drssygn>wait
[02:57]<drssygn>i dont remember the name but let me see
[02:57]<drssygn>sorry
[02:57]<drssygn>that was wrong
[02:58]<drssygn>go to $CATALINA_HOME/conf/catalina.properties#common.loader={add the path of your class folder here}
[02:59]<drssygn>found it ?
[02:59]<sz__>yep
[02:59]<sz__>cool let me try it
[03:05]<sz__>yes it works
[03:05]<sz__>thx
[03:05]<drssygn>glad to help
[03:05]<drssygn>have fun with the cat ;)
[03:05]<sz__>hehe thx
[03:06]<sz__>very much !
[03:06]<drssygn>your welcome
[04:10]<mrfuyrvnfj>Hey guys, where does Tomcat prints out errors? I'm checking $CATALINA_HOME/logs/Catalina.out but nothing
[04:10]<mrfuyrvnfj>Tomcat is crashing and there for no reason at all
[04:15]<drssygn>Magistus, had an older instance on your system ?
[04:15]<drssygn>Maquiavelo, had an older instance on your system ?
[04:29]<mrfuyrvnfj>yes
[04:29]<mrfuyrvnfj>You mean another tomcat? yea, but it keeps dying
[04:32]<mrfuyrvnfj>there is nothing in catalina.out remotely close to 'dying' or something
[04:32]<mrfuyrvnfj>or error, warning or whatever
[04:32]<mrfuyrvnfj>Jun 10, 2006 8:52:54 PM org.apache.catalina.core.ApplicationContext log
[04:32]<mrfuyrvnfj>INFO: HTMLManager: list: Listing contexts for virtual host 'xxxxxxx.com'
[04:32]<mrfuyrvnfj>that's it
[04:33]<drssygn>re
[04:34]<drssygn>Maquiavelo, do you have any predefined $CATALINE_HOME env var ?
[04:34]<mrfuyrvnfj>Let me check
[04:34]<mrfuyrvnfj>nope
[04:34]<drssygn>are you on linux ?
[04:35]<mrfuyrvnfj>Yes
[04:36]<drssygn>please: export | grep CATALINA
[04:36]<mrfuyrvnfj>nothing
[04:37]<drssygn>so set it export CATALINA_HOME=/path/to/your/install
[04:37]<drssygn>and re reun tomcat
[04:37]<drssygn>and restart tomcat
[04:37]<mrfuyrvnfj>Doing it right now
[04:37]<drssygn>oki
[04:38]<mrfuyrvnfj>Ok, it's up, and I'm doing a tail -f catalina.out
[04:38]<drssygn>okay
[04:38]<drssygn>got any logs ?
[04:39]<mrfuyrvnfj>up until here
[04:39]<mrfuyrvnfj>Jun 10, 2006 9:33:59 PM org.apache.catalina.startup.Catalina start
[04:39]<mrfuyrvnfj>INFO: Server startup in 3131 ms
[04:39]<mrfuyrvnfj>still up and running, it usually comes down in a bit
[04:39]<drssygn>can you access the server then ?
[04:40]<drssygn>i mean from the browser
[04:40]<mrfuyrvnfj>right now yes, but it usually dies after 5 minutes or so
[04:41]<drssygn>okay we have time :)
[04:41]<drssygn>we will wait and see
[04:41]<mrfuyrvnfj>:)
[04:41]<mrfuyrvnfj>Thanks
[04:41]<drssygn>your welcome
[04:41]<mrfuyrvnfj>I'm reloading the website and stuff, see if it comes down or something
[04:42]<drssygn>yeah go ahead
[04:44]<mrfuyrvnfj>still up
[04:44]<mrfuyrvnfj>grr
[04:45]<drssygn>:)







