Running 2 Tomcat server and making one intranet
Hi Please guide me on the following I need to run two tomcat server for my sch assignment, one being Internet and the other Intranet on the same machine(different ports , 1 8080 the other 9080). Im using 4.0.2. I need to noe the steps for running 2 tomcat servers on the same machine and the configuration. next, how to make 1 of the server accessible only to local intranet and network? den means ppl from internet are able to access the server at abc.abc.abc.abc:8080 but not abc.abc.abc.abc:9080 another way is to make both of the web app running in 1 server, which one can be accessed by internet and the other intranet. Can someone guide me please? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 100% cpu on one of two processor
May i noe this memory leak problem occurs at which OS? or is it just linux? -Original Message- From: Chris Newland [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 14, 2002 11:51 PM To: Tomcat Users List Subject: RE: 100% cpu on one of two processor Hi, There is a known memory leak in javac (used to compile the JSP pages). This could be causing your Java VM to use up nearly all of its memory and start to perform heavy garbage collection. If you use the -Xms and -Xmx JVM switches (to set the initial and maximum heap sizes respectively) then your server should run for longer but will eventually run out of memory if it is compiling a lot of JSPs. I think it is possible to use a different compiler (such as Jikes or Pizza). e.g. java -Xms64M -Xmx256M classname (or as much memory as you want to allocate) You can set the Tomcat JVM sizes using (in catalina.sh) (this is for Tomcat 4) CATALINA_OPTS= -Xms64M -Xmx256M Hope this helps, Best Regards, Chris Newland -Original Message- From: Guillaume Radenkovic [mailto:[EMAIL PROTECTED]] Sent: 14 March 2002 15:36 To: [EMAIL PROTECTED] Subject: 100% cpu on one of two processor My configuration : Linux Redhat 7.1 Tomcat 3.2.4 PostgreSQL 7.0.x Sometimes, after some time, when JSP compiles on the server, this on can't display the page and on of the two cpu going to 100%. This happens on any JSP page . Need help ! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Running 2 Tomcat server and making one intranet
Hi Please guide me on the following I need to run two tomcat server for my sch assignment, one being Internet and the other Intranet on the same machine(different ports , 1 8080 the other 9080). Im using 4.0.2. I need to noe the steps for running 2 tomcat servers on the same machine and the configuration. next, how to make 1 of the server accessible only to local intranet and network? den means ppl from internet are able to access the server at abc.abc.abc.abc:8080 but not abc.abc.abc.abc:9080 another way is to make both of the web app running in 1 server, which one can be accessed by internet and the other intranet. Can someone guide me please? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
-Original Message- From: Halfmann, Klaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 3:54 PM To: Tomcat Users List I could think about the following reasons: a) a hard crash of the Java VM (may happen when using native code) b) Some code calls System.exit() c) You get to many OutOfMemory Exceptions eventually killing the VM -- Wat are native code? I really do not noe would u mind explaining? In case of a) there should be either a core dump or at least some System log. Try starting Tomcat in a console of its own and look what happens. -- Do u mean start in command prompt? b) Can be fighted by Starting Tomcat with a Security Manager prohibiting a call to System.exit(). Eventually you can trace the culprit then by looking for the SecurityException -- argh again how do i configure the security manager c) Monitor the Resource Usage of the Application and the logs In General setting the Debug level in the server.xml may give you some hints (For a proper shutdown the destroy() methods of Servlets) should be called. Hope you have enough space on your devices to log away 4-5 hours ... How do i set my debug level??? argh... im a real newbie... pls help... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in command promot, tomcat window comes up a while den disappear, if i do it with just startup there is no problem using win2k btw -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 4:17 PM To: Tomcat Users List Subject: Re: How to log shutting down of tomcat You can see tomcat's shutdown in /logs/catalina.out Run tail -f $CATALINA_HOME/logs/catalina.out Keith Ng wrote: is there anyway to log the shutting down of tomcat? My tomcat server tend to auto shutdown for unknown reasons. I have been trying to trace to no avail. Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i do not know. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
Btw i ran it this way C:\Tomcat-4.0.2\binstartup -f $CATALINA_HOME/logs/catalina.out Using CATALINA_BASE: C:\Tomcat-4.0.2 Using CATALINA_HOME: C:\Tomcat-4.0.2 Using CATALINA_TMPDIR: C:\Tomcat-4.0.2\temp Using JAVA_HOME: C:\jdk1.3.1 C:\Tomcat-4.0.2\bin -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 4:01 AM To: Tomcat Users List Subject: RE: How to log shutting down of tomcat I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in command promot, tomcat window comes up a while den disappear, if i do it with just startup there is no problem using win2k btw -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 4:17 PM To: Tomcat Users List Subject: Re: How to log shutting down of tomcat You can see tomcat's shutdown in /logs/catalina.out Run tail -f $CATALINA_HOME/logs/catalina.out Keith Ng wrote: is there anyway to log the shutting down of tomcat? My tomcat server tend to auto shutdown for unknown reasons. I have been trying to trace to no avail. Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i do not know. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.02 and 1.3.1 JVM
How did it crash? can u elaborate? Like when you are just starting tomcat 4.0.2? Or did it crash in the middle of the web application? wats the equalivance of ulimit -s 2048 on ms win2k? -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 8:29 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM I am using that combo and it crashed on me. I run Redhat 7.1. To get around it I just ran ulimit -s 2048 on the system before I tried to start tomcat and it worked fine from then on. -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:57 AM To: Tomcat Users List Subject: Tomcat 4.0.02 and 1.3.1 JVM Hi Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it will crash 1.3.1_02. Anyone using the same combination as me? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.02 and 1.3.1 JVM
well actually my problems are Tomcat 4.0.2 can start up very well in my win2k. its just that there are eccentric behaviour like shutting down automatically -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 10:01 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM When I started tomcat `service tomcat4 start`, the process would start up for a minute and then disappear. It would not show any error messages. But when I tried to stop the service (even though it failed) `sevice tomcat4 stop` , I would get a segmentation fault error from the jvm. This is a well documented error with tomcat and the jdk. I am pretty sure there is a setting with windows.. you have to change the memory settings within the dos window that you plan to run tomcat from. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt and search on out of environment space -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 8:51 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM How did it crash? can u elaborate? Like when you are just starting tomcat 4.0.2? Or did it crash in the middle of the web application? wats the equalivance of ulimit -s 2048 on ms win2k? -Original Message- From: Edward Haynes [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 8:29 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM I am using that combo and it crashed on me. I run Redhat 7.1. To get around it I just ran ulimit -s 2048 on the system before I tried to start tomcat and it worked fine from then on. -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 2:57 AM To: Tomcat Users List Subject: Tomcat 4.0.02 and 1.3.1 JVM Hi Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it will crash 1.3.1_02. Anyone using the same combination as me? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to log shutting down of tomcat
is there anyway to log the shutting down of tomcat? My tomcat server tend to auto shutdown for unknown reasons. I have been trying to trace to no avail. Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i do not know. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.02 stalling?
Using 1.3.1, 4.0.2 and It happens to me occassionally when i try to access from Internet -Original Message- From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 9:12 PM To: 'Tomcat Users List' Subject: RE: Tomcat 4.02 stalling? Reto Badertscher wrote: does it happen when a form is submitted? I have this kind of behaviour occasionally when submitting a form with many input fields - never tried with Tomcat 3.x. Yes, it happens when I submit a form. -- Joergen Ramskov -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.2 hangs
Are u doing database processing? -Original Message- From: Jarecsni Jnos [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 03, 2002 10:00 PM To: Tomcat-User Subject: Tomcat 4.0.2 hangs Hi, we noticed that after a few days of flawless operation, tomcat hangs right in the middle of generating a JSP. (Debian Linux, 2.x kernel, Tomcat 4.0.2 with Apache 1.3.x, SunJDK 1.4.0). Is it a known issue? When I tried to stop JBoss (which runs tomcat in embedded mode), with issuing kill -9 PID, one of the threads stays running. So tomcat hangs in a way that it cannot even be killed. Formerly we used JBoss 2.4.1 with Tomcat 3.2.3 and it ran for weeks without any problems. BTW, we must use the 1.4.0 JDK since TC 4.0.2 caused the 1.3.1_02 VM to crash. Should I download a new version of Tomcat? cheers, Jnos -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4.0.2 hangs --(Can tomcat 4.0.2 works with JVM 1.3.1?)
Hmmm i didnt noe tomcat 4.0.2 cause JVM 1.3.1_02 to crash... im using 1.3.1 , is it ok? Anyway, i was using ODBC-JDBC and it caused my tomcat to crash, hang at times even btw theres a new tomcat 4.0.2 version for downloading. It has fixed some bugs. why not try it first -Original Message- From: Jarecsni Jnos [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 03, 2002 10:44 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 4.0.2 hangs yes. postgres. but merely from within jboss |-Original Message- |From: Keith Ng [mailto:[EMAIL PROTECTED]] |Sent: Sunday, March 03, 2002 3:27 PM |To: Tomcat Users List |Subject: RE: Tomcat 4.0.2 hangs | | |Are u doing database processing? | |-Original Message- |From: Jarecsni Jnos [mailto:[EMAIL PROTECTED]] |Sent: Sunday, March 03, 2002 10:00 PM |To: Tomcat-User |Subject: Tomcat 4.0.2 hangs | | |Hi, | |we noticed that after a few days of flawless operation, tomcat hangs right |in the middle of generating a JSP. (Debian Linux, 2.x kernel, Tomcat 4.0.2 |with Apache 1.3.x, SunJDK 1.4.0). Is it a known issue? | |When I tried to stop JBoss (which runs tomcat in embedded mode), with |issuing kill -9 PID, one of the threads stays running. So tomcat hangs in a |way that it cannot even be killed. | |Formerly we used JBoss 2.4.1 with Tomcat 3.2.3 and it ran for weeks without |any problems. BTW, we must use the 1.4.0 JDK since TC 4.0.2 caused the |1.3.1_02 VM to crash. | |Should I download a new version of Tomcat? | |cheers, |Jnos | | |-- |To unsubscribe: mailto:[EMAIL PROTECTED] |For additional commands: mailto:[EMAIL PROTECTED] |Troubles with the list: mailto:[EMAIL PROTECTED] | | | | |_ | |Do You Yahoo!? | |Get your free @yahoo.com address at http://mail.yahoo.com | | | | |-- |To unsubscribe: mailto:[EMAIL PROTECTED] |For additional commands: mailto:[EMAIL PROTECTED] |Troubles with the list: mailto:[EMAIL PROTECTED] | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.02 and 1.3.1 JVM
Hi Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it will crash 1.3.1_02. Anyone using the same combination as me? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0.2 server crash
Ok this is a little off topic but i reli need help on this.. the odbc-jdbc bridge has crashed my tomcat more den 1 time and i need to ask if anyone here uses any type 3/4 drivers and finds it very stable?(like not crashing tomcat) and has very good perfromance? And btw... i noe for applets u definately have to use type 3 drivers, but for web applications(tomcat and jsp/servlets) which one is recommended ? 3 or 4? Im currently using ThinAccess 2.3 right now, and its type 3 driver , i used it for applets, but aint very sure if its good for jsp/servlets connections -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 11:23 PM To: Tomcat Users List Subject: RE: TOMCAT 4.0.2 server crash Microsoft licensed the Merant msSQL JDBC driver, it´s downloadable for free from the Microsoft website. Last time I checked it was quite good. hope it helps [EMAIL PROTECTED] -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: 1. mars 2002 15:12 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: TOMCAT 4.0.2 server crash Oooh I didnt noe tat matters. So wat about other drivers? which is thread safe and which is not? I also realise i do have many problems regarding database access. Im using MSSQL 2000 btw. whcih driver do u recommend? -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 7:43 PM To: 'Tomcat Users List' Subject: RE: TOMCAT 4.0.2 server crash Stop using the JDBC-ODBC bridge. Its not thread safe and will crash Tomcat (or any other JVM for that matter) that attempts concurrent database access. Randy -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:19 AM To: Tomcat Users List Subject: TOMCAT 4.0.2 server crash Hi I set up my tomcat server from home and then went to school to try access. for a while it was ok, but after repeatly doing many database queries and processing, suddenly i wasnt able to access the server. It returned a gateway timeout error. I den went home just now and realise the Tomcat does window is gone. I went to the log and track the following. ACCESS LOG === 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET /ps/jscripts/validateRegister.js HTTP/1.1 304 - 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 - //153.20.95.66 is my school's pc ip. its the last GET request 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET /ps/css/PSCSS.css HTTP/1.1 304 - == LOG 2002-03-01 13:42:40 jsp: init 2002-03-01 13:42:40 jsp: init 2002-03-01 13:43:27 jsp: init 2002-03-01 13:43:29 jsp: init 2002-03-01 13:43:45 jsp: init after this supposedly there is no more request from school pc i went home and found tomcat server dos window gone as u can see, there is no clear wat has happened at all. Is there any other logs i have missed regarding the auto shutdown of tomcat? Can anyone tell me wat could have happened to cause tomcat to auto shutdown? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
TOMCAT 4.0.2 server crash
Hi I set up my tomcat server from home and then went to school to try access. for a while it was ok, but after repeatly doing many database queries and processing, suddenly i wasnt able to access the server. It returned a gateway timeout error. I den went home just now and realise the Tomcat does window is gone. I went to the log and track the following. ACCESS LOG === 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET /ps/jscripts/validateRegister.js HTTP/1.1 304 - 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 - //153.20.95.66 is my school's pc ip. its the last GET request 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET /ps/css/PSCSS.css HTTP/1.1 304 - == LOG 2002-03-01 13:42:40 jsp: init 2002-03-01 13:42:40 jsp: init 2002-03-01 13:43:27 jsp: init 2002-03-01 13:43:29 jsp: init 2002-03-01 13:43:45 jsp: init after this supposedly there is no more request from school pc i went home and found tomcat server dos window gone as u can see, there is no clear wat has happened at all. Is there any other logs i have missed regarding the auto shutdown of tomcat? Can anyone tell me wat could have happened to cause tomcat to auto shutdown? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0.2 server crash
Oooh I didnt noe tat matters. So wat about other drivers? which is thread safe and which is not? I also realise i do have many problems regarding database access. Im using MSSQL 2000 btw. whcih driver do u recommend? -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 7:43 PM To: 'Tomcat Users List' Subject: RE: TOMCAT 4.0.2 server crash Stop using the JDBC-ODBC bridge. Its not thread safe and will crash Tomcat (or any other JVM for that matter) that attempts concurrent database access. Randy -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:19 AM To: Tomcat Users List Subject: TOMCAT 4.0.2 server crash Hi I set up my tomcat server from home and then went to school to try access. for a while it was ok, but after repeatly doing many database queries and processing, suddenly i wasnt able to access the server. It returned a gateway timeout error. I den went home just now and realise the Tomcat does window is gone. I went to the log and track the following. ACCESS LOG === 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET /ps/jscripts/validateRegister.js HTTP/1.1 304 - 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 - //153.20.95.66 is my school's pc ip. its the last GET request 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET /ps/css/PSCSS.css HTTP/1.1 304 - == LOG 2002-03-01 13:42:40 jsp: init 2002-03-01 13:42:40 jsp: init 2002-03-01 13:43:27 jsp: init 2002-03-01 13:43:29 jsp: init 2002-03-01 13:43:45 jsp: init after this supposedly there is no more request from school pc i went home and found tomcat server dos window gone as u can see, there is no clear wat has happened at all. Is there any other logs i have missed regarding the auto shutdown of tomcat? Can anyone tell me wat could have happened to cause tomcat to auto shutdown? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TOMCAT 4.0.2 server crash
Hi tat msSql jdbc driver is for both 7 and 2000? -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 11:23 PM To: Tomcat Users List Subject: RE: TOMCAT 4.0.2 server crash Microsoft licensed the Merant msSQL JDBC driver, it´s downloadable for free from the Microsoft website. Last time I checked it was quite good. hope it helps [EMAIL PROTECTED] -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: 1. mars 2002 15:12 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: TOMCAT 4.0.2 server crash Oooh I didnt noe tat matters. So wat about other drivers? which is thread safe and which is not? I also realise i do have many problems regarding database access. Im using MSSQL 2000 btw. whcih driver do u recommend? -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 7:43 PM To: 'Tomcat Users List' Subject: RE: TOMCAT 4.0.2 server crash Stop using the JDBC-ODBC bridge. Its not thread safe and will crash Tomcat (or any other JVM for that matter) that attempts concurrent database access. Randy -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 4:19 AM To: Tomcat Users List Subject: TOMCAT 4.0.2 server crash Hi I set up my tomcat server from home and then went to school to try access. for a while it was ok, but after repeatly doing many database queries and processing, suddenly i wasnt able to access the server. It returned a gateway timeout error. I den went home just now and realise the Tomcat does window is gone. I went to the log and track the following. ACCESS LOG === 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] GET /ps/jscripts/validateRegister.js HTTP/1.1 304 - 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] GET /ps/jscripts/validateAdvSearch.js HTTP/1.1 304 - //153.20.95.66 is my school's pc ip. its the last GET request 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] GET /ps/css/PSCSS.css HTTP/1.1 304 - == LOG 2002-03-01 13:42:40 jsp: init 2002-03-01 13:42:40 jsp: init 2002-03-01 13:43:27 jsp: init 2002-03-01 13:43:29 jsp: init 2002-03-01 13:43:45 jsp: init after this supposedly there is no more request from school pc i went home and found tomcat server dos window gone as u can see, there is no clear wat has happened at all. Is there any other logs i have missed regarding the auto shutdown of tomcat? Can anyone tell me wat could have happened to cause tomcat to auto shutdown? Thanks... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Nice Tomcat+apache beginner site
Hi I have found a website that describes very clearly how to set up tomcat and apache side by side. Its pretty useful and those who are having problems might wan to check it out. http://www.webmasterbase.com/article/305 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Nice Tomcat+apache beginner site
Sorry. That link was the last page of tat artcile here it is again guys http://www.webmasterbase.com/article.php?pid=0aid=305 -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Monday, March 04, 2002 7:15 PM To: Tomcat Users List Subject: Nice Tomcat+apache beginner site Hi I have found a website that describes very clearly how to set up tomcat and apache side by side. Its pretty useful and those who are having problems might wan to check it out. http://www.webmasterbase.com/article/305 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
2 instance of tomcat within 1 machine
Hi I need to run two different server of tomcat 4.0.2 within one machine tried running two instances of tomcat-4.0.2 startup and its not possible one is for internet, the other is for intranet, therefore both should have different port, but same IP address also, how do i disable the web from accessing tat port(server) if my machine is connected to the internet and anyone who tried to access tat port or webapp from within intranet to provide password? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 2 instance of tomcat within 1 machine
Which version of tomcat are u using? im using 4.0.2 how did u configure? Must i have more then 1 copy of tomcat? I really dunno... pls help -Original Message- From: remy.menetrieux [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 5:52 PM To: Tomcat Users List Subject: Re: 2 instance of tomcat within 1 machine Actually i have 3 different server of tomcat on the same machine and it's work perfectly ... which configuration files have you ?? REmY Keith Ng wrote: Hi I need to run two different server of tomcat 4.0.2 within one machine tried running two instances of tomcat-4.0.2 startup and its not possible one is for internet, the other is for intranet, therefore both should have different port, but same IP address also, how do i disable the web from accessing tat port(server) if my machine is connected to the internet and anyone who tried to access tat port or webapp from within intranet to provide password? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Servlet POST results in 404 error
Hi John, have u solved it already? someone here said that u might not have define yr post method would u care to show us yr post mthod?(whole defination) pls do the following. add a System.out.println(post method invoked); under your post method implemention for us to see. Is tat post method even invoked? -Original Message- From: John Wadkin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:11 AM To: Tomcat Users List (E-mail) Subject: Servlet POST results in 404 error All, TomCat 4.0.1 Apache 1.3 mod_WebApp Solaris 8 I have a servlet that returns a 404 error whenever a POST is sent. GET works fine. The servlet uses sessions - not sure if this has anything to do with it. My server.xml just defines a context and a logger. The web.xml has a servlet name and mapping, nothing more. The servlet was originally written for JServ - could this have something to do with it? There's nothing in the logs. I'm not a servlet programmer so I have no ideas! Any suggestions?? Thanks, John -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 2 instance of tomcat within 1 machine
John would u pls send me yr copy of the bat file? Thank... -Original Message- From: John Niven [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 9:49 PM To: 'Tomcat Users List' Subject: RE: 2 instance of tomcat within 1 machine Hi Keith (response inline) This is supplementary info to Remy's: I think we've both got different set-ups. -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: 2 March 2002 11:40 To: Tomcat Users List Subject: RE: 2 instance of tomcat within 1 machine Which version of tomcat are u using? im using 4.0.2 I've recently got 5 instances running on one 'lil-ole workstation, used for personal development work. My goal was to have multiple instances that I could mess around with, without destroying the live (documentation, examples, etc) server. how did u configure? Must i have more then 1 copy of tomcat? No. I've installed tomcat (4.0.2) on my D: drive (should have said: Windows 2000 Pro, 2 hard-drives with multiple partitions - D: is apps, I: is development) and the various instances on my I: drive: CATALINA_HOME: D:\tomcat\ CATALINA_BASEs: i:\tomcat-servers\server01\ i:\tomcat-servers\server02\ i:\tomcat-servers\server03\ etc Follow the instructions in running.txt for which directories to copy - I'm at work just now (JRun ;-( ) but off-hand I think it's bin, conf, lib webapps. Within /conf, you need to edit server.xml so the various ports don't conflict. Eg. if the CATALINA_HOME/conf/server.xml uses port 8080, /server01/conf/server.xml could be 8081 for example. There are three locations in the server.xml which I edited - I don't have the file to hand at the moment, but if you'd like a copy I can post it tonight/tomorrow. Once you've created the directory heirarchy, and edited the server.xml files, you should be able to start your new instances from the command line/shell. I'm lazy, so I just edited the catalina.bat files in /server0x/bin/ to set CATALINA_BASE and CATALINA_HOME - again, if you'd like a copy I'll post it tomorrow. I really dunno... pls help Basically, most of the info is in running.txt from your Tomcat install. I found the only real gotcha was that I needed to renumber the ports. Once I'd got that sorted out the rest was plain sailing ;) Best of luck, and if you're still stuck let me know and I'll post files. Cheers John -- John Niven Reply via mailing-list. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
J2EE, JSP, SERVLETS
Hi guys There has been a question thats bugging me for qute some time. I noticed many bank sites, or big companies use JSP/SERVLETS for their websites. Is there a particular reason why jsp/servlets are preferred over asp/php/coldfusion? I even realise a site (dbs.com.sg)using applet textfield as their forms ... isit supposed to be more secure this way? Can someone clear my doubts? thanks _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Servlet/JSP design,standard and guidelines, please help
Hi guys I need to noe how u guys design yr servlet/jsp for lets say displaying a search result for e.g. the normal way would be embedding all the code within a jsp page connectionBean is a javabean to connect to database.. % //inistialise connection bean ... //pseudo code... declare resultset and stuffs... //rs= connectionBean.executeQUery() //while rs.next(){ % %=rs.getString(id);% br %=rs.getString(name);% % } //. % Yes, i do use a servlet as a controller for all my jsp pages and most of my logic up to now are in servlets but how shd i keep my logic in such cases?(displaying rs result) or shd i pass RS to my jsp from servlet as request.setAttribute(rs,rs) instead? or even create a javabean to hold the logic? Im not too good at designing the pattern so i reli need yr opinion on which is the better , practical design method. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2EE, JSP, SERVLETS
nono dun get me wrong im currently doing a J2EE project based on servlets/jsp/javamail/jdbc/possibly EJB(low possibility) there are 2 things i need to do. 1)i need to noe if i ve been missing out on some of the capabilities, which i did not implement 2) i need to write in my report the major advantages my web application has over the others. I noe jsp/servlets are the best around but i cant quite explain. However, some kind souls have emailed me and explained to me and help clear some of my doubts. -Original Message- From: Rick K [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 3:41 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: J2EE, JSP, SERVLETS --- Keith Ng [EMAIL PROTECTED] wrote: Hi guys There has been a question thats bugging me for qute some time. I noticed many bank sites, or big companies use JSP/SERVLETS for their websites. Is there a particular reason why jsp/servlets are preferred over asp/php/coldfusion? I even realise a site (dbs.com.sg)using applet textfield as their forms ... isit supposed to be more secure this way? Can someone clear my doubts? thanks Why does it bug you that big companies use servlets and JSP? Why do you have doubts about Java? __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.0.2 CATALINA_BASE and CATALINA_HOME
Hi Im using tomcat 4.0.2 for the first time after converting from 3.3a. Would like to noe whether i need to set any environment variables for CATALINA_BASE and CATALINA_HOME? Im using J2EE.jar from my J2EE1.3 RI folder to compile my codes in servlets and jsp. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
3.3a, cant find file when refresh
Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
Hi again Decided to elaborate as i think wat i said is too abstract I tried to run this url http://localhost:8080/PS/jsp/index.jsp it has the following file jsp:include page = ../jsp/PSTemplate.htm flush = true/ however, when first loaded gives me Error: 200 Location: /PS/jsp/index.jsp den refresh its normal, refresh again ERROR comes out again. Note tat error comes out in Browser. As for the startup dos window, i see nuthin. Pleas ehelp... :( -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:53 PM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
Thanks larry, u helped me clarify an issue. Can u please help me with my other problem? Its regarding the ERROR:200 i get on my browser when i refresh... -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:07 AM To: 'Tomcat Users List' Subject: RE: 3.3a, cant find file when refresh This technically isn't an error. It indicates that the browser, realized that the Threadmill.jpg it is reading during the refresh isn't any newer than the Threadmill.jpg it has already cached locally. In order to save time, the browse simply closed the connection and used the local copy of Threadmill.jpg. Because the browser closed the connection before it read all the data, it causes Tomcat to generate the log output you see. Cheers, Larry -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 10:53 AM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == == == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == == == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: 3.3a, cant find file when refresh
Hi I just solved this very weird problem. Im using IE 6.0. i added a blank line to my jsp file from the top, and tat solves the whole problem.. strangely enuf... e.g. line 1: line 2: jsp:include page = ../jsp/PSTemplate.htm flush = true/ and the whole problem is gone. The page works fine even after refreshing. Theres no more ERROR:200. Whats going on can someone explain to me...??? -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:48 AM To: 'Tomcat Users List' Subject: RE: 3.3a, cant find file when refresh Which browser are you using? Also, what is content of the source files involved, preferably simplified so only that which is need to duplicate the problem is included? Cheers, Larry -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:33 AM To: Tomcat Users List Subject: RE: 3.3a, cant find file when refresh Thanks larry, u helped me clarify an issue. Can u please help me with my other problem? Its regarding the ERROR:200 i get on my browser when i refresh... -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 12:07 AM To: 'Tomcat Users List' Subject: RE: 3.3a, cant find file when refresh This technically isn't an error. It indicates that the browser, realized that the Threadmill.jpg it is reading during the refresh isn't any newer than the Threadmill.jpg it has already cached locally. In order to save time, the browse simply closed the connection and used the local copy of Threadmill.jpg. Because the browser closed the connection before it read all the data, it causes Tomcat to generate the log output you see. Cheers, Larry -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 10:53 AM To: Tomcat Users List Subject: 3.3a, cant find file when refresh Hi Guys I have a html file which is included in a jsp page using the following method jsp:include page = ../jsp/PSTemplate.htm flush = true/ When I first load the page, everythings shows up as normal, but when I refresh, the browser doesnt load it and gives me ERROR:200. I recall it was the same with my previous assignmnet, which I tried to load a image file which gets loaded sometimes and other times it can be loaded. ERROR STATEMENT: == == == 2002-02-19 23:40:55 - SessionIdGenerator: Created random class java.security.SecureRandom 2002-02-19 23:41:24 - Ctx(/PS) : IOException in R( /PS + /images/Threadmill.jpg + null) - java.net.SocketException: Connection aborted by peer: socket write error == == == I have deduced for this case, its because it cant load a certain JPG file intermittenly, causing the rest of the page to have problems. How can i solve this? _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: WAR file created in Tomcat cant run in J2EE RI
BTW, it works in TOMCAT as of 3.2.3 -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 1:13 AM To: Tomcat Users List Subject: WAR file created in Tomcat cant run in J2EE RI Hi guys I have finally succeeded in making my WAR file and transferring over to J2EE RI(by depolying) to run. However. i still get a minor glitch while trying to run in J2EE's Server ERROR org.apache.jasper.JasperException: Unable to compile class for JSPnullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyz LoginForm_jsp.java:4: Class or interface declaration expected. import javax.servlet.*; ^ nullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyzLog inForm_jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp._0002fjsp_0002fxyzLoginForm_jsp not found. public class _0002fjsp_0002fxyzLoginForm_jsp extends HttpJspBase { ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) 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.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) 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.StandardContext.invoke(StandardContext.java:2314) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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: 995) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1088 ) at java.lang.Thread.run(Thread.java:484) === JSP file == %@ page import = java.util.Calendar; % !-- LOGIN FORM(absolute positioning) -- jsp:useBean id=memberBean class=user.UserBean scope=session/ !--To set the id to retrieve from the database,use setProperty in InqBean-- P style=LEFT: 14px; POSITION: absolute; TOP: 200px % if (!memberBean.isUserValid()){ % FORM name = loginForm method = post onSubmit = return checkText2() action=../jsp/login.jsp TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT
WAR file created in Tomcat cant run in J2EE RI
Hi guys I have finally succeeded in making my WAR file and transferring over to J2EE RI(by depolying) to run. However. i still get a minor glitch while trying to run in J2EE's Server ERROR org.apache.jasper.JasperException: Unable to compile class for JSPnullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyz LoginForm_jsp.java:4: Class or interface declaration expected. import javax.servlet.*; ^ nullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyzLog inForm_jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp._0002fjsp_0002fxyzLoginForm_jsp not found. public class _0002fjsp_0002fxyzLoginForm_jsp extends HttpJspBase { ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) 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.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) 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.StandardContext.invoke(StandardContext.java:2314) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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: 995) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1088 ) at java.lang.Thread.run(Thread.java:484) === JSP file == %@ page import = java.util.Calendar; % !-- LOGIN FORM(absolute positioning) -- jsp:useBean id=memberBean class=user.UserBean scope=session/ !--To set the id to retrieve from the database,use setProperty in InqBean-- P style=LEFT: 14px; POSITION: absolute; TOP: 200px % if (!memberBean.isUserValid()){ % FORM name = loginForm method = post onSubmit = return checkText2() action=../jsp/login.jsp TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid TRTDspan style = font-family:Arial;font-size:8ptLogin : nbsp; INPUT name=memberId size=8 maxlength = 12 style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid;
RE: WAR file created in Tomcat cant run in J2EE RI
Hey Guys i took a peak at the file in the repository folder at C:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyz LoginForm_jsp and i found this... package org.apache.jsp; import java.util.Calendar;; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; public class _0002fjsp_0002fxyzLoginForm_jsp extends HttpJspBase { // begin [file=/jsp/xyzLoginForm.jsp;from=(4,0);to=(4,68)] // end now i realise wat the god damn problem is! I actually accidentally add a ; to the end of %@ page import = java.util.Calendar; % this is a expensive error... g...! Just to update u guys... and for those who have provided me help for the past 3-4 days... I really must thanks u all a lot.. esp to guys like Craig,Chris,Randy,Sophie,Loic,rsequeira,reynir. thanks a lot ! I have one conclusion to make, i dunno if its been made already... anyway... could be due to the old version im using... but it seems tomcat is a lot more lenient den the J2EE RI... well could be a bug i dunno.. -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 1:13 AM To: Tomcat Users List Subject: WAR file created in Tomcat cant run in J2EE RI Hi guys I have finally succeeded in making my WAR file and transferring over to J2EE RI(by depolying) to run. However. i still get a minor glitch while trying to run in J2EE's Server ERROR org.apache.jasper.JasperException: Unable to compile class for JSPnullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyz LoginForm_jsp.java:4: Class or interface declaration expected. import javax.servlet.*; ^ nullC:\j2sdkee1.3\repository\kangkong1\web\TESTEST\jsp\_0002fjsp_0002fxyzLog inForm_jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp._0002fjsp_0002fxyzLoginForm_jsp not found. public class _0002fjsp_0002fxyzLoginForm_jsp extends HttpJspBase { ^ 2 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) 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.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) 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.StandardContext.invoke(StandardContext.java:2314) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368) 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
RE: J2EE and Tomcat
Nice to see u reply again... I have made a WAR file and tried to create a new Web Componet by adding a new WAR file, unfortunately tat doesnt work very well... well anwyay i have given up all hope of using the J2EE RI. I will just stick to TOMCAT and just wondering, is JavaMail separately available from sun..? Its a very important feature in J2EE i need to use and now i have given up usage of J2EE RI, i guess i will have to download it separately.. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 12:55 AM To: Keith Ng Cc: Tomcat Users List Subject: RE: J2EE and Tomcat On Sat, 16 Feb 2002, Keith Ng wrote: Date: Sat, 16 Feb 2002 14:08:50 +0800 From: Keith Ng [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED], Tomcat Users List [EMAIL PROTECTED] Subject: RE: J2EE and Tomcat Hi Craig I saw yr very reasonable explaination and have understood a lot more den i used to. Thanks... =) However, I have tried to deploy my Tomcat application using J2EE server like the one provided by SUN. I tried two methods. One by moving the entire folder to public_html and also by trying to deploy. Both methods doesnt works when it comes to locating certain javabean classes i placed under web-inf--classes--FOLDER.(not EJB) ... wat seems to work just fine doesnt seem to work at all in J2EE. I do not think therefore I can develop using tomcat and deploy using a J2EE server. When you use Tomcat, you have to deploy applications the way that Tomcat tells you to. When you use any other server, you have to deploy applications the way that *that* documentation tells you to. You cannot make any assumptions about just because Tomcat does it that way on these kinds of mechanics. The only thing that is guaranteed to be portable is a WAR file (not a directory), in the correct internal format, that contains *all* of the classes you need in WEB-INF/classes or WEB-INF/lib. What you are describing for directory structure isn't valid Java, so it's not going to work on any container. Craig -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:03 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: J2EE and Tomcat On Thu, 14 Feb 2002, Keith Ng wrote: Date: Thu, 14 Feb 2002 20:38:18 +0800 From: Keith Ng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: J2EE and Tomcat Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1 specifications (these match up with J2EE 1.2). Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which are the versions included in J2EE 1.3. In general these specs are backwards compatible so that your older webapps will still run. 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT If your applications don't require EJBs, it is very reasonable to do your development under Tomcat and then deploy on a J2EE server. Just be sure you don't rely on Tomcat-specific features in your applications. Hope someone can enlighten me. Thanks ;) Craig _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2EE and Tomcat
Hi Thanks for replying.. I have gone to JAF site and may I know what is the framework for? Also U said the WAR file shd be in the document root? ok let me demo how i made my WAR file. in my webapp directory, I did a jar -cvf EADassg.war EADassg in which EADassg is my assignment folder. Is tat the rite way? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 4:31 AM To: Tomcat Users List Subject: RE: J2EE and Tomcat You could download the javamail implemenation from: http://java.sun.com/products/javamail/index.html You will need the java avtication framework as well: http://java.sun.com/products/javabeans/glasgow/jaf.html Thanks. RS Keith Ng [EMAIL PROTECTED] on 02/17/2002 02:18:29 PM Please respond to Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] cc: Subject: RE: J2EE and Tomcat Nice to see u reply again... I have made a WAR file and tried to create a new Web Componet by adding a new WAR file, unfortunately tat doesnt work very well... well anwyay i have given up all hope of using the J2EE RI. I will just stick to TOMCAT and just wondering, is JavaMail separately available from sun..? Its a very important feature in J2EE i need to use and now i have given up usage of J2EE RI, i guess i will have to download it separately.. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 17, 2002 12:55 AM To: Keith Ng Cc: Tomcat Users List Subject: RE: J2EE and Tomcat On Sat, 16 Feb 2002, Keith Ng wrote: Date: Sat, 16 Feb 2002 14:08:50 +0800 From: Keith Ng [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED], Tomcat Users List [EMAIL PROTECTED] Subject: RE: J2EE and Tomcat Hi Craig I saw yr very reasonable explaination and have understood a lot more den i used to. Thanks... =) However, I have tried to deploy my Tomcat application using J2EE server like the one provided by SUN. I tried two methods. One by moving the entire folder to public_html and also by trying to deploy. Both methods doesnt works when it comes to locating certain javabean classes i placed under web-inf--classes--FOLDER.(not EJB) ... wat seems to work just fine doesnt seem to work at all in J2EE. I do not think therefore I can develop using tomcat and deploy using a J2EE server. When you use Tomcat, you have to deploy applications the way that Tomcat tells you to. When you use any other server, you have to deploy applications the way that *that* documentation tells you to. You cannot make any assumptions about just because Tomcat does it that way on these kinds of mechanics. The only thing that is guaranteed to be portable is a WAR file (not a directory), in the correct internal format, that contains *all* of the classes you need in WEB-INF/classes or WEB-INF/lib. What you are describing for directory structure isn't valid Java, so it's not going to work on any container. Craig -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:03 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: J2EE and Tomcat On Thu, 14 Feb 2002, Keith Ng wrote: Date: Thu, 14 Feb 2002 20:38:18 +0800 From: Keith Ng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: J2EE and Tomcat Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1 specifications (these match up with J2EE 1.2). Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which are the versions included in J2EE 1.3. In general these specs are backwards compatible so that your older webapps will still run. 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT If your applications don't require EJBs, it is very reasonable to do your development under Tomcat and then deploy on a J2EE server. Just be sure you don't rely on Tomcat-specific features in your applications. Hope someone can enlighten me. Thanks ;) Craig _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands
RE: J2EE and Tomcat
Hi Craig I saw yr very reasonable explaination and have understood a lot more den i used to. Thanks... =) However, I have tried to deploy my Tomcat application using J2EE server like the one provided by SUN. I tried two methods. One by moving the entire folder to public_html and also by trying to deploy. Both methods doesnt works when it comes to locating certain javabean classes i placed under web-inf--classes--FOLDER.(not EJB) ... wat seems to work just fine doesnt seem to work at all in J2EE. I do not think therefore I can develop using tomcat and deploy using a J2EE server. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:03 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re: J2EE and Tomcat On Thu, 14 Feb 2002, Keith Ng wrote: Date: Thu, 14 Feb 2002 20:38:18 +0800 From: Keith Ng [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: J2EE and Tomcat Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1 specifications (these match up with J2EE 1.2). Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which are the versions included in J2EE 1.3. In general these specs are backwards compatible so that your older webapps will still run. 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT If your applications don't require EJBs, it is very reasonable to do your development under Tomcat and then deploy on a J2EE server. Just be sure you don't rely on Tomcat-specific features in your applications. Hope someone can enlighten me. Thanks ;) Craig _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
J2EE and Tomcat
Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT Hope someone can enlighten me. Thanks ;) _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: J2EE and Tomcat
LOL Im pretty fascinated... just read the archieve at http://www.apachelabs.org/tomcat-user/200202.mbox/%3c3C6A9855.D93CBA66@veriz on.net%3e yes... we have roughly the same question, and same name! :) Hopefully someone answers our question asap =/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Keith Simpson Sent: Thursday, February 14, 2002 9:00 PM To: Tomcat Users List Subject: Re: J2EE and Tomcat How very ironic - we have the same name - and we have the same question! I put mine out yesterday. Is this a parallel universe or something? I am running 3.3 tomcat on my dev platform and need to use javamail. (which can be picked up separately or in j2ee) We are developing a new product with JSP (used to be all servlets) and I find that there is a problem when it comes to compiling the JSP when I replace servlet.jar with j2ee.jar Otherwise, I believe it works just fine. (that's a big stumbling block) I am wondering if I am going to need to go to tomcat 4 - or what - to get around this one. My issue with 4 is that I will have to migrate it to my production environment (apache/tomcat), and that we resell to others with all sorts of app servers. I will be watching for your replies to this one... Keith Ng wrote: Hi Guys I just joined in, Happy Chinese New Year, esp to the all the Chinese here. I have the following query, its not exactly a TOMCAT question but I figured people here can help. I have installed J2EE and have previously used TOMCAT. Therefore I have the following queries 1)There are many versions of TOMCAT, but Im only using a pretty old version, like 3.2.2. I want to try run my web application on a J2EE server. Are both J2EE and TOMCAT using the same specifications for JSP and SERVLETS? Currently using J2EE 1.3 ... 2)Am I supposed to continue using TOMCAT to develop web applications for deployment in J2EE? I certainly do not know how to do the same with J2EE what I have learnt with TOMCAT Hope someone can enlighten me. Thanks ;) _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Application in Tomcat 3.2.2 wun work in J2EE?
Ok. I have decided to provide a clear example. I have moved a webapp folder to J2EE's Public_html there is this file, which works completely fine in tomcat. = %@ page import = java.util.Calendar; % !-- LOGIN FORM(absolute positioning) -- jsp:useBean id=memberBean class=user.UserBean scope=session/ !--To set the id to retrieve from the database,use setProperty in InqBean-- P style=LEFT: 14px; POSITION: absolute; TOP: 200px % if (!memberBean.isUserValid()){ % FORM name = loginForm method = post onSubmit = return checkText2() action=../jsp/login.jsp TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid TRTDspan style = font-family:Arial;font-size:8ptLogin : nbsp; INPUT name=memberId size=8 maxlength = 9 style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid /span/TD/TR TRTDspan style = font-family:Arial;font-size:8ptPassword : INPUT type=password name=password size=5 maxlength = 10 style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid /span/TD/TR TR TD align=left INPUT style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 9pt type=submit value=Login /TD /TR /TABLE /FORM % } else{ Calendar cal = Calendar.getInstance(); % TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid width = 110 TRTDspan style = font-family:Arial;font-size:8ptLogin as :br bjsp:getProperty name=memberBean property=memberId //bbr Login time : brb %=cal.getTime()%/b /span/TD/TR /TABLE % } % /P but it simply wun work in J2EE's server. It gives an error liek this. === A Servlet Exception Has Occurred Exception Report: org.apache.jasper.JasperException: user.UserBean at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18 3) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato r.java:102) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java:831) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java:241) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:197) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:215) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:176) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:188) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterCh ain.java:197) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) 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.core.StandardContextValve.invoke(StandardContextValve.ja va:215) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) 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.StandardContext.invoke(StandardContext.java:2314) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66)
RE: Application in Tomcat 3.2.2 wun work in J2EE?
Hi Thanks for replying. You see, all I wanted to do is to run all my pages within the J2EE1.3 specification folder and use only the J2EE server to host all my servlets and JSP. Im on a school assignment and have always used TOMCAT until I realised I could be using EJB in future. Its just an assignment I would present so I do not want it to be too complex. The familiar way I have always worked with Servlets and JSP are creating a new folder , add some configuration files all within WEBAPPS folder in TOMCAT. Then I will compile using servlet.jar in the lib. However, since downloading this J2EE, I guess I would be using the public_html folder in J2SDKee1.3 to act like webapp in tomcat, and I do not think i would be using the deployment tool. had used it and found it quite hard. However, it cant seem to compile some of my jsp files like before in tomcat. Im still a newbie, so I reli need help and advice -Original Message- From: sophie [mailto:sophie]On Behalf Of sophie fischer Sent: Thursday, February 14, 2002 10:54 PM To: Tomcat Users List Subject: Re: Application in Tomcat 3.2.2 wun work in J2EE? Hi Keith, I am not completely sure what you intend to do, but I am running myself a J2EE application with Apache, Tomcat and Jonas servers. The Apache server is used for handling static HTML pages, the Tomcat server is used for handling JSP's and servlets. The Jonas server is used for handling requests to enterprise beans. You need a special J2EE server for the entity beans. Jonas is a free server, developed by Evidian (www.evidian.com). They have good documentation, and good mailing lists. I am running Tomcat 3.2.1 with Jonas. I have tried to run Tomcat 4.0.1 with Jonas, but unfortunately have not been able yet to get that working. Another free J2EE server is JBOSS, at least it is mentioned several times in the archives. I have no experience with it myself, but the reactions are positive. I do not know which versions of J2EE specifications are supported by any of the servers mentioned. It is always stated, but I forgot about them. Hope this helps, Sophie Keith Ng wrote: Ok. I have decided to provide a clear example. I have moved a webapp folder to J2EE's Public_html there is this file, which works completely fine in tomcat. = %@ page import = java.util.Calendar; % !-- LOGIN FORM(absolute positioning) -- jsp:useBean id=memberBean class=user.UserBean scope=session/ !--To set the id to retrieve from the database,use setProperty in InqBean-- P style=LEFT: 14px; POSITION: absolute; TOP: 200px % if (!memberBean.isUserValid()){ % FORM name = loginForm method = post onSubmit = return checkText2() action=../jsp/login.jsp TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid TRTDspan style = font-family:Arial;font-size:8ptLogin : nbsp; INPUT name=memberId size=8 maxlength = 9 style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid /span/TD/TR TRTDspan style = font-family:Arial;font-size:8ptPassword : INPUT type=password name=password size=5 maxlength = 10 style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid /span/TD/TR TR TD align=left INPUT style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; FONT-SIZE: 9pt type=submit value=Login /TD /TR /TABLE /FORM % } else{ Calendar cal = Calendar.getInstance(); % TABLE style=BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid width = 110 TRTDspan style = font-family:Arial;font-size:8ptLogin as :br bjsp:getProperty name=memberBean property=memberId //bbr Login time : brb %=cal.getTime()%/b /span/TD/TR /TABLE % } % /P but it simply wun work in J2EE's server. It gives an error liek this. === A Servlet Exception Has Occurred Exception Report: org.apache.jasper.JasperException: user.UserBean at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18 3) at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerato r.java:102) at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(J spParseEventListener.java:831) at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventLi stener.java:241) at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseE ventListener.java:197