I've vaguely uncomfortable suggesting it, but how about using a Session
Listener ? You could have a class implement the
javax.servlet.http.HttpSessionListener interface, and be notified of
such events as creation, invalidation and time-out of the session.
If CMA is accomplished through
I'm not a connector expert, but I can tell you that 3) is wrong.
port 8080 is just a port that Tomcat listens to in 'standalone' mode.
So if you request http://localhost:8080/login.jsp then Apache Web Server
is right out of the picture and it is 100% Tomcat.
If Tomcat receives a request for a
That's a classic problem. Renaming the classes12.zip to classes12.jar
is your first step in debugging database connection problems.
-Original Message-
From: Peter Cline [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 9:44 AM
To: [EMAIL PROTECTED]
Subject: iPlanet and Tomcat
Ok there's just one tiny clarification I might offer, in case this is
the problem. Because I think *both* of you are saying the same thing,
but maybe not (if this is indeed the difficulty).
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003
Because I might decide that hmm, this page's content really doesn't
change very often, so why don't I cache its results for 5 minutes?
For example, one page might contain many different 'pagelets', say a
little weather box with the current weather conditions. If your weather
conditions are only
-Original Message-
From: Me myself [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:32 PM
To: [EMAIL PROTECTED]
Subject: Re: how 2 start tomcat from ms-dos command prompt
without creating a new window ?
Yes, but, would tomcat then start with the windows startup ?
RH has a version of Tomcat that installs with the 'default' install of
RH. Is this one already running (and so won't allow another TC to
start).
-Original Message-
From: Steven Garrett [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:36 PM
To: 'Tomcat Users List'
Subject:
I'd drop the non-compliant way of getting this value, and use what's
provided by JDBC 3.0 (available with JDK 1.4.x and ConnectorJ 3.x)
statement.getGeneratedKeys()
No casting required.
http://www.mysql.com/articles/autoincrement-with-connectorj.html
-Original Message-
From: Joe
Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 1:05 PM
To: 'Tomcat Users List'
Subject: RE: JDBC + MySQL Datasource + Tomcat = ClassCastException
I'd drop the non-compliant way of getting this value, and use
what's provided by JDBC 3.0 (available
Check the DTD
!--
The web-app element is the root of the deployment descriptor for
a web application.
--
!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*, session-config?, mime-mapping*,
Did you mean UnsatisiedLinkError ? Because that's all I can find in the
javadocs. In this case, your code won't catch this Error, since an
Error is not an Exception. So perhaps the container will end up catching
it and wrapping it in a JasperException. Is there a 'route cause' for
the
You don't implement anything, you just retrieve them from the xxx
attribute space using yyy. Since I'm not connecting ALL the dots for
you, I'll leave you to figure out what xxx and yyy are. Hint: you've
posted them in your last reply.
% Integer error_code = (Integer)xxx.getAttribute(yyy); %
And you restart Tomcat after changing tomcat-user.xml ?
-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 6:21 AM
To: Tomcat Users List
Subject: Re: MemoryRealm and tomcat-users.xml
Yes, i'm only testing with one file, the problem
Sorry for posting this here, but I either have a pretty big
misunderstanding of something (most likely) or I've discovered a bug
I have Apache Web Server set up thusly:
~~~
VirtualHost xxx.xxx.xxx.xxx
DocumentRoot /home/webhome/myapp/
ServerName
j2ee.jar contains classes that would conflict with Tomcat, so maybe just
use
mail.jar
activation.jar
Both of these are available from java.sun.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 11:13 PM
To: Tomcat Users List
That seems to make sense on first read. But...
1) I make a request for a protected resource, say my_portal.jsp, which
contains an image.
2) The container says: that's a protected resource and redirects.
3) It authenticates and remembers that my_portal.jsp was the protected
resource asked for.
oh DUH. Sorry, I shoulda read that more closely.
So just make login.jsp and its image (or maybe even just the image) the
unprotected resource. Everything else can stay where it is.
But my original ?? about Tomcat using the 'last' rather than the
'causing' resource stands. Why would they
Because forwards are accomplished on the server-side, with no
notification to the client that it has happened.
If you want the browser bar to update, you need to use sendRedirect().
But then you also need to be careful to use session (or a QueryString on
the sendRedirect URL) instead of request
The problem is in the error message:
Invalid direct reference to form login page
In brief: With container-based auth, when a user attempts to access a
protected resource, the container will 'remember' which resource they
tried to access, and send them off to the form login page, specified in
That's one way of doing it, but what if you want to use
container-provided auth, and methods like
isUserInRole
getUserPrincipal
etc
And Rick, this relates to your other question about FORM AUTH and
session timeout. I'm fairly certain that if you expire your session,
then you are no longer
I had thought (and replied so in a separate thread) that BASIC auth
would also time out. But even if it doesn't... How could J2EE work, if
the following didn't happen:
1. User gets authenticated with BASIC AUTH
2. User lets their session timeout
3. User requests a protected page.
4. container
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 12:29 PM
To: Tomcat Users List
Subject: RE: JDBCRealm - Session not timing out
Basic AUTH gets resent automatically, you'd just start
them over with a
new session. Don't make any
Adding objects:
HttpSession session = request.getSession();
session.setAttribute(foo, Foo);
If at some point in your code, you want to log out a user,
session.invalidate();
Then when they request a protected resouce , the container ought to
re-authenticate them through FORM auth, because the
Is this an annoying aol thing? Or is it a (still annoying) attempt at
soliciting more responses on this thread?
If it's that 2nd thing, posting the exact same message 3 times in as
many days is liable to get you the opposite of the response you want.
-Original Message-
From: [EMAIL
I always thought it was just a cut error (typo), but you need a at the
start of your Realm
Actually, if your file is *exactly* as shown, I'm surprised it doesn't
complain loudly.
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:32
Also,
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 11:32 AM
To: Tomcat Users List
Subject: Still need help with JDBCRealm
Of the several applications running on this server,
I am only trying to apply a JDBCRealm to the /hd
Someone else on this list had a similar problem with NPE's being thrown
by Coyote. His developers insisted it wasn't their code, and that it
had to be coyote causing the trouble. I sympathize with that position,
because on that stack trace, and on yours, there is only org.apache
classes throwing
www.servlets.com/cos
-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 1:02 PM
To: '[EMAIL PROTECTED]'
Subject: [off-topic] - Where can i find Oreilly's package for
uploading files?
Hi, i have tried
at a loss.
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 12:28 PM
To: Tomcat Users List
Subject: Re: Still need help with JDBCRealm
Mike Curwen wrote:
Someone else on this list had a similar problem with NPE's being
thrown
-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:31 PM
To: Tomcat Users List
Subject: Re: setting up a root servlet / getting images to
appear in Tomcat 4.1.24
OK. I still don't get it, but I don't want to prolong the thread.
A-HAAA!!! Yes, there is...
but in the next version of the spec :(
(Tomcat 5)
So for now, we all have to have a jsp file that does the kickmeto trick.
-Original Message-
From: Ben Souther [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 09, 2003 3:52 PM
To: Tomcat Users List
That means you have an incorrect entry in web.xml.
'incorrect' in this context means a typo, or elements that are
incorrectly nested, or out of order.
It's most likely the order though.
-Original Message-
From: Naveen My [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003
From the DTD for web.xml:
!--
The auth-constraint element indicates the user roles that should
be permitted access to this resource collection. The role-name
used here must either correspond to the role-name of one of the
security-role elements defined for this web application, or be
the
Have you read my reply in your other thread ?
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 1:04 PM
To: Tomcat Users List
Subject: Re: JDBCRealm first try
Still haven't figured it out.
Can anyone help?
Thanks,
--
Reply inlined
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 1:51 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Rick Roberts wrote:
Thanks for reply Mike.
After thinkin about this message some more;
can that not be handled at an OS level?
-Original Message-
From: Mark W. Webb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: prompt for password at startup
Is there an accepted way to prompt for a password upon
startup of
?
Mike Curwen wrote:
can that not be handled at an OS level?
-Original Message-
From: Mark W. Webb [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: prompt for password at startup
Is there an accepted way to prompt
quickly: no. that's the memoryrealm
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:04 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Oh! One other question.
Does the tomcat-users.xml file have anything to do
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:59 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
OK. The error message is gone now! Thanks.
It took me a few tries to figure out where the
security-role needed
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:22 PM
To: Tomcat Users List
Subject: Re: JDBC Realm Warning Message?
Mike,
Thanks a bunch!!
I feel like I'm well on my way to figuring this out now.
Where can I find the
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 10:50 AM
To: Tomcat Users List
Subject: RE: Finding exact Tomcat version
http://tomcatfaq.sourceforge.net/miscellaneous.html
That won't help, since the Installer needs to know,
If you post to the servlet, getQueryString() should return null.
But if your request looks like:
http://localhost:8080/myapp/myservlet?foo=bar
then getQueryString() should return foo=bar
Which case is it?
-Original Message-
From: Sumit Mittal [mailto:[EMAIL PROTECTED]
Sent:
It's in the stacktrace...
SEVERE: Parse Error at line 14 column 12: The content of element type
servlet must match ...
SEVERE: Parse Error at line 23 column 20: The content of element type
servlet-mapping must match ...
You have two errors in web.xml
possibly three...
[Fatal Error] :-1:-1:
Ok, I'll take this one again ;)
SEVERE: Parse Error at line 59 column 11: The content of
element type web-app must match ...
means you have an error in web.xml. Something is out of order, or a
typo, or...
-Original Message-
From: Jose Euclides da Silva Junior - DATAPREVRJ
From the DTD:
The optional contents of these element must be an integer
indicating the order in which the servlet should be loaded.
If the value is a negative integer, or the element is not
present, the container is free to load the servlet whenever
it chooses.
So, Tomcat developers.. what
Looks like you forgot to put /servlet
HTTP Status 404 - /careerCenter/StudentRegistrationServlet
-Original Message-
From: Naveen My [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 3:26 PM
To: Tomcat Users List
Subject: calling a servlet...from a .jsp (HTTP Status 404 )
If it wasn't from Yoav, I would have said the following:
No, you don't need to worry about it. The server rewrites the URL
automatically.
was completely wrong. ;)
I've seen it written that one should ensure all URL emitted from your
system should be passed through
(), but I think to
get the Tomcat-guaranteed behaviour, I need to use the classloader.
And I'm thinking this will still work for non web-app uses of
library.jar
Does all that seem accurate? I'm just thinking out loud. ;)
---
Mike Curwen
The way I'd do this is to use Properties objects, and a few (perhaps
even one?) files under WEB-INF/props
On startup, on the setup page, you'd ask the user to supply the filepath
to use.
Then you'd write that info to WEB-INF/props/application.properties.
On subsequent restarts, your app looks
I really liked this page:
http://www.vipan.com/htdocs/log4jhelp.html
It helped me get started with log4j. One warning though, it is out of
date, so you'll have to change some of the code examples. But otherwise,
the other stuff is still pretty relevant.
-Original Message-
From:
To construct a sfn from an lfn, you take the first six letters of the
directory name and add ~1 or ~2 or ~3. So both CATALINA_HOME and
JAVA_HOME are not correct. A sfn is exactly 8 characters.
If you want to know what the DOS name (sfn) is for a particular
directory, use the Run menu to start
There is a listing of servlet ISPs here:
http://www.servlets.com/isps/servlet/ISPViewAll
It's not Tomcat specific, but well, you can search on the page. ;)
-Original Message-
From: Joe Block [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:08 AM
To: [EMAIL PROTECTED]
Look in CATALINA_HOME/conf/web.xml. This is a large file with a large
amount of comments.
You should find a servlet-mapping tag that has the pattern /servlet/*
and you'll find it commented out. This is the 'invoker servlet' that
every beginner dreads, because there are a LOT of books /
Subject: Re: Tomcat 4.1.24/Win2K - Servlet not found.
Except that using the Invoker is disabled for a reason and should be
avoided if possible.
John
On Wed, 25 Jun 2003 11:44:38 -0500, Mike Curwen
[EMAIL PROTECTED] wrote:
Look in CATALINA_HOME/conf/web.xml. This is a large
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 12:53 PM
To: Tomcat Users List
Subject: RE: How to protect static HTML's
Howdy,
(2) Use filters. All filters set for a particular request are run
*once*
on an incoming
Did you use LFN's in your set statements ?
Try the c:\Progra~1\Apache~1\Tomcat~1 instead (same for JAVA_HOME)
-Original Message-
From: Mark Hayes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 4:33 AM
To: tomcat-User (E-mail)
Subject: tomcat 4.1.24 + sdk 1.4.1_03 + Win
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 5:24 AM
To: Tomcat Users List
Subject: RE: easy question
snip
On that note, what is the scope of jars put
This has been covered...
search your inbox (or the archive) for subject line: getting a reply
like this
-Original Message-
From: a b [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 3:03 AM
To: [EMAIL PROTECTED]
Subject: strange emial behavior
snip
-Original Message-
From: Sullivan, Patrick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 9:30 AM
To: Mark Hayes; tomcat-User (E-mail)
Subject: RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000
Did you move the appropriate jars to sdk's jre\lib\endorsed?
And what jars would
Do you have a context declared for the web app ?
Check out this for details:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=5
6t=000264
It contains links to nagoya for bug reports on unpacking WARs with
context declared in server.xml. I'm still irritated by the tone of
I'm pretty sure Kazaa starts a webserver on port 80. That's also how
Kazza's theatre (preview a downloading movie file) works.
If you've modified Tomcat to start on port 80, then change it back to
8080. Or... if I'm remembering wrong, and it's kazza that starts on
8080, then change Tomcat to
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 4:57 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24 Security
that the dbcp code had tried 3 times to load before it gave up.
This makes me think all is fine on the Tomcat end.
Don't make the opening jsp:include tag a singleton.
You have :
jsp:include page=callee.jsp /
it should be:
jsp:include page=callee.jsp
-Original Message-
From: Alan Tang [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 5:03 AM
To: [EMAIL PROTECTED]
Subject: passing
Since 4.1.12, the invoker servlet has been turned off by default.
Check out the web.xml in the conf directory, you'll see the invoker
commented out.
-Original Message-
From: Free Bud [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:00 PM
To: [EMAIL PROTECTED]
Subject:
If you've got Tomcat, you've got those packages. Make sure servlet.jar
is in your classpath (for compiling). For runtime, make sure you've set
JAVA_HOME and CATALINA_HOME properly.
-Original Message-
From: Apollinaris B. Mwila, Ph.D [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19,
Do you have the log4j.jar file anywhere? It would be difficult to do
log4j logging with out it in Tomcat's common/lib
Here is a basic configuration file I use, placed under my webapp's
WEB-INF/classes:
#log4j.properties
log4j.rootCategory=DEBUG, filer, chainsaw
If you are invoking your servlet through /servlet it will not pick up
the init-params from web.xml.
You need to invoke it through a proper mapping.
That's my best shot. ;)
-Original Message-
From: Jing Huang [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 2:46 PM
To:
Read the very bottom of this doc:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
-Original Message-
From: Jared Walker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 10:08 AM
To: Tomcat Users List
Subject: Problems with XML parsers and webapps
with Filters and these various combinations ?
---
Mike Curwen
Intermediate Programmer www.gb-im.com
This is something that's on the horizon for me, and I know what I'll end
up doing is using that automated method of configuring mod_jk. Tomcat
will start and create a file that contains a uri:webappname/servletname
mapping for each servlet mapped in web.xml for all webapps. Then in
apache, you
the advantage is.
John
On Tue, 17 Jun 2003 10:23:02 -0500, Mike Curwen
[EMAIL PROTECTED] wrote:
This is something that's on the horizon for me, and I know
what I'll
end up doing is using that automated method of configuring mod_jk.
Tomcat will start and create a file that contains
for that folder.
Another example, such as the case with struts, is to use
something like
/*.do to handle servlets.
John
On Tue, 17 Jun 2003 11:04:26 -0500, Mike Curwen
[EMAIL PROTECTED] wrote:
Maybe I'm missing something, but I'm not using Tomcat's servlet
invoker. So I don't have a single
, as
long as url-pattern/url-pattern was something like
/examples/servlet/someServletName.
John
On Tue, 17 Jun 2003 11:39:18 -0500, Mike Curwen
[EMAIL PROTECTED] wrote:
Except you don't 'serve' them from that directory, you invoke them,
right?
From your document here:
http
jkmount to /ser* ?
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 12:29 PM
To: Tomcat Users List
Subject: Re: possibly off topic: workers2.properties question
On Wed, 18 Jun 2003 00:04, Mike Curwen wrote:
Maybe I'm missing
Funny how that's his *problem*;)
The bug is deliberate. The problem is: Why isn't there a full stack
trace?
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 4:17 PM
To: Tomcat Users List
Subject: RE: JSP Compiler output?
Use of META refresh tags ?
HTML
HEAD
META HTTP-EQUIV=refresh
content=N;URL=http://www.yoursite.com/login_expired;
/HEAD
Where 'N' is the number of seconds to wait before refreshing. CNN.com
uses this on their main page.
-Original Message-
From: Reis, Tom [mailto:[EMAIL PROTECTED]
Right.. if the page you're viewing is the result of a form submission,
then it would be a problem if you refreshed that page. But we're
refreshing to a separate page so it's like a whole new request isn't it?
You could run into problems with forms and what not if you refresh
your
main page
So, is an open-source Anti-Virus project (perhaps at Jakarta)
self-defeating? ;)
-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 9:45 AM
To: 'Tomcat Users List'
Subject: RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...
I
The real problem with Virus scanners as an open source project is
two fold:
1. The virus writers can look at the source code and determine new
patterns that will be outside of the scanner's view (granted the script
kiddies won't be able to do this, but the more advanced virus writers
No, that's not exactly correct. Tomcat performs URL rewriting in its default
configuration. So sessions are not 'only' possible if cookies are enabled.
As a first line of defense, your JSP/servlets should be using the encodeURL
or encodeRedirectURL methods to ensure that any user that has
It sounds like this might be related to your other javac/Main problem. If
Tomcat can't find tools.jar, and the install program can't find your 'jdk'
(tools.jar)... maybe a registry inspection is in order.
-Original Message-
From: Michael Kastner [mailto:[EMAIL PROTECTED]]
Sent: Monday,
Is there a reason you must use the jdbc-odbc bridge? Or could you use the
classes11 or classes12 jar files to provide jdbc connections? This is the
preferred method of connecting for many reasons, and it would be worth
trying to see if you can get rid of this error.
-Original Message-
If you're on Windows 2000 Server, then you probably have IIS running on port
80? So localhost:8080 should be used to specify Tomcat.
401 is Unauthorized, which indicates your request lacked authorization to
access the resource.
-Original Message-
From: Martin Sujkowski [mailto:[EMAIL
Thought I'd add 2 cents.
Javaranch is a pretty popular java programming/certification site, and I
co-moderate a few forums there.
Servlets:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forumf=7
JSP:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forumf=50
Apache / Tomcat:
Hi,
This has probably been covered before, but thought I'd risk a 'stfw' and ask
anyways. ;)
What is the cause (and solution?) for this fairly frequent and non-fatal
error?
IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by peer:
socket write error.
p.s. - I have done a
a browser, requesting a page
from your Tomcat, but then decide to move on to another site or page.
Hope it helps.
Mike Curwen wrote:
Hi,
This has probably been covered before, but thought I'd risk a 'stfw' and
ask
anyways. ;)
What is the cause (and solution?) for this fairly frequent and non-fatal
or page.
Hope it helps.
Mike Curwen wrote:
Hi,
This has probably been covered before, but thought I'd risk a 'stfw' and
ask
anyways. ;)
What is the cause (and solution?) for this fairly frequent and non-fatal
error?
IOException in R(/myfolder+/jsp/somepage.jsp+null) Connection reset by
peer
Hi,
This is a closely related question, so thought I'd use this thread.
I'm the co-moderator of a Java Servlets forum, and a question came up
recently that I have never heard of before. It seems a user has found that
request.getSession() takes a very long time to return if he is using
Netscape
You could use a JSP error page from a servlet.
Catch any ServletException errors, and do a redirect to your JSP error page.
Here's short snips from one of my servlets:
try {
//sending email from the servlet...
} catch (ServletException ex) {
log(Failure to send email, ex);
Oh the dangers of modifying code without first testing it!
I modified that from a plain 'Exception', because I thought I was being
clever. Catch either the exact specific Exceptions that may be thrown (eg:
NullPointer, IO) or just catch 'Exception', as I was originally doing.
-Original
Are they jar'd ? - try putting them in the classes/lib directory.
Are they zip'd ? - change the extension to jar
Do you have a code sample?
-Original Message-
From: Chris Duprat [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 7:26 AM
To: [EMAIL PROTECTED]
Subject: Jasper !!!
If you put the classes into the TOMCAT_HOME/lib directory, they should be
picked up when Tomcat is started.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
Sent: Thursday, January 10, 2002 10:25 AM
To: Tomcat Users List
Subject: Re:
How about placing a flag in the session, which every JSP (or hopefully your
controller servlet) checks for first.
If it finds the flag (say loggedIn) then it continues processing. If it
doesn't, it redirects to the login servlet. The login servlet would then
place the loggedIn flag into the
401 - 493 of 493 matches
Mail list logo