RE: HP-UX 10.20 + Oracle
In case it is of use to anybody else, this is what worked in the end. HP-UX 10.20, Oracle 8.0.4, Tomcat 3.3.1 (JDK 1.1.8) 1. Install the JDBC package off the Oracle CD onto the HP server 2. This installs the correct classes111.zip and shared library for that version of Oracle 3. Make sure that the shared library (liboci804jdbc.sl) has full execute permissions 4. In the account controlling Tomcat set SHLIB_PATH=$ORACLE_HOME/lib 5. Also copy $ORACLE_HOME/jdbc/lib/classes111.zip to $TOMCAT_HOME/ lib/common/classes111.jar 6. I still couldn't get the OCI driver to work, but the THIN driver does. Thanks to everyone that helped. John -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 15:09 To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle John, I sent two version of the classes111.jar we have used on our HP-UX 11.0 system to your account in order not to clutter up people boxes with the zip file. I do not know why they are different but I have discovered with the classes12.jar that they come in vastly different vintages. I upgraded a linux system once and got the latest and greatest classes12 from oracle since it was easier than copy it from the old server I had. Some of the functionality of the site ceased to work until I rolled back to the prior version that was three years older. Jeff -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 6:03 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: HP-UX 10.20 + Oracle Hi I am offsite today, so not sure if this will work, anyway. I have tried setting LD_LIBRARY_PATH but it still does not work. I suspect that I have conflicting versions or classes, so my questions are: 1. Where should I get classes12 or classes111 from for HPUX 10.2 and Oracle 8.0.4 (the ones I am using are copied from Linux) 2. I have seen mentioned that an associated DLL is required, which one? and where should it go? Thanks once again John Make sure you have the LD_LIBRARY_PATH environment variable set to $ORACLE_HOME/lib (I think :-\ ) At least you have to on Linux. -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:13 PM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java: 358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- 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: HP-UX 10.20 + Oracle
In case it is of use to anybody else, this is what worked in the end. HP-UX 10.20, Oracle 8.0.4, Tomcat 3.3.1 (JDK 1.1.8) 1. Install the JDBC package off the Oracle CD onto the HP server 2. This installs the correct classes111.zip and shared library for that version of Oracle 3. Make sure that the shared library (liboci804jdbc.sl) has full execute permissions 4. In the account controlling Tomcat set SHLIB_PATH=$ORACLE_HOME/lib 5. Also copy $ORACLE_HOME/jdbc/lib/classes111.zip to $TOMCAT_HOME/ lib/common/classes111.jar 6. I still couldn't get the OCI driver to work, but the THIN driver does. Thanks to everyone that helped. John -Original Message- From: PELOQUIN,JEFFREY (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] Sent: 08 January 2003 15:09 To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle John, I sent two version of the classes111.jar we have used on our HP-UX 11.0 system to your account in order not to clutter up people boxes with the zip file. I do not know why they are different but I have discovered with the classes12.jar that they come in vastly different vintages. I upgraded a linux system once and got the latest and greatest classes12 from oracle since it was easier than copy it from the old server I had. Some of the functionality of the site ceased to work until I rolled back to the prior version that was three years older. Jeff -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 6:03 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: HP-UX 10.20 + Oracle Hi I am offsite today, so not sure if this will work, anyway. I have tried setting LD_LIBRARY_PATH but it still does not work. I suspect that I have conflicting versions or classes, so my questions are: 1. Where should I get classes12 or classes111 from for HPUX 10.2 and Oracle 8.0.4 (the ones I am using are copied from Linux) 2. I have seen mentioned that an associated DLL is required, which one? and where should it go? Thanks once again John Make sure you have the LD_LIBRARY_PATH environment variable set to $ORACLE_HOME/lib (I think :-\ ) At least you have to on Linux. -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:13 PM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java: 358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- 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: HP-UX 10.20 + Oracle
Hi I am offsite today, so not sure if this will work, anyway. I have tried setting LD_LIBRARY_PATH but it still does not work. I suspect that I have conflicting versions or classes, so my questions are: 1. Where should I get classes12 or classes111 from for HPUX 10.2 and Oracle 8.0.4 (the ones I am using are copied from Linux) 2. I have seen mentioned that an associated DLL is required, which one? and where should it go? Thanks once again John Make sure you have the LD_LIBRARY_PATH environment variable set to $ORACLE_HOME/lib (I think :-\ ) At least you have to on Linux. -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 1:13 PM To: 'Tomcat Users List' Subject: RE: HP-UX 10.20 + Oracle Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java: 358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- 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: Help with Tomcat on HP-UX 10.20
Thanks again for the suggestions. I tried both and in case it is useful to others this is what happened: 1) 3.3.2 nightly also didn't work (although with a different error) 2) After a bit of playing around (root does not seem to find .tomcatrc) I managed to get 3.3.1 up and running with the TOMCAT_OPTS setting. I have established a connection and will start testing my application. Thanks once again for all the help. John -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED]] Sent: 04 January 2003 08:04 To: [EMAIL PROTECTED] Subject: Re: Help with Tomcat on HP-UX 10.20 This looks like a bug in the 3.3.1 release. There should be a 3.3.2 release out in the near future. In the meantime there are two options for you at this point: 1) Use the 3.3.2-dev nightly release (not as bad as it sounds, since the 3.3 branch is mostly bug-fixes these days). 2) Set the '-Dtomcat.install=/u01/jc_keep/jakarta-tomcat-3.3.1' in the TOMCAT_OPTS environment parameter (e.g. by setting it in $HOME/.tomcatrc). The problem is that Tomcat's auto-detect doesn't work properly for certain (broken) 1.1.x JVMs. This has shown up for Mac/Classic systems (as well as others). For more information see: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11177 John Clark [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- 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]
HP-UX 10.20 + Oracle
Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HP-UX 10.20 + Oracle
Mark: I tried changing to classes111.jar, but now get this error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path Also I should point out that I am using Oracle 8.0.4 on HP. Thanks for the suggestions though -Original Message- From: p niemandt [mailto:[EMAIL PROTECTED]] Sent: 07 January 2003 18:25 To: Tomcat Users List Subject: RE: HP-UX 10.20 + Oracle As far as I know you should use ojdbc14.jar for Oracle9: Though previous ones should work, the ojdbc14.jar is recommended / needed for Oracle9. {The classnames are different between classes12.jar and the new ojdbc14.jar} On Tue, 2003-01-07 at 17:57, Wagoner, Mark wrote: I think classes12.jar is for JDK 1.2. You want classes111.jar (if you can find it). -Original Message- From: John Clark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 12:54 PM To: 'Tomcat Users List' Subject: HP-UX 10.20 + Oracle Hi there, The story so far: I have an intranet application that currently runs on a Linux server (with Oracle 9i - built-in Apache) and W2000 server (with Tomcat 4.x connecting to Oracle 8). It is written in JSP and Java, and works fine. I now want to use HP-UX 10.20 as a server, so I got the only available JDK from HP which is version 1.1.8 and this has forced me to use Tomcat 3.3.1. This is all running now (thanks for the help) and I am now testing the application. I have put in the Oracle classes12.jar and DriverManager.registerDriver seems fine, but DriverManager.getConnection gives the following error (only partial list): java.lang.ClassNotFoundException: java.util.Map at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(Compiled Code) at java.lang.ClassLoader.loadClassInternal(Compiled Code) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:358) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:83) at java.sql.DriverManager.getConnection(DriverManager.java:126) at estimating._final.loginvalidate_1._jspService(loginvalidate_1.java:123) Anyone got any ideas? Many thanks as usual. John -- 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] -- p niemandt [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]
Help with Tomcat on HP-UX 10.20
I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? Any help much appreciated. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Help with Tomcat on HP-UX 10.20
Thanks for your help. As you probably realised, the JDK version from HP is actually 1.1.8.07. I have now downloaded Tomcat 3.3.1. As root user, I do not get any errors when I run startup.sh (but I cannot connect), but get the following error when I run shutdown.sh: # ./shutdown.sh Using classpath: ./../lib/tomcat.jar Using JAVA_HOME: /opt/java Using TOMCAT_HOME: /u01/jc_keep/jakarta-tomcat-3.3.1 Jdk11Compat: Installing jar protocol handler Guessed home=/u01/jc_keep/jakarta-tomcat-3.3.1/lib Exception: java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomca t java.lang.ClassNotFoundException: org.apache.tomcat.startup.StopTomcat at org.apache.tomcat.util.compat.SimpleClassLoader.loadClass(SimpleClass Loader.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java) at org.apache.tomcat.startup.Main.execute(Main.java:300) at org.apache.tomcat.startup.Main.main(Main.java:140) Is this a config problem or version problem? Once again any help will be much appreciated. John Clark -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: 03 January 2003 16:24 To: Tomcat Users List Subject: Re: Help with Tomcat on HP-UX 10.20 John Clark wrote: I have spent some time looking at the FAQs, archives, etc. but cannot find the information I need, can anyone help. I have an intranet application (using JSP) that currently runs using Oracle 9i (Apache built in) on Linux and using Oracle 8 and Tomcat on NT/2000. I now want to use it with Oracle 8 on HP-UX 10.20 and need answers to the following: 1. Can I just use Tomcat, or do I also need Apache? Yes, you can. 2. I have downloaded a version of JDK (1.18.07) from the HP website, will this work? You need at least JDK 1.2 to run Tomcat 4.1.18. Tomcat 3.2.2 3.3 will work with your current JDK. -- Jeanfrancois Any help much appreciated. -- 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: AW: mailing list or news group??
Hassan Siddiqui wrote: I vote for a web-based forum - all you need is a web browser, which you all no doubt have or you wouldn't have subscribed to this forum in the first place! I may have a web browser... But I'm somewhat restricted in trying to surf to websites... Our internet connection over here is also rather slow... I vote for the Mailing list...;-) -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Regarding error logs
Murali Mohan Kasetty wrote: Hi, At end of every business day ( at a specific time ) Apache and Tomcat logs need to be copied to a backupfile tagged by date and the log stared anew on a fresh file. I have been made to understand that Apache has such feature built in and it is a matter of configuration. Iam not sure of how this can be achieved with tomcat logs . Can Someone Help me ? Thanks and Regards, Murali Two approaches may be possible under Unix...;-) (1) Logrotate... (2) Shell Script + Cron... Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Accesing MySQL database through Applets
Jann VanOver wrote: Connecting to a database through Applet? Can you do that? Gosh, that sends chills down my spine. Applets are Client-side things. Database access is usually done Server-side. Someone, please tell me that Applets CAN'T make server database connections! There are two posibilities... (1) You connect to your database which has your WebServer/Servlet Container...;-). In other words, to the originating place... (2) Another posibility is to connect to a servlet and have that servlet talk you your database via JDBC. Have the servlet talk to your applet using XML and vice-versa... But remmember to compress your data transmission to accomodate for the network latency your clients may incur...;-) And... Don't forget to sign your applets...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: upload 1 GB files
Amer Mallah wrote: According to the documentation at jspsmart.com, there is no upper limit to the size of a file that you can upload. This would therefore be system dependant...;-) Trying to upload 1GB in a local network is fine...;-) But if you try to upload it across the internet... well... You may have some problems... Not too mention taking a lot of time...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: perplexing multiple servlet output question..
Kevin Fonner wrote: I wanted a web page to display the results of mutiple servlets (maybe even as many as 30 servlets) in rows on a web page. At first I was going to try to do it with frames where each frame would load a servlet. I then ran into a problem. I forgot that frames bind to a window and that you can't scroll through a single page containing multiple frames (at least not that I know of). Anybody have any opinion on how they might try to do this? Example of a single Web page... ++ + servlet 1 + ++ + servlet 2 + ++ + servlet 3 + ++ +ect...+ ++ The user would then scroll through the page containing mutiple servlet output. Thanks, Kevin Why not try to use the include() directive? And use table rows to display the results...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: SQL questions
For SQL tutorials... Go to this page: http://www.sqlcourse.com/ For MySQL related info Go to this page: http://www.mysql.com/ For JDBC Check your documentation and your database driver's specs...;-) If you want to access an SQL server, you either have to get the JDBC driver for that database or use JDBC-ODBC ..;-) HTH Cheers, John Clark George McKInney wrote: -Original Message- From: Slemp, Douglas, J (Doug) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: SQL questions I'm starting to get into SQL and I have a few questions if anyone out there can answer them for me: 1)Is there any WWW site that gives tutorials and/or examples of using SQL and Java? (I'm really looking for good examples on using java.sql to makes JDBC calles to a SQL server on both NT and Solaris) 2)Does anyone have knowledge or have a WWW site that gives usage examples for running mySQL and Java? I think this about sumes it up for now...thanks Doug I'd really suggest another location for this question - try jGuru.com they have a good set of resources, faqs, tutorials, etc. Also check out the Java Tutorial online at java.sun.com - it has sections on jdbc. George McKinney, Developer -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: session timeout
Boris Niyazov wrote: you probably can find in your web.xml: session-config session-timeout 30 /session-timeout /session-config units seconds hth * * Boris NiyazovPh: 212-854-4094 Fax: 212-854-1749 * * Systems Manager Email: [EMAIL PROTECTED] * * Columbia Law School URL: http://www.law.columbia.edu * * Hi, Kindly check the web.dtd before coming up with this conclusion...;-) According to the web.dtd !ELEMENT session-config (session-timeout?) !-- The session-timeout element defines the default session timeout interval for all sessions created in this web application. The specified timeout must be expressed in a whole number of minutes. -- ;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: FW: [ERROR] OutputStream is already being used for this request
Hi, How did you go about this? did you use the include() or forward() method? It seems to me that a much simpler procedure would work for you...;-) 1. write the data as a temporary file in a location, using the session id as the filename and data type as the extension...;-) 2. use the image tag of HTML i.e. IMG SRC=WHATEVER_SESSION_ID_NUMBER_YOU_HAVE.gif ALT=Whatever 3. delete the image after it is no longer needed...;-) 4. That's basically it...;-) Tali Ambar wrote: Hi 1. I'm trying to pass a stream to an html in order to see GIF files in a stream form on the browser. 2. I wrote (in a servlet) the following lines IStream stream = ...; // stream of a file in a GIF format response.setContentType (image/GIF); ServletOutputStream outStream = response.getOutputStream(); int p1 = 1; int[] p2 = new int[1]; byte bytes[] = new byte[1]; stream.RemoteRead(bytes,p1,p2); outStream.write(bytes); 3. This servlet is called by a jsp which is called from an Html file (by the tag: img src=myJsp.jsp) 4. When running only the servlet I can see the GIF file. 5. When I run the jsp I get the following error: Error 500: OutputStream is already being used for this request at org.apache.tomcat.core.ResponseImpl.getWriter(ResponseImpl.java:210) 6. running the html file fails 7. I can not use PrintWriter servlet because I need to pass binary data and not test. Thanks Tali Email: [EMAIL PROTECTED] -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: GZIP, JSP and servlet
Cécile QUERAN wrote: Is there a way to gzip the output of a JSP ? Based on the HTTP Accept-Encoding header field, I open a GZIPOutputStream if supported by the client browser, and I send the response.getOutputStream in it. This is within a servlet. When I just write directly in the GZIPOutputStream, it works fine. When I try to include a JSP's content (with the include method of the RequestDispatcher), a problem arises : the first out.write in the service method of my compiled JSP throws an IllegalStateException OutputStream already in use. Apparently, this comes from the HttpResponseAdapter which has two parameters to indicate whether out is a PrintWriter or an OutputStream. My initial response.getOutputStream sets the useStream field to true while the JSP framework tries to instantiate a PrintWriter. (the problem is at least on Tomcat 3.1) I know I can rewrite my JSP as a servlet, which would solve the problem, but for maintenance purpose, I 'd rather keep a JSP (in fact, it includes many other JSPs, leading to 81 kBytes, hence the need for compression). Thanks in advance. L. QUERAN Why not to call the JSP from your servlet, cache the output HTML and include this in your stream? -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Silly question
In the case of the JSPs On the first execution, it is first translated into a servlet, then compiled, executed and placed in sort of a cached state.. So the first run of JSP are always slow.. With regards to Servlets, the slow response times could be attributed to some wierd initialization parameters or some really slow IO function... What type of web apps are you trying to execute? Cheers, John Clark
Re: tomcat installation problem in win98
Hi, Would you mind being a little bit more specific? Perhaps you could post the exact startup command being used and the exact error output...;-) Cheers, John Clark karthik rajan wrote: hello i have installed tomcat3.2.1 in win 98 i have set the path tomcat and java still i'm facing the problem i'm facing problem in startup saying bad command or filename my project has held up please reply in detail.i'm waiting karthik [EMAIL PROTECTED] -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: too many java processes ???
Hi, Are you using Multi-threaded Applications??? If so, this would be natural...;-) With the Linux Operating System... Threads are actually reported as being processes...;-) Try using top or ps -aux and add up the memory usage of the processes...;-) However, this does appear to be quite odd, if you have just run tomcat and checked out the number of process running right away...;-( What version of the Linux Kernel are you using??? Cheers, John Clark kreso wrote: When we run tomcat, it opens about 30 java processes and it takes a lot (almost all) of our 128 MB memory. Is that supposed to be? We are running it on linux. Processes look something like this... root 11077 11049 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11078 11077 0 Apr05 ?00:00:12 /usr/java/jdk1.3/bin/i386/native root 11079 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11080 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11081 11077 0 Apr05 ?00:00:04 /usr/java/jdk1.3/bin/i386/native root 11082 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11083 11077 0 Apr05 ?00:00:01 /usr/java/jdk1.3/bin/i386/native root 11084 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11085 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11086 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11087 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11088 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11089 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11090 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11091 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11092 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11093 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11094 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11095 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11096 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11097 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11098 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11099 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11100 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11101 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11102 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11103 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11104 11077 0 Apr05 ?00:00:00 /usr/java/ root 11105 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11106 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11107 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11108 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 11109 11077 0 Apr05 ?00:00:01 /usr/java/jdk1.3/bin/i386/native root 0 11077 0 Apr05 ?00:00:02 /usr/java/jdk1.3/bin/i386/native root 1 11077 0 Apr05 ?00:00:06 /usr/java/jdk1.3/bin/i386/native root 2 11077 0 Apr05 ?00:00:00 /usr/java/jdk1.3/bin/i386/native root 4 11077 0 Apr05 ?00:00:07 /usr/java/jdk1.3/bin/i386/native? please let us know how we can limit so it doesn't use whole our memory... thanks -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Running java on linux
Try jdk1.2.2 it appears to be a little bit more friendly when I don't have any X windows...;-) Brandon Cruz wrote: I installed jdk1.3.0_02 onto my machine and changed the path to the bin directory. When I try to run that java command, I get the following error... [admin@ns1 bin]$ /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error in lo ading shared libraries: libX11.so.6: cannot open shared object file: No such fil e or directory Is this a bug with java, or does it have to do with a file permission I am not setting correctly with Linux? Anyone know? Brandon -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Servlets work, but JSP doesn't...
Jason, You have to have JAVA_HOME environment variable defined so that jasper is able to find the compiler in order to compile the jsp. ~larry i.e. inside your tomcat.sh file have the following entries... TOMCAT_HOME=/tmp/jakarta-tomcat # or wherever..;-) JAVA_HOME=/opt/jdk1.2.2 # Depends on where your JDK is installed... CP=$TOMCAT_HOME/classes:$TOMCAT_HOME/lib/ant.jar:$TOMCAT_HOME/lib/xml.jar CP=$CP:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME /lib/parser.jar CP=$CP:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/lib/jaxp.jar:/opt/jdk1.2. 2/lib/tools.jar CLASSPATH=$CP:$CLASSPATH would also work..;-) Cheers, John Clark
Re: include problem
Hi, Just try to use the full path name, relative you your server's root... And include the files...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Syntax of web.xml
Jefferson Oliveira Andrade wrote: Where can I find a reference of the web.xml file for Tomcat 3.2.1? Thanks, Jefferson. Try to check out the web.dtd which should be found under your $TOMCAT_HOME/conf -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: [Fwd: Session expiration...]
Merwin Yap wrote: Subject: Session expiration... Date: Sat, 03 Feb 2001 16:18:38 +0800 From: Merwin Yap [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hi! I want to ask about sessions in tomcat. How do you change the elapsed time for the session to expire. Thanks! Merwin There are two ways that I know of, runtime and init time. During runtime you can change the session "timeout" by getting a session object from you request and using the setMaxInactiveInterval() method with the proper parameters. Check the HttpSession Interface under the javax.servlet.http package. During Init time or initialization, it's just a couple of XML statements in your web.xml I believe you can find the definitions under the web.dtd file... Hope that helps. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Recommendations for JSP development tools?
"Harrison, Robert" wrote: use Homesite 4.5 it has jsp high-lighting and bots. avoid Frontpage at all costs with HTML it adds major junx to your code. -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Recommendations for JSP development tools? I'd like to improve the productivity of my people here. To date, I've done all my JSP development with a text editor. Has anyone had any luck with JSP and any of the FrontPage type programs (including FrontPage?). Any recommendations? Thanks. vim with the proper highlighting...;-) But if you want to create somethings fast.. Perhaps JBuilder 4.0 can help you out... The price does sting a lot though..;-( I hear Sun's Forte for Java has this capability, but I haven't really seen it in action...;-( Personally though, I kinda feel that I can code faster vim, but this is just my humble opinion...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Access to session repository
Dmitry Rogatkin wrote: Is there a way to get access to all active sessions to do manual invalidation and other maintaining work, like excluding double logins and so on? Why not just implement a table of active session that is visible from your login and logout servlet/jsps? And check for the current person logging in, there. As for getting access to all active session, I believe this was possbible via getSessionContext() method before the Servlet 2.1 API, it has since been deprecated without any forseable replacements. Hope that helps. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: web.xml and session timeout
Jason Novotny wrote: I've stuck a web.xml in my WEB-INF/ directory with the following session timeout set: session-config session-timeout 5 /session-timeout /session-config However, I have a session bean with an HttpSessionBindingListener- I would think that my valueUnbound() method would get called after 5 minutes and something printed to the screen, but it doesn't look like the session is timing out- Also, how can I query I this value from my web application to display how long the user has left? Thanks, Jason Based upon my limited experience, and having the default setting which tomcat gives. I have observed that the sessions are invalidated every minute, not every second. And this cycle starts when you start-up the Tomcat Server. It does time out, but don't expect it to be timed-out to the nearest second. I tried to get a viable explanation on this mailing list, but it appears no one knows how...;-( As for displaying how long the user has left... A simple JSP+Javascript trick should do the trip... The JSP will getMaxInactiveInterval() + any time discrepancy with the Tomcat Start-up time subtract whatever value for latency and send the value to a Javascript timer and have it displayed on your client's browser...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Session MaxInactiveInterval Problem....;-(
I've been banging my head for the last couple of days on this one... doPost() called [Mon Feb 05 16:47:34 CST 2001] Connection == [Keep-Alive] Content-Length == [50] From == [null] Host == [penguin:8080] processLogin() called [Mon Feb 05 16:47:34 CST 2001] AutoLogout Value == [50] starting session for [njclark] : Date == [Mon Feb 05 16:47:34 CST 2001] processLogin() finished [Mon Feb 05 16:47:34 CST 2001] stopping session for [njclark] : Date == [Mon Feb 05 16:48:17 CST 2001] TOTAL TIME ELAPSED == 43 doPost() called [Mon Feb 05 16:49:00 CST 2001] Connection == [Keep-Alive] Content-Length == [50] From == [null] Host == [penguin:8080] processLogin() called [Mon Feb 05 16:49:00 CST 2001] AutoLogout Value == [50] starting session for [njclark] : Date == [Mon Feb 05 16:49:00 CST 2001] processLogin() finished [Mon Feb 05 16:49:00 CST 2001] stopping session for [njclark] : Date == [Mon Feb 05 16:50:17 CST 2001] TOTAL TIME ELAPSED == 67 doPost() called [Mon Feb 05 16:50:50 CST 2001] Connection == [Keep-Alive] Content-Length == [50] From == [null] Host == [penguin:8080] processLogin() called [Mon Feb 05 16:50:50 CST 2001] AutoLogout Value == [50] starting session for [njclark] : Date == [Mon Feb 05 16:50:50 CST 2001] processLogin() finished [Mon Feb 05 16:50:50 CST 2001] stopping session for [njclark] : Date == [Mon Feb 05 16:52:17 CST 2001] TOTAL TIME ELAPSED == 87 doPost() called [Mon Feb 05 16:52:45 CST 2001] Connection == [Keep-Alive] Content-Length == [50] From == [null] Host == [penguin:8080] processLogin() called [Mon Feb 05 16:52:45 CST 2001] AutoLogout Value == [50] starting session for [njclark] : Date == [Mon Feb 05 16:52:45 CST 2001] processLogin() finished [Mon Feb 05 16:52:45 CST 2001] stopping session for [njclark] : Date == [Mon Feb 05 16:54:17 CST 2001] TOTAL TIME ELAPSED == 92 doPost() called [Mon Feb 05 16:57:01 CST 2001] Connection == [Keep-Alive] Content-Length == [50] From == [null] Host == [penguin:8080] processLogin() called [Mon Feb 05 16:57:01 CST 2001] AutoLogout Value == [50] starting session for [njclark] : Date == [Mon Feb 05 16:57:01 CST 2001] processLogin() finished [Mon Feb 05 16:57:01 CST 2001] stopping session for [njclark] : Date == [Mon Feb 05 16:58:17 CST 2001] TOTAL TIME ELAPSED == 76 The values does not seem to be consistent...;-( -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Problem in starting tomcat
Andrew Tan wrote: I installed tomcat on Windows98 When I double click on "startup.bat" it says opening in another window (the window comes on and then disappears). And it seems that tomcat has not started. Do you have similar experience? and is there a solution? Regards, Andrew Why don't you try to execute the batch file under a dos prompt so that you can find out what is causing this type of functionality? Hope that helps. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Question about sessions..
Hello All, Why is it that I am getting a session, even though I have set call getSesssion(false) and it is the first time that my browser has accessed it... I'm using Tomcat 3.2.1 under Linux 2.2.17 I have set the following in the web.xml session-config session-timeout 0 /session-timeout /session-config Any help, pointer or ever RTFMs would be appreciated (I hope the URLs are in order though..;-) Thanks in advance. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Question about sessions..
Matt Goss wrote: John, the getSession(false) only returns a session if it is not a new one (ie if request is from another page inside the application). getSession(true) always returns a session. Matt Goss "John Clark L. Naldoza" wrote: Thanks Matt, I am using getSession(false), but I still get a session even when it is my first time accessing the browser... i.e. if( getSession(false) == null ) { System.out.println( No Session ); } else { System.out.println( "Has a session" ); } Mine would print out has a session...;-( are there any extra settings in the server.xml or web.xml that I should know about? Thanks in advance.. -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 241-4612 \ \ / / email: [EMAIL PROTECTED]\ \ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: How can i share session between servlet and jsp
Raphaël Lemaitre wrote: Hi, I've got a big urgent problem : it seems that mu JSPs and my servlets don't share the same session. I explain : I have a JSP login form which action points to a servlet. In this servlet, i create the HttpSession object using request.getSession(true), i put an userID (String) in the session and forward to a JSP. In this JSP and all the JSPs i access directly (without passing through a servlet), the userID is still in the session. But when i want to follow a hyperlink that points to a servlet, i do not get the same session (session Ids are different). How can i do to make this work? thanks in advance Perhaps you'd like to look at setParameters method of your http response object...;-) And then it would be a matter of forwarding the request,response to and from your jsp and servlet. Hope that helps. John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: very urgent
Sonal Agarwal wrote: I am using tomcat for running servlets using jdk1.2. I am trying to connect to orcale using the driver : oracle.jdbc.driver.OracleDriver But it is giving me an error that driver not found. How can i solve the problem? Please help me. Thanks Sonal Agarwal. This is an ugly patch...;-) try to unjar the contents of your jdbc's driver jar file to your apps. WEB-INF/classes directory...;-) it's ugly... But it works for me... If anyone has a better solution, I'd really like to hear it...;-) hope that helps. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Environment entries?
Catherine Jung wrote: Hi, one of my servlets needs to open a connection to a database, now, if I were accessing this database in a normal java program I'd need to have set an environment variable LD_LIBRARY_PATH to point to it's native librarys. How can I do something similar in a servlet? It doesn't work just with the normal environment entries I would use for a plain java app, and it doesn't work using the following in my web.xml file. So can anyone enlighten me as to what I've done wrong/should be doing? env-entry descriptionpath to the objy librarys/description env-entry-nameLD_LIBRARY_PATH/env-entry-name env-entry-value/opt/share/object5.2.3/solaris7/lib//env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry Thanks, Catherine Hello Cat, Perhaps you can try to load the library during the init method of your main servlet... i.e. init() { try { System.load.("/opt/share/object5.2.3/solaris7/lib/libwhatever.so"); } catch( Exception e ) { e.printStackTrace(); } } Just a suggestion...;-) Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: very urgent
Iwan Eising wrote: You don't have to unjar the file. It works in a zip or jar file just the same. Iwan May I inquire as to how? -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)
David Thompson wrote: I am a linux newbie so this might be a stupid question but... I have linux 6.2 installed (using Redhat). I have Apache 1.3.14 running well. I have JDK 1.3 installed and working. Now to get to where I want to be, I want to get Tomcat 3.2 running with Apache. There are no RPM's for it as of last night (at least not at redhat.com) and I do not want to mess with the older version. Can I install the unix tars from apache.org on my system without building it myself? I would assume there are system specific things that would require a rebuild but I really do not want to deal with that right now. How long does it normally take to get RPMs on redhat.com for something like this? Any advice would be appreciated. thanks, dt In essence you can... As long as you have a supported JVM...;-) -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: Question about Linux install of Tomcat 3.2 (is there an RPM yet)
David Thompson wrote: What about the mod_jserv.so or whatever that connects Apache to Tomcat? dt it's now mod_jk.so..;-) -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: JNI in tomcat 3.1
yanjun wrote: Hello all, Where can I get the detail ( step by step) document about setting JNI in tomcat (3.1) ? Thanks in adv. yan jun Hello, Adding JNI to Tomcat (Stand-Alone mode) is the same as an ordinary program...;-) You just need to load the native libraries. It works...kinda...;-) In my solaris test machine...;-) I was just crazy or $#%)$#~ enough to add a jar file that wasn't supposed to be added in Tomcat's lib directory..;-) Using Tomcat 3.1 + Apache, now that's another story... And I'm afraid I haven't had much experience in that sort of thing. hope that helps. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Re: JNI in tomcat 3.1
yanjun wrote: Thanks for your kind. I am a beginner. :( And first step, "Adding JNI to Tomcat" , I also don't know to do it. Would you please guide me ? Thanks. Hello, Have you had some experience with creating Java programs that use the Java Native Interface (JNI)? If so, do you have a simple working program.. maybe even a hello world? Then the most telling question would be...Have you tried to create some simple Web Applications for Tomcat? If not then you may have to read the documentation that was part of your Tomcat 3.1 distribution. Hope that helps... Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \
Native Libraries Problem.
Hi, I have a servlet that uses classes and functions in a native library... Running a test java application went fine... LD_LIBRARY_PATH and the native *.so were in the right places... While trying to employ the same procedure in tomcat I get the following Message: java.lang.UnsatisfiedLinkError My development environment is as follows: Tomcat 3.1 Solaris 2.6 JDK 1.2.2 (japaense edition) Even RTFM would be appreciated if you can direct me to the right FM..;-) Thanks in advance.. Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 813-6274 \ \ / / email: [EMAIL PROTECTED]\ \