Re: JDBCRealm and Oracle Not working
Chad Perry wrote: Thanks for the reply. NOTE: You would think that the JDBCRealm would only need the Oracle driver in the ~/lib dir? I am using postgres, by the way, but putting the driver in common/lib solved my problem (and lib should work too). Also, I would wish the Java Exception would be something like a DRIVER NOT FOUND EXCEPTION instead of an incorrect exception that makes you think it is something else... In fact I'm a little confused that the stack trace would include: java.sql.SQLException: oracle.jdbc.driver.OracleDriver (See below) This makes me think it is indeed some kind of CLASS LOADING issue? Because if the driver was indeed in the wrong place how could the stack trace find the java.sql.SQLException: oracle.jdbc.driver.OracleDriver Exception? h I am reading postgres docs, so it could not apply, and it says you can call class.forname without errors, but when you try to open a Connection and get a SQLException this is mostly because the driver was not found. Rgrds, umberto When I get time I'm going to get into the code on this one -CP [EMAIL PROTECTED] 05/21/02 12:29AM Chad Perry wrote: Ok, you need to put the classes12_01.jar file in the ~/common/lib dir also. On install, the classes12_01.jar is in the ~/lib, which is NOT enough to get the JDBCRealm working with Oracle. WHY you need that jar in both places: ~/lib and ~/common/lib is still a mystery/issue! Could anyone shed some like on this issue? I am reporting (hope I got it right) what I learned form earlier threads: lib is for jar that you want tomcat to load common/lib is for jars that you want tomcat AND your app to load WEB-INF/lib is for jars that you want your app to load PS: Here is a interesting discussion on this issue: http://groups.google.com/groups?q=Tomcat+Realm+4hl=enlr=ie=UTF8oe=UTF8selm=5Rzc8.12%24U83.40693%40mencken.net.nih.govrnum=3 Thanks! -CP [EMAIL PROTECTED] 05/20/02 07:22AM By default the drvier (classes12_01.jar) is placed in Apache Tomcat 4.0\lib. I can connect to Oracle just fine in a JSP or servlet! It is the JDBCRealm functionality that is broken. :-( -Late From: Umberto Nicoletti [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: JDBCRealm and Oracle Not working Date: Mon, 20 May 2002 09:40:53 +0200 MIME-Version: 1.0 Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id MHotMailBEB1F421001340043721C0123183E4A90; Mon, 20 May 2002 00:43:34 -0700 Received: (qmail 5127 invoked by uid 97); 20 May 2002 07:43:22 - Received: (qmail 5115 invoked by uid 98); 20 May 2002 07:43:22 - From tomcat-user-return-20073-chadhperry Mon, 20 May 2002 00:45:26 -0700 Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Subscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:[EMAIL PROTECTED] List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Delivered-To: mailing list [EMAIL PROTECTED] X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: [EMAIL PROTECTED] X-Mailer: Mozilla 4.74 [en] (WinNT; U) X-Accept-Language: en References: [EMAIL PROTECTED] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, You must put the jdbc driver in a place where tomcat can find it. As of my experience a suitable place is TOMCAT_HOME/lib or common/lib (or something like that). Regards, umberto Chad Perry wrote: Trying to get Oracle 8i to work with with the JDBCRealm: Tomcat 4.0.4b3 JDK 1.4.0 OS Win2000 Server I guess tomcat-JDBCRealm doesn't work with Oracle? It would be AWESOME if I could get this to work! Could somebody verify that I'm not dorking out? Thanks!! Here is my Realm element: Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=oracle.jdbc.driver.OracleDriver connectionURL=jdbc:oracle:thin:@192.168.0.10:1521:TestDB connectionName=X connectionPassword=X userTable=GOLDEN.APP_USER userNameCol=USER_NAME userCredCol=PASSWORD_TXT userRoleTable=GOLDEN.APP_ROLE roleNameCol=ROLE_NAME/ EXCEPTION BELOW - Occurs on Start up: Starting service Tomcat-Standalone Apache Tomcat/4.0.4-b3 Starting service Tomcat-Apache Apache Tomcat/4.0.4-b3 Catalina.start: LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driver.OracleDriver LifecycleException: Exception opening database connection: java.sql.SQLException: oracle.jdbc.driv er.OracleDriver at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615) at
RE: Conncurency issue with tomcat???
Hi dan, My jvm was is 1.3.1. I got this problem when I increased the number of concurrent users from 60 to 90. I had tested the same application (test) with Resin(another servlet engine) for 90 users still I got the same problem.For 6o concurrent users test ran fine for both Tomcat and Resin. After changing my client from HttpUrlConenction to one from HttpClient(Jakarata commmons) I did'nt get this problem either with Tomcat or Resin .So my conclusion was that there should be a implementation bug in HttpUrlConenction. Note : I run my test application from JBuilder. cheers Raj -Original Message- From: Dan K. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 9:09 PM To: Tomcat Users List Subject: RE: Conncurency issue with tomcat??? Hi Raj, Which jvm are you using? I remember sun jvm 1.3.0 had an issue with HttpUrlConnection something I worked on. Upgrading to the latested jvm 1.3.1_whatever solved it... Regards, Dan On Tue, 21 May 2002, Ghorpade, Rajendra wrote: Hi Remy,Peter After some research I found out that there were no more concurrent session problems and the same request processed twice problem when I changed my simulator(test program) to use HttpClient API. There could be the a bug in implementaion of java.net.HttpUrlConenction. I tried HttpUrlConnection with the Coyote connector and I got the concurrent session problem and the same request being processed twice problem. When I used the API from HttpClient for connection I go no concurrent issues and the test run realibaly with 90 concurrent users. Thanx for ur valuable comment on this subject... Raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: strange shut down problem
i have the same problem (found out yesterday). it might be specific to/when running with IBM JDK (don't know). what i did so far was [tim-mn@spiderman src]$ ps -efd|grep tomcat.home find the %JAVA_HOME%/bin/java -Dtomcat.home ... process with PPID = 1 (the mother of devil's spawn) and KILL IT!!! [tim-mn@spiderman src]$ kill 6203 # e.g. gurus do this in one line. as i said: found out about 9 hours ago slept since ;) Cindy Ballreich wrote: I've got Tomcat 4.0.3 on Redhat 7.1 and when I start it I get the usual batch of 20-50 threads. When I shut tomcat down (using shutdown.sh) there are about a dozen threads that don't go away. Tomcat is definately not running (at least it's not accepting requests), but the threads are still there. I'm not seeing any errors, but I'm not sure where to look. I've done some web searches of the archives and haven't found anything, but I'm hoping that someone will recognize this problem and point me in the right direction. Thanks!! Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: strange shut down problem
and a guru told me to [tim-mn@spiderman src]$ ps -Af|awk '{ if ($3 == 1) { print ; } }' |grep $JAVA_HOME|awk '{ print $2}' you probably could backtick the whole line and issue kill on it, provided you don't have any conflicting java stuff going on that gets killed in the process. Mats Nyberg wrote: i have the same problem (found out yesterday). it might be specific to/when running with IBM JDK (don't know). what i did so far was [tim-mn@spiderman src]$ ps -efd|grep tomcat.home find the %JAVA_HOME%/bin/java -Dtomcat.home ... process with PPID = 1 (the mother of devil's spawn) and KILL IT!!! [tim-mn@spiderman src]$ kill 6203 # e.g. gurus do this in one line. as i said: found out about 9 hours ago slept since ;) Cindy Ballreich wrote: I've got Tomcat 4.0.3 on Redhat 7.1 and when I start it I get the usual batch of 20-50 threads. When I shut tomcat down (using shutdown.sh) there are about a dozen threads that don't go away. Tomcat is definately not running (at least it's not accepting requests), but the threads are still there. I'm not seeing any errors, but I'm not sure where to look. I've done some web searches of the archives and haven't found anything, but I'm hoping that someone will recognize this problem and point me in the right direction. Thanks!! Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat 4.0 + apache 1.3 + mod_ssl
Hi all, Does anyone of you has the detail documentation or experience in integration of Tomcat 4.0 with Apache 1.3 and mod_ssl? I just found the brief note in working with mod_jk at http://jakarta.apache.org, but I still facing the problem to build the mod_jk(EAPI) in my Redhat 7.2 machine. Thank you! Regards, Johnny. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSP and Javabeans
Hi everybody. I continue having problems with my jsp running with javabeans. I use Tmcat 4.0.3 with j2sdk1.4.0 following your instructions I have done this: . I think my structure of folders is correct: webapps: here I put my files .jsp web-inf classes packagename(car): here I put my file .java and compiled file .class Then in my jsp ùt the code: jsp:useBean id=mycar scope=page class=car.Carbean jsp:setProperty name=mycar property=model value =Ferrari / my car is: jsp:getProperty name=mycar property=model / /jsp:useBean Could anybody tell me what is the problem? Thanks. Juanjo
Re: Tomcat on Windows2000 as a service
Where I write that : %CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools. j ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Thanks - Original Message - From: John Niven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 3:03 PM Subject: RE: Tomcat on Windows2000 as a service -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 21 May 2002 12:19 To: [EMAIL PROTECTED] Subject: Tomcat on Windows2000 as a service Dear all I installed tomcat v4 on windows 2000 server from its zip file , and i started it by the startup command in the bin directory. how i enable this installation to be a service ? thanks in advance waiting your reply Mohammed This worked for me, YMMV: %CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools .j ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log You need to enter this all as one line. You may also need to change the \classic\jvm.dll to \hotspot\jvm.dll - check the mailing list archive for the exact details. HTH John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Doubts on SSL configuration.???
Hi Mike, Thanks for the reply on this issue, i have no problem configuring SSL with apache to run on my Windows NT4.0. The problem for which i am looking for some help is as follows: My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? 3) Is their any difference between the Http | Https session objects? Hope to get some advice from you, thanks in advance Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. - Original Message - From: Mike Jackson [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 3:12 AM Subject: RE: Doubts on SSL configuration.??? I have this setup at home on my linux box. Didn't have any problems getting it working. If you ask really, really nicely I could send you the binaries I suppose, or the config files. But really the major pain was getting apache to run with ssl, not the tomcat part. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 8:02 AM To: Tomcat Users List Subject: RE: Doubts on SSL configuration.??? http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I'm not sure if you've found this article or not. On first run-through it appears to be the Idiot's Guide to SSL, but I am still having problems. I configured my Tomcat exactly like it is explained and now I get a java.lang.IllegalStateException error when I start TomCat. I have no idea why SSL would cause this type of exception. Anyway, maybe this article will help you more than me. Basically, as you probably know, you create a new port that allows for SSL. You can force any context in your application to use this port by prefixing the URL with https...the How TO explains it like this... Any page within an application can be requested over a secure socket by simply prefixing the address with https: instead of http:. Any pages which absolutely require a secure connection should check the protocol type associated with the page request and take the appropriate action of https is not specified. probably not the detail you need I would love to hear from anyone out there who has successfully gotten SSL running to assist Rajesh and I. I am kind of frustrated by what seems to be a simple task. --Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:02 AM To: [EMAIL PROTECTED] Subject: Doubts on SSL configuration.??? HI All, I need Apache-ssl+tomcat expert's help on this issue. My problem is, after a lot of search i am still not able to find some useful documentation for Configuring the Apahce+tomcat (on Windows) for HTTPS(SSL). My application needs to handle both HTTP and HTTPS. Few modules in the application needs HTTPS and others needs HTTP. So how do i need my configuration to be?. Can some one sent me a sample 'httpd.conf / server.xml'?. I have downloaded a copy of Apache1.3.24+mod_ssl_openssl from 'openssl' site and have set up for the application to run on this server with Tomcat 3.2.2. My two main problems are: 1) But how do i redirect few options of my application to work on Https and others to serve on Http? 2) How to restrict a particular 'Context' to only serve on Http or Https? Thanks in advance for all your help. Regards H.Rajesh ([EMAIL PROTECTED]) SoftSolutions Pvt. Ltd., Chennai. India. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enabling SSL in tomcat
Hi Ajay, I also faced similar problem when tried to configure SSL on tomcat, then tried what 'J' told, but due to Java's security permission for file reading in local device's tomcat was possing a different 'IO Exception error'. I finally had it running after a work around, that is. I copied the '.keystore' file from the 'winnt\profiles\..' to the 'winnt\profiles\default user'. Now my configuration works in perfect shape. Thanks for an intersting question. Regards H.Rajesh [EMAIL PROTECTED] SoftSolutions Pvt. Ltd., Chennai, India. - Original Message - From: Joaquín Sánchez Jiménez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 12:58 PM Subject: Re: Enabling SSL in tomcat Hi: Try with this. Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\WINNT\Profiles\ajay\.keystore / Parameter name=keypass value= / /Connector Bye. J. - Original Message - From: Ajay Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 9:09 AM Subject: Enabling SSL in tomcat I am facing one problem while enabling SSL in Tomcat on windows NT server. I have created the keystore using the following command: keytool -genkey -alias tomcat -keyalg RSA using changeit password. It has created .keystore file in user.home directory. Say if my login is ajay then the files is created in : C:\WINNT\Profiles\ajay directory, which is the value of System.getProperty(user.home). However when I start the Tomcat server, the jvm.stderr log files show the following error and tomcat does not start: java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(Unknown Source) at org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22 0) at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11 8) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) This problem does not appear in Windows NT Workstation. In the workstation the user.home property is the same as required by the Tomcat server at run time. If anyone face the same problem earlier and have the solution please reply ASAP. Regards, Ajay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat on Windows2000 as a service
-Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 10:15 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Where I write that : %CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM E%\lib\tools. j ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Thanks Mohammed From a command prompt/console. Click Start, Run, then type cmd. At the command prompt that will appear, type the long string from my earlier posting. Good luck! John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat 4.0 + apache 1.3 + mod_ssl
Subject: Re: tomcat 4.0 + apache 1.3 + mod_ssl From: Bruno V [EMAIL PROTECTED] === Here are some SSL explanations http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.jsp and in http://www.galatea.com/flashguides/ too I will try to keep it up to date on http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html I guess that there are better place for this kind of info, but didn't find it. Maybe it should be on the Tomcat site to avoid an explosion of the mailing list ? By the way, the mailing list should be separated by installation configuration and web application ... if possible ... It's amazing how often this question come to the list. I wonder if I am right to post my same response every time ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Information about server landscape , storage capacity etc.
Hello, I need some information about Tomcat 4.0 on :- Server landscape , Storage capacity , Availability and Backup and Archival Thanks, Soniya -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error: Connection reset by peer: socket write error
Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: reloadable=true just not working. Any ideas gentlefolk?
I also have the same problem, I set reloadable=true, when I change something in my servlet, it never use the new one, everytime I still have to restart the tomcat. Louis - Original Message - From: Jason Koeninger [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 21, 2002 8:18 PM Subject: Re: reloadable=true just not working. Any ideas gentlefolk? I don't believe the class loader recognizes any new code other than servlets and jsp files. If you have new classes called by servlets, they won't be reloaded. If you search in the archives, you should find a lot of discussions on this topic. If you have servlets or jsp's that aren't reloading, I'm not sure what may be going wrong. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com --- Ray Letts [EMAIL PROTECTED] wrote: Below is a snippet from my conf/server.xml file. From all the docs I've read, and the examples, this should work. However the tomcat class loader does not recognize newly compiled class files and still uses the cached versions. Can anyone spot a problem with the xml below? It parses upon startup. But to get the newly compiled classes cached I have to restart the server. and whether thru cmd line or manager web app, this is not want I want to do during development. TIA Ray Context path=/BugTracker docBase=/app/tomcat/jakarta-tomcat/dist/webapps/BugTracker/ debug=0 reloadable=true / ps above is the full path to the webapp, however I have tried the relative as well. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat on Windows2000 as a service
I made that and the service exist now and i can stop and start it , but i see that the stop and restart of the service has no effect on Tomcat , wen i call a servlet from IIS , it does not run untill I startup tomcat from its startup command in the bin directory whether the service started in the control panel or not . any idea!! thanks - Original Message - From: John Niven [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 12:32 PM Subject: RE: Tomcat on Windows2000 as a service -Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 10:15 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service Where I write that : %CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat %JAVA_HOME%\jre\bin\classic\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM E%\lib\tools. j ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %CATALINA_HOME%\logs\stderr.log Thanks Mohammed From a command prompt/console. Click Start, Run, then type cmd. At the command prompt that will appear, type the long string from my earlier posting. Good luck! John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Custom Authentification
Subject: Re: Custom Authentification From: Adam Skobodzinski [EMAIL PROTECTED] === Hello Eric, I am not sure which classes that you looked at were final, but here is an excerpt from latest Tomcat (4.0.3b) changelog: - Catalina New Features: - [B1] Authenticator: Make authenticator non-final so that they can be subclassed. Maybe upgrading to the newest version will solve your subclassing problem. I think there are a couple of features you have to implmenet yourself: automatic authentication after registration, password hints, and logon from a cookie. Adam Eric Everman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Perhaps I should be more clear about what I am trying to accomplish (and spell authentication correctly) I had originally created my own login/authenfication application. It allowed users to create profiles with a user name, password, a password hint, and email addr. Logged-in users are marked by a Principal object (com.something.Principal) in their session. The key reasons I had originally gone in this direction were: -To be able to give 'hints' and informative error messages to users who had forgotten their passwords -I wanted to be able to add my own functionality for handling auto-logins via persistent cookies -I wanted users who created a new profile to be logged-in as a result (rather then be forced to login after creating their new profile). To work with security constraints, I created a small tag library for JSPs that simply forwards requests to the login page if the user does not have sufficient privileges. A bit of a compromise since I can't define security constraints in the web.xml, but it works rather easily. Everything was great until we decided we wanted to add a web forum - Jive. Jive, like thousands of other web apps, assumes that permissions are handled via request.isUserInRole() and related methods. Of course, I'm not surprised that Jive doesn't use *my* authentication system, but I was hoping that there was enough variation in authentication strategies that largish applications would have a single point to allow users to plug-in their own strategies. So, if I can't easily modify Jive to fit my current strategy, I'll have to modify my strategy to work within or on top of the Servlet API authentication system. I've looked at sub-classing some of the Tomcat classes, but it looks like some of the key ones are final - which leads me to think I still may be on the wrong track. Any ideas? At 01:39 PM 5/20/2002, you wrote: I am trying to create a custom login / authentification system with the following requirements: -Tracks more info then just user name, password, and roles (ie email address) -Allow new users to fill in a new user form (with the extra info) and be logged in after successfully completing the form -Make the extra info available to Servlets JSPs via a session object -Maintain compatibility with the Servlet API for authentification, namely that request.isUserInRole(), request.getPrincipal(), web-app defined security constrains work as expected Every solution I come up with seems to cross one of these lines. I would appreciate any ideas you might have. Thanks, Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat on Windows2000 as a service
-Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 12:44 To: Tomcat Users List Subject: Re: Tomcat on Windows2000 as a service I made that and the service exist now and i can stop and start it , but i see that the stop and restart of the service has no effect on Tomcat , wen i call a servlet from IIS , it does not run untill I startup tomcat from its startup command in the bin directory whether the service started in the control panel or not . any idea!! Mohammed Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic directory in it, you may have hotspot directory instead (and I think there are other possibilities, instead of classic/hotspot?) If so, change the install line accordingly. (Before changing the install script and re-installing the Tomcat service, you'll first need to uninstall the service - use this: %CATALINA_HOME%\bin\tomcat.exe -uninstall ApacheTomcat ) If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set correctly - from a command prompt, type: echo %CATALINA_HOME% (expected response: path to Tomcat) echo %JAVA_HOME% (expected response: path to JDK) One final thing - you are running Tomcat 4+, aren't you? If you're running Tomcat 3 you'll need to replace CATALINA_HOME with TOMCAT_HOME - and there may be other changes required. Sorry, but the only times I've used Tomcat 3 in anger is on Solaris. thanks HTH! John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: strange shut down problem
Cindy, I had a similar problem with shutting down tomcat. I was running 4.0.3 on an HPUX system with the 1.3 JDK. I updated to the 1.3.1 JDK and the problem seemed to clear up. Andy Christian Avaya Inc. -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 7:58 PM To: Tomcat Users List Subject:strange shut down problem I've got Tomcat 4.0.3 on Redhat 7.1 and when I start it I get the usual batch of 20-50 threads. When I shut tomcat down (using shutdown.sh) there are about a dozen threads that don't go away. Tomcat is definately not running (at least it's not accepting requests), but the threads are still there. I'm not seeing any errors, but I'm not sure where to look. I've done some web searches of the archives and haven't found anything, but I'm hoping that someone will recognize this problem and point me in the right direction. Thanks!! Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Enabling SSL in tomcat
Hello, I keep seeing the topic of SSL configuration come up, but I have yet heard anyone with a simmilar problem as mine. I am surprised this can be so problematic since it seems so straight forward. I tried using Joaquin's example and got the same exception... StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:159) Anyone have any idea why the connector would throw this kind of exception? As soon as I remove the connector Tomcat loads fine. Here is my current connector configuration in server.xml... Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\Documents and Settings\***\.keystore / Parameter name=keypass value=*** / /Connector I also received the same exception using the example configuration. I wish I at least knew where to start looking. I've read over the How To a million times. Is it as simple as adding the jcert.jar, jnet.jar, jsse.jar files to the jre/lib/ext directory, creating a .keyfile and adding the connector in server.xml? Am I missing something? I read through some of the docs sun provides with JSSE and it mentions adding some information to java.security. I tried that without success. Can anyone tell me if they can think of any steps that I might have missed? I am going crazy. Best regards to all, Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:43 AM To: Tomcat Users List Subject: Re: Enabling SSL in tomcat Hi Ajay, I also faced similar problem when tried to configure SSL on tomcat, then tried what 'J' told, but due to Java's security permission for file reading in local device's tomcat was possing a different 'IO Exception error'. I finally had it running after a work around, that is. I copied the '.keystore' file from the 'winnt\profiles\..' to the 'winnt\profiles\default user'. Now my configuration works in perfect shape. Thanks for an intersting question. Regards H.Rajesh [EMAIL PROTECTED] SoftSolutions Pvt. Ltd., Chennai, India. - Original Message - From: Joaquín Sánchez Jiménez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 12:58 PM Subject: Re: Enabling SSL in tomcat Hi: Try with this. Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\WINNT\Profiles\ajay\.keystore / Parameter name=keypass value= / /Connector Bye. J. - Original Message - From: Ajay Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 9:09 AM Subject: Enabling SSL in tomcat I am facing one problem while enabling SSL in Tomcat on windows NT server. I have created the keystore using the following command: keytool -genkey -alias tomcat -keyalg RSA using changeit password. It has created .keystore file in user.home directory. Say if my login is ajay then the files is created in : C:\WINNT\Profiles\ajay directory, which is the value of System.getProperty(user.home). However when I start the Tomcat server, the jvm.stderr log files show the following error and tomcat does not start: java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(Unknown Source) at org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav a:22 0) at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1 60) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav a:11 8) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint. java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1 88) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) This problem does not appear in Windows NT Workstation. In the workstation the user.home property is the same as required by the Tomcat server at run time. If anyone face the same problem earlier and have the solution please reply ASAP. Regards, Ajay -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
Virtual Host appBase
Im using JBoss+Tomcat v4.03 implementing virtual hosts. I want to make appBase so that each Virtual host has its own index.html. DNS is Working fine, the domains will succesfully resolve,,, so there's no problem there. No matter what I set appBase to, the default always appears in browser, upon selecting either domain, http://www.domain1.com:8080/ . Im expecting that the index.html that is in the ${TOMCAT_HOME}/domain1 load up Likewise for www.domain2.com,,, I would expect ${TOMCAT_HOME}domain2 loading the index.html there. I searched the archive and have seen others refer to this problem, but no solution found,,,yet! PLEASE help.. It appears BROKEN, I have modified server.xml as follows; Server Service name = JBoss-Tomcat Engine name=MainEngine defaultHost=www.domain1.org Logger className = org.jboss.web.catalina.Log4jLogger verbosityLevel = trace category = org.jboss.web.localhost.Engine/ Host name=www.domain2.com appBase=/domain2 Aliaswww.domain2.com/Alias Aliasdomain2.com/Alias Context path=/domain2 docBase=/domain2 debug=1 reloadable=true crossContext=false Valve className = org.apache.catalina.valves.AccessLogValve prefix = domain2_access suffix = .log pattern = common directory = ../jboss/log / !--DefaultContext cookies = true crossContext = true override = true / /Host Host name=www.domain1.org appBase=/domain1 Aliaswww.domain1.org/Alias Aliasdomain1.org/Alias Valve className = org.apache.catalina.valves.AccessLogValve prefix = domain1_access suffix = .log pattern = common directory = ../jboss/log / DefaultContext cookies = true crossContext = true override = true / /Host /Engine !-- A HTTP Connector on port 8080 -- Connector className = org.apache.catalina.connector.http.HttpConnector port = 8080 minProcessors = 3 maxProcessors = 10 enableLookups = true acceptCount = 10 debug = 0 connectionTimeout = 6/ /Service /Server -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Very strange session problem on localhost only (trying again)
Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JavaX Location
When we try to access a .jsp page from a browser, the page/compiler can't resolve the import of the java.servlet, etc. Can someone tell me where the javax directory should be located in order to compile .jsp when placing the .jsp page in a directory below webapps? Ed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
problem with mime-type application/csv
I would like to return a stream through my application an save it as a CSV-File. I tried adding mime-mapping extension csv /extension mime-type application/csv /mime-type /mime-mapping to my web.xml file in the conf directory of Tomcat(3.2.3) and it didn't work. The mime-type is set to application/csv so the browser should recognize it (it's not a file with extension *.csv) and show the save-as dialog (?). Instead of that the text appears in the browser as normal html output. I tried it with ie5.5 and netscape6.2. I saw various messages with questions about this problem, but no answer... Any help appreciated... Ueli -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with mime-type application/csv
You can't force a save-as because IE ignores the content-type header in many cases. If you search the MSKB you will see various articles about this. All Tomcat can do is set the content type on the response, you might want to verify this is happening. Keith | -Original Message- | From: Ueli Staempfli [mailto:[EMAIL PROTECTED]] | Sent: Wednesday, May 22, 2002 8:36 AM | To: [EMAIL PROTECTED] | Subject: problem with mime-type application/csv | | | I would like to return a stream through my application an save it as a | CSV-File. I tried adding | | mime-mapping | extension csv /extension | mime-type application/csv /mime-type | /mime-mapping | | to my web.xml file in the conf directory of Tomcat(3.2.3) and it didn't | work. The mime-type is set to application/csv so the browser should | recognize it (it's not a file with extension *.csv) and show the save-as | dialog (?). Instead of that the text appears in the browser as normal html | output. | I tried it with ie5.5 and netscape6.2. | I saw various messages with questions about this problem, but no answer... | | | Any help appreciated... | Ueli | | | -- | To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] | For additional commands, e-mail: mailto:[EMAIL PROTECTED] | | -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Very strange session problem on localhost only (trying again)
What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Control user access to directories in J-T ver 3.3 on unix?
Hi, I usually use custom user access control (nothing really fancy) since my passwords are hashed and stored in a database. I never investigated if Tomcat could give me the level of control I often need. If you chose to go the same way (i.e. create your own custom solution), then you could very easily write a filter that blocks access to user directories and would only allow access depending on criteria that you set. The draw back I see is that you're using T3.3. If you want to use filters (which I think is a really cool feature in Servlet 2.3), then you'd have to upgrade to T4.x.x; unless your apps specifically require T3.3. Regards, Paul From: Christopher Lott [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Control user access to directories in J-T ver 3.3 on unix? Date: Tue, 21 May 2002 11:29:45 -0400 (EDT) Hi, please tell me if fine-grained user access control is possible in J-T, and if so, how to accomplish it. I'm using Jakarta-Tomcat version 3.3a on a solaris 8 box. I have access control enabled such that users of my app must supply a password; this uses a SimpleRealm with a local file of users and passwords as specified in the context for my webapp (in conf/apps-myapp.xml). To gain access to J-T/webapps/myapp, users enter a password. So the first line of defense is working. However, 'myapp' creates directories for each user under webapps/myapp where users store their work. Currently, an authenticated (but malicious) user can access the files for another user by guessing the appropriate URL under the J-T webapps/myapp/user directory. This is the hole we need to close. I'm asking about how to restrict access to specific directories. I have no need to restrict access on a file-by-file basis. We specify a role for the users, but it's not clear to me that the role information is used anywhere (?). I've read the SimpleRealm part of the Server.xml Configuration document. I have scanned the Tomcat Documentation, including the Tomcat User's Guide, the server configuration, etc. I've googled the question with little success (other than some security hole warnings). I sure hope that I don't have to create an instance of the webapp for each user! If it matters, we are using Apache as the front-end, and it forwards requests on to the J-T server as needed. Does this have anything to do with Slide (something Google turned up)?? (I don't mean to complain, but I sure would welcome some improvements in the J-T documentation. :-/) Thanks in advance, I look forward to hearing from someone. chris... (cml at cs dot umd dot edu) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Very strange session problem on localhost only (trying again)
The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Servlet/Jsp
Looks like you're asking the JSP to look for the bean in the session rather than the request. Try changing jsp:useBean id=bean class=MyBean scope=session/ to: jsp:useBean id=bean class=MyBean scope=request/ Cheers, Greg Trasuk, President StratusCom Manufacturing Systems Inc. - We use information technology to solve business problems on your plant floor. http://stratuscom.ca -Original Message- From: Djaballah BOUCHEGRA [mailto:[EMAIL PROTECTED]] Sent: May 21, 2002 05:24 To: [EMAIL PROTECTED] Subject: Servlet/Jsp I have a servlet that sets an attribute in the request object containing a bean: ... MyBean bean = new MyBean(); bean.setS(Hello); req.setAttribute( mybean, bean ); ... And that gets forwarded to my JSP page: ... RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(MyPageJsp.jsp); dispatcher.forward(request, response); On the JSP page I unsuccessfully extract the value hello of the bean property S MyJspPage.jsp: jsp:useBean id=bean class=MyBean scope=session / %=bean.getS()% the result is : null Do you have any idea about why my page Jsp couldn't access to the value of the bean property? I am using JDK 1.3 and Tomcat 3.2 Thanks! Djaballah ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
reloading with ant
Hi, i just wanna ask if the following scenario is the best for re-deploying WARs: I am doing my build task with ant and transfer the WAR file of my application into the webapps folder of tomcat. Then i do a GET task with ant in order to re-deploy it, exacltly i would do a MANAGER REMOVE and MANAGER INSTALL with ant. I could delete the existing appfolder before i do install, but it should be the same. Are there any better routines for automatic re-deploy or hot-deploy? Of course in order to do a manager remoce or manager install, i have to edit the web.xml of the manager app in order not to come up with basic http authentication or? I am quite sure that there must be tons of developers which solved this problem cause the ANT-Tomcat workflow seems very common :) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 files (download?)
Hi, I'm trying to download tomcat 4.0 (v.4.0.3 ) for SOLARIS 6 from jakarta.apache.org but I'm not really sure which one/ones should I download? There's a path http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/; with a jakarta-tomcat-4.0.3.zip file but also, there's another inside that ../solaris6/sparc with two other libraries nsapi_redirector.so / nsapi_redirector.so.asc (and these ones are for?) Thank you, /// -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.0.3 files (download?)
Hi, I'm trying to download tomcat 4.0 (v.4.0.3 ) for SOLARIS 6 from jakarta.apache.org but I'm not really sure which one/ones should I download? There's a path http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/; with a jakarta-tomcat-4.0.3.zip file but also, there's another inside that ../solaris6/sparc with two other libraries nsapi_redirector.so / nsapi_redirector.so.asc (and these ones are for?) Thank you, /// Tomcat 4.0.3 files (download -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Very strange session problem on localhost only (trying again)
So it sounds like you have a test page that loads the session variables and you reload the page or something to verify thier value. You open some window...and for some reson when you continue testing the variables in this original window you suddenly have a new session? Are you sure you aren't mixing up the windows some how? It makes perfect sense that the new window may have a different session value from the one that spawned it.--Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:51 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Very strange session problem on localhost only (trying again)
I have a page that lists a bunch of html files. When I click one of those files, it shows the html page in a new popup window. After I close the popup window (which may be creating a new session), then the original window has the new session value. Isn't every instance of the browser supposed to share the same session? If not, the new session created by the window should not be passed back to the original window should it? Why would this not happen when accessing the server from another location besides localhost? -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:16 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) So it sounds like you have a test page that loads the session variables and you reload the page or something to verify thier value. You open some window...and for some reson when you continue testing the variables in this original window you suddenly have a new session? Are you sure you aren't mixing up the windows some how? It makes perfect sense that the new window may have a different session value from the one that spawned it.--Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:51 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JavaX Location
Could you please post the actual import statement(s) you are using in your JSP. The Servlet API code is included with Tomcat and should be available to all JSPs and servlets. Sincerely, Anthony Eden -Original Message- From: Kinley, Ed [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:23 AM To: '[EMAIL PROTECTED]' Subject: JavaX Location When we try to access a .jsp page from a browser, the page/compiler can't resolve the import of the java.servlet, etc. Can someone tell me where the javax directory should be located in order to compile .jsp when placing the .jsp page in a directory below webapps? Ed -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mounting contexts to be the root of the IIS site
Dear All I run tomcat4 with IIS , I want to mount a tomcat context to be access from the root of the IIS site Example : I want to write http://sitename/ i want this to run a tomcat context . I can mount only contexts to be as a virtual directory in IIS How I mount it to be the root of the IIS website?? Thanks
Re: Very strange session problem on localhost only (trying again)
Hi Brandon, This is really more of a Java question; if you could post a snip of your code relative to the problem, it would be helpful. Particularly useful would be the code that you're using to create the HttpSession object. The only way that I can imagine your problem could occur is if the servlet were creating a new session for each request. scott - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 9:20 AM Subject: RE: Very strange session problem on localhost only (trying again) I have a page that lists a bunch of html files. When I click one of those files, it shows the html page in a new popup window. After I close the popup window (which may be creating a new session), then the original window has the new session value. Isn't every instance of the browser supposed to share the same session? If not, the new session created by the window should not be passed back to the original window should it? Why would this not happen when accessing the server from another location besides localhost? -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:16 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) So it sounds like you have a test page that loads the session variables and you reload the page or something to verify thier value. You open some window...and for some reson when you continue testing the variables in this original window you suddenly have a new session? Are you sure you aren't mixing up the windows some how? It makes perfect sense that the new window may have a different session value from the one that spawned it.--Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:51 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on the network. Only happens on localhost. Does anyone know why? Brandon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail:
Re: Error: Connection reset by peer: socket write error
Hi , we have this error message too, our Tomcat version is 3.2.1 which is running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is going to be ok ?? any idea ? and one more question how can i add new jar files to Tomcat 3.3.1. I paste all need jar files (for example : jfreechart0.8.4.jar) to lib\comman\ but it doesnt work and then i cut these jar files from there and paste them to lib\container but the result is same . What must i do ? any idea ? Regards Altug. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 1:08 PM Subject: Error: Connection reset by peer: socket write error Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error: Connection reset by peer: socket write error
I am using Tomcat 4.0.3 on win32 and get the same error. I do not think that upgrading will help. In my case the error is not causing any problems so I have not worried much about it -Chris -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:48 AM To: Tomcat Users List Subject: Re: Error: Connection reset by peer: socket write error Hi , we have this error message too, our Tomcat version is 3.2.1 which is running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is going to be ok ?? any idea ? and one more question how can i add new jar files to Tomcat 3.3.1. I paste all need jar files (for example : jfreechart0.8.4.jar) to lib\comman\ but it doesnt work and then i cut these jar files from there and paste them to lib\container but the result is same . What must i do ? any idea ? Regards Altug. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 1:08 PM Subject: Error: Connection reset by peer: socket write error Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error: Connection reset by peer: socket write error
I have W2k server and tomcat 3.3.1, maybe a problem with w2k server, has some else the same kind of error ? or better an idea where the problem comes from ? For your problem of path, I think lib\apps\ is the directory for jar files you may use in your servlets... but I don't use tomcat directly (using jetspeed-turbine) Pierre. Altug B. AltintasPour :Tomcat Users List [EMAIL PROTECTED] altuga@riskturk.cc : com Objet : Re: Error: Connection reset by peer: socket write error 22/05/2002 16:47 Veuillez répondre à Tomcat Users List Hi , we have this error message too, our Tomcat version is 3.2.1 which is running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is going to be ok ?? any idea ? and one more question how can i add new jar files to Tomcat 3.3.1. I paste all need jar files (for example : jfreechart0.8.4.jar) to lib\comman\ but it doesnt work and then i cut these jar files from there and paste them to lib\container but the result is same . What must i do ? any idea ? Regards Altug. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 1:08 PM Subject: Error: Connection reset by peer: socket write error Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
NoClassDefFound
Hi all, Do you know what I am missing to get java.lang.NoClassDefFoundError? I am using jaxp. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018
RE: Very strange session problem on localhost only (trying again)
Scott, The session object is created by Tomcat, as a session cookie. Maybe it's possible that IE destroys that cookie when the popup window is closed or something? There is no java code executed when the popup window is opened, then link just has some javascript like shown below... onclick=return window.open('/html/cust_serv.html'); This pops up a window, when I close that window, with the 'X' in the top right of the browser, then try to click on a link in the original window (a jsp), I find that a new sessionID has been set. So, without executing any java code at all, the session ID is switched by simply opening a new window. -Original Message- From: Scott Judd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:42 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Very strange session problem on localhost only (trying again) Hi Brandon, This is really more of a Java question; if you could post a snip of your code relative to the problem, it would be helpful. Particularly useful would be the code that you're using to create the HttpSession object. The only way that I can imagine your problem could occur is if the servlet were creating a new session for each request. scott - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 9:20 AM Subject: RE: Very strange session problem on localhost only (trying again) I have a page that lists a bunch of html files. When I click one of those files, it shows the html page in a new popup window. After I close the popup window (which may be creating a new session), then the original window has the new session value. Isn't every instance of the browser supposed to share the same session? If not, the new session created by the window should not be passed back to the original window should it? Why would this not happen when accessing the server from another location besides localhost? -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:16 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) So it sounds like you have a test page that loads the session variables and you reload the page or something to verify thier value. You open some window...and for some reson when you continue testing the variables in this original window you suddenly have a new session? Are you sure you aren't mixing up the windows some how? It makes perfect sense that the new window may have a different session value from the one that spawned it.--Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:51 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) Nobody responded to this in a few days, so I'll try again this morning... Hello, We have recently noticed a very strange error when running tomcat 3.2.4 on localhost. If a button in the application pops up a new window, then the user closes that window to return to the original screen, the session times out. This does not happen when using tomcat connected to apache on our production machine, or even if we access tomcat standalone from another computer on
RE: Error: Connection reset by peer: socket write error
Hi, this error message simply states that the user pressed the STOP-button in her browser, causing the connection to be reset. so you are right when saying: everything's fine - i'll ignore it :) cheers, Peter -Original Message- From: Christopher Moon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:53 PM To: 'Tomcat Users List' Subject: RE: Error: Connection reset by peer: socket write error I am using Tomcat 4.0.3 on win32 and get the same error. I do not think that upgrading will help. In my case the error is not causing any problems so I have not worried much about it -Chris -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:48 AM To: Tomcat Users List Subject: Re: Error: Connection reset by peer: socket write error Hi , we have this error message too, our Tomcat version is 3.2.1 which is running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is going to be ok ?? any idea ? and one more question how can i add new jar files to Tomcat 3.3.1. I paste all need jar files (for example : jfreechart0.8.4.jar) to lib\comman\ but it doesnt work and then i cut these jar files from there and paste them to lib\container but the result is same . What must i do ? any idea ? Regards Altug. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 1:08 PM Subject: Error: Connection reset by peer: socket write error Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: reloading with ant
-Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 15:03 To: [EMAIL PROTECTED] Subject: reloading with ant Hi, i just wanna ask if the following scenario is the best for re-deploying WARs: I am doing my build task with ant and transfer the WAR file of my application into the webapps folder of tomcat. Then i do a GET task with ant in order to re-deploy it, exacltly i would do a MANAGER REMOVE and MANAGER INSTALL with ant. I could delete the existing appfolder before i do install, but it should be the same. Are there any better routines for automatic re-deploy or hot-deploy? Of course in order to do a manager remoce or manager install, i have to edit the web.xml of the manager app in order not to come up with basic http authentication or? I am quite sure that there must be tons of developers which solved this problem cause the ANT-Tomcat workflow seems very common :) Marc Have you looked at the sample build.xml that comes with the sample webapp with Tomcat? I merged that with the catalina-ant tasks (using the Ant script snippets in the manager-app howto) to create a generic build file that I use for most web-app development. Now I can deploy and remove my web-app during a build. I also use a list task just so I'm sure my web-app has been deployed! I'd recommend you start by looking at these two files and seeing if you can extend them to suit your needs. If you're still having problems, let me know, and I'll post my build.xml (mine, in that I did the copying/pasting...!) HTH John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error: Connection reset by peer: socket write error
Unfortunatley, it is not somebody pressing the stop button in the browser. I setup a separate apache instance to test that theory and I would still get the same error when I connected and I am positive that I did not press the stop button. -Chris -Original Message- From: Peter Romianowski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:02 AM To: Tomcat Users List Subject: RE: Error: Connection reset by peer: socket write error Hi, this error message simply states that the user pressed the STOP-button in her browser, causing the connection to be reset. so you are right when saying: everything's fine - i'll ignore it :) cheers, Peter -Original Message- From: Christopher Moon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 4:53 PM To: 'Tomcat Users List' Subject: RE: Error: Connection reset by peer: socket write error I am using Tomcat 4.0.3 on win32 and get the same error. I do not think that upgrading will help. In my case the error is not causing any problems so I have not worried much about it -Chris -Original Message- From: Altug B. Altintas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:48 AM To: Tomcat Users List Subject: Re: Error: Connection reset by peer: socket write error Hi , we have this error message too, our Tomcat version is 3.2.1 which is running on Window 2000 Server. If we switch to 3.3.1 or 4.0x maybe it is going to be ok ?? any idea ? and one more question how can i add new jar files to Tomcat 3.3.1. I paste all need jar files (for example : jfreechart0.8.4.jar) to lib\comman\ but it doesnt work and then i cut these jar files from there and paste them to lib\container but the result is same . What must i do ? any idea ? Regards Altug. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 1:08 PM Subject: Error: Connection reset by peer: socket write error Hello, everybody I know that everybody love Error message ... but maybe someone can help me. I have this error on my tomcat window 2002-05-22 11:36:05 - Ctx(/jetspeed) : IOException in R( /jetspeed + /images/btn_persoHTML_allume.gif + null) - java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite(Native Method) (...) Does anybody knows where it comes from, is it an error from tomcat or jetspeed. (I think tomcat but am not sure) However, html page is well displayed with the image /images/btn_persoHTML_allume.gif Any help would be greatly appreciate :) Pierre Besson-Deblon -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: Error: Connection reset by peer: socket write error
Have a look at http://www.aswethink.com/employees/randy/tomcat/IOException.html -Ursprüngliche Nachricht- Von: Christopher Moon [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 22. Mai 2002 17:10 An: 'Tomcat Users List' Betreff: RE: Error: Connection reset by peer: socket write error Unfortunatley, it is not somebody pressing the stop button in the browser. I setup a separate apache instance to test that theory and I would still get the same error when I connected and I am positive that I did not press the stop button. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: session.getMaxInactiveInterval()
Chris, Simple question, are you sure you're using a servlet 2.3 compliant implementation? Mike On Tue, 2002-05-21 at 11:00, Chris Wilson wrote: Hello, I'm calling session.getMaxInactiveInterval() on a session after it has been invalidated. Tomcat is throwing an IllegalStateException and saying that method cannot be called on an invalid session. However, the Servlet 2.3 API docs do not state that IllegalStateException should be thrown (as it is with many other methods in HttpSession) from getMaxInactiveInterval(). The reason I've run into this problem is because I'm trying to write a HttpSessionAttributeListener that determines if the session is being explicitly invalidated or if it timed out. The Servlet 2.3 spec (section 10.7) states, It is often useful in tracking sessions to know whether a session became invalid because the container timed out the session, or because a web component within the application called the invalidate method. The destinction may be determined indirectly using listeners and the HTTPSession API methods. If I can't call getMaxInactiveInterval() on an invalidated session, how can I determine if the session was invalidated due to time out? Is this a bug in Tomcat? It seems so since it doesn't follow the API docs for this call. Thanks in advance for any insight. Chris Wilson Web Developer Andrews University [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Custom Authentification
I noticed this as well and it is an option. However, the more I look at subclassing portions of Tomcat, the less I like this approach since its not portable - to other servers and likely to future versions of Tomcat. What's really needed is an authenticate method in the Servlet API, but I don't see that changing this week :) For myself, I've reduced the problem to one issue - creating a login and being logged in as a result. I'll post that as another topic, since this thread was broader. At 06:55 AM 5/22/2002, you wrote: Subject: Re: Custom Authentification From: Adam Skobodzinski [EMAIL PROTECTED] === Hello Eric, I am not sure which classes that you looked at were final, but here is an excerpt from latest Tomcat (4.0.3b) changelog: - Catalina New Features: - [B1] Authenticator: Make authenticator non-final so that they can be subclassed. Maybe upgrading to the newest version will solve your subclassing problem. I think there are a couple of features you have to implmenet yourself: automatic authentication after registration, password hints, and logon from a cookie. Adam Eric Everman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Perhaps I should be more clear about what I am trying to accomplish (and spell authentication correctly) I had originally created my own login/authenfication application. It allowed users to create profiles with a user name, password, a password hint, and email addr. Logged-in users are marked by a Principal object (com.something.Principal) in their session. The key reasons I had originally gone in this direction were: -To be able to give 'hints' and informative error messages to users who had forgotten their passwords -I wanted to be able to add my own functionality for handling auto-logins via persistent cookies -I wanted users who created a new profile to be logged-in as a result (rather then be forced to login after creating their new profile). To work with security constraints, I created a small tag library for JSPs that simply forwards requests to the login page if the user does not have sufficient privileges. A bit of a compromise since I can't define security constraints in the web.xml, but it works rather easily. Everything was great until we decided we wanted to add a web forum - Jive. Jive, like thousands of other web apps, assumes that permissions are handled via request.isUserInRole() and related methods. Of course, I'm not surprised that Jive doesn't use *my* authentication system, but I was hoping that there was enough variation in authentication strategies that largish applications would have a single point to allow users to plug-in their own strategies. So, if I can't easily modify Jive to fit my current strategy, I'll have to modify my strategy to work within or on top of the Servlet API authentication system. I've looked at sub-classing some of the Tomcat classes, but it looks like some of the key ones are final - which leads me to think I still may be on the wrong track. Any ideas? At 01:39 PM 5/20/2002, you wrote: I am trying to create a custom login / authentification system with the following requirements: -Tracks more info then just user name, password, and roles (ie email address) -Allow new users to fill in a new user form (with the extra info) and be logged in after successfully completing the form -Make the extra info available to Servlets JSPs via a session object -Maintain compatibility with the Servlet API for authentification, namely that request.isUserInRole(), request.getPrincipal(), web-app defined security constrains work as expected Every solution I come up with seems to cross one of these lines. I would appreciate any ideas you might have. Thanks, Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Visual Age 3.5 + tomcat test environment 3.1
Dear all, I installed Tomcat 3.1 test environment on Visual Age for Java 3.5 patch 2 in order to support servlet 2.2, JSP 1.1 I want to debug the JSPs or the generated Servlet code, I knew that the test environment was generating the JSP to JSP Page Compile Generated Code inorder to debug, but I can debug my ordinary classes easy but the JSP is not generated in this project, it is generated in the work directory of tomcat. I installed tomcat test environment on other 3 machines on the same version of Visual Age it generates the compiled code, so I must have accidentally disabled this feature or something from my IDE or I don't know exactly what happened, so anyone can help me. I also included the project JSP Page Compile Generated Code in the tomcat classpath runner file, and still can't get the servlets. Plz if anyone can help, because I'm running out of time, and Debugging a JSP is too much difficult without debugger tool. Eng. Ashraf Fouad Ayoub Senior Developer (Technical Operations) Raya Software (known previously as Mega for Software Development) Subsidiary of Raya Holding 1 Abdel-Hamid Lotfy St. Nasr city, 11371, Cairo, Egypt. Tel. (+202) 670-3301/2/3/4 ext.295 Fax. (+202) 6703296 Web. www.mega.com.eg -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: reloading with ant
Hello John, I wouldn't mind see your working version even if it is copy/pasted. At least we know that it works and can extend from that example. thanks, jake Wednesday, May 22, 2002, 10:07:59 AM, you wrote: -Original Message- From: Marc Logemann [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 15:03 To: [EMAIL PROTECTED] Subject: reloading with ant Hi, i just wanna ask if the following scenario is the best for re-deploying WARs: I am doing my build task with ant and transfer the WAR file of my application into the webapps folder of tomcat. Then i do a GET task with ant in order to re-deploy it, exacltly i would do a MANAGER REMOVE and MANAGER INSTALL with ant. I could delete the existing appfolder before i do install, but it should be the same. Are there any better routines for automatic re-deploy or hot-deploy? Of course in order to do a manager remoce or manager install, i have to edit the web.xml of the manager app in order not to come up with basic http authentication or? I am quite sure that there must be tons of developers which solved this problem cause the ANT-Tomcat workflow seems very common :) JN Marc JN Have you looked at the sample build.xml that comes with the sample webapp JN with Tomcat? I merged that with the catalina-ant tasks (using the Ant JN script snippets in the manager-app howto) to create a generic build file JN that I use for most web-app development. JN Now I can deploy and remove my web-app during a build. I also use a list JN task just so I'm sure my web-app has been deployed! JN I'd recommend you start by looking at these two files and seeing if you can JN extend them to suit your needs. If you're still having problems, let me JN know, and I'll post my build.xml (mine, in that I did the JN copying/pasting...!) JN HTH JN John JN -- JN John Niven JN Please reply through mailing list JN -- JN To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] JN For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Best regards, Jacobmailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: strange shut down problem - solution?
At 05:45 PM 5/21/02 -0700, Subir Sengupta wrote: This is a documented bug. Apparently if there is a non Daemon thread running Tomcat won't shut down cleanly. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8700 Hmmm. That sure sounds like what's happening on my system. I guess catalina.sh is called as daemon in the init.d script, but it's not starting the threads as deamon. Is this what's happening? At 10:13 AM 5/22/02 +0200, Mats Nyberg wrote: and a guru told me to [tim-mn@spiderman src]$ ps -Af|awk '{ if ($3 == 1) { print ; } }' |grep $JAVA_HOME|awk '{ print $2}' This is basically the solution that I used. I added this line to the start section of my init.d script... ps -Af | awk '{ if ($3 == 1) { print ; } }' | grep tomcat | awk '{ print $2}' /var/run/tomcat4.pid And these lines to the stop section... if [ -s /var/run/tomcat4.pid ] ; then PID=`cat /var/run/tomcat4.pid` kill $PID fi This works, but it seems like a horrible kludge to me. Does anyone have any better solutions? Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Very strange session problem on localhost only (trying again)
Hi Let me guess -- IE 5/6 on win32??? Yep, you're running into a little friend we call Security Zones. Just another MS thing, man. Ignore this unless localhost functionality is critical, in which case you might be screwed. You're on the local intranet zone i think or maybe even the local computer zone. Session vars, etc., are not always respected between windows in this case. But only by IE on windows, AFAIK. fillup On 5/22/02 8:00 AM, Brandon Cruz [EMAIL PROTECTED] wrote: Scott, The session object is created by Tomcat, as a session cookie. Maybe it's possible that IE destroys that cookie when the popup window is closed or something? There is no java code executed when the popup window is opened, then link just has some javascript like shown below... onclick=return window.open('/html/cust_serv.html'); This pops up a window, when I close that window, with the 'X' in the top right of the browser, then try to click on a link in the original window (a jsp), I find that a new sessionID has been set. So, without executing any java code at all, the session ID is switched by simply opening a new window. -Original Message- From: Scott Judd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:42 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: Very strange session problem on localhost only (trying again) Hi Brandon, This is really more of a Java question; if you could post a snip of your code relative to the problem, it would be helpful. Particularly useful would be the code that you're using to create the HttpSession object. The only way that I can imagine your problem could occur is if the servlet were creating a new session for each request. scott - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 9:20 AM Subject: RE: Very strange session problem on localhost only (trying again) I have a page that lists a bunch of html files. When I click one of those files, it shows the html page in a new popup window. After I close the popup window (which may be creating a new session), then the original window has the new session value. Isn't every instance of the browser supposed to share the same session? If not, the new session created by the window should not be passed back to the original window should it? Why would this not happen when accessing the server from another location besides localhost? -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:16 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) So it sounds like you have a test page that loads the session variables and you reload the page or something to verify thier value. You open some window...and for some reson when you continue testing the variables in this original window you suddenly have a new session? Are you sure you aren't mixing up the windows some how? It makes perfect sense that the new window may have a different session value from the one that spawned it.--Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:51 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) The popup window only displays and html page. There is no processing done when the window is closed. Actually, the only thing tomcat does is serve one html page and the associated images. For some reason, this seems to create a new session. When I say that the session times out, a check reveals that there is an entirely new session value set when I try to click something in the original page. This happens on all dev computers, running all different versions of Internet Explorer. -Original Message- From: Rutledge, Aaron [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:46 AM To: Tomcat Users List Subject: RE: Very strange session problem on localhost only (trying again) What do you mean the session times out? Are you testing for session variables and the session expires after this page loads on localhost, but not from another browser on another machine? Or, does your page never load? I assume the page loaded in the new window is a JSP or Servlet generated. WHat kind of code is in that window and what is the action of the button when it is closed (is it strictly client-side or does it load a new page or submit data)? Also, are you sure that the problem is not a browser problem on your localhost machine. When you return to that page is it possible that you're not seeing what you are expecting because of a cached page or a simmilar problem? --Aaron -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 7:23 AM To: Tomcat Users List
Re: problem with mime-type application/csv
Hi, I'm trying to download tomcat 4.0 (v.4.0.3 ) for SOLARIS 6 from jakarta.apache.org but I'm not really sure which one/ones should I download? There's a path http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/; with a jakarta-tomcat-4.0.3.zip file but also, there's another inside that ../solaris6/sparc with two other libraries nsapi_redirector.so / nsapi_redirector.so.asc (and these ones are for?) Thank you, /// -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: session.getMaxInactiveInterval()
Mike, I'm using Tomcat 4.0.3. As far as I know, it's supposed to be Servlet 2.3 compliant. Chris Wilson [EMAIL PROTECTED] www.wondergeek.com -Original Message- From: Mike McGuinness [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 10:37 AM To: Tomcat Users List Subject: Re: session.getMaxInactiveInterval() Chris, Simple question, are you sure you're using a servlet 2.3 compliant implementation? Mike On Tue, 2002-05-21 at 11:00, Chris Wilson wrote: Hello, I'm calling session.getMaxInactiveInterval() on a session after it has been invalidated. Tomcat is throwing an IllegalStateException and saying that method cannot be called on an invalid session. However, the Servlet 2.3 API docs do not state that IllegalStateException should be thrown (as it is with many other methods in HttpSession) from getMaxInactiveInterval(). The reason I've run into this problem is because I'm trying to write a HttpSessionAttributeListener that determines if the session is being explicitly invalidated or if it timed out. The Servlet 2.3 spec (section 10.7) states, It is often useful in tracking sessions to know whether a session became invalid because the container timed out the session, or because a web component within the application called the invalidate method. The destinction may be determined indirectly using listeners and the HTTPSession API methods. If I can't call getMaxInactiveInterval() on an invalidated session, how can I determine if the session was invalidated due to time out? Is this a bug in Tomcat? It seems so since it doesn't follow the API docs for this call. Thanks in advance for any insight. Chris Wilson Web Developer Andrews University [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat and W2K vs. *nix
Anyone have any experience running Tomcat on both? I'm looking for any numbers on performance of the two - even if it's only anecdotal, that's okay. Uptimes, load performance, etc... Thanks, Sean - [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Re[2]: reloading with ant
-Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 16:59 To: Tomcat Users List Subject: Re[2]: reloading with ant Hello John, I wouldn't mind see your working version even if it is copy/pasted. At least we know that it works and can extend from that example. No problem - thought it'll have to be tomorrow before I post it: it's at home, and I'm not (yet!) thanks, jake HTH John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Creating a login -- Being logged in
I would like visitors to a site to be able to create a new login and BE logged in as a result. IMHO this is the key stumbling block to any type of authentication system, since *almost* all other login issues can be handled by filters (such as initializing sessions). This seems like crucial functionality because of the confusion involved in having a user create a login - then finding out that they are not logged in as a result. Please - any ideas? Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
WAR and server.xml
Dear All I have a war file , and tomcat4 deployed it succefully after restarting tomcat , and the application works well , but i dont know why it is working well ? why should not I write a context line for it in server.xml??!! how it works without writing a context line in server.xml?!! Thanks -- If there is any misunderstanding , please contact me at: Mohammed Omar Harf Information Technology (Cairo) Phone : (202)2759256 EXT: 320 Fax : (202)2759261 Mobile : +20101806319 Email: [EMAIL PROTECTED]
Re: WAR and server.xml
If you read the manual, then you will note that WAR files placed within the webapps directory are automatically expanded and do not need an entry in server.xml. READ THE MANUAL. please thanks Ray -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP! Apache Virtual Server setup using Ajp13
Was this the incorrect list for this type of question? Since I received zero replies... -p -Original Message- From: Peter Atkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 11:24 AM To: '[EMAIL PROTECTED]' Subject: HELP! Apache Virtual Server setup using Ajp13 All, I'm new to JBoss/Tomcat and need some help in the setup phase. Below I included the CONFIG and ERROR that I am getting. I installed the following: JBoss-2.4.4_Tomcat-4.0.1 jdk1.3.1_03 I can start the app server by doing run_with_catalina.sh in the JBoss-2.4.4_Tomcat-4.0.1/jboss/bin directory. Then by accessing http://localhost:8001/test.jsp I see the appropriate page. But I need to setup Virtual servers to use it with different Document Roots. APACHE CONFIG This is what I have tried so far: # Load mod_jk LoadModulejk_module modules/mod_jk.so AddModule mod_jk.c # Configure mod_jk JkWorkersFile /usr/local/src/JBoss-2.4.4_Tomcat-4.0.1/catalina/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLeveldebug #JkLogLevelinfo NameVirtualHost 209.220.157.67 VirtualHost 209.220.157.67:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/sites/mysite.com/public_html ServerName mysite.com ServerAlias www.mysite.com ScriptAlias /cgi-bin/ /home/sites/mysite.com/cgi-bin/ ErrorLog /home/sites/mysite.com/logs/error_log TransferLog /home/sites/mysite.com/logs/access_log JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 /VirtualHost MOD_JK ERROR This is the error that I get when I hit the server trying to access a page on port 80: [Tue May 21 11:16:00 2002] [jk_uri_worker_map.c (351)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue May 21 11:16:00 2002] [jk_uri_worker_map.c (368)]: Attempting to map URI '/test.jsp' [Tue May 21 11:16:00 2002] [jk_uri_worker_map.c (416)]: jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 - *.jsp [Tue May 21 11:16:00 2002] [jk_worker.c (123)]: Into wc_get_worker_for_name ajp13 [Tue May 21 11:16:00 2002] [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker [Tue May 21 11:16:00 2002] [jk_ajp13_worker.c (865)]: Into jk_worker_t::get_endpoint [Tue May 21 11:16:00 2002] [jk_ajp13_worker.c (775)]: Into jk_endpoint_t::service [Tue May 21 11:16:00 2002] [jk_ajp13.c (403)]: Into ajp13_marshal_into_msgb [Tue May 21 11:16:00 2002] [jk_ajp13.c (537)]: ajp13_marshal_into_msgb - Done [Tue May 21 11:16:00 2002] [jk_connect.c (108)]: Into jk_open_socket [Tue May 21 11:16:00 2002] [jk_connect.c (115)]: jk_open_socket, try to connect socket = 6 [Tue May 21 11:16:00 2002] [jk_connect.c (124)]: jk_open_socket, after connect ret = -1 [Tue May 21 11:16:00 2002] [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [Tue May 21 11:16:00 2002] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [Tue May 21 11:16:00 2002] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. Thanks, -pete -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multiple server.xml files with Tomcat 4.0.3??
I'm pretty new to Tomcat so please be patient with me if this is an obvious question. I'm trying to port our dev environment over to Tomact from Resin and have come across a slight roadblock. We have different environments for local development, dev server, qa server, and production. Each environment requires different db connection pools, as well as a few other minor tweaks in the server.xml from environment to environment. With resin, i can pass in a -conf parameter when i start it up to give it the name of the appropriate config to use for that environment (-conf resin-local.conf, -conf resin-qa.conf, etc). Is there a similar functionality with Tomcat 4.0.3 and it's server.xml config file? I really can't find much documenation on this. Also, for note, i'm running tomcat as a service with the tomcat.exe -install paramater which works great, not sure if that makes a difference to what can be passed via the command line but my bat file to set this up is as follows: tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%TOMCAT_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log Thanks, Andy Miller [EMAIL PROTECTED]
RE: Multiple server.xml files with Tomcat 4.0.3??
I run a similar environment, but even though we don't use tomcat.exe to start a service (we use jk_nt_service.exe to create, which uses wrapper.properties to start) the start parameters should be the same. There are a couple of choices: 1. add another parameter to the command below: -Dcatalina.base={environment var pointing to the appropriate directory, or hard coded path} or 2. add -config parameter to startup pointing to the specific server.xml (or whatever name you want) Example: (from my wrapper.properties) wrapper.cmd_line=$(wrapper.javabin) -Xrs -Xms128m -Xmx256m -Djava.security.policy==$(wrapper.tomcat_policy) -Dcatalina.base=$(wrapper.tomcat_base) -Dcatalina.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Notes: - when setting up multiple environments, especially on the same machine, pay close attention to the addresses/ports in use. You will have to change the individual shutdown ports for each instance, as the listen on 0.0.0.0. Adding an address=x.x.x.x to each connector will force each connector to listen on a specific address instead of 0.0.0.0, so all instances can use the default :8080 port. - using catalina.base has some additional benefits/(or drawbacks, depending on your opinion): each environment I have set up uses it's own directory structure for webapps, works, etc., so that all environments can have their own data, deployment processes, etc. Like you, I have specific instances for dev, qa, staging, demo and production, ranging across 2/3/4 machines (depending on what is going on). Another advantage is the fact that I can move an instance to another machine, and have it running in a few minutes simply by removing/adding the specific IP address for the instance, and copying the entire directory structure over. Hope this helps, John -Original Message- From: Miller, Andy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:42 PM To: Tomcat Users List Subject: Multiple server.xml files with Tomcat 4.0.3?? I'm pretty new to Tomcat so please be patient with me if this is an obvious question. I'm trying to port our dev environment over to Tomact from Resin and have come across a slight roadblock. We have different environments for local development, dev server, qa server, and production. Each environment requires different db connection pools, as well as a few other minor tweaks in the server.xml from environment to environment. With resin, i can pass in a -conf parameter when i start it up to give it the name of the appropriate config to use for that environment (-conf resin-local.conf, -conf resin-qa.conf, etc). Is there a similar functionality with Tomcat 4.0.3 and it's server.xml config file? I really can't find much documenation on this. Also, for note, i'm running tomcat as a service with the tomcat.exe -install paramater which works great, not sure if that makes a difference to what can be passed via the command line but my bat file to set this up is as follows: tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%TOMCAT_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log Thanks, Andy Miller [EMAIL PROTECTED] winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: WAR and server.xml
-Original Message- From: Mohammed Omar [mailto:[EMAIL PROTECTED]] Sent: 22 May 2002 17:20 To: Tomcat Users List Subject: WAR and server.xml Dear All I have a war file , and tomcat4 deployed it succefully after restarting tomcat , and the application works well , but i dont know why it is working well ? why should not I write a context line for it in server.xml??!! how it works without writing a context line in server.xml?!! Mohammed My understanding is that any web-app (even normal, non-war web-apps) that are located in Tomcat's web-apps folder do not need to be declared in server.xml: it's only when you have web-apps in non-standard places that you need to state where they're located. wars are either copied into the web-apps folder, and then picked up by Tomcat when it starts, or deployed (by Tomcat's manager app) once Tomcat is running. Either way, they exist in the web-apps folder. disclaimer I'm getting out of my depth here - can someone step up if I've got this wrong? Thanks HTH John -- John Niven Please reply through mailing list -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Logs stopped writing
I've been moving an application from a test server to a production server. When I couldn't get Tomcat to run as a service on the new W2K server I found something on this list that suggested downloading jakarta-tomcat-4.0.3.exe. I did that and Tomcat now runs as a service. All well and good. But now I notice that none of my logfile are updating. They all stopped about the same time I installed the exe file. Does anyone have any ideas on what might have caused this or how I can solve it? Thanks, Ken The logs I'm talking about are one I set up for the webapp as well as localhost, catalina, apache, localhost_access. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Those missing logs
weren't missing at all. I just installed the exe file in a different Tomcat folder and never thought to look there. Who knows why I thought of this 30 seconds after sending my email rather than 30 seconds before!? Ken -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Enabling SSL in tomcat
I guess I'll try this one more time. Last time I posted it quickly got burried. Any help would be greatly appreciated and would contribute greatly to my mental health! Regards, Aaron -Original Message- From: Rutledge, Aaron Sent: Wednesday, May 22, 2002 7:21 AM To: Tomcat Users List Subject: RE: Enabling SSL in tomcat Hello, I keep seeing the topic of SSL configuration come up, but I have yet heard anyone with a simmilar problem as mine. I am surprised this can be so problematic since it seems so straight forward. I tried using Joaquin's example and got the same exception... StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:159) Anyone have any idea why the connector would throw this kind of exception? As soon as I remove the connector Tomcat loads fine. Here is my current connector configuration in server.xml... Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\Documents and Settings\***\.keystore / Parameter name=keypass value=*** / /Connector I also received the same exception using the example configuration. I wish I at least knew where to start looking. I've read over the How To a million times. Is it as simple as adding the jcert.jar, jnet.jar, jsse.jar files to the jre/lib/ext directory, creating a .keyfile and adding the connector in server.xml? Am I missing something? I read through some of the docs sun provides with JSSE and it mentions adding some information to java.security. I tried that without success. Can anyone tell me if they can think of any steps that I might have missed? I am going crazy. Best regards to all, Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:43 AM To: Tomcat Users List Subject: Re: Enabling SSL in tomcat Hi Ajay, I also faced similar problem when tried to configure SSL on tomcat, then tried what 'J' told, but due to Java's security permission for file reading in local device's tomcat was possing a different 'IO Exception error'. I finally had it running after a work around, that is. I copied the '.keystore' file from the 'winnt\profiles\..' to the 'winnt\profiles\default user'. Now my configuration works in perfect shape. Thanks for an intersting question. Regards H.Rajesh [EMAIL PROTECTED] SoftSolutions Pvt. Ltd., Chennai, India. - Original Message - From: Joaquín Sánchez Jiménez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 12:58 PM Subject: Re: Enabling SSL in tomcat Hi: Try with this. Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\WINNT\Profiles\ajay\.keystore / Parameter name=keypass value= / /Connector Bye. J. - Original Message - From: Ajay Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 9:09 AM Subject: Enabling SSL in tomcat I am facing one problem while enabling SSL in Tomcat on windows NT server. I have created the keystore using the following command: keytool -genkey -alias tomcat -keyalg RSA using changeit password. It has created .keystore file in user.home directory. Say if my login is ajay then the files is created in : C:\WINNT\Profiles\ajay directory, which is the value of System.getProperty(user.home). However when I start the Tomcat server, the jvm.stderr log files show the following error and tomcat does not start: java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(Unknown Source) at org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav a:22 0) at org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1 60) at org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav a:11 8) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint. java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1 88) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) This problem does not appear in Windows NT
RE: Multiple server.xml files with Tomcat 4.0.3??
Great, works like a champ! I just modified my command thus: tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%TOMCAT_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params -config %TOMCAT_HOME%\conf\server-local.xml start -stop org.apache.catalina.startup.Bootstrap -params stop -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log And it works like a champ! Cheers! -Original Message- From: John Roth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:06 PM To: 'Tomcat Users List' Subject: RE: Multiple server.xml files with Tomcat 4.0.3?? I run a similar environment, but even though we don't use tomcat.exe to start a service (we use jk_nt_service.exe to create, which uses wrapper.properties to start) the start parameters should be the same. There are a couple of choices: 1. add another parameter to the command below: -Dcatalina.base={environment var pointing to the appropriate directory, or hard coded path} or 2. add -config parameter to startup pointing to the specific server.xml (or whatever name you want) Example: (from my wrapper.properties) wrapper.cmd_line=$(wrapper.javabin) -Xrs -Xms128m -Xmx256m -Djava.security.policy==$(wrapper.tomcat_policy) -Dcatalina.base=$(wrapper.tomcat_base) -Dcatalina.home=$(wrapper.tomcat_home) -classpath $(wrapper.class_path) $(wrapper.startup_class) -config $(wrapper.server_xml) start Notes: - when setting up multiple environments, especially on the same machine, pay close attention to the addresses/ports in use. You will have to change the individual shutdown ports for each instance, as the listen on 0.0.0.0. Adding an address=x.x.x.x to each connector will force each connector to listen on a specific address instead of 0.0.0.0, so all instances can use the default :8080 port. - using catalina.base has some additional benefits/(or drawbacks, depending on your opinion): each environment I have set up uses it's own directory structure for webapps, works, etc., so that all environments can have their own data, deployment processes, etc. Like you, I have specific instances for dev, qa, staging, demo and production, ranging across 2/3/4 machines (depending on what is going on). Another advantage is the fact that I can move an instance to another machine, and have it running in a few minutes simply by removing/adding the specific IP address for the instance, and copying the entire directory structure over. Hope this helps, John -Original Message- From: Miller, Andy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 12:42 PM To: Tomcat Users List Subject: Multiple server.xml files with Tomcat 4.0.3?? I'm pretty new to Tomcat so please be patient with me if this is an obvious question. I'm trying to port our dev environment over to Tomact from Resin and have come across a slight roadblock. We have different environments for local development, dev server, qa server, and production. Each environment requires different db connection pools, as well as a few other minor tweaks in the server.xml from environment to environment. With resin, i can pass in a -conf parameter when i start it up to give it the name of the appropriate config to use for that environment (-conf resin-local.conf, -conf resin-qa.conf, etc). Is there a similar functionality with Tomcat 4.0.3 and it's server.xml config file? I really can't find much documenation on this. Also, for note, i'm running tomcat as a service with the tomcat.exe -install paramater which works great, not sure if that makes a difference to what can be passed via the command line but my bat file to set this up is as follows: tomcat.exe -install %SERVICENAME% %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%JAVACLASSPATH% -Dcatalina.home=%TOMCAT_HOME% -Xrs -start org.apache.catalina.startup.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -params stop -out %TOMCAT_HOME%\logs\stdout.log -err %TOMCAT_HOME%\logs\stderr.log Thanks, Andy Miller [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: strange shut down problem - solution?
This is definitely what is happening on my system, which is similar to yours (Tomcat 4.0.3 on a linux box). The problem seems to be with Tomcat starting non Daemon threads in the WebappLoader and StandardLoader. You could fix that yourself and recompile and that may fix it. I'm going to try this when I have some time. Of course, make sure that your app doesn't start non Daemon threads. The other options are to kill the threads like Mats' suggestion (kludgey, but it works). A simple 'killall java' works too. You could also implement a LifecycleListener that has a System.exit(0) statement as the last line in the stop method. Subir -Original Message- From: Cindy Ballreich [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:01 AM To: Tomcat Users List Subject: RE: strange shut down problem - solution? At 05:45 PM 5/21/02 -0700, Subir Sengupta wrote: This is a documented bug. Apparently if there is a non Daemon thread running Tomcat won't shut down cleanly. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8700 Hmmm. That sure sounds like what's happening on my system. I guess catalina.sh is called as daemon in the init.d script, but it's not starting the threads as deamon. Is this what's happening? At 10:13 AM 5/22/02 +0200, Mats Nyberg wrote: and a guru told me to [tim-mn@spiderman src]$ ps -Af|awk '{ if ($3 == 1) { print ; } }' |grep $JAVA_HOME|awk '{ print $2}' This is basically the solution that I used. I added this line to the start section of my init.d script... ps -Af | awk '{ if ($3 == 1) { print ; } }' | grep tomcat | awk '{ print $2}' /var/run/tomcat4.pid And these lines to the stop section... if [ -s /var/run/tomcat4.pid ] ; then PID=`cat /var/run/tomcat4.pid` kill $PID fi This works, but it seems like a horrible kludge to me. Does anyone have any better solutions? Cindy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
access log file
Hi, I search a way to configure Tomcat 3.3.1 for generating a standard access log file with lines like: 62.190.230.16 - - [14/May/2002:20:55:18 +0200] GET / HTTP/1.1 200 32797 - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) is it possible? Joel Brueziere networkers interactive sa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is this conf supported?
I want to run multiples instances of embedded Tomcat all sharing the same base directory. Is such a configuration supported? 1. Can all the instance work off the same web application files on disk - will there be any problem between the tomcat instances all sharing the same web application files on disk? 2. Will there be a problem with the work directory. I cant seem to find an api to tell every embedded tomcat to use different directories. 3. Are there other problems with this configuration. Can somebody help? Thanx in advance, Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat download question
Hello, Does anyone know if the tomcat zip file (jakarta-tomcat-4.0.3.zip) posted at http://jakarta.apache.org/builds/jakarta-tomcat4.0/release/v4.0.3/bin/ works on both NT and solaris? thanks, Steven __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: NoClassDefFound
Have you setup your CLASSPATH environment variable to point your lib and include directories under your JDK root folder? Check it out. You can do something like this CLASSPATH=c:\j2sdk1.4.0\lib;c:\j2sdk1.4.0\include;. Don't miss the dot at the end. Irfan - Original Message - From: [EMAIL PROTECTED] Date: Wed, 22 May 2002 10:01:27 -0500 To: [EMAIL PROTECTED] Subject: NoClassDefFound Re: Hi all, Re: Re: Do you know what I am missing to get java.lang.NoClassDefFoundError? I am Re: using jaxp. Re: Re: Bao-Ha Dam Bui Re: [EMAIL PROTECTED] Re: S. Jude Medical, Inc Re: 651.765.1018 Re: Re: -- === Another FREE service from Jayde Online http://www.jayde.com Private, Web-based email accounts at http://www.jaydemail.com Powered by Outblaze -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound
There are already other classes running on this site, including some that use dom. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: irfan ali [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:58 AM To: Tomcat Users List Subject: Re: NoClassDefFound Have you setup your CLASSPATH environment variable to point your lib and include directories under your JDK root folder? Check it out. You can do something like this CLASSPATH=c:\j2sdk1.4.0\lib;c:\j2sdk1.4.0\include;. Don't miss the dot at the end. Irfan - Original Message - From: [EMAIL PROTECTED] Date: Wed, 22 May 2002 10:01:27 -0500 To: [EMAIL PROTECTED] Subject: NoClassDefFound Re: Hi all, Re: Re: Do you know what I am missing to get java.lang.NoClassDefFoundError? I am Re: using jaxp. Re: Re: Bao-Ha Dam Bui Re: [EMAIL PROTECTED] Re: S. Jude Medical, Inc Re: 651.765.1018 Re: Re: -- === Another FREE service from Jayde Online http://www.jayde.com Private, Web-based email accounts at http://www.jaydemail.com Powered by Outblaze -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IIS and tomcat4.0.3
Hi All, I am trying to get tomcat4.0.3 to work with IIS using the AJP connector. I installed the isapi_redirector filter on IIS and configured it to use the workers.properties and uriworkermap.properties. I started IIS and tomcat4.0.3 with the AJP13 connector. But when I try to get to http://localhost/examples I get a blank page. I see the iis_redirector.log getting created but no I see no logs in there(I can see that the filter is working by removing the workers.properties in which case it logs in the iis_redirector.log that it cant find the file.) I dont see any trace either in tomcat or in redirector log even after I turned on tracelevel to info Does anybody have a hunch as to what could be wrong? Has anybody got this config to work? Thanx in advance! Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Questions about TOMCAT
-Original Message- From: haroldorg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 9:00 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Questions about TOMCAT Hello, My name is Haroldo and I work in RCS Informatica (www.rcs.srv.br), an enterprise that acts in informatics area in Brazil. We are doing a research to choose a new web application server to solve our problems. The TOMCAT looks very good, but some details I´d like to clarify with you ( if possible). So, we have some questions and we appreciate your contribution answering these questions: 1 - Tomcat is a really 100% free? Yes. Free as in cost and free as in open (all of the source code is available). 2 - Can I build applications that uses Java servlets and to install the TOMCAT server in our buyer machine without law problems? Yes. 3 - How do I do to acquisite a license term directly from Apache? The Apache license is available at http://apache.org/LICENSE . 4 - How are the limitations for the supply and for supporting services ( updates, bug corrections, doubts )? Since Tomcat is an open source project your best avenue for support is probably through the mailing list. 5 - Can you give me others enterprises that uses tomcat (world wide or even in Brazil)? My company, Signature Domains ( http://www.signaturedomains.com/ ) uses Tomcat 4 for all of our servlet engine needs. I also use it for other web sites of my own. Considering that Tomcat is the reference implementation for Sun's Servlet API I imagine there are MANY companies out there using it. 6 - Are there some representation office from APACHE in Brazil to make contacts to clarify some doubts? In case of no office in Brazil, can you give me The Apache Help Service number to help me? Apache doesn't have a help number as you are expecting it. You may want to look at http://www.apache.org/foundation/faq.html to gain a better understanding of what Apache is. I hope I have answered your questions well. Please note that I am only giving you information which is available on the Apache and Jakarta web sites. I am not a representative of the Apache Software Foundation, only a very satisfied user of Apache products. Sincerely, Anthony Eden -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: access log file
Hello, I am using Tomcat4, and didn't know if we could do this either. So I just happened to look into it more now, and found out 4.0x does have this capability. I would have to change the word common to combined. Check this link out. http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html Look for AccessLogInterceptor. That will explain the differences in the log format available. In this case, you would do the same thing (server.xml) change common to combined to give you your desired format. ...Robin - Original Message - From: Joël Bruezière [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 9:29 AM Subject: access log file Hi, I search a way to configure Tomcat 3.3.1 for generating a standard access log file with lines like: 62.190.230.16 - - [14/May/2002:20:55:18 +0200] GET / HTTP/1.1 200 32797 - Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) is it possible? Joel Brueziere networkers interactive sa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
jikes as JSP compiler in Jasper/Tomcat 4.0.3
I'm trying to use jikes as a JPS compiler in Tomcat 4.0.3 but it is receiving extra parameter -encoding UTF8 which is braking the compilation process. I'm using JDK 1.3.1_01 on Solaris 8 but the same result I had also with JDK 1.4.0. In my per server web.xml I have: -- CUT --- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nameclassdebuginfo/param-name param-valuetrue/param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param init-param param-namelogVerbosityLevel/param-name param-valueDEBUG/param-value /init-param load-on-startup1/load-on-startup /servlet -- CUT --- And in the log I have: 2002-05-22 09:45:21 Compiling with: -encoding UTF8 -classpath /... Jikes does not support -encoding parameter. Does anyone know how to solve this issue? Is there someone that is using Tomcat 4.0.3 with jikes? Regards, Rossen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Questions about TOMCAT
Hello, My name is Haroldo and I work in RCS Informatica (www.rcs.srv.br), an enterprise that acts in informatics area in Brazil. We are doing a research to choose a new web application server to solve our problems. The TOMCAT looks very good, but some details I´d like to clarify with you ( if possible). So, we have some questions and we appreciate your contribution answering these questions: 1 - Tomcat is a really 100% free? 2 - Can I build applications that uses Java servlets and to install the TOMCAT server in our buyer machine without law problems? 3 - How do I do to acquisite a license term directly from Apache? 4 - How are the limitations for the supply and for supporting services ( updates, bug corrections, doubts )? 5 - Can you give me others enterprises that uses tomcat (world wide or even in Brazil)? 6 - Are there some representation office from APACHE in Brazil to make contacts to clarify some doubts? In case of no office in Brazil, can you give me The Apache Help Service number to help me? I´d like to thank you for the attention and I´m waiting for your answer. Best Regards I'm sorry, but my english isn't good. Haroldo Ribeiro Gomes __ Quer ter seu próprio endereço na Internet? Garanta já o seu e ainda ganhe cinco e-mails personalizados. DomíniosBOL - http://dominios.bol.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jikes as JSP compiler in Jasper/Tomcat 4.0.3
weird... download the tomcat sources and check out the class org.apache.jasper.compiler.JikesJavaCompiler See the method compile() and note the comment on line 193, and 203 -- //XXX - add encoding once Jikes supports it odd -- i would advise you check out the sources in this package org.apache.jasper.compiler and your questions will be answered. fillup On 5/22/02 12:11 PM, Rossen Raykov [EMAIL PROTECTED] wrote: I'm trying to use jikes as a JPS compiler in Tomcat 4.0.3 but it is receiving extra parameter -encoding UTF8 which is braking the compilation process. I'm using JDK 1.3.1_01 on Solaris 8 but the same result I had also with JDK 1.4.0. In my per server web.xml I have: -- CUT --- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nameclassdebuginfo/param-name param-valuetrue/param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param init-param param-namelogVerbosityLevel/param-name param-valueDEBUG/param-value /init-param load-on-startup1/load-on-startup /servlet -- CUT --- And in the log I have: 2002-05-22 09:45:21 Compiling with: -encoding UTF8 -classpath /... Jikes does not support -encoding parameter. Does anyone know how to solve this issue? Is there someone that is using Tomcat 4.0.3 with jikes? Regards, Rossen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: jikes as JSP compiler in Jasper/Tomcat 4.0.3
so is it working and giving the debug message, or is it not working at all? if you're looking for a starting point i would recommend org.apache.jasper.compiler.Compiler also if you're looking for source spots. On 5/22/02 12:17 PM, Phillip Morelock [EMAIL PROTECTED] wrote: weird... download the tomcat sources and check out the class org.apache.jasper.compiler.JikesJavaCompiler See the method compile() and note the comment on line 193, and 203 -- //XXX - add encoding once Jikes supports it odd -- i would advise you check out the sources in this package org.apache.jasper.compiler and your questions will be answered. fillup On 5/22/02 12:11 PM, Rossen Raykov [EMAIL PROTECTED] wrote: I'm trying to use jikes as a JPS compiler in Tomcat 4.0.3 but it is receiving extra parameter -encoding UTF8 which is braking the compilation process. I'm using JDK 1.3.1_01 on Solaris 8 but the same result I had also with JDK 1.4.0. In my per server web.xml I have: -- CUT --- servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-nameclassdebuginfo/param-name param-valuetrue/param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param init-param param-namelogVerbosityLevel/param-name param-valueDEBUG/param-value /init-param load-on-startup1/load-on-startup /servlet -- CUT --- And in the log I have: 2002-05-22 09:45:21 Compiling with: -encoding UTF8 -classpath /... Jikes does not support -encoding parameter. Does anyone know how to solve this issue? Is there someone that is using Tomcat 4.0.3 with jikes? Regards, Rossen -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
stop log files getting reinitialized?
Is there anyway to stop tomcat from re-initializing output logs after a restart? It's a real pain not being able to just type tail -f stdout.log and leave that window open. What happens is that after stopping tomcat, the file gets reset to 0bytes and after starting it again, nothing is displayed in my tail window. I have to close it an open it again, by which time all the pertinent output log has streamed by. Surely others have found a workaround Thanks Andy Miller [EMAIL PROTECTED]
RE: stop log files getting reinitialized?
Never mind.. Answered my own question: Logger className=org.apache.catalina.logger.FileLogger prefix=output. suffix=.log timestamp=false pattern=combined/ -Original Message- From: Miller, Andy Sent: Wednesday, May 22, 2002 2:32 PM To: Tomcat Users List Subject: stop log files getting reinitialized? Is there anyway to stop tomcat from re-initializing output logs after a restart? It's a real pain not being able to just type tail -f stdout.log and leave that window open. What happens is that after stopping tomcat, the file gets reset to 0bytes and after starting it again, nothing is displayed in my tail window. I have to close it an open it again, by which time all the pertinent output log has streamed by. Surely others have found a workaround Thanks Andy Miller [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Unique dir for Virtual Host
Im using JBoss+Tomcat v4.03 implementing virtual hosts. I want to make appBase so that each Virtual host has its own index.html. DNS is Working fine, the domains will succesfully resolve,,, so there's no problem there. I am NOT using apache, should I be,,, I thought new TOMCAT had http built in as of version 4 I edit'd the server.xml file in the TomCat conf directory... see below. No matter what I set as appBase, the default TomCat example directory always appears in browser. Upon selecting either domain, http://www.domain1.com:8080/ . Im expecting that the index.html that is in the ${TOMCAT_HOME}/domain1 load up Likewise for www.domain2.com,,, I would expect ${TOMCAT_HOME}/domain2 loading the index.html there. I searched the archive and have seen others refer to this problem, but no solution found,,,yet! PLEASE help... It appears BROKEN, I have modified server.xml as follows; Server Service name = JBoss-Tomcat Engine name=MainEngine defaultHost=www.domain1.org Logger className = org.jboss.web.catalina.Log4jLogger verbosityLevel = trace category = org.jboss.web.localhost.Engine/ Host name=www.domain2.com appBase=/domain2 Aliaswww.domain2.com/Alias Aliasdomain2.com/Alias Context path=/domain2 docBase=/domain2 debug=1 reloadable=true crossContext=false Valve className = org.apache.catalina.valves.AccessLogValve prefix = domain2_access suffix = .log pattern = common directory = ../jboss/log / !--DefaultContext cookies = true crossContext = true override = true / /Host Host name=www.domain1.org appBase=/domain1 Aliaswww.domain1.org/Alias Aliasdomain1.org/Alias Valve className = org.apache.catalina.valves.AccessLogValve prefix = domain1_access suffix = .log pattern = common directory = ../jboss/log / DefaultContext cookies = true crossContext = true override = true / /Host /Engine !-- A HTTP Connector on port 8080 -- Connector className = org.apache.catalina.connector.http.HttpConnector port = 8080 minProcessors = 3 maxProcessors = 10 enableLookups = true acceptCount = 10 debug = 0 connectionTimeout = 6/ /Service /Server -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] - End Forwarded Message - -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Unique dir for Virtual Host
!--DefaultContext cookies = true crossContext = true override = true / /Host this starts a comment -- you probably forgot to remove the comment tag. this comment does not end until: !-- A HTTP Connector on port 8080 -- Connector className = On 5/22/02 12:41 PM, Joe Schiavone [EMAIL PROTECTED] wrote: !--DefaultContext cookies = true crossContext = true override = true / /Host Host name=www.domain1.org appBase=/domain1 Aliaswww.domain1.org/Alias Aliasdomain1.or -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Enabling SSL in tomcat--specific questions
Sorry list, I'm getting desperate. Perhaps my question I've submitted a couple times is too vague. I'll try asking a few specific ones... If I am able to create a .keyfile, do I have JSSE installed correctly? Does Tomcat use the JSSE directly from org.apache.tomcat.net.SSLSocketFactory or does it have all the classes necessary to create the port itself (and the JSSE is used to create the keyfile only)? Besides placing the JSSE jars in the lib/ext directory, and creating a keyfile, is there anything else that needs to be directly configured in the JRE? Thanks for any insight anyone can give. If I could just ask someone who has set this up before a couple questions I would be extremely grateful! Regards, Aaron -Original Message- From: Rutledge, Aaron Sent: Wednesday, May 22, 2002 7:21 AM To: Tomcat Users List Subject: RE: Enabling SSL in tomcat Hello, I keep seeing the topic of SSL configuration come up, but I have yet heard anyone with a simmilar problem as mine. I am surprised this can be so problematic since it seems so straight forward. I tried using Joaquin's example and got the same exception... StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja va:159) Anyone have any idea why the connector would throw this kind of exception? As soon as I remove the connector Tomcat loads fine. Here is my current connector configuration in server.xml... Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\Documents and Settings\***\.keystore / Parameter name=keypass value=*** / /Connector I also received the same exception using the example configuration. I wish I at least knew where to start looking. I've read over the How To a million times. Is it as simple as adding the jcert.jar, jnet.jar, jsse.jar files to the jre/lib/ext directory, creating a .keyfile and adding the connector in server.xml? Am I missing something? I read through some of the docs sun provides with JSSE and it mentions adding some information to java.security. I tried that without success. Can anyone tell me if they can think of any steps that I might have missed? I am going crazy. Best regards to all, Aaron -Original Message- From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 1:43 AM To: Tomcat Users List Subject: Re: Enabling SSL in tomcat Hi Ajay, I also faced similar problem when tried to configure SSL on tomcat, then tried what 'J' told, but due to Java's security permission for file reading in local device's tomcat was possing a different 'IO Exception error'. I finally had it running after a work around, that is. I copied the '.keystore' file from the 'winnt\profiles\..' to the 'winnt\profiles\default user'. Now my configuration works in perfect shape. Thanks for an intersting question. Regards H.Rajesh [EMAIL PROTECTED] SoftSolutions Pvt. Ltd., Chennai, India. - Original Message - From: Joaquín Sánchez Jiménez [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 12:58 PM Subject: Re: Enabling SSL in tomcat Hi: Try with this. Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.http.HttpConnectionHandler/ Parameter name=port value=8443/ Parameter name=socketFactory value=org.apache.tomcat.net.SSLSocketFactory / Parameter name=keystore value=C:\WINNT\Profiles\ajay\.keystore / Parameter name=keypass value= / /Connector Bye. J. - Original Message - From: Ajay Chauhan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 16, 2002 9:09 AM Subject: Enabling SSL in tomcat I am facing one problem while enabling SSL in Tomcat on windows NT server. I have created the keystore using the following command: keytool -genkey -alias tomcat -keyalg RSA using changeit password. It has created .keystore file in user.home directory. Say if my login is ajay then the files is created in : C:\WINNT\Profiles\ajay directory, which is the value of System.getProperty(user.home). However when I start the Tomcat server, the jvm.stderr log files show the following error and tomcat does not start: java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.init(Unknown Source) at org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav a:22 0) at
Re: Custom Authentification
Have you looked into JAAS ? Perhaps using that API, it may be possible to plugin your own authentication module. -Milind On Monday 20 May 2002 06:47 pm, you wrote: Perhaps I should be more clear about what I am trying to accomplish (and spell authentication correctly) I had originally created my own login/authenfication application. It allowed users to create profiles with a user name, password, a password hint, and email addr. Logged-in users are marked by a Principal object (com.something.Principal) in their session. The key reasons I had originally gone in this direction were: -To be able to give 'hints' and informative error messages to users who had forgotten their passwords -I wanted to be able to add my own functionality for handling auto-logins via persistent cookies -I wanted users who created a new profile to be logged-in as a result (rather then be forced to login after creating their new profile). To work with security constraints, I created a small tag library for JSPs that simply forwards requests to the login page if the user does not have sufficient privileges. A bit of a compromise since I can't define security constraints in the web.xml, but it works rather easily. Everything was great until we decided we wanted to add a web forum - Jive. Jive, like thousands of other web apps, assumes that permissions are handled via request.isUserInRole() and related methods. Of course, I'm not surprised that Jive doesn't use *my* authentication system, but I was hoping that there was enough variation in authentication strategies that largish applications would have a single point to allow users to plug-in their own strategies. So, if I can't easily modify Jive to fit my current strategy, I'll have to modify my strategy to work within or on top of the Servlet API authentication system. I've looked at sub-classing some of the Tomcat classes, but it looks like some of the key ones are final - which leads me to think I still may be on the wrong track. Any ideas? At 01:39 PM 5/20/2002, you wrote: I am trying to create a custom login / authentification system with the following requirements: -Tracks more info then just user name, password, and roles (ie email address) -Allow new users to fill in a new user form (with the extra info) and be logged in after successfully completing the form -Make the extra info available to Servlets JSPs via a session object -Maintain compatibility with the Servlet API for authentification, namely that request.isUserInRole(), request.getPrincipal(), web-app defined security constrains work as expected Every solution I come up with seems to cross one of these lines. I would appreciate any ideas you might have. Thanks, Eric Everman -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL environment variables from apache mod_ssl
I desperately need the SSL environment variables like HTTPS or HTTPS_KEYSIZE, which should be delivered from mod_ssl to the JSP engine, after Apache has established a HTTPS connection. Especially I have to check the actual key size. In tomcat-ssl-howto.html it is described how to adjust httpd.conf. Although I follow the guidelines, nothing happens. Is there something to be taken care of on the Tomcat side? If I copy the JkExtractSSL etc. commands into the VirtualHost section, there is no Tomcat connection at all (no interceptor initiated, JSP source is delivered unprocessed). Any ideas? We use Tomcat 3.3, Apache 1.3.22, mod_ssl 2.8.5 on Solaris 5.7, JDK 1.2.2. Gerd Kersten ...Extract of the httpd.conf .. IfDefine SSL ## ## SSL Environment variables [added by gke] ## # Should mod_jk send SSL information to Tomcat (default is On) JkExtractSSL On # What is the indicator for SSL (default is HTTPS) JkHTTPSIndicator HTTPS # What is the indicator for SSL session (default is SSL_SESSION_ID) JkSESSIONIndicator SSL_SESSION_ID # What is the indicator for client SSL cipher suit (default is SSL_CIPHER) JkCIPHERIndicator SSL_CIPHER # What is the indicator for the client SSL certificated (default is SSL_CLIENT_CERT) JkCERTSIndicator SSL_CLIENT_CERT ## ## SSL Virtual Host Context ## VirtualHost _default_:443 # General setup for the virtual host DocumentRoot /usr/local/www ServerName ipent01.mydomain.de ServerAdmin [EMAIL PROTECTED] #ErrorLog /usr/local/httpd/logs/error_log #TransferLog /usr/local/httpd/logs/access_log # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on [...] # jsp added [gke, 16.05.02] Files ~ \.(cgi|shtml|phtml|php3?|jsp)$ SSLOptions +StdEnvVars +ExportCertData #SSLOptions +StdEnvVars /Files Directory /usr/local/httpd/cgi-bin SSLOptions +StdEnvVars /Directory [...] /VirtualHost /IfDefine -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat training
Does anyone know of a good training program for future administrators of Tomcat? Darren Flynt Systems Administrator Information and Media Technology Azusa Pacific University -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
os x/unix
I am trying to find help online on installing Tomcat on Mac OS X. I must have made a mistake in trying to install it originally and need to remove the jakarta-tomcat-4.0.3-src directory from the users dir so I can try and start again. I tried rmdir -r jakarta-tomcat-4.0.3-src but its somehow linked with root and it wont give me permission, even when I log in as the administrator. Any help as to where I should direct this question would be must appreiciated. Thanks. Daniel Bleich [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can somebody help: Is this conf supported?
Just bubbling up my request for help! Can somebody help? I want to run multiples instances of embedded Tomcat all sharing the same base directory. Is such a configuration supported? 1. Can all the instance work off the same web application files on disk - will there be any problem between the tomcat instances all sharing the same web application files on disk? 2. Will there be a problem with the work directory. I cant seem to find an api to tell every embedded tomcat to use different directories. 3. Are there other problems with this configuration. Can somebody help? Thanx in advance, Ganesh -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Need help with java.io.FilePermission and catalina.policy
Can I use a relative path with java.io.FilePermission? If I replace jtest\\- with the absolute path of d:\\inetpub\\wwwroot\\dev\\jtest\\- then it works fine? Here's a snippet of my policy file: grant codeBase file:D:/Inetpub/Wwwroot/dev/- { permission java.io.FilePermission jtest\\-, read, write; };
MAPPING configuration error for request URI
I downloaded JBoss-2.4.4_Tomcat-4.0.1.zip, unpackaged, set my env vars (JAVA_HOME=c:\jdk1.3.1, TOMCAT_HOME=c:\apps\JBoss\catalina, SERVLETAPI_HOME=%TOMCAT_HOME%\common, CLASSPATH=%JAVA_HOME%\lib\tools.jar, PATH=%JAVA_HOME%\bin;%PATH%) and I get this error when executing the run_with_catalina.bat file. I saw some references to this error online, but I didn't see any resolutions. Can anyone tell me what this problem is and how to fix it? The rest of the error is below for reference: [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke java.lang.NullPointerException at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve. java:280) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:479) Thank You, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: MAPPING configuration error for request URI
Sorry, I meant to say I get this error when I point my browser at http://localhost:8080 Mike -Original Message- From: Nelson, Mike Sent: Wednesday, May 22, 2002 4:12 PM To: '[EMAIL PROTECTED]' Subject: MAPPING configuration error for request URI I downloaded JBoss-2.4.4_Tomcat-4.0.1.zip, unpackaged, set my env vars (JAVA_HOME=c:\jdk1.3.1, TOMCAT_HOME=c:\apps\JBoss\catalina, SERVLETAPI_HOME=%TOMCAT_HOME%\common, CLASSPATH=%JAVA_HOME%\lib\tools.jar, PATH=%JAVA_HOME%\bin;%PATH%) and I get this error when executing the run_with_catalina.bat file. I saw some references to this error online, but I didn't see any resolutions. Can anyone tell me what this problem is and how to fix it? The rest of the error is below for reference: [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke java.lang.NullPointerException at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve. java:280) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:479) Thank You, Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: os x/unix
sudo rm -r jakarta-tomcat-4.0.3-src then provide your account password. when you're logged in as an administrator. On 5/22/02 1:56 PM, daniel bleich [EMAIL PROTECTED] wrote: I am trying to find help online on installing Tomcat on Mac OS X. I must have made a mistake in trying to install it originally and need to remove the jakarta-tomcat-4.0.3-src directory from the users dir so I can try and start again. I tried rmdir -r jakarta-tomcat-4.0.3-src but its somehow linked with root and it wont give me permission, even when I log in as the administrator. Any help as to where I should direct this question would be must appreiciated. Thanks. Daniel Bleich [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: tomcat download question
Hi Steve, Yes, it's pure java. They have differen't files because of the various compression schemes used on the files. The .bat files for Windows and the .sh files for Linux/Solaris/Unix are in all the downloads. Rick - Original Message - From: Steven C. Chau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 22, 2002 2:42 PM Subject: tomcat download question Hello, Does anyone know if the tomcat zip file (jakarta-tomcat-4.0.3.zip) posted at http://jakarta.apache.org/builds/jakarta-tomcat4.0/release/v4.0.3/bin/ works on both NT and solaris? thanks, Steven -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: os x/unix
On 05/23 03:56 daniel bleich wrote: I am trying to find help online on installing Tomcat on Mac OS X. I must have made a mistake in trying to install it originally and need to remove the jakarta-tomcat-4.0.3-src directory from the users dir so I can try and start again. Why did you get the source? If all you need is just to run Tomcat (and build some webapps), I believe getting the binary would be much easier; untar it, and have a /usr/local/tomcat/bin/catalina.sh start. I tried rmdir -r jakarta-tomcat-4.0.3-src but its somehow linked with root and it wont give me permission, even when I log in as the administrator. Any help as to where I should direct this question would be must appreiciated. Thanks. With administrator, you meant root, right? Well, maybe there were some files that had the r flag removed. To remove the directory, just login to root and cd to where the jakarta-tomcat-4.0.3-src directory resides and rm -rf jakarta-tomcat-4.0.3-src. BTW, isn't Tomcat package available for OS X? Oki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Enabling SSL in tomcat--specific questions
On 05/23 03:14 Rutledge, Aaron wrote: If I am able to create a .keyfile, do I have JSSE installed correctly? I use JDK1.4 and Tomcat 4.0.3; it was all I needed to get SSL running. (And the .keystore file, of course, in the root's home directory; because I run Tomcat under root.) FYI, the certificate's passphrase has to be changeit. Oki -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
A optimizing problem, need your help.
Following call stack is dumped from Tomcat server. You can see it is so deep. What's all these StandardPipeline.invokeNext() calls about? How can I short circuit the pipelines since I don't use them? Similarly, can I turn off ApplicationFilterChain because I don't plan to use servlet filter as defined in Servlet 2.3 API. at com.foo.MyServlet(MyServlet.java:182) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:446) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 3) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1107) at java.lang.Thread.run(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: A optimizing problem, need your help.
you might consider using tomcat 3 instead then -- a lot less overhead for non-2.3 apps. i use it for that purpose explicitly. fillup On 5/22/02 6:40 PM, Zhidong Yu [EMAIL PROTECTED] wrote: Following call stack is dumped from Tomcat server. You can see it is so deep. What's all these StandardPipeline.invokeNext() calls about? How can I short circuit the pipelines since I don't use them? Similarly, can I turn off ApplicationFilterChain because I don't plan to use servlet filter as defined in Servlet 2.3 API. at com.foo.MyServlet(MyServlet.java:182) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet. java:446) at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:2 16) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja va:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234 3) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja va:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 72) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j ava:1012) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java: 1107) at java.lang.Thread.run(Unknown Source) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HttpSession invalidate bug???
So can anyone tell me if this is a bug or not? It doesn't seem to be consistent with the servlet spec and javadocs. Thanks! Chris Wilson [EMAIL PROTECTED] www.wondergeek.com -Original Message- From: Chris Wilson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 10:37 PM To: 'Tomcat Users List' Subject: RE: HttpSession invalidate bug??? Comments below... Chris Wilson Web Developer Andrews University [EMAIL PROTECTED] -Original Message- From: Scott Judd [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 4:46 PM To: Tomcat Users List Subject: Re: [Off Topic] HttpSession invalidate bug??? Chris, I can assure you that this is not a Tomcat issue. Let's try to take it off-list from here. I have attached some code inline to this post which will hopefully address, if not fix, your problem. See below: - Original Message - From: Chris Wilson [EMAIL PROTECTED] Sure that makes sense, that's what I understood was happening... I don't think that's the problem though. I fully expect the session to be invalid. But remember that if you call session.invalidate() on an already invalidated session, it throws an IllegalStateException, which is symptomatic of the problem you described. As a matter of fact, the session object is null after being invalidated, whether programmatically or by the servlet container, so getting any properties from a null object will return unexpected results. :) I understand that you can't call session.invalidate() on an invalidated session--the javadocs support your claim. However, they do not say you can't call getMaxInactiveInterval() on an invalid session (check them out). Plus, your assertion that the session object is null doesn't make sense, because I can successfully call session.getLastAccessedTime(). That should throw a NullPointerException if the session is null, however it doesn't for me. Here try this HttpSessionListner you'll see what I'm talking about import javax.servlet.http.HttpSessionListener; import javax.servlet.http.HttpSessionEvent; import javax.servlet.http.HttpSession; public class TestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent httpSessionEvent) { } public void sessionDestroyed(HttpSessionEvent httpSessionEvent) { // ok session should be invalid here... // lets test some assertions // let put it in a try block to catch any exceptions try { HttpSession session = httpSessionEvent.getSession(); // lets make sure session is not null System.out.println(session == null); // ok lets try last access time // this SHOULD work even if session is invalid // javadocs say it will... System.out.println(session.getLastAccessedTime()); // ta-da it does // ok if that worked then this should work too // javadocs do not say it throws IllegalStateException System.out.println(session.getMaxInactiveInterval()); // whoops this busts... // javadocs say this shouldn't happen // Servlet spec (10.7) implies using this method to see if // a session is invalid because of timeout as opposed // to explicit call to session.invalidate(); // now, we won't get here cause the above fails // but just to see if the session is invalid // lets call something that the javadocs DO say should // throw IllegalStateException on an invalid session session.invalidate(); } catch(Exception e) { e.printStackTrace(); } } } I assume that you would do that with the following code... if((System.currentTimeMillis() - session.getLastAccessedTime()) session.getMaxInactiveInterval()) { // session timed out } Actually, I believe the correct convention here would be to use getMaxInactiveInterval() when the session is valid, so that it's still *legal* to get attributes from the session. Ideally, you would do this in the valueUnbound() method of your listener class. I'm nearly positive that this is occurring through a getAttribute() call in the ServletContext class of the servlet container (which also throws IllegalStateException). After the servlet container invalidates the session, all future references to the session object will evaluate to null, thus causing the exception that you're getting. Note that running this code snippet on WebSphere and JRun produced a similar result as Tomcat. It's just plain not a server issue. This statement would get you the same net effect as what you're describing above: if(session == null) { //handle session timeout } The problem with your example is that it doesn't tell me if the session is invalid because session.invalidate() was explicitly called or because it timed out. I hate to sound like a broken record, but the spec
app deployment on tomcat windows
Subject: app deployment on tomcat windows From: Joey DiPrimo [EMAIL PROTECTED] === I need to deploy a web app quickly on tomcat. I wanted to deploy it on Linux but can't wait for the servers to be ready, so I thought I would deploy on windows 2k servers. I tried getting it to work with IIS as the http server, but had inconsistent results, with some pages failing to load. The application seems to work fine with the built-in http server with 1 or 2 users, but I'm wondering how well this might be expected to scale up to a production environment of possibly 100 or more simultaneous users. Has anyone tried deploying Tomcat 3.x (I'm using 3.3.1) in a Windows 2000 environment and using Tomcat's built in http server? If so, would you recommend this, or would I be better off just waiting for the Linux servers and configuring it to run with Apache? P.S. The reason I'm using Tomcat 3.3.1 and not 4.0 is that I developed it on v3.3.1 and wanted to be sure that my application conforms to the servlet 2.2 spec. Ultimately, I'd like my application to be portable to multiple different deployment environments such as Websphere, Iplanet, etc. and it seems that most of these are still at servlet 2.2. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]