RE: Possible to expose a Tomcat Realm instance through JNDI ?

2013-06-12 Thread Tanglin, Oliver
Thanks for posting your results. But I am thinking now that this may lead to a portability issue. Push to a container other than Tomcat and 'org.apache.catalina.User' will not be available on the classpath. Also, during development you are forced to include catalina as a dependency to

RE: Possible to expose a Tomcat Realm instance through JNDI ?

2013-06-12 Thread Tanglin, Oliver
Thanks for the detail. As a final note and in case you are not already doing this, I have found the scopeprovided/scope element in dependency/ useful under similar circumstances when building a war. This prevents bundling of dependencies provided by the container such as catalina, servlet,

RE: Class cast exception when starting tomcat 7.0.1

2013-06-12 Thread Tanglin, Oliver
Oliver Tanglin | SAIC Software Appl. Engineer | C3 Systems and Analysis Division Phone: 703-676-7449 | Mobile: 727-207-1037 tangl...@saic.com -Original Message- From: users-return-242256-OLIVER.TANGLIN=saic@tomcat.apache.org on behalf of Jane Muse Sent: Tue 6/11/2013 7:42 PM To:

RE: Possible to expose a Tomcat Realm instance through JNDI ?

2013-06-11 Thread Tanglin, Oliver
I don't think there is a HTTP Basic authentication realm. The authentication type is declared in the auth-method of your web.xml and can be used in conjunction with a number of different realm implementations. Exactly what do you mean by re-use? Does this mean you are doing authentication from

RE: Possible to expose a Tomcat Realm instance through JNDI ?

2013-06-11 Thread Tanglin, Oliver
I think I now understand your issue. I was faced with a similar problem and could not figure out how to get the roles of an authenticated user through the servlet API. It seems to only allow the question 'request.isUserInRole(role)'. But does not seem to provide a way to get a list of roles

RE: Tomcat and PostgreeSQL

2013-06-06 Thread Tanglin, Oliver
Also you might try tweaking your -Xms (minimum heap size) and -Xmx (maximum heap size) arguments for your JVM. If your PostgreSQL driver does not actually have a memory leak, this may do the trick. You can Google for specifications and examples. Set these in Catalina.sh CATALINA_OPS. Oliver