RE: URGENT! PLEASE..

2002-01-10 Thread Mike Curwen
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:

RE: Securing access to pages

2002-01-10 Thread Mike Curwen
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

RE: getSession take too mush time.

2002-01-11 Thread Mike Curwen
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

RE: Change the default error message

2002-01-11 Thread Mike Curwen
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);

RE: Change the default error message

2002-01-11 Thread Mike Curwen
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

RE: Jasper !!!

2002-01-11 Thread Mike Curwen
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 !!!

RE: Hey Check this out... Tomcat forums!

2002-01-15 Thread Mike Curwen
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:

IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
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

RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
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

RE: IOException, that reset by peer thing.

2002-01-15 Thread Mike Curwen
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

RE: tomcat 4.01 and win2000 server-cant get it to work

2002-01-16 Thread Mike Curwen
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

RE: Still have no answer for this!

2002-01-21 Thread Mike Curwen
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-

RE: TOMCAT 4.0.1 and Cookies / URL Rewriting

2002-01-28 Thread Mike Curwen
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

RE: Binary Dist. tomcat 4.01 Win32 can't find jdk on installation

2002-01-28 Thread Mike Curwen
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,

RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-29 Thread Mike Curwen
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

RE: PLEASE REMOVE THE VIRUS BEFORE MAILING THE LIST...

2002-01-29 Thread Mike Curwen
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

RE: Problems with XML parsers and webapps

2003-06-18 Thread Mike Curwen
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

RE: web.xml init param

2003-06-19 Thread Mike Curwen
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:

RE: passing parameters to another JSP page

2003-06-20 Thread Mike Curwen
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

RE: configuration

2003-06-20 Thread Mike Curwen
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:

RE: Javax servlets

2003-06-20 Thread Mike Curwen
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,

RE: basic logging question

2003-06-20 Thread Mike Curwen
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

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-24 Thread Mike Curwen
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

RE: easy question

2003-06-24 Thread Mike Curwen
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

RE: strange emial behavior

2003-06-24 Thread Mike Curwen
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

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-24 Thread Mike Curwen
-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

RE: Deployment of WAR-files

2003-06-24 Thread Mike Curwen
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

RE: Conflict of Kazaa and Tomcat

2003-06-24 Thread Mike Curwen
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

RE: Tomcat 4.1.24 Security

2003-06-24 Thread Mike Curwen
-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.

RE: tomcat 4.1.24 + sdk 1.4.1_03 + Win 2000

2003-06-25 Thread Mike Curwen
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

RE: hosting services offering tomcat

2003-06-25 Thread Mike Curwen
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]

RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
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 /

RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
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

RE: How to protect static HTML's

2003-06-25 Thread Mike Curwen
-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

RE: Log4j and Tomcat howto?

2003-06-26 Thread Mike Curwen
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:

Tomcat Classloaders and loading properties files

2003-06-27 Thread Mike Curwen
(), 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

RE: Persistent attributes

2003-06-27 Thread 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

RE: Digester error/SEVERE Parse starting point

2003-07-02 Thread Mike Curwen
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:

RE: Message Digest severe error when starting Tomcat 4.1

2003-07-02 Thread Mike Curwen
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

RE: Starting a sevlet automatically when Tomcat starts

2003-07-02 Thread Mike Curwen
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

RE: calling a servlet...from a .jsp (HTTP Status 404 )

2003-07-02 Thread Mike Curwen
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 )

RE: Sessions sans cookies? URL Rewriting?

2003-07-02 Thread Mike Curwen
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

RE: Finding exact Tomcat version

2003-07-03 Thread Mike Curwen
-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,

RE: problem with getQueryString

2003-07-03 Thread Mike Curwen
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:

RE: org.apache.commons.digester.Digester error

2003-07-08 Thread Mike Curwen
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

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
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

RE: JDBCRealm first try

2003-07-08 Thread Mike Curwen
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, --

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
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;

RE: prompt for password at startup

2003-07-08 Thread Mike Curwen
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

RE: prompt for password at startup

2003-07-08 Thread Mike Curwen
? 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

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
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

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
-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

RE: JDBC Realm Warning Message?

2003-07-08 Thread Mike Curwen
-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

RE: I can no longer start TC from W2k Start Menu

2003-07-09 Thread Mike Curwen
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

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
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

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
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

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
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

RE: [off-topic] - Where can i find Oreilly's package for uploading files?

2003-07-09 Thread Mike Curwen
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

RE: Still need help with JDBCRealm

2003-07-09 Thread Mike Curwen
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

RE: setting up a root servlet / getting images to appear in Tomcat 4.1.24

2003-07-09 Thread Mike Curwen
-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.

RE: setting up a root servlet / getting images to appear in Tomcat 4.1.24

2003-07-09 Thread Mike Curwen
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

RE: Tomcat: j_security_check: Form Authentication

2003-07-10 Thread Mike Curwen
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

RE: How to make Tomcat reread user's role from database

2003-07-10 Thread Mike Curwen
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

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
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

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
-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

RE: JDBCRealm - Session not timing out

2003-07-10 Thread Mike Curwen
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

RE: RequestDispatcher

2003-07-11 Thread Mike Curwen
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

RE: J2EE: Sinking Deeper and Deeper

2003-07-14 Thread Mike Curwen
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

RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
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.

RE: JDBCRealm - Login redirects to my image instead

2003-07-14 Thread Mike Curwen
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

Using sendRedirect puts me into an infinite loop...

2003-07-16 Thread Mike Curwen
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

RE: MemoryRealm and tomcat-users.xml

2003-07-18 Thread Mike Curwen
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

RE: Handling auth failure

2003-07-21 Thread Mike Curwen
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*,

RE: System.load Exceptions cannot be caught

2003-07-21 Thread Mike Curwen
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

RE: Error Page Status Code

2003-07-21 Thread Mike Curwen
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); %

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
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

RE: JDBC + MySQL Datasource + Tomcat = ClassCastException

2003-07-22 Thread Mike Curwen
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

RE: how 2 start tomcat from ms-dos command prompt without creating a new window ?

2003-07-24 Thread Mike Curwen
-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 ?

RE: tomcat error

2003-07-24 Thread Mike Curwen
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:

RE: iPlanet and Tomcat integration on solaris

2003-07-25 Thread Mike Curwen
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

RE: performance of serving static data? apache or tomcat

2003-07-25 Thread Mike Curwen
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

RE: Servlet Caching question

2003-07-25 Thread Mike Curwen
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

RE: mysql connection pool

2003-07-28 Thread Mike Curwen
By 'new pool instance' do you mean that: Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/TestDB); System.out.println(ds instance : + ds); The result of System.out.println is always a different value ? In this case, it's not a new instance of the

RE: connection pool recreated

2003-07-28 Thread Mike Curwen
Didn't know you were going to start a new thread.. see my question under the previous one. The DataSource in your code is NOT the pool. -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 9:45 AM To: [EMAIL PROTECTED] Subject: connection pool

RE: Session\Security Checking

2003-07-28 Thread Mike Curwen
I think using a realm and simply setting up /downloaddir/* as a 'protected resource' is the way to go. The functionality you're looking for has already been implemented by Container-Managed Auth. Also.. if you use a container AUTH scheme, then you don't need the Session ID in the URL. The mere

RE: Session\Security Checking

2003-07-28 Thread Mike Curwen
: Session\Security Checking But I still need to change how my user are authenticated, correct. I now need to handle that authentication through the realm instead of a Form on our page now, right? -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, July 28

RE: Session\Security Checking

2003-07-28 Thread Mike Curwen
for me? -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 12:55 PM To: 'Tomcat Users List' Subject: RE: Session\Security Checking If you've already implemented your own access control, then certainly it might be more feasible to extend

RE: Strange request.setAttribute() problem

2003-07-28 Thread Mike Curwen
%! private int itemnumber = -1; % Using a ! makes it scoped globally to all requests. If you check the source file of your JSP you'll see it's declared outside the service method. That's why different browsers will 'appear' as though they are mixing up things. It's because your variable

RE: Tomcat - username/password

2003-07-28 Thread Mike Curwen
You *need* to change something. Take a closer look at tomcat-user.xml AND the document that John linked earlier. There is something missing from tomcat-user.xml (roles) - big hint. -Original Message- From: Hari Om [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 1:48 PM

RE: [Fileupload](java newbie):cannot resolve symbol

2003-07-28 Thread Mike Curwen
Compiling a servlet is different than having it run under Tomcat. You needed to compile your servlet, so either send in the path to the jar file with a javac parameter (-cp) or put it on your system classpath, or any one of a number of different options. That's compiling, and it's just like any

RE: Tomcat - username/password

2003-07-28 Thread Mike Curwen
! - HTTP Status 403 - Access to the requested resource has been denied - Any related informatin on this is appreciated. Thanks! From: Mike Curwen [EMAIL

RE: Post-authentication tasks

2003-07-28 Thread Mike Curwen
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

RE: 8009 Port....?

2003-07-28 Thread Mike Curwen
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

RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Mike Curwen
I'm a fan of www.atlassian.com/jira -Original Message- From: Mark F [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 6:59 AM To: Tomcat Users List Subject: Re: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool Depends on if you are using a

RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Mike Curwen
If you dig a bit deeper with JIRA, there's a way to integrate it with CVS. It appears to involve modifying your CVS to emit emails ? I'm no CVS expert, but it looks not too bad in terms of complexity. http://www.atlassian.com/software/jira/docs/v2.3/cvs_emails.html -Original Message-

RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool

2003-07-29 Thread Mike Curwen
as this can be got from the open source community. Regards Donie -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: 29 July 2003 16:27 To: 'Tomcat Users List' Subject: RE: Bugs, Issues, Tasks, Patches, CVS integration - which is the best tool If you dig a bit

RE: Tomcat UML Diagram

2003-07-29 Thread Mike Curwen
Also, depending on your UML tool, you can generate UML diagrams from the tomcat source files. So if they don't exist, you can make them yourself. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 11:07 AM To: 'Tomcat Users List' Subject:

RE: sessionids through url rewriting

2003-07-29 Thread Mike Curwen
However, there is an API call to do this for you, so it's not as heinous as it sounds at first. Unless of course, you've already built several hundred pages/servlets, none of which use the encoding methods. So URL re-writing is supported only if you do something like:

RE: [Fatal Error] :2:5118: Content is not allowed in trailing section.

2003-07-29 Thread Mike Curwen
I can't say exactly what the problem is, but it is caused by malformed XML. So either you do indeed have some bad XML somewhere, or SAX *thinks* you do. Between 4.0 and 4.1 releases of Tomcat, I think they tightened up the DTD checking. And for sure they've changed XML parsers. Does your app

RE: Can't find ocijdbc9 in java.library.path

2003-07-30 Thread Mike Curwen
I'm surprised that classes12.zip would load in the first application. Normally you would have to rename this file classes12.jar. Maybe that's been done in the first, but not the second ? -Original Message- From: Ollier John [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003

  1   2   3   4   5   >