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

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
gt; > Looks like you 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

Re: Can't find ServletContext.getContextPath()

2007-08-03 Thread aladdin
ial documentation. Thank you very much for the info- Allen On Friday 03 August 2007 19:42, David Smith wrote: > Doh! > > Looks like you already know about getServletContextName(). > getContextPath() still doesn't exist. If getContextPath() is what I > think it is, it's on

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() + "'"); log.write("AppInitializer::ContextIniti

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

2007-07-24 Thread aladdin
ists wrote: > 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

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 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 for the tip! > > &

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

2007-02-19 Thread aladdin
> (windows syntax) > > 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

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

2007-02-18 Thread aladdin
lassloader howto at > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html. It > might offer 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

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

2007-02-17 Thread aladdin
unpacked 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 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 org.apache.catalina.loader.We

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 directo

Re: Doesn't Process CSS files

2006-08-16 Thread aladdin
resolves its file names. On Wednesday 16 August 2006 16:42, aladdin wrote: > On Wednesday 16 August 2006 08:16, David Smith wrote: > > aladdin wrote: > > > > >On Wednesday 16 August 2006 07:42, David Smith wrote: > > > > > > > > >>aladdin wr

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 confi

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

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 doesn

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 sud

Re: mod_jk: shm and performance, & which port?

2006-05-29 Thread aladdin
inal > message without making a copy. Thank you. > > > > - Original Message - > From: "aladdin" <[EMAIL PROTECTED]> > To: > Sent: Monday, May 29, 2006 12:09 PM > Subject: mod_jk: shm and performance, & which port? > > > &g

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 it