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,
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,
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
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;
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
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) {
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
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 =
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
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
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
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
? 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
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
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
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
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
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
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:
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)
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
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
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
23 matches
Mail list logo