Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, tek1 wrote: Date: Sat, 17 Aug 2002 15:03:28 +0900 From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: retrieving HttpSession in Filter? hello. in a filter, is it possible to cast the ServletRequest to a

test

2002-08-17 Thread Niket Anand
niket -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

mod_jk2.so needed

2002-08-17 Thread Niket Anand
Hi all, Can anybody send me a link from where I can download mod_jk2.so? I am unable to build this file. I am using Apache2.0.4, Tomcat4.0.3 in windows2000 Or please send it with attachment. I am following the instructions given in this link to run apache with Tomcat

Re: retrieving HttpSession in Filter?

2002-08-17 Thread tek1
eddie and craig, thanks for your replies. i was calling the HttpServletRequest.getSession() before the response was committed. in the below code on line 4, i didn't mention that was using a responseWrapper, so the servlet used the responseWrapper, and when control returned to the filter, the

Re: getRemoteUser() reset to null after authenticated user hits an unauthorized page

2002-08-17 Thread Bill Barker
Craig R. McClanahan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Fri, 16 Aug 2002, Scott Dayberry wrote: Date: Fri, 16 Aug 2002 11:11:53 -0600 From: Scott Dayberry [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users

Re: ?? JSP and request.getPathInfo() in Tomcat ??

2002-08-17 Thread Bill Barker
This one really belongs in an FAQ. Section 11.1 bullet 3 of the servlet-2.3 spec states that: spec-quote If the last segment in the URL path contains an extension (e.g. .jsp), the servlet container will try to match a servlet that handles requests for the extension. An extension is defined as

How can i set tomcat to auto reload the servlet?

2002-08-17 Thread Aaron Chan
Hi, May I know how can I make tomcat to auto reload every time I make a changes to the classes I placed in ROOT/WEB-INF/classes ? I am running on Tomcat 4.0. Thank you. [EMAIL PROTECTED]

Re: Tomcat Current Working Directory

2002-08-17 Thread Larry Meadors
Is there a way to configure Tomcat 4.0.4's current working directory to point to sub-directory of the webapps folder, rather than /bin? I hate to answer a question with a question, but here goes: Why would you want to do that? Larry -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

Re: Tomcat 4.0.4: Which HTTP/1.1 Connector? Coyote??

2002-08-17 Thread Remy Maucherat
Eddie Ruvinsky wrote: Hello, The release notes for Tomcat 4.0.4 say that the new Coyote HTTP/1.1 connector now ships with Tomcat. The notes mention that it is more optimizied and robust than the [soon to be deprecated] HttpConnector for HTTP/1.1. However, the Tomcat 4.0.4 docs haven't

RE: How can i set tomcat to auto reload the servlet?

2002-08-17 Thread Reynir Hübner
just set reloadable=true on the context (in server.xml) hope it helps -reynir -Original Message- From: Aaron Chan [mailto:[EMAIL PROTECTED]] Sent: 17. ágúst 2002 10:12 To: [EMAIL PROTECTED] Subject: How can i set tomcat to auto reload the servlet? Hi, May I know how can I

Re: Using Tomcat as a proxy?

2002-08-17 Thread Nikola Milutinovic
ope wrote: I am looking for a way to use Tomcat as a proxy similar to the way that Apache can be setup to proxy to Tomcat. What I want to do is have Tomcat setup so that any URLs that have the path http://myserver/someapp are forwarded to http://otherserver/someapp. Apache can do this

Too many threads

2002-08-17 Thread Ronaldo
Hi, I'm developing a web aplication with jsp and servlets, and I'm beging to use tomcat. The only problem I'm having is, when I make a stress test on my tomcat (4.0.4 on RH Linux) the server create as many threads as the number of requests. Is this normal? shuldn't be some kind of inteligent

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Nikola Milutinovic
Craig R. McClanahan wrote: This is not the right test for a newly created session, because there *was* no requested session. Try something like this instead: HttpSession session = request.getSession(false); if (session == null) { ... no session exists ... } else if

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, tek1 wrote: Date: Sat, 17 Aug 2002 17:47:32 +0900 From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: retrieving HttpSession in Filter? eddie and craig, thanks for your replies. i was

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, Nikola Milutinovic wrote: Date: Sat, 17 Aug 2002 16:23:31 +0200 From: Nikola Milutinovic [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: retrieving HttpSession in Filter? Craig R. McClanahan wrote:

RE: Persistent Connection

2002-08-17 Thread Andrew Conrad
It's a operating system issue. quote NOTE: It is normal to have a socket in the TIME_WAIT state for a long period of time. The time is specified in RFC793 as twice the Maximum Segment Lifetime (MSL). MSL is specified to be 2 minutes. So, a socket could be in a TIME_WAIT state for as long as 4

RE: mod_jk2.so needed

2002-08-17 Thread Andrew Conrad
The mod_jk2.dll file can be found here http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/w in32/ - Andrew -Original Message- From: Niket Anand [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 3:30 AM To: [EMAIL PROTECTED] Subject: mod_jk2.so

Error Page Configuration

2002-08-17 Thread Kurtz, Todd
Has anyone configured tomcat error pages through $CATALINA_HOME/conf/web.xml and been able to access the implicit exception object from within the error page? Regards, Todd Kurtz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Way to specify realms for dynamically installed apps?

2002-08-17 Thread Chris Nokleberg
On Wed, 14 Aug 2002, Craig R. McClanahan wrote: On Wed, 14 Aug 2002, Chris Nokleberg wrote: I'm using the new ant tasks to install and deploy web apps from ant. One of my applications needs a JDBCRealm, but there doesn't seem to be a way to supply the manager with additional bits it might

BasicDataSourceFactory and TC 4.1.9

2002-08-17 Thread Paul McGovern
I am having probelms getting a Connection from the DataSource I get out of JNDI. I set up the Resource section of my server.xml as described in the HOW-TO for 4.1.9 and am using mm.mysql 2.0.14 with MySQL 3.23.51. The DB and dirver seem to work fine together. It seems I can get the

java.lang.NullPointerException tc4.0.4

2002-08-17 Thread Luminous Heart
I get this error the first time I try to access the jsp page, if I reload it works fine. What is wrong? Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server

Re: Way to specify realms for dynamically installed apps?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, Chris Nokleberg wrote: Date: Sat, 17 Aug 2002 11:39:34 -0700 From: Chris Nokleberg [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Way to specify realms for dynamically installed apps? On Wed, 14 Aug 2002, Craig R.

RE: How iss Tomcat's performance?

2002-08-17 Thread Sexton, George
Every application has it's own performance bottlenecks and parameters. You might want to download JMeter and test your specific application. http://jakarta.apache.org/jmeter/index.html Personally, I got more than enough throughput to swamp a T1 on a pretty database intensive application. The

DBCP borrowObject failed

2002-08-17 Thread Short, Dave
I am having a problem getting a connection from JNDI. I set up my server.xml and web.xml files per the instructions in the JNDI Resources HOW-TO and JNDI DataSource Examples on the Tomcat 4.1 Documentation Page. Configuration: W2K Tomcat 4.1.9 (Stand Alone) Oracle 8.1.7 Here's my Tomcat

Re: BasicDataSourceFactory and TC 4.1.9

2002-08-17 Thread Paul McGovern
Upon further investigation, I found that the config I use below does work if, and only if, I access the servlet from localhost:8080. I'm using mod_webapp with Apache 1.3.24 and have the following entry, which seems to work fine, in httpd.conf: IfModule mod_webapp.c WebAppConnection conn

Re: Tomcat 4.0.4: Unnecessary $TOMCAT/temp/ directory?

2002-08-17 Thread Glenn Nielsen
Do not remove this temp directory. This is the temporary directory configured in the Tomcat startup with -Djava.io.tmpdir. This temp directory is used by the JVM for internal things like jar files, etc. Regards, Glenn Eddie Ruvinsky wrote: I don't believe this is the case. According to the

Re: dynamic webapp deployment and mod_jk

2002-08-17 Thread Glenn Nielsen
For mod_jk 1.2 you can use JkAutoAlias to automatically server static pages for any web application context, even new ones which get added. Here is an example for the apache httpd.conf: JkAutoAlias /usr/local/tomcat/webapps JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 Regards, Glenn David

RE: Post 4.1.8 install

2002-08-17 Thread Robert L Sowders
Change JDK_HOME to JAVA_HOME and try it again. Robert Dunn [EMAIL PROTECTED] 08/15/2002 11:48 PM Please respond to Tomcat Users List To: Tomcat Users List [EMAIL PROTECTED] cc: Subject:RE: Post 4.1.8 install Hi Jake, I installed version 1.3.1, JDK

Re: Fw: Still can't get Apache to forward to Tomcat

2002-08-17 Thread Robert L Sowders
There's no reason that it shouldn't. I don't use Oracle here, but others on this list have suggested putting the oracle jar file in the common directory. Search the list for mention of this, I hazy on this. Here's one I found that looks like it's ok. Try a search for JDBC.

Re: Apache won't start with LoadModule included

2002-08-17 Thread Robert L Sowders
mod_jk2 was built against the apache 2.0.38 sources and will not work for 2.0.40, you will have to compile it yourself for 2.0.40. As for TC 4.1.9, it failed to start for 2.0.39 and I'm left with the impression it's still being worked on as the default install has no workers2.properties file

How to setup and lookup an EJB under JBoss 3.0 with tomcat4.03 embedded

2002-08-17 Thread kam leung
Hi, I had searched for how to set the web.xml and server.xml for looking up a session bean in the Tomcat 4.1 document page, but did not find something to close to we I needed. Can someone point me to a how-to document or example that shows how to looking up a session bean with JNDI (how-to