Re: Servlets with JDBC connectivity

2003-12-03 Thread Peter Harrison
On Wed, 03 Dec 2003 16:18, Todd O'Bryan wrote: How do people handle this elegantly? The requirements are: a single, globally visible (within a webapp) database interface and the ability to access multiple databases easily. The first point is to use a singleton to set up the database

execution order of context listener and servlets

2003-12-03 Thread Ulrich . Kleeberger
hi guys, i have a question about der execution order of the ServletContextListener.contextInitialized() method and the init() method of an servlet. In my web.xml i have a servlet with load load-on-startup1/load-on-startup declared. besides i have declared an ServletContextListener. in tomcat

RE: Tomcat 5.x and JBoss

2003-12-03 Thread J.L.
Yes, I posted this question on the jboss.org forum, but I'm still waiting for the answer. --- Simon Chou [EMAIL PROTECTED] a écrit : Have you posted this question in the JBoss forum? SC -Original Message- From: J.L. [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 5:22

Re: Servlets with JDBC connectivity

2003-12-03 Thread Nikola Milutinovic
Peter Harrison wrote: On Wed, 03 Dec 2003 16:18, Todd O'Bryan wrote: How do people handle this elegantly? The requirements are: a single, globally visible (within a webapp) database interface and the ability to access multiple databases easily. The first point is to use a singleton to set up

Re: Shell script to check if Tomcat is running?

2003-12-03 Thread irubenis
Does anybody has script also for unix systems like REDHAT linux? This looks likes for windows! 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef | grep java| grep -v grep | wc -l` if [ $COWBELL 0 ]; then echo Woohoo - the

Re: Shell script to check if Tomcat is running?

2003-12-03 Thread Oscar Carrillo
This is for unix/linux. Oscar On Tue, 2 Dec 2003 [EMAIL PROTECTED] wrote: Does anybody has script also for unix systems like REDHAT linux? This looks likes for windows! 2 really simple ways - # Assume tomcat is the only java process COWBELL=`ps -ef

OutOfMemoryError on Tomcat-4.1.24

2003-12-03 Thread Hans Steinraht
hi, I'm installed Tomcat-4.1.24 on a Linux Debian pc with j2sdk1.4.1. On that there is an application running that causes Tomcat stoppping from time to time. The error I get is: Dec 2, 2003 1:44:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception

Cross site single sign on

2003-12-03 Thread Will Hartung
Hi all! Not necessarily Tomcat specific, but I'm curious what others may have done to support cross site single sign on. The basic problem is that customer goes to site A, and logs in. Then while navigating that site, they eventually head over to site B. Of course when they hit site B, the

OutOfMemoryError on Tomcat-4.1.24

2003-12-03 Thread Hans Steinraht
hi, I'm installed Tomcat-4.1.24 on a Linux Debian pc with j2sdk1.4.1. On that there is an application running that causes Tomcat stoppping from time to time. The error I get is: Dec 2, 2003 1:44:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception

Re: Problems with Tomcat 4.1.27 and MySQL J/Connector 3.0.9 (stable)

2003-12-03 Thread Doug Parsons
Here's my two cent's. The problem is that when I try to open the connection by calling method dataSource.getConnection() it throws a java.sql.SQLException stating Cannot load JDBC driver class 'null'. Had the same problem on 4.1.29 and 3.23.58 Try adding this to the Web.xml servlet-mapping

Re: Servlets with JDBC connectivity

2003-12-03 Thread Doug Parsons
Based on the how-to and modified for your app: package yourpackage; import java.sql.*; import javax.naming.*; import javax.sql.*; public class Conn { /**Takes desired database as a string and returns a connection. */ public static Connection getConn(String dBase) { Connection connection =

intial context

2003-12-03 Thread Tr#7847;n ÿffffd0#259;ng Ngÿffffe2n
Hi ! I'm using Tomcat/4.1.24-LE-jdk14 and getting a trouble with initial Context in Tomcat. Could you help me ? I'm develop my database in SQL Server 2000, using ODBC Data Source : Systwm DSN is book, using JdbcOdbc bridge. I don't know how to edit server.xml web.xml in conf to deploy my app

Re: OutOfMemoryError on Tomcat-4.1.24

2003-12-03 Thread David Rees
Hans Steinraht wrote: I'm installed Tomcat-4.1.24 on a Linux Debian pc with j2sdk1.4.1. On that there is an application running that causes Tomcat stoppping from time to time. The error I get is: Dec 2, 2003 1:44:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught

Re: execution order of context listener and servlets

2003-12-03 Thread Bill Barker
In the Servlet-2.4 spec (aka Tomcat 5), it explicitly specifies Tomcat's order. @See section 9.12. It isn't explicitly specified in the Servlet-2.3 spec, so technically oracle isn't wrong. However, because of the spec change, they will have to match Tomcat's order in their Servlet-2.4 release.

Antwort: Re: execution order of context listener and servlets

2003-12-03 Thread Ulrich . Kleeberger
thanks for the info bill. Bill Barker

Re: OutOfMemoryError

2003-12-03 Thread Rodrigo Ruiz
Christopher Schultz wrote: So, moving on, what usually happens is that a low memory condition triggers a GC (usually a full GC). When the GC runs, it needs some memory to work with. If it cannot allocate memory for itself, it will die with an OOM. If the heap hasn't increased, yet, then the GC

Include Files

2003-12-03 Thread Duncan
When using Tomcat 4.0, I was able to include files in a directory above my public web directory, but with tomcat 4.1, when I try to run the same jsp, I get the error: org.apache.jasper.JasperException: /main.jsp(3,0) File ../Private/NormalTemplate.inc not found All casing etc is correct. Is

Re: JSP Editors

2003-12-03 Thread Duncan
Thanks guys Seems to be big differances in opinion, but I'll try a few of them out - Duncan Duncan wrote: Sorry if off topic but... What do people use to edit JSPs? I'm after an editor, free if possible, to run on windows, with syntax colouring and possibly auto complete for java. Have

Re: Tomcat 5.x and JBoss

2003-12-03 Thread Remy Maucherat
J.L. wrote: Hi, I want to use JBoss 3.2.2 and Tomcat 5.0.14. The problem is that I have to replace the JBoss embedded Tomcat, by the 5.0.14 version (I need local access between servlets and EJBs). I have heard I can do that by recompiling JBoss with Tomcat 5.0.14, but I have no idea how to do

response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
talk2UtimeHi all, I am getting strange entries in my test_service_log.2003-12-03.txt. In my JSP which gets executed before this I am running a response.sendRedirect(/test/RedirectToMe.jsp); with a return; afterwards. So this should only get executed once. However. According to my logs its being

Re: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-03 Thread Marco Manini
Hi, i'm using mod_jk2 for load balancing purpose and I have a problem in fail over scenario. I described this scenario in the bugs database: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 Can you tell me if you have a similar behavior please? Thanks! Marco - Original Message -

Any Examples of jakarta Slide

2003-12-03 Thread Vaneet Sharma
hi All, Has anyone Worked on jakarta Slide.. I am designing a Document Management System Let me know pleaase Thank you very much Van -Original Message- From: Marco Manini [mailto:[EMAIL PROTECTED] Sent: Wed 03/12/2003 11:27 To: Tomcat Users List

Antwort: Any Examples of jakarta Slide

2003-12-03 Thread Ulrich . Kleeberger
hi, i have only used the client part of slide to transfer files with WebDAV between two servers. uli Vaneet Sharma

Re: Servlets with JDBC connectivity

2003-12-03 Thread Todd O'Bryan
On Dec 3, 2003, at 2:59 AM, Nikola Milutinovic wrote: Peter Harrison wrote: On Wed, 03 Dec 2003 16:18, Todd O'Bryan wrote: How do people handle this elegantly? The requirements are: a single, globally visible (within a webapp) database interface and the ability to access multiple databases

Best JVM for Tomcat

2003-12-03 Thread Walter do Valle
What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? Thanks for any tip

Re: HttpSessionListener in Tomcat 4.1.27 (or HttpSessionListener in general)

2003-12-03 Thread Tommy Smith
Sorry, just joined this group - so I hope I am not jumping in at the wrong time to this thread. I am running Tomcat 4.1.18 (with Cocoon on Windows 2000, incidentally) Anyway, I have implemented a HttpSessionListener, code below is for the on sessionCreated event handler I am interested in various

Re: Servlets with JDBC connectivity

2003-12-03 Thread Todd O'Bryan
On Dec 3, 2003, at 5:40 AM, Todd O'Bryan wrote: On Dec 3, 2003, at 2:59 AM, Nikola Milutinovic wrote: Peter Harrison wrote: On Wed, 03 Dec 2003 16:18, Todd O'Bryan wrote: How do people handle this elegantly? The requirements are: a single, globally visible (within a webapp) database interface

Re: Problems with Tomcat 4.1.27 and MySQL J/Connector 3.0.9 (stable)

2003-12-03 Thread Ilari Kontinen
ke, 2003-12-03 kello 04:19, Doug Parsons wrote Had the same problem on 4.1.29 and 3.23.58 Try adding this to the Web.xml servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping Does not make sense, since I do not have servlets in my web

Re: Problems with Tomcat 4.1.27 and MySQL J/Connector 3.0.9 (stable)

2003-12-03 Thread Ilari Kontinen
Realm className=org.apache.catalina.realm.DataSourceRealm debug=99 dataSourceName=jdbc/TestDB userTable=UserTBL userNameCol=userid userCredCol=pass userRoleTable=RoleTBL roleNameCol=role/ The Realm did not change. Sorry, the Realm indeed changed. I had to change the

accessing tomcat from another machine

2003-12-03 Thread Michael Schuldt
I've upgraded from tomcat 4.0.4 to tomcat 4.1.29 I can access my application by using http://localhost:8080/appname Everything's ok. But if I try to access it from another machine, it fails. Even if I try to access the application from my own machine by using the computername or 127.0.0.1

Build Tomcat :Jasper - cannot resolve symbol

2003-12-03 Thread Tommy Smith
Hi, Any one have any clues as to why this build is unsuccessful. Is something missing? deploy: [echo] Target: Jasper - Deploy ... build-prepare: [mkdir] Created dir: /tmp/jakarta-tomcat-4.1.29-src/jasper/build [mkdir] Created dir: /tmp/jakarta-tomcat-4.1.29-src/jasper/build/bin

NotSerializableException - DBCP

2003-12-03 Thread Andoni
Hello, I have not been using the shutdown command when restarting Tomcat in Windows but now that I have I get exception traces for all my Session beans on shutting down and then again for each of two connection objects when starting up. Is this simply that the DBCP package's PoolableConnection

Re: Best JVM for Tomcat

2003-12-03 Thread Vic Cekvenich
I use BEA's jRockit (but with tomcat 5) on Fedora. .V Walter do Valle wrote: What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? Thanks for any tip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: HttpSessionListener in Tomcat 4.1.27 (or HttpSessionListener in general)

2003-12-03 Thread Bodycombe, Andrew
The sessionCreated() method is called when the session is first created, and therefore has no attributes set. If you are interested in session attributes, perhaps you should look at HttpSessionAttributeListener or HttpSessionBindingListener. Hope this helps Andy -Original

Re: Cross site single sign on

2003-12-03 Thread Tim Funk
Sounds like pubcookie: http://pubcookie.org/ -Tim Will Hartung wrote: Hi all! Not necessarily Tomcat specific, but I'm curious what others may have done to support cross site single sign on. The basic problem is that customer goes to site A, and logs in. Then while navigating that site, they

Re: Include Files

2003-12-03 Thread Tim Funk
I would think this is a security fix. (Or a bug fix) I am surprised this was allowed in 4.0. -Tim Duncan wrote: When using Tomcat 4.0, I was able to include files in a directory above my public web directory, but with tomcat 4.1, when I try to run the same jsp, I get the error:

Re: Best JVM for Tomcat

2003-12-03 Thread Remy Maucherat
Vic Cekvenich wrote: I use BEA's jRockit (but with tomcat 5) on Fedora. How does this work ? I've had trouble with jRockit on Linux, plus there's the new Posix threads reportedly causing problems. Maybe Fedora + new JRockits would help, but hard data would be useful. Are you using TC standalone

Re: Best JVM for Tomcat

2003-12-03 Thread David Rees
On Wed, Dec 03, 2003 at 08:43:34AM -0300, Walter do Valle wrote: What is the best version of J2SDK to run Tomcat 4.1.29 over Linux? On Linux, I've been using the latest from Sun, 1.4.2_02 without any issues. There may be others which are faster, but performance hasn't been an issue for me.

NotSerializableException: StandardSessionFacade

2003-12-03 Thread Andoni
I managed to get around the other problem with DBCP by removing the implements Serializable from the connection pooling bean. Now I am left with a problem I can't solve though as I cannot affect the: org.apache.catalina.session.StandardSessionFacade Each of my beans have an init() method that

Problem after compiling the java file

2003-12-03 Thread Yuval Zantkeren
Hi, After I'm compiling the java file with changes and try to run it again I'm getting error in the browser:: The requested service (Servlet TkTld is currently unavailable) is not currently available. In the STDOUT I get: StandardServer.await: Invalid command '' received and in the STDERR I'm

Re: Include Files

2003-12-03 Thread Duncan
So how does one get around this issue ie, how do you have an include file that is not accessable by a user, do people set up a secure folder for these? Any suggestions? - Duncan Tim Funk wrote: I would think this is a security fix. (Or a bug fix) I am surprised this was allowed in 4.0.

Re: Include Files

2003-12-03 Thread Tim Funk
Place it in WEB-INF (or a subdirectory in WEB-INF) -Tim Duncan wrote: So how does one get around this issue ie, how do you have an include file that is not accessable by a user, do people set up a secure folder for these? Any suggestions? - Duncan Tim Funk wrote: I would think this is a

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
Hi, On further investigation it would appear that this is not a Tomcat issue. It seems to be something to do with mod_jk. When a response.sendRedirect occurs it does not apply it properly. Or at least something is not executing properly. The setup we have is Apache 2.0.48, Tomcat 4.1.29, and

Auto start scripts

2003-12-03 Thread Robin Rigby
Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However, common sense and

Re: Include Files

2003-12-03 Thread Duncan
Good plan. Thanks Tim, didn't think of that one. Tim Funk wrote: Place it in WEB-INF (or a subdirectory in WEB-INF) -Tim Duncan wrote: So how does one get around this issue ie, how do you have an include file that is not accessable by a user, do people set up a secure folder for

Re: Auto start scripts

2003-12-03 Thread Nikola Milutinovic
Robin Rigby wrote: Have very limited experience of Linux or Tomcat. Not even really sure if this is a Tomcat issue or a Linux issue. Main question: How do I run a Tomcat4 script from /etc/rc.d/init.d so that Tomcat starts automatically? Tomcat works fine when I run startup.sh as root. However,

Tomcat Log4j SMTP Appender trouble

2003-12-03 Thread Jardin Xavier
Hello, I'm trying to use the SMTP Appender of log4j 1.2.8 with the following configuration : ### Logger Mail ( SMTP Appender ) log4j.logger.Mail=DEBUG, Mail log4j.appender.Mail=org.apache.log4j.net.SMTPAppender log4j.appender.Mail.BufferSize=4096 log4j.appender.Mail.From=zz [EMAIL PROTECTED]

Tomcat does not die

2003-12-03 Thread Walter do Valle
Hello all I have a Tomcat 4.1 instaled in a Red Hat Linux 7.3 server. My JDK is JDK 1.3.0 from IBM. My Tomcat was instaled from a RPM package downloaded from jakarta project homepage. When it was installed, rpm created a file called tomcat4 in /etc/init.d. I use this script to start and stop

RE: Tomcat does not die

2003-12-03 Thread Anton Modaresi
are you sure its not one of the pages in your application that makes it hang? /anton -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: den 3 december 2003 15:02 To: [EMAIL PROTECTED] Subject: Tomcat does not die Hello all I have a Tomcat 4.1 instaled in a Red Hat

problems with Jasper in Tomcat-4.1.24

2003-12-03 Thread Edson Alves Pereira
Hello folks, i trying to compile some JSP pages from command line, but i getting these messages from it: D:\desenv\osctrl\buildjava org.apache.jasper.JspC -d . -p org.apache -uriroot /desenv -webapp ../osctrl error:org.apache.jasper.JasperException: The -uriroot option must specify a pre-

TC 4 -oreillyMultipart- TC5

2003-12-03 Thread Dirk Griesbach
Hi folks, I encountered a strange behaviour using 'oreilly's' multipartlibary (from Nov,2002): It works fine on TC 4.1.27 but exactly the same servlet and library with TC 5.0.12 and 5.0.14 (just copied them) the error log reads: java.lang.IllegalAccessError: tried to access method

RE: Best JVM for Tomcat

2003-12-03 Thread Shapira, Yoav
Howdy, I use Sun's latest on various platforms (Solaris 8, 9, SuSe, Intel) without a problem for both tomcat 4 and 5. The only caveat is the -server mode, which used to reduce stability. I knew there would be a jRockit response from Senor Cekvenich even before expanding this thread ;) Yoav

RE: Cross site single sign on

2003-12-03 Thread Shapira, Yoav
Howdy, We have a standalone authentication web service used by all our apps. It's cookie-based. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 6:54 AM To: Tomcat Users List Subject: Re: Cross site

RE: NotSerializableException: StandardSessionFacade

2003-12-03 Thread Shapira, Yoav
Howdy, Don't put a Session as a session attribute. Yoav Shapira Millennium ChemInformatics -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 7:20 AM To: Tomcat Users List Subject: NotSerializableException: StandardSessionFacade I managed to

RE: OutOfMemoryError

2003-12-03 Thread Shapira, Yoav
Howdy, Aah. I think I see a part of the problem. First of all, the amount of memory shown by 'ps' is completely irrelevant, except that it shows how much memory that the OS has allocated to the Java process. This is allowed to be more than the max heap size set for Java. It's not completely

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Shapira, Yoav
Howdy, I've never seen something like this with tomcat, and I don't know enough about mod_jk to comment intelligently. If you don't need Apache, don't use it ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Tomcat 4.0.x memory leak (not javac)

2003-12-03 Thread Shapira, Yoav
Howdy, Happy holidays hopefully devoid of debugging ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Trenton D. Adams [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 4:15 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.x memory leak (not javac) Ok,

RE: Tomcat does not die

2003-12-03 Thread Shapira, Yoav
Howdy, You most likely have non-daemon threads that you're not shutting down properly. This is a common issue and has been discussed on this list many times in the past, though not for a couple of months. You can search the archives for more details. Yoav Shapira Millennium ChemInformatics

RE: TC 4 -oreillyMultipart- TC5

2003-12-03 Thread Shapira, Yoav
Howdy, Class ParamPart is public and its constructor is public as well? Strange. Are you running with different security settings? Did you put the library in a different place? Yoav Shapira Millennium ChemInformatics -Original Message- From: Dirk Griesbach [mailto:[EMAIL PROTECTED]

RE: Tomcat Log4j SMTP Appender trouble

2003-12-03 Thread Shapira, Yoav
Howdy, Please don't cross-post. We saw this and Jacob Kjome answered it on the log4j-user mailing list. I have some comments on his response and will post them there. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jardin Xavier [mailto:[EMAIL PROTECTED] Sent:

RE: Auto start scripts

2003-12-03 Thread Robin Rigby
Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin -Original Message- From: Nikola

RE: Auto start scripts

2003-12-03 Thread Shapira, Yoav
Howdy, RPMs are not packaged on the jakarta site for tomcat. They're done by external parties on their sites. Google ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Robin Rigby [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 9:16 AM To: Tomcat Users

Re: NotSerializableException: StandardSessionFacade

2003-12-03 Thread Andoni
Hello, I have now reworked my code so that instead of having an init() method in the jsp:useBean /jsp:useBean tag which is taking the session and the application implicit variables as parameters... Now I have code to fill objects with the contents of session and passing these as objects to the

Re: Auto start scripts

2003-12-03 Thread Tomas Wredendal
Robin Rigby wrote: Thanks. I tried to to find the 4.1.24 RPM under http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/ but this redirects me to http://jakarta.apache.org/site/binindex.cgi which offers 4.1.29 and no RPM. Where should I really be looking? Robin Try this...

RE: Auto start scripts

2003-12-03 Thread Robin Rigby
Got it. Thank you. :-) -Original Message- From: Tomas Wredendal [mailto:[EMAIL PROTECTED] Sent: 03 December 2003 14:40 To: Tomcat Users List Subject: Re: Auto start scripts Robin Rigby wrote: Thanks. I tried to to find the 4.1.24 RPM under

Re: TC 4 -oreillyMultipart- TC5

2003-12-03 Thread Dirk Griesbach
Hi Yoav, the 'full' error trace is: java.lang.IllegalAccessError: tried to access method com.oreilly.servlet.multipart.Part.init(Ljava/lang/String;)V from class com.oreilly.servlet.multipart.ParamPart at com.oreilly.servlet.multipart.ParamPart.init(ParamPart.java:42) at

Tomcat 4.1.24 and mod_jk

2003-12-03 Thread Altankov Peter
Hi, I am migrating to tomcat 4.1.24 and mod_jk on apache 1.3.26 configuration Unfortunately when i deploy my production webapp im getting constant lines in the catalina.out log file [INFO] ChannelSocket - -server has been restarted or reset this connection This INFO line is actually loged 3

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
Hi, Thanks for the info. Apparently, the database was not set correctly. After correcting the previous problem, I am able to login. The log shows the correct authentication with no errors. Yet, I not getting anything after the login. the web page is clear, in stead of taking me to the next page,

Session not freed in tomcat4.0.6

2003-12-03 Thread senthilnathan
Hi, I am using Tomcat 4.0.6 in solaris2.8 After tomcat shutdown, i am seeing the sessions are not freed. I mean After shutdown and restart the tomcat, i am getting the same sessionid and the session attributes are still there. Any idea what is the problem here? Thanks, senthilnathan

RE: TC 4 -oreillyMultipart- TC5

2003-12-03 Thread Shapira, Yoav
Howdy, I don't have an immediate idea, which is worrisome (to me at least ;)). Let's try to not put this oreilly jar in commons/lib, but instead in WEB-INF/lib. Yoav Shapira Millennium ChemInformatics -Original Message- From: Dirk Griesbach [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-03 Thread Asif Chowdhary
Have not tested to that extent yet -Original Message- From: Marco Manini [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 5:27 AM To: Tomcat Users List Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2 Hi, i'm using mod_jk2 for load balancing purpose and I

RE: Session not freed in tomcat4.0.6

2003-12-03 Thread Shapira, Yoav
Howdy, That's not a problem. Sessions are freed (destroyed) when they are timed out. They are persisted on restart. You can control these settings via the Manager element in server.xml. Yoav Shapira Millennium ChemInformatics -Original Message- From: senthilnathan [mailto:[EMAIL

Re: Session not freed in tomcat4.0.6

2003-12-03 Thread senthilnathan
Hi, Can you point me how to do these settings? Thanks, senthilnathan - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 8:24 PM Subject: RE: Session not freed in tomcat4.0.6 Howdy, That's not a

RE: Session not freed in tomcat4.0.6

2003-12-03 Thread Lee, Paul NYC
Hi Yoav, I have noticed this behavior too. Sorry if this is a stupid question but why aren't the sessions destroyed when tomcat is shutdown? If the jvm is gone should all of it's objects be destroyed? Thanks, Paul -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
I just noticed this errors in the following files under tomcat log directory: catalina_log.2003-12-03.txt 2003-12-03 09:59:06 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at

RE: Session not freed in tomcat4.0.6

2003-12-03 Thread Shapira, Yoav
Howdy, This is not a stupid question. The servlet specification mandates that sessions be persisted across server restarts. This is done so that if a user is doing something and the server crashes, the server can come back up with the user's session data intact. When the JVM is gone, all its

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
One more thing, when I commented out the realm section in server.xml, the program does work with the default realm. James -Original Message- From: Ostad, James Sent: Wednesday, December 03, 2003 10:08 AM To: Tomcat Users List Subject: RE: JDBCRealm problem I just noticed this errors

servlet sendRedirect() to j_security_check problem

2003-12-03 Thread Chris Ward
Dear all, I'm implementing remember me login functionality using FORM authentication, a LoginServlet and a Filter. It's very much based on the code in an earlier posting to this list From: Raible, Matt Subject: RE: Form based security and Remember Me Date: Fri, 21 Feb

RE: Session not freed in tomcat4.0.6

2003-12-03 Thread Lee, Paul NYC
That's great! Thank you very much for you help. Paul -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 10:04 AM To: Tomcat Users List Subject: RE: Session not freed in tomcat4.0.6 Howdy, This is not a stupid question. The servlet

Re: JDBCRealm problem

2003-12-03 Thread Tim Funk
If you have a NPE, it might being thrown by the Realm. This can happen when there is a null role or similar. This has since been patched. You can test it by getting the latest JDBCRealm from source, compiling it and placing it in the appropriate nested dir in server/classes. (Which has a higher

Re: Session not freed in tomcat4.0.6

2003-12-03 Thread Ben Souther
Can you point me how to do these settings? Change the saveOnRestart setting to false in your server.xml Manager className=org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=false maxActiveSessions=-1

RE: Session not freed in tomcat4.0.6

2003-12-03 Thread Shapira, Yoav
Howdy, ALSO: If I were a committer, I would vote against making the new minimal server.xml file the default for future disturbutions. It's a lot easier to instruct us newbies to uncomment something from the file than to explain how to write sections in or switch from one config file to

Re: TC 4 -oreillyMultipart- TC5

2003-12-03 Thread Jeanfrancois Arcand
3 methods has been added to HttpServletRequest: public int getRemotePort() public java.lang.String getLocalName() public java.lang.String getLocalAddr() public int getLocalPort() See section SRV.1.6.2 Be aware that this addition causes source incompatibility in some cases, such as when a

server-minimal.xml

2003-12-03 Thread Ben Souther
Let's stick to the subject of the thread ;) Fair enough.. I'm not making the minimal one the default. I know it was brought up. Looking for something in the comments that was there in previous versions but is now gone, made me picture the number of posts to this list that would result if the

tar problem resolved

2003-12-03 Thread tommy
Thanks Bill, That was indeed the issue, gnu tar restored the contents properly That bold message you refer to would have saved me hours p.s. I'm not using Solaris or Mac/OS so if the message is restored it should just state that gnu tar should be used imho - Original Message - From:

Re: Tomcat 4.0.x memory leak (not javac)

2003-12-03 Thread William Connor
We first ran into this bug when hot-deploying JetSpeed - about seven times would cause an out of memory w/ the default heap size. JetSpeed had so many leaks itself that we dropped down to bares bones test app with a servlet, but no JSPs or third party libraries. With this small app would could

Global Variables

2003-12-03 Thread Duncan
Is there a way to set global variables in the web.xml which can be read by any JSP page? Cheers, -Duncan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Global Variables

2003-12-03 Thread Jardin Xavier
use context-param param-nameparam/param-name param-valuevalue/param-value /context-param in the web.xml and String param = servletContext.getInitParameter(param); in the JSP. - Original Message - From: Duncan [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent:

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
I am new in tomcat. I am looking in tomcat site for source file for JDBCRealm. Is this part of the tomcat source files? or it is separate? thanks James -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 10:20 AM To: Tomcat Users List Subject:

RE: Global Variables

2003-12-03 Thread Shapira, Yoav
Howdy, Yeah, context-param parameters are available to all resources within the context (servlets, JSPs, filters, listeners, etc) for the lifetime of the application. Yoav Shapira Millennium ChemInformatics -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: JDBCRealm problem

2003-12-03 Thread Tim Funk
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JNDIRealm.java The easiest way to compile in this case: CP=*All jars in $CATALINA/common/lib,All jars in $CATALINA/server/lib* javac -classpath $CP -d $CATALINA_HOME/server/classes JNDIRealm.java

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
Tim, I got the source files. Now there are three jdbcrealm files: jdbcrealm.java jdbcrealmform.java do I need to compile them all, or just the first one? thanks, james -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 10:20 AM To: Tomcat

Re: JDBCRealm problem

2003-12-03 Thread Tim Funk
Oops, wrong file: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java -Tim Tim Funk wrote: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/JNDIRealm.java The easiest way to compile in

apache, tomcat wan't run ROOT/index.jsp

2003-12-03 Thread Matthias Teege
Moin, I've setup apache 2.0.48 and tomcat/4.1.29 sucessfully. I also setup a demo application (JSPWiki) on a virtual host like this: server.xml Host name=doc.mteege.de address=192.168.18.184 Context path= docBase=/opt/tomcat/webapps/JSPWiki debug=0 / ApacheConfig forwardAll=true

RE: JDBCRealm problem

2003-12-03 Thread Ostad, James
Tim, I am afraid that I am not familiar with the first line, CP=... is that a copy command on unix? thanks james -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 11:20 AM To: Tomcat Users List Subject: Re: JDBCRealm problem Oops, wrong

Re: Global Variables

2003-12-03 Thread Duncan
Thanks for the replies, but what do I define servletContext as? Many thanks Duncan Jardin Xavier wrote: use context-param param-nameparam/param-name param-valuevalue/param-value /context-param in the web.xml and String param = servletContext.getInitParameter(param); in the JSP.

RE: Global Variables

2003-12-03 Thread Shapira, Yoav
Howdy, Are you serious? ;) You might want to buy a servlets book or go through a tutorial, this is a very basic concept. You don't define a servlet context, the server creates one for you. You define context parameters in your deployment descriptor, the web.xml file. Yoav Shapira Millennium

Tomcat on Sun's Java Desktop System

2003-12-03 Thread Jim Urban
Has anyone been involved with testing Sun's Java Desktop System? If you have, does Tomcat 4.1 run on it without any problems? According to Sun support JDS is based on SuSe 8.1 does anyone run Tomcat 4.1 on this platform and if so, what version of J2EE do you use? Thanks, Jim

Re: Global Variables

2003-12-03 Thread Ben Souther
Here is is added to the default web.xml file that shipps in the TOMCAT_HOME/webapps/ROOT/WEB-INF/web.xml file ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app

RE: Tomcat does not die

2003-12-03 Thread Wade Chandler
I've experienced this using different VMs. Currently I have a site which serves nothing more than HTML...no jsp or anything, and this will happen every now and then. This occurs in all versions of Tomcat I have used. I'm running 5.0.x currently and it still happens. Wade -Original

  1   2   >