transitioning from non-logged in to logged in using security constraint....

2004-03-12 Thread Paul Tomsic
What does tomcat do to ensure that you're logged in while using the j_security_check ? We're trying to transition users from non-logged in to logged in, but we've got a fair amt. of portions of the site that should be accessible from both states (non-logged in and logged in) Is there something,

Re: transitioning from non-logged in to logged in using security constraint....

2004-03-12 Thread Paul Tomsic
no, my question wasn't whether request.getRemoteUser() returns null or not. HOW, specifically, does tomcat populate that information using the j_security_check and the security-constraint nodes in the web.xml??? __ Do you Yahoo!? Yahoo! Mail - More reliable,

dirty data and session management....

2004-03-03 Thread Paul Tomsic
This may be more of a design question, but I'm wondering if tomcat has anything in it's API that we might be able to leverage to help manage dirty data in a user's session? When our user's login, we load, into their session a w3c dom document that contains user-information, etc. We use xsl

setting up multiple realms for apps deployed using ant install task?

2003-11-13 Thread Paul Tomsic
How do you set up multiple realms for different webapps that are installed using ant? We don't have any context tags in the server.xml file other than for the manager app. Our applications are installed using install from our build.xml in ant: install url=http://localhost:8080/manager;

profiling the heap from within tomcat?

2003-02-11 Thread Paul Tomsic
Is there a way to tell what's going on in the heap from within Tomcat? I've tried putting JAVA_OPTS=-Xrunhprof:heap=all but this doesn't seem to be doing it. Perhaps I'm not using it correctly. Thoughts? What I'm looking to do is cure an OutOfMemory exception, but I'm having trouble tracking

stack trace error when viewing html source, but the display in browser is good.

2003-01-15 Thread Paul Tomsic
Has anyone ever seen the expected results in a browser from their servlet, but when you view source, there is a stack trace? Not sure what would be causing this, but here's how we're generating output to the browser: public void printPage(HttpServletResponse response) {

Re: stack trace error when viewing html source, but the display inbrowser is good.

2003-01-15 Thread Paul Tomsic
yes, what I'm saying is that our servlet is actually sending the output to the browser, but when you view source of that output in the browser, it displays a stacktrace. The browser, however, is showing what we expect (the desired HTML). Here's the stackTrace: (I've removed the html,head,title

loading jdbc driver fails from DataSource and Context - classLoader problem??

2002-12-17 Thread Paul Tomsic
Why does the following work: Class.forName(com.mysql.jdbc.Driver).newInstance(); Connection conn = DriverManager.getConnection(jdbc:mysql://10.117.7.18:3306/dow?autoReconnect=true, user, pwd); PreparedStatement t_stm = conn.prepareStatement(select name from templates); ResultSet t_rs =

RE: loading jdbc driver fails from DataSource and Context - class Loader problem??

2002-12-17 Thread Paul Tomsic
yes. % cd /usr/local/tomcat/common/lib % ls -la -rw-r--r-- 1 tomsicp staff 45386 Oct 30 19:38 activation.jar -rw-r--r-- 1 tomsicp staff 716139 Oct 30 19:38 ant.jar -rw-r--r-- 1 tomsicp staff 90503 Oct 30 19:38 commons-collections.jar -rw-r--r-- 1 tomsicp staff 62998 Oct 30

dataSource.getConnection only fails from within tomcat

2002-12-12 Thread Paul Tomsic
could someone guess as to why I can connect to our DB (MySQL) from a standalone application (single, java file using a Main()) successfully using the below code, but when I try to do it from within Tomcat, it fails w/ a nullpointer? thanks - GenericObjectPool connectionPool = new

connection pooling nullpointer?

2002-12-11 Thread Paul Tomsic
I asked this on commons mailing list as well, but perhaps someone here could shed some light into the following: I'm getting a nullpointer when trying to do the following: GenericObjectPool connectionPool = new GenericObjectPool(null); DriverManagerConnectionFactory connectionFactory = new

re: Session Persistence retrieving old session data

2002-12-06 Thread Paul Tomsic
Have you tried explicitly removing the search criteria attribute from the session? Look into javax.servlet.http.HttpSession.removeAttribute, or removeValue --- I am using Tomcat 4.0.3 on Solaris with JDK 1.4. I have been using the Persistence Store to save

re: exception loading sessions from persistent storage?

2002-12-05 Thread Paul Tomsic
? From the stack trace, seems your persisting something do is not serializable...I guest you will have to list what you are trying to persist -- Jeanfrancois Paul Tomsic wrote: here's the whole stack trace: 2002-12-04 11:54:59 StandardManager[/cdg] Exception loading sessions from

exception loading sessions from persistent storage?

2002-12-04 Thread Paul Tomsic
When I stop/start tomcat 4.1.12, I'm getting the following error: Exception loading sessions from persistent storage java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: org.apache.xerces.util.DOMErrorHandlerWrapper it doesn't seem to prevent tomcat from

re: exception loading sessions from persistent storage?

2002-12-04 Thread Paul Tomsic
PROTECTED] Subject: Re: exception loading sessions from persistent storage? Could you give exactly what you are doing? What are you serializing in your session? Please give more information :-) -- Jeanfrancois Paul Tomsic wrote: When I stop/start tomcat 4.1.12, I'm getting the following error

Re: exception loading sessions from persistent storage?

2002-12-04 Thread Paul Tomsic
here's the whole stack trace: 2002-12-04 11:54:59 StandardManager[/cdg] Exception loading sessions from persistent storage java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: org.apache.xerces.util.DOMErrorHandlerWrapper at

passing authentication credentials from apache to tomcat 4.1.12?

2002-10-04 Thread Paul Tomsic
Has anyone does this successfully? I am able to successfully have Apache authenticate against a AuthDB file (configured w/ the mod_auth_db) and I'm able to have Tomcat handle *.jsp files successfully, but when I try to request.getRemoteUser() It gives me a NULL any thoughts on this? Is there

using .htaccess from tomcat 4.1.12

2002-10-03 Thread Paul Tomsic
How do you config. to use .htaccess and the challenge/response/BerkleyDB AuthDBUserFile from Tomcat? I've got it configured to read from my AuthDBUserFile correctly, but when I try to retrieve: request.getRemoteUser(); from a JSP it is null. When I go to http://localhost:8080/manager/html/list

web.xml conflict with element tags SERVLET and RESOURCE-REF ? help?

2002-10-02 Thread Paul Tomsic
Does anyone know anything about a conflict in the web.xml file when using both the resource-ref tag AND the servlet tag? Apache1.3/Tomcat4.1.12 on Linux. When my web.xml file contains both tags (see below for example) I get the following error in the catalina.out file:

tomcat 4.1.10 error in opening zip file, cannot start, help?

2002-09-26 Thread Paul Tomsic
When I try to start tomcat, the start looks like it worked, but it doesn't. In the catalina.out file I'm getting: (thoughts?) java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:112)

Making a webapp the document root, help?

2002-09-25 Thread Paul Tomsic
Is it possible, from Apache 1.3 and Tomcat 4.1.10 (tied together w/ mod_jk) to make a webapp the top-level (DocumentRoot) ?? For instance: /usr/local/tomcat/webapps/MYAPP I want MYAPP to be my document root and start serving JSPs immediately, only using Apache if a HTML file is requested and

override the class location of WEB-INF?

2002-09-25 Thread Paul Tomsic
Is it possible to override the location of where the class files reside for Tomcat4.1.10 ? for instance, I'd like to (from a JSP page) call a useBean on com.companyname.util.Helper but I'd like Helper.class to reside in

upgrading from v.3.1.1 to v.3.3 ?

2002-08-09 Thread Paul Tomsic
deadline, so if it's as simple as say, swapping out a jar file or something, that would be great. Thoughts, or can someone point me to a FAQ on upgrading like this? Thanks, Paul Tomsic __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http