Re: help with embedded tomcat's webapp classloader

2005-09-19 Thread Donald Ball
Donald Ball wrote: everything works okay but my webapp fails on initialization, with a NoClassDefFoundError on net.sf.hibernate.HibernateException. this is somewhat surprising given that hibernate.jar lives in the webapp's WEB-INF/lib directory. is there some additional configuration i

help with embedded tomcat's webapp classloader

2005-09-16 Thread Donald Ball
hey guys. i'm trying out embedding tomcat 5.0 in an swt app that creates complex configuration data for a webapp. basically, i'd like the users to be able to do a test deploy of the webapp on their own box using hsqldb and an embedded tomcat. my code looks more or less like so: import org.apa

question on mapping urls to tomcat using mod_jk2

2003-11-03 Thread Donald Ball
hi guys. i'm using mod_jk2 to connect apache httpd 1.3 to tomcat 4.1.28. everything is working great, much smoother than mod_webapp. i'm only having one issue so far. apache is serving requests via both http and https. my webapp is mounted at /example. I would like to allow https requests throu

RE: Web Page Caching

2003-03-03 Thread Donald Ball
On 3/3/2003 at 9:44 AM Filip Hanik wrote: >hi Donald, >if you are talking about a JSP, that is not a file, it is a Java class. >Hence once it is loaded into memory, it will stay there. But it is not >cached perse if you'd read remy's response to my bug report, you'll see that he clearly indicates

RE: Web Page Caching

2003-03-03 Thread Donald Ball
On 3/3/2003 at 9:10 AM Filip Hanik wrote: >nope, no caching in Tomcat. The browser however, may cache your pages :) i'm almost positive that's not true, tomcat does employ at least a limited cache of jsp page output. see the responses to my bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=

Re: Two Realms for client authentication

2003-02-28 Thread Donald Ball
On 2/28/2003 at 5:25 PM Gil wrote: >Can I use two Realms for client authentication?? I would like to define a >set of servlets that uses a Realm and another set of sevlets that uses >another Realm. Can I make this?? In the same webapp? I don't think so. I think you have a few choices: 1. split

RE: HTTP Status 500 Error

2003-02-27 Thread Donald Ball
On 2/27/2003 at 1:30 PM Raible, Matt wrote: >web.xml - an example: > > >500 >/error.jsp?code=500 > note - be sure when you do this to manually set the status code. e.g. in this jsp page you would do: <% response.setStatus(Integer.parseInt(request.getParameter("code"))); %

Re: JSPs sometimes don't recompile

2003-02-27 Thread Donald Ball
On 2/27/2003 at 2:21 PM Mark G.K. Christenson wrote: >I'm assuming it doesn't continue to work if you remove the file and >then restart tomcat. If you remove it after it's been compiled and >don't restart tomcat, it will continue to work because once the class >has been compiled and loaded, it

Re: realm getRole() method ?

2003-02-27 Thread Donald Ball
>> There is no such facility in the servlet api. Given a user, there is no >way >> to get a list of roles to which the user belongs. I too find this a >> distressing limitation in using container managed security. > >In some complex security scenarios, it is not always possible for a >container to

Re: realm getRole() method ?

2003-02-27 Thread Donald Ball
On 2/27/2003 at 5:07 PM laurent marot wrote: >thanks but this method just allows checking if user match a role, i'd like >to get a method to discover the role. There is no such facility in the servlet api. Given a user, there is no way to get a list of roles to which the user belongs. I too find

precompiling jsp pages

2003-02-26 Thread Donald Ball
Hi guys. I'm trying to precompile my jsp pages into servlets like the tomcat developers recommend so that I don't have to worry about memory leaks and whatnot on the production servlet container. Unfortunately, jasper's JspC is giving me fits. One version generates servlets that have race condition

configuration help with mod_jk and tomcat-4.0b5

2001-06-29 Thread Donald Ball
heya. i'm having trouble getting mod_jk working with tomcat-4.0b5. i have apache talking to tomcat-4.0b5 successfully, but i always get this error when requesting a url that should pass through to tomcat: HTTP Status 503 - This application is not currently available the logger for the service re

RE: format of uriworkermap.properties file?

2001-05-30 Thread Donald Ball
On Wed, 30 May 2001, Ignacio J. Ortega wrote: > AFAIK, you need to declare a "foo" context too.. because if you does not > have a "foo" context the redirection should work but Tomcat does not > find "/foo/b.xml" at all.. actually, the only context that tomcat is serving is the ROOT context. my .

format of uriworkermap.properties file?

2001-05-29 Thread Donald Ball
heya. i've got iis and tomcat-3.2.1 talking to each other, hurrah! now what i'd like to do is have iis pass all requests for a uri with a given extension, say .xml, on to tomcat, but i can't tell how to write that in uriworkermap.properties. my first guess would be: /*.xml=ajp12 but it doesn't s

question regarding realms

2001-04-16 Thread Donald Ball
hi guys. i'm running tomcat-catalina out of cvs and i'm trying to protect my standalone tomcat-catalina instance using the same crypted passwords that live in my existing apache.htpasswd files - either using MemoryRealm or JDBCRealm, i don't care much which. i'd imagine this is fairly common, does

suggestions for tomcat

2001-04-09 Thread Donald Ball
hey. i just went about installing tomcat-3.2.1 + apache-1.3.19 on a server for the first time - until now i've been relying on jserv and catalina in standalone mode. here are a few suggestions to make life easier for tomcat users: 1. the binary linux mod_jk.so on the web site doesn't work with bl