Re: Can't find ServletContext.getContextPath()

2007-08-04 Thread aladdin
Also that link says 2.4 Java API, not 2.5. Perhaps another indicator of an artifact of earlier versions? But, y'all are confident getContextPath is in Tomcat 6.0? On Saturday 04 August 2007 08:43, David Smith wrote: Mark Thomas wrote: aladdin wrote: If you go here (Sun's official docs

Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
I have the following two lines of code in a context listener: ServletContext sc= e.getServletContext(); // e is a ServletContextEvent log.write(AppInitializer::ContextInitializer: context name=' + sc.getServletContextName() + ');

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
already know about getServletContextName(). getContextPath() still doesn't exist. If getContextPath() is what I think it is, it's only available in ServletRequest. --David aladdin wrote: I have the following two lines of code in a context listener: ServletContext sc

Re: Paths, Directories, Cookies: How do you get a session, or a file?

2007-07-24 Thread aladdin
: aladdin wrote: After using Tomcat for over a year, one thing I still can't get straight is how directories are resolved. I would love it if someone could point me to a reference that ties together the context in server.xml, mod_jk mounts, and web.xml mappings, particularly with regard

Paths, Directories, Cookies: How do you get a session, or a file?

2007-07-21 Thread aladdin
After using Tomcat for over a year, one thing I still can't get straight is how directories are resolved. I would love it if someone could point me to a reference that ties together the context in server.xml, mod_jk mounts, and web.xml mappings, particularly with regard to an Apache front end.

Re: Can't find classes in jar files in WEB-INF

2007-02-20 Thread aladdin
the user tomcat runs as can read it. One last thing to look for is any errors further up in the logs above the class not found exception. --David aladdin wrote: Thanks for the tip! I don't think I'd have a conflict with all the classes in my application. Although some of my classes have

Re: Can't find classes in jar files in WEB-INF

2007-02-19 Thread aladdin
) to be sure it's valid. The command above lists all the files in the jar file. Then be sure permissions are set so the user tomcat runs as can read it. One last thing to look for is any errors further up in the logs above the class not found exception. --David aladdin wrote: Thanks

Re: Can't find classes in jar files in WEB-INF

2007-02-18 Thread aladdin
some ideas. --David aladdin wrote: When I put my webapp.jar file in the WEB-INF directory, it doesn't find the app. When I exploded it into the classes directory, and associated subdirectories, they are found fine, but I get this problem (the one below). This, it turns out

Can't find classes in jar files in WEB-INF (was: Recurring (looping?) error messages)

2007-02-17 Thread aladdin
in the classes directory, he seems perfectly happy. Is there some magic I need for tomcat to use .jar files in the WEB-INF/lib directory, like an entry in web.xml or server.xml? On Friday 16 February 2007 22:52, aladdin wrote: I was getting a message like SEVERE PersistenceManager persistence

Recurring (looping?) error messages

2007-02-16 Thread aladdin
I was getting a message like SEVERE PersistenceManager persistence not enabled, or something like that (I don't remember) so I disabled (commented out) the Manager tag in server.xml that configured the PersistenceManager. Now, I'm getting Feb 16, 2007 9:26:34 PM

Tomcat can't find my Filter

2007-02-03 Thread aladdin
I have a development machine on which everything works fine, and I'm trying to deploy to a production machine, and for some reason it's not finding my filter. The fact that it *knows* about the filter indicates (well, at least, I think it indicates) that it found the web app and associated

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
On Wednesday 16 August 2006 08:16, David Smith wrote: aladdin wrote: On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
as to why is this the case? Why would a file referenced as file.ext be mapped to mod_jk, when a file referenced as /file.ext isn't? Actually, I'm beginning to think I'll never understand how an integrated apache/tomcat installation resolves its file names. On Wednesday 16 August 2006 16:42, aladdin

Doesn't Process CSS files

2006-08-15 Thread aladdin
I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css style sheets. However, when it goes to tomcat and serves .jsp files, it

Can't figure out directory structure (again:-(

2006-07-23 Thread aladdin
I had this all working with some basic jsp pages and a (one) servlet. I went to continue to build on my application, and all of a sudden, it broke again. I changed a lot of code (html, jsp, and java), but none of the configuration files, I don't think (but, you know how that goes). All of a

mod_jk: shm and performance, which port?

2006-05-29 Thread aladdin
I have gotten mod_jk working connecting apache and tomcat, but the log has this error: [Mon May 29 11:27:16 2006] [5118:52288] [error] init_jk::mod_jk.c (2356): Initializing shm:/etc/apache2/logs/jk-runtime-status errno=2 I found that it is because I didn't give it a shared memory file. Will

Re: mod_jk: shm and performance, which port?

2006-05-29 Thread aladdin
. - Original Message - From: aladdin [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, May 29, 2006 12:09 PM Subject: mod_jk: shm and performance, which port? I have gotten mod_jk working connecting apache and tomcat, but the log has this error: [Mon May 29 11