RE: help in setting up
Ganesan: You can download the latest and greatest version of Tomcat, unzip it and run the batch file to start it up. That's all to it. -Original Message- From: ganesan malairaja [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 11:42 PM To: tomcat-user@jakarta.apache.org Subject: help in setting up hi guys i know that to settup tomcat , there no need for apache i wanna know what java i should use is it j2dk or j2ee because i saw some example that uses both.. i am going to run JSP to retrieve info from database i need guide on how to setup tomcat .. ie what java version i shoud use. any links also would be helpfull .. consider a newbie case thanks guys .. ur help is appreaciated. htmlDIV DIVFONT color=#cc face=Lucida Handwriting, CursiveEMSTRONGIMG height=16 src=http://graphics.hotmail.com/emarrow_right.gif; width=16Ganesan_MalairajaIMG height=16 src=http://graphics.hotmail.com/emarrow_left.gif; width=16/STRONG/EM/FONT/DIV/DIV/html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP-Servlet tutorial
Can somebody direct me to a tutorial on jsp/servlet that pulls data from a database and displays the content via a jsp? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Form-based security
Omar! Aha! Even the autherr.html page seems to be protected by the form-based security. When I try to open autherr.html by the url, http://127.0.0.1:8080/MyFirst/autherr.html, I get the login page! How would I unprotect it? Thanks. -Original Message- From: Omar Adobati [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:31 AM To: Tomcat Users List Subject: Re: Form-based security what happen if you load tour error page using the address bar? can you see it? Isn't a path matter? regards, Omar On Wed, 19 Jan 2005 00:06:20 -0500, Venkat Radha Venkataramanan [EMAIL PROTECTED] wrote: Hello: I just wrote my first form-based security control. It works fine if I sign with a user id that plays the permitted role. But when I enter a user id that does not play the permitted role, instead of getting my customized error page, autherr.html, I get a generic 403 error. Can somebody tell me what I am doing wrong? Thanks. Venkat Web.xml section: security-constraint web-resource-collection web-resource-nameMyFirst/web-resource-name description accessible by authenticated users of the tomcat role/description url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint descriptionThese roles are allowed access/description role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameMyFirst Protected Area/realm-name form-login-config form-login-page/login.html/form-login-page form-error-page/autherr.html/form-error-page /form-login-config /login-config security-role descriptionOnly 'tomcat' role is allowed to access this web application/description role-nametomcat/role-name /security-role - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Adobati Omar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form-based security
Hello: I just wrote my first form-based security control. It works fine if I sign with a user id that plays the permitted role. But when I enter a user id that does not play the permitted role, instead of getting my customized error page, autherr.html, I get a generic 403 error. Can somebody tell me what I am doing wrong? Thanks. Venkat Web.xml section: security-constraint web-resource-collection web-resource-nameMyFirst/web-resource-name description accessible by authenticated users of the tomcat role/description url-pattern/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint descriptionThese roles are allowed access/description role-nametomcat/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameMyFirst Protected Area/realm-name form-login-config form-login-page/login.html/form-login-page form-error-page/autherr.html/form-error-page /form-login-config /login-config security-role descriptionOnly 'tomcat' role is allowed to access this web application/description role-nametomcat/role-name /security-role - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why am I getting this authentication window
Hello: I am running Tomcat 5.0. I installed it about 2 months back and I have been learning the ropes these days. This morning when I tried to go into the Manager application and/or the admin application (http://127.0.0.1:8080/admin/), I get an authentication box: I dont know why all of a sudden I get this dialog box and even if I supply a local user/password, I cannot seem to go past this. Any help you can provide is much appreciated. Venkat
RE: Why am I getting this authentication window
I have two users, venki and admin set up in the file with admin and manager roles. Like I said, I have had no problems for the last two months. The only thing I did last was install an anti-virus package from trendMicro. I am running this on a Windows 2003 server. venkat _ From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Friday, January 14, 2005 12:10 PM To: Tomcat Users List Subject: RE: Why am I getting this authentication window you need to add a user with the manager role to the tomcat-users.xml file. Then use this login and you will be able to access the admin app. -Original Message- From: Venkat Radha Venkataramanan [mailto:[EMAIL PROTECTED] Sent: 14 January 2005 16:43 To: 'Tomcat Users List' Subject: Why am I getting this authentication window Hello: I am running Tomcat 5.0. I installed it about 2 months back and I have been learning the ropes these days. This morning when I tried to go into the Manager application and/or the admin application (http://127.0.0.1:8080/admin/), I get an authentication box: I don't know why all of a sudden I get this dialog box and even if I supply a local user/password, I cannot seem to go past this. Any help you can provide is much appreciated. Venkat
Books on Tomcat
Can somebody suggest a good book on Tomcat for beginners? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Repeating a question I did not get an answer for - from a novice
Hello: I see that the TomCat Manager application is stored in Tomcat_Install_Dir\Server\Webapps while all other applications are installed under Tomcat_Install_Dir\Webapps. Can somebody tell me why? And, since the Admin application is not installed as part of the Tomcat installation, I would like to know where this application should be installed. Thanks. Venkat
Webapps Folder
Hello: I am new to Tomcat and so forgive me if this question comes across as very elementary. I see that there are two webapps folders, one under Jakarta_HOME\Server and one under JAKARTA_HOME. The Manager Application is installed under Jakarta_HOME\Server\webapps while other applications are installed under JAKARTA_HOME\webapps. Why is this distinction being made? Venkat
RE: Webapps Folder
Yoav: The admin application is to be installed in the Jakarta_Home/Server/webapps directory, right? The reason I am asking you this is after installing it there, it is not listed in the Applications list on the Tomcat Manager application and if I do http://127.0.0.1:8080/admin/; I get the response, Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. Thanks. VENKAT RADHA VENKATARAMANANPhone: 1-201-358-0001 324 St. Mary Street Hillsdale, NJ 07642 [EMAIL PROTECTED] -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 10:21 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Webapps Folder Hi, We are trying to distinguish those webapps which are tightly coupled with the Tomcat server and its implementation from normal user webapps. For all intents and purposes, users should ignore server/webapps and never touch it. Put all your apps and do your development in $CATALINA_HOME/webapps or another appBase of your choosing if you have a custom Host, but not server/webapps. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Venkat Radha Venkataramanan [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 10:10 AM To: 'Tomcat Users List' Subject: Webapps Folder Hello: I am new to Tomcat and so forgive me if this question comes across as very elementary. I see that there are two webapps folders, one under Jakarta_HOME\Server and one under JAKARTA_HOME. The Manager Application is installed under Jakarta_HOME\Server\webapps while other applications are installed under JAKARTA_HOME\webapps. Why is this distinction being made? Venkat This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the defaukt Admin user id/password
Hello: Can somebody tell me what the default admin user id/password is? Thanks. VENKAT RADHA VENKATARAMANANPhone: 1-201-358-0001 324 St. Mary Street Hillsdale, NJ 07642 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What's the defaukt Admin user id/password
Hello: I did read the tomcat-users.xml but none of the username/password works. I opened up the Tomcat Administration page and entered the username/password. Thanks for your help. -Original Message- From: D. Stimits [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 4:11 PM To: [EMAIL PROTECTED] Subject: Re: What's the defaukt Admin user id/password Venkat Radha Venkataramanan wrote: Hello: Can somebody tell me what the default admin user id/password is? Thanks. By default it is disabled. Go to the $CATALINA_HOME/conf/ directory, and open tomcat-users.xml. Edit there. A sample to give both admin and manager perms to user myself and to tomcat, password mypass (beware email line wrap): ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=manager/ role rolename=admin/ user username=myself password=mypass roles=tomcat,manager,admin/ user username=tomcat password=mypass roles=tomcat,manager,admin/ /tomcat-users - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help installing the Admin Application
Hello: I downloaded the 5.5.5Admin zip file and copied the different files into the appropriate directories. But I don't see the Admin application listed in the Tomcat Web Application Manager. When I click on the first application which is displayed as /, I see the Jakarta default page. When I click on the Tomcat Administration link on this page, I get a message, Tomcat's administration web application is no longer installed by default. Download and install the admin package to use it. Is there more to installing the Admin application? Thanks. venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
Hi I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with mod_jk(ajp13) when I try to execute jsp's they processed fine with tomcat. But one of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java class(Test.java) which is not included in any package( I mean it is not having a package name. i.e dierectly placed under the root directory). Here I am getting compilation error saying that it is expecting Test.; THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk Can you please xplain me Why it is bahaving like this Thks --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
But it worked with tomcat 4.0.4 with out using any package Do you think is there nat option to set for this Thks --Venkat -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Mon 11/15/2004 4:15 PM To: 'Tomcat Users List' Cc: Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk I think you have to use package. -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 4:04 PM To: Tomcat Users List Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk Hi I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with mod_jk(ajp13) when I try to execute jsp's they processed fine with tomcat. But one of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java class(Test.java) which is not included in any package( I mean it is not having a package name. i.e dierectly placed under the root directory). Here I am getting compilation error saying that it is expecting Test.; THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk Can you please xplain me Why it is bahaving like this Thks --Venkat !DSPAM:419919cd57631768811543! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk
Thank you very much for giving information markt why Tomact 4.1.27 can't acess symblic link directories where as tomcat 4.0.4 can acess those symbolic link directories -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Mon 11/15/2004 4:48 PM To: 'Tomcat Users List' Cc: Subject:RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk No. The spec requires this. -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 9:19 PM To: Tomcat Users List Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk But it worked with tomcat 4.0.4 with out using any package Do you think is there nat option to set for this Thks --Venkat -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Mon 11/15/2004 4:15 PM To: 'Tomcat Users List' Cc: Subject: RE: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk I think you have to use package. -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] Sent: November 15, 2004 4:04 PM To: Tomcat Users List Subject: Tomcat 4.1.27 ana apache 2.0.47 with mod_jk Hi I installed tomcat4.1.27 apache 2.0.47 on two diffrenet servers with mod_jk(ajp13) when I try to execute jsp's they processed fine with tomcat. But one of my jsp's having a import([EMAIL PROTECTED] import =Test%) of one java class(Test.java) which is not included in any package( I mean it is not having a package name. i.e dierectly placed under the root directory). Here I am getting compilation error saying that it is expecting Test.; THe same jsp processed fine with tomcat 4.0.4, apache 2.0.40 with mod_jk Can you please xplain me Why it is bahaving like this Thks --Venkat !DSPAM:419919cd57631768811543! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.27 can't access symbolink directories
Hi, why Tomact 4.1.27 can't acess symbolic link directories while tomcat 4.0.4 can acess those symbolic link directories can you please throw some light on this Thks --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.27 can't access symbolink directories
Thank you mark -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Mon 11/15/2004 5:23 PM To: 'Tomcat Users List' Cc: Subject:RE: Tomcat 4.1.27 can't access symbolink directories Have a look at http://www.jguru.com/faq/view.jsp?EID=1028397 Mark -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED] Sent: Monday, November 15, 2004 10:16 PM To: Tomcat Users List Subject: Tomcat 4.1.27 can't access symbolink directories Hi, why Tomact 4.1.27 can't acess symbolic link directories while tomcat 4.0.4 can acess those symbolic link directories can you please throw some light on this Thks --Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does anybody have a JSP/Servlet example on MS SQLServer JDBC Connectivity?
Hello: I am a newbie trying to learn Tomcat. I was successful in creating my first HelloWorld servlet. However, I am unable to make a MS SQL Server 2000 database connection. Does anybody have a quick sample application/tutorial that walks one through the required steps? Thanks. Venkat
Question from a newbie! Please pardon me!
Hello: When I tried to compile my first servlet, using the command line, javac -classpath $CATALINA_HOME/common/lib/servlet-api.jar HelloWorld.java I get the following errors, mainly due to the fact that it's unable to find the package javax.servlet. HelloWorld.java:6: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:7: package javax.servlet.http does not exist import javax.servlet.http.*; ^ HelloWorld.java:9: cannot resolve symbol symbol : class HttpServlet location: class HelloWorld public class HelloWorld extends HttpServlet { ^ HelloWorld.java:11: cannot resolve symbol symbol : class HttpServletRequest location: class HelloWorld public void doGet ( HttpServletRequest request, HttpServletResponse resp onse ) ^ HelloWorld.java:11: cannot resolve symbol symbol : class HttpServletResponse location: class HelloWorld public void doGet ( HttpServletRequest request, HttpServletResponse resp onse ) ^ HelloWorld.java:12: cannot resolve symbol symbol : class ServletException location: class HelloWorld throws ServletException, IOException{ ^ 6 errors Can somebody guide me on how to resolve this issue? Thanks. Venkat
Seeking a reusable component that handles file-transfer
Hello: I am looking for a Open Source or reusable component that will give the user an option to transfer a file from a local directory to a server location. This component should also have a status bar that shows the progress of the transfer. Thank you. Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Start.bat and shutdown.bat
Hello: When I installed Tomcat 5.5.1 on Windows XP Professional, it failed to create the program group. I understand that it should have created two batch files for starting and shutting down the Tomcat instance. Can somebody share with me either the batch files or the command line for accomplishing the tasks? Thanks.
RE: Tomcat Start.bat and shutdown.bat
Hongsong: I tried using the batch files I found in the zipped version. Here's the problem I am running into. I have JRE 1.4.2 installed on my machine. But SetClassPath.bat looks for the following executables in JAVA_HOME: java.exe javaw.exe jdb.exe javac.exe In my case, javac.exe and jdb.exe do not exist and as a result, it aborts. Any ideas? -Original Message- From: Hongsong Zhou [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 10:03 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Start.bat and shutdown.bat http://www.mail-archive.com/[EMAIL PROTECTED]/msg135694.html [EMAIL PROTECTED] 09/10/04 08:49AM Hello: When I installed Tomcat 5.5.1 on Windows XP Professional, it failed to create the program group. I understand that it should have created two batch files for starting and shutting down the Tomcat instance. Can somebody share with me either the batch files or the command line for accomplishing the tasks? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.1 Installation Help
Hello: I installed Tomcat 5.5.1 on a Windows XP Professional (SP2). The installation went without a hitch. The Release notes refers to a file Running.txt that I have to read if I am uing JRE 1.4 (I am actually using JRE 1.4.2). I read on the Tomcat page that I have to installa some compatibility modules. I Can somebody send me this file or tell me what I should do to complete my installation? Thanks. Venkat
RE: Tomcat 5.5.1 Installation Help
Yoav: I did not have any difficulty in locating the compat package. But I don't see the file Running.txt in the zipped version. VENKAT RADHA VENKATARAMANANPhone: 1-201-358-0001 324 St. Mary Street Hillsdale, NJ 07642 [EMAIL PROTECTED] -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:22 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Tomcat 5.5.1 Installation Help Hi, You download the compat package from the same place you download your Tomcat distribution (http://jakarta.apache.org/site/binindex.cgi). It's a .zip or .tar.gz distro, take your pick. Then it's as RUNNING.txt says: === Running Tomcat With J2SE Version 1.4 or 1.3 === (1) Obtain the compat package: (1.1) Download the compat package from the binary download site: http://jakarta.apache.org/site/binindex.cgi * Or build this package yourself from the source code: see BUILDING.txt in this directory. (2) Unzip the package in $CATALINA_HOME. It will place the XML parser APIs and Xerces implementation in the common/endorsed directory, and the JMX API jar (jmx.jar from Sun) in the bin directory. (3) Follow the same directions for starting and stopping the server as if you were using J2SE 5.0. Yoav Shapira Millennium Research Informatics -Original Message- From: Venkat Radha Venkataramanan [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:15 PM To: [EMAIL PROTECTED] Subject: Tomcat 5.5.1 Installation Help Hello: I installed Tomcat 5.5.1 on a Windows XP Professional (SP2). The installation went without a hitch. The Release notes refers to a file Running.txt that I have to read if I am uing JRE 1.4 (I am actually using JRE 1.4.2). I read on the Tomcat page that I have to installa some compatibility modules. I Can somebody send me this file or tell me what I should do to complete my installation? Thanks. Venkat This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.5.1 Installation Help
Atishay: After I installed it the first time, I uninstalled it and reinstalled it. But this time, it did not create a program group called Tomcat! Now I don't even have the shortcut to start Tomcat service! Can you tell me what this program group and its members? VENKAT RADHA VENKATARAMANANPhone: 1-201-358-0001 324 St. Mary Street Hillsdale, NJ 07642 [EMAIL PROTECTED] -Original Message- From: Atishay Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, September 09, 2004 12:41 PM To: Tomcat Users List Subject: Re: Tomcat 5.5.1 Installation Help you installed using a zip file or a tar.gz or exe? u can download the exe and it will automatically find the jre installed on ur system and do the neeful (infact i did install 5.5.1 version today on xp with sp2). u then just have to go to start-all-programs-tomcat-start tomcat On Thu, 9 Sep 2004 17:23:11 +0100, Allistair Crossley [EMAIL PROTECTED] wrote: you can grab it at the binaries page at http://jakarta.apache.org/site/binindex.cgi either 5.5.1 Compat zip PGP MD5 5.5.1 Compat tar.gz PGP MD5 ADC -Original Message- From: Venkat Radha Venkataramanan [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 17:15 To: [EMAIL PROTECTED] Subject: Tomcat 5.5.1 Installation Help Hello: I installed Tomcat 5.5.1 on a Windows XP Professional (SP2). The installation went without a hitch. The Release notes refers to a file Running.txt that I have to read if I am uing JRE 1.4 (I am actually using JRE 1.4.2). I read on the Tomcat page that I have to installa some compatibility modules. I Can somebody send me this file or tell me what I should do to complete my installation? Thanks. Venkat FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- :) Atishay Kumar Btech, SEM VII DA-IICT Gandhinagar - 382009 India ph: +91 9825383948 /*** * * Learn the rules as you would need them to break them properly * / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's the best way to test a database connection
Hello: I just finished installing Tomcat 5.5.1. I would like to know if it ships with any utility to check database connectivity. I created a JDBC connection to a SQL server and I would like to test the database access. Thanks. Venkat
Disable HTTP 1.1
Hi, I am using Tomcat 4.1. Is it possible to configure Tomcat so that it is compatible with only HTTP1.0. Basically I want to disable HTTP1.1 functionality. I know it is backward compatible with HTTP1.0, but i want to disable HTTP1.1 functionality. If this is not possible, in which version of Tomcat is this possible? Regards, Venkat
Pre-compiling JSP pages
Hi Can we do this: Compiling JSP files beforehand after translating them to .java files using jspc. then can I deploy the generated classes on Tomcat server so that when a request is made to the jsp the tomcat should consider the respective class for the JSP. I dont want to distribute the source code in JSP s. Please let me know if you have any idea? thanx Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
resource-env-ref tag in web.xml
hi all, Why do we need the tag resource-env-ref in web.xml. What is the purpose of this. I saw some example where that was trying to register Datasource as JNDI resource in server.xml and in web.xml. Why do we need at two places? In server.xml: Resource name=jdbc/myDB auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myDB parameter namefactory/name valueorg.objectweb.jndi.DataSourceFactory/value /parameter !-- configured by default for PostgreSQL, just change the values to set it for your database -- parameternameusername/namevaluemojo/value/parameter parameternamepassword/namevaluejojo/value/parameter parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://localhost/javatest/value /parameter /ResourceParams In web.xml: resource-env-ref description DB Connection /description resource-env-ref-name jdbc/myDB /resource-env-ref-name resource-env-ref-type javax.sql.DataSource /resource-env-ref-type /resource-env-ref I tried this, it was working fine. Then I removed the tag resource-env-ref from web.xml and It was working fine. Even I tested if there is any difference in loading on startup or on first request. There is no difference. In the two scenarios the resource was loaded when it was requested for the first time. Can you please let me know why is it required to define resource-env-ref in web.xml. thanx Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Jboss to parse exsisting tomcat server.xml ...
I dont see any file called tomcat41-service.xml under jboss home directory. should I create one if I dont find that file. I see this file jboss-service.xml under JBoss home directory. -- Paul Gregoire [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- this is my 4th attempt to answer a question please disregard if youve seen it already :) -- To make changes to tomcat under jboss you must edit tomcat41-service.xml not server.xml; changes made to the server.xml will not be used by tomcat. The Tomcat bundled with JBoss uses the tomcat41-service.xml file, located in your /deploy directory of the selected configuration set. This file should be nearly identical to a regular server.xml. Might i suggest that you purchase the JBoss 3.0 Handbook for further details, this book kicks ASS! http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1045677540/sr=8 -1/ref=sr_8_1/104-9967696-6863144?v=glances=booksn=507846 And no i dont get any kickbacks.. :( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:55 PM To: [EMAIL PROTECTED] Subject: Jboss to parse exsisting tomcat server.xml ... Hi, Can any one tell me ( or give me ) an example of how to make jboss parse my existing tomcat server.xml file ??? jboss 3.0.X and tomcat 4.1.18. ( windows / linux ) Thanks Regards Guru :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file renaming using Multipart class.
Hi all, Thanks for the help. I figured it out and i am able to rename the file with my name. Thanks again venkat -Original Message- From: Venkat [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:47 PM To: Tomcat Users List Subject: RE: file renaming using Multipart class. Hi all, I am using this package and i need the help badly to rename the file.Can some one help me out http://www.servlets.com/cos/ my code snippet is below. % MultipartRequest multi=new MultipartRequest(request,.,5*1024*1024); % How do i rename the file? Thanks in advance venkat -Original Message- From: Tomcat-RND [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:09 PM To: Tomcat Users List Subject: Re: file renaming using Multipart class. Hi, Add time stamp as suffix to the file name that makes the file unique and use the same for each user. Hope it may solve u r problem Regards, Pratt. - Original Message - From: Venkat [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:10 PM Subject: file renaming using Multipart class. Hi all, Sorry for posting a jsp related qury rather tomcat one.But i need it badly and i have to finish it with in one hr.I tried jsp interest.Hope some one helps me here. I am tying to upload a file from jsp page using bean MultiPartRequest class that come with oreilly examples. I am using the constructor which takes three parameters 1.request 2. dir 3. file size Itz working and it is storing in the dir given by me. But the file name is default file name which i selected from the browser. Here the problem is if different users sends the file with same name it is replacing the old file. So i want to upload the file selected by the user with the name specifed by me. How to do this? I checked the MultiPartClass constructors it has another constructor wich take as FileRenamePolicy interface but i didn't understand this. and how to create this interface using file as parameter? Can some one help me out how to do this? Thanks in advance venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
file renaming using Multipart class.
Hi all, Sorry for posting a jsp related qury rather tomcat one.But i need it badly and i have to finish it with in one hr.I tried jsp interest.Hope some one helps me here. I am tying to upload a file from jsp page using bean MultiPartRequest class that come with oreilly examples. I am using the constructor which takes three parameters 1.request 2. dir 3. file size Itz working and it is storing in the dir given by me. But the file name is default file name which i selected from the browser. Here the problem is if different users sends the file with same name it is replacing the old file. So i want to upload the file selected by the user with the name specifed by me. How to do this? I checked the MultiPartClass constructors it has another constructor wich take as FileRenamePolicy interface but i didn't understand this. and how to create this interface using file as parameter? Can some one help me out how to do this? Thanks in advance venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: file renaming using Multipart class.
Hi all, I am using this package and i need the help badly to rename the file.Can some one help me out http://www.servlets.com/cos/ my code snippet is below. % MultipartRequest multi=new MultipartRequest(request,.,5*1024*1024); % How do i rename the file? Thanks in advance venkat -Original Message- From: Tomcat-RND [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:09 PM To: Tomcat Users List Subject: Re: file renaming using Multipart class. Hi, Add time stamp as suffix to the file name that makes the file unique and use the same for each user. Hope it may solve u r problem Regards, Pratt. - Original Message - From: Venkat [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Monday, March 10, 2003 12:10 PM Subject: file renaming using Multipart class. Hi all, Sorry for posting a jsp related qury rather tomcat one.But i need it badly and i have to finish it with in one hr.I tried jsp interest.Hope some one helps me here. I am tying to upload a file from jsp page using bean MultiPartRequest class that come with oreilly examples. I am using the constructor which takes three parameters 1.request 2. dir 3. file size Itz working and it is storing in the dir given by me. But the file name is default file name which i selected from the browser. Here the problem is if different users sends the file with same name it is replacing the old file. So i want to upload the file selected by the user with the name specifed by me. How to do this? I checked the MultiPartClass constructors it has another constructor wich take as FileRenamePolicy interface but i didn't understand this. and how to create this interface using file as parameter? Can some one help me out how to do this? Thanks in advance venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web Page Caching
Hi I am new to Tomcat server. Can you tell me does Tomcat support web page caching if supported tell me techincal detials how this is done. Thanks in advance Thanks and warm regards Venkat Regards Venkat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection pooling for MS Sql server
Hi, I am able to create a connection poll for ms acess and itz working fine.Now i want to create a connection poll for MsSql server. For MS access the server.xml looks like this. !--1/23/2003 Added By venkat The following block of code add the datasource for connecting MS Acess database using Connector JDBC Driver -- Context path=/test docBase=C:\Test\test debug=5 reloadable=true crossContext=true Logger className = org.apache.catalina.logger.FileLogger prefix=localhost_DBTest_log. suffix=.txt timestamp=true/ Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource/ ResourceParams name = jdbc/TestDB parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !--Maximum number of dBconnections in pool. Make sure you configure your MS Acess max_connection large enough to handle all you connections-- parameter namemaxActive/name value100/value /parameter parameter namepassword/name value/value /parameter !-- Class name for JDBC driver -- parameter namedriverClassName/name valuesun.jdbc.odbc.JdbcOdbcDriver/value /parameter !-- The JDBC connection url for connecting to your MS Acess db if the connection closes then auto connect -- parameter nameurl/name valuejdbc:odbc:Test/value /parameter /ResourceParams /Context My problem is i have to specify username and password for MS Sql server. Password i can specify Here parameter namepassword/name value/value /parameter But Where to specify the user name? Thanks in advance. regards venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Connection pooling
Hi, How to set up a connection poll and use the connection pool from jsp in tomcat4.0? Any url or doc will help's me. Thank you regards venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Connection pooling
Sorry, for spelling mistake. Connection pool Thaks in advance venkat -Original Message- From: Venkat [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 2:57 PM To: Tomcat Subject: Connection pooling Hi, How to set up a connection poll and use the connection pool from jsp in tomcat4.0? Any url or doc will help's me. Thank you regards venkat -- 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]
how to users let know application server is down
Hi, I want to let users know thru html page saying that application server is down, when tomcat is down (here apache is connecting to tomcat thru mod_jk) Any help gr8ly appreciated Thks, --Venkat winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: how to users let know application server is down
Thank you very much, I worked well Thks, --Venkat -Original Message- From: Turoff, Steve [mailto:[EMAIL PROTECTED]] Sent: Wed 1/8/2003 2:55 PM To: Tomcat Users List Cc: Subject:RE: how to users let know application server is down Venkat, Here's one method: 1) Create an HTML Page, in Apache's html document root called something like error500.html. Note that this assumes that Apache is serving HTML pages and Tomcat is serving jsp pages. 2) Add the following line to your httpd.conf file, somewhere in the Main Server Configuration ErrorDocument 500 /error500.html 3) Shutdown Tomcat and restart Apache. 4) Try browsing to a jsp page and you should see your error500.html page. Steve -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 1:24 PM To: Tomcat Users List Subject: how to users let know application server is down Hi, I want to let users know thru html page saying that application server is down, when tomcat is down (here apache is connecting to tomcat thru mod_jk) Any help gr8ly appreciated Thks, --Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [LAXMIAKNTH] - MEMORY USAGE
Hi, You can try with IBM JVM, it works well on linux machines incase of performance as well as garbage collection of memory -Original Message- From: Laxmikanth M.S. [mailto:[EMAIL PROTECTED]] Sent: Tue 1/7/2003 4:56 AM To: [EMAIL PROTECTED] Cc: Subject:[LAXMIAKNTH] - MEMORY USAGE Hi all, I have installed jdk1.3/apache1.3.27/tomcat4.1.12 in RH Linux 7.1.. If I see the process most of the memory more than 80% is occupied by jdk1.3 and so the system is slow and sites which are running there is slowwhat may be the reason thanks in advance Regards Laxmikanth M S Off : 91-80-6610330 extn 1256 http://www.sonata-software.com Coming together is the beginning, staying together is progress and working together is Success What lies behind us and what lies before us are tiny matters compared to what lies within us - Emerson * Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: HELP, PLEASE! Tomcat creates too many threads!
Can you try with IBM JVM, as it works well on linux in cae of performance as well as memory usage -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Tue 1/7/2003 9:31 AM To: 'Tomcat Users List' Cc: Subject:RE: HELP, PLEASE! Tomcat creates too many threads! I am curious about the same thing. My app isn't fully up and operational yet so I do not know for sure if I suffer from the same problem, but I have noticed that while doing some testing new threads are getting started, and it usually takes a restart to get rid of them. I've seen this question posted a few times, but haven't noticed any 'resolution' or possible solutions. Can anyone recommend things to check for, settings to make, or perhaps any documentation on the issue? Is it possible that this could be a JSDK 1.4 issue? It's the only common link I've noticed between my set up and other posters with this problem. Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Wagner José Queiroz de Santana [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 07, 2003 6:47 AM To: [EMAIL PROTECTED] Subject: HELP, PLEASE! Tomcat creates too many threads! Hello all, Im running Apache and Tomcat in a Linux machine, after a couple days and several accesses to my applications, Tomcat creates several threads/processes that stay sleeping, as you can see at the end of this e-mail. Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java 1.4.0_01. If I don't restart my tomcat, it will exceed the maximum number of processes the user can execute and it will block, turning my applications offline. Is there any solution to this problem? How is it possible to avoid the creation of so many processes? I really appreciate any help you can give me. These lines are only a few ones I get when I run the ps -elf command: 040 S root 13849 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 13850 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19616 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19619 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 19628 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26732 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 26754 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 31033 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4677 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 4687 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 5470 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:01 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6154 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6161 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat 040 S root 6165 8678 0 60 0- 58223 tcp_re Jan06 ? 00:00:00 /usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat -- Wagner Santana Analista de Sistemas - TIM Av. Conde da Boa Vista, 800 081 3216-2713081 99136661 -- 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] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
showing progress bar while uploading file
Hi I am uplaoding files to server thru oreilly's multipartrequest servlet, here I want to get some progress bar showing size of bytes uplaoded for every second thru applet on browser Any help gr8ly appreciated Thks, --Venkat winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JK2/tomcat 4.1.18 - broken pipe problem
I thought this could never be a problem(user htiing stop button), as I alreday mailed, I got it solved by relpacing sun jvm with ibm jvm, But I got it on redhat linux, but you are on solaris right, So what I am thinking is to think this problem in different dimension, This is just my suggestion -Original Message- From: Jesper Birch [mailto:[EMAIL PROTECTED]] Sent: Fri 1/3/2003 6:58 AM To: [EMAIL PROTECTED] Cc: Subject:Re: JK2/tomcat 4.1.18 - broken pipe problem Thx, Bill! But how do I get rid of them in my catalina.out log file ?! Should I set file logging in the worker2.properties ?! jk2.properties ?! Something :-) /Jesper Birch The most common reason for this is that the user has hit the stop button in the browser before the page has been fully loaded. The AJP13 protocol (currently) doesn't support out-of-band messages to notify Tomcat of this fact, so mod_jk(2) simply drops the connection to Tomcat instead. Jesper Birch [EMAIL PROTECTED] wrote in message 1041497967.27623.14.camel@wbirch">news:1041497967.27623.14.camel@wbirch... Hi, I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2 connector. Everything seems to work fine, except an error message I get time to time in my logs: 2003-01-02 05:55:56,681 [Thread-49] ERROR org.apache.jk.server.JkCoyoteHandler - Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:435) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372) at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java: 500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) It does not seems like the users of my site has any problems when using it. So I am not sure when exactly this is happening. Can somebody explain for me the condition for when this should happen - so I can look into this error, or maybe somebody has an idea to what the problem can be ?! I have built JK2 from the 4.1.18 connectors package.. Thanks Jesper Birch -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JK2/tomcat 4.1.18 - broken pipe problem
Even I too got the same problem with configuraion of apache 2.0.40, tomcat 4.0.4 and j2sdk1.4.1(sun jvm) on redhat 7.3 but when I replaced sun jvm with ibm jvm, surprisingly I didn't get this problem, I am not sure here but what I thought is sun jvm can't support green threads on redhat linux but supports only native threads where as ibm jvm can support green threads on linux machines Thks, -Venkat -Original Message- From: Jesper Birch [mailto:[EMAIL PROTECTED]] Sent: Thu 1/2/2003 6:01 AM To: [EMAIL PROTECTED] Cc: Subject:JK2/tomcat 4.1.18 - broken pipe problem Hi, I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2 connector. Everything seems to work fine, except an error message I get time to time in my logs: 2003-01-02 05:55:56,681 [Thread-49] ERROR org.apache.jk.server.JkCoyoteHandler - Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:435) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:627)at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)at org.apache.coyote.Response.action(Response.java:222) at org.apache.coyote.Response.finish(Response.java:343) at org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:500) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) at java.lang.Thread.run(Thread.java:536) It does not seems like the users on my site has any problems when it appears. So I am not sure when exactly this is happening. Can somebody explain for me the condition for when this should happen - so I can look into this error, or maybe somebody has an idea to what the problem can be ?! Or it should be in that way ?! :-) Thanks Jesper Birch -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
top command shows memory usage of java process is two times more than what actually java heap is taking
Hi, When I run top command on linux, it is showing memory usage of java process is two times more than what java heap is taking, I got java heap size inside java program using Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); I didn't understand why it is showing like this, Can anybody explain me Thks, --Venkat winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Urgent - Issue with Tomcat/mod_jk?
Hi, Here I am getting kernel out of memery killing java process in syslog messages(/var/log/messages) not in catalina.out. Here I tried with max heap size too(-Xms256m -Xmx256m), ending with no result. What I thoght is sun jvm is not properly handling memory allocation/dealloctaion on redhat 7.2/7.3, so I tried with IBM jvm 1.4 on redhat 7.2 with tomcat 4.0.4. Surprisingly I am not getting broken pipe errors as well as tomcat crashing problems Thank you very much for your response Thks, --Venkat -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Thu 12/26/2002 9:42 AM To: Tomcat Users List Cc: Subject:RE: Urgent - Issue with Tomcat/mod_jk? I beleive we are dealing with a different problem. My app has been running on Tomcat 4.0.6 for weeks until I had the problem recently. There was no crash. What happened was, it seems, a user REALLY fat-fingered the enter key or some smart person sent the same request to the server 180 times within one minute. I traced back through my access logs for Apache and caught the massive number if requests for one URL at the same time I had the problem. All of these requests overwhelmed the number of AJP13 processors I had configured (well, they are still at the default setting) and also caused a massive opening of database connections. Anyway, as to your problem: You may not have enough memory setup for your JVM. Do you send amx -Xm and -Xs parameters to Tomcat using JAVA_OPTS? You may be getting more load then Tomcat can handle due to a RAM constraint. Ben Ricker On Tue, 2002-12-24 at 13:39, Venkat Reddy Valluri wrote: Hi , Even I too getting the same problem(lots of broken pipe errors )with catalina 4.0.4(redhat 7.3, j2sdk1.4.1) connecting apache 2.0.40(redat 7.3) on diffrenet machine with mod_jk, But what happened is after it ran for cuople of hours, tomcat crases, giving kernel out of memory error in syslog messages Did you get any workaround for this Thks, --Venkat -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Mon 12/23/2002 5:49 PM To: Tomcat Users List Cc: Subject: Re: Urgent - Issue with Tomcat/mod_jk? I had suspected that in the problem earlier in the day (the part of the email I posted at the end if the last email you replied to). However, what did not make sense was the connection pool woth the database also going up. If I understand the stuff below, after 85 concurrent connections (max connections + accept count) I would start getting the Out of Processors error. However, I cannot see how this would cause the DATABASE connection pool to grow as large as it did (we usually handle 50k connections a business day with 5 pooled connections; during the earlier problem, the database connections went to *30*, our maximum). Additionally, why would we contine to get the following error: 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) without seeing the Out of Processor msgs? I may be looking at two independent problems: one a scalability issue with the ajp13 processors (which are at the ddefault setting, btw) and some other issue I am in the dark about. Anyway, these questions are rhetorical. Thanks for the reply and do not feel obliged to answer back. I need to start putting pressure on the developers to help me out here. Thanks again, Ben Ricker On Mon, 2002-12-23 at 16:07, Mark Eggers wrote: Ben, Disclaimer: I'm not a Tomcat developer, but I do use it to develop software and integrate applications. In $CATALINA_HOME/conf/server.xml you should see an entry similar to the following: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I'm using 4.1.18, so your entry may be a bit different. It looks like from your error messages that you may be running out of processors. The following information is taken from Tomcat's 4.1.18 documentation. If you have the documentation installed somewhere, the URL is: http://localhost/tomcat-docs/config/jk.html acceptCount: The maximum queue length for incoming
RE: Tomcat and Apache | Performance
There is a option in httpd.conf as well as server.xml(Ajp13Processor max processors) to set max clients to be served, incresing that size, may get it solved Make sure max Ajp13processors should be greater than or equal to max clients in httpd.conf Thks, --Venkat -Original Message- From: Rajesh B [mailto:[EMAIL PROTECTED]] Sent: Tue 12/24/2002 8:57 AM To: Tomcat Users List Cc: Subject:Tomcat and Apache | Performance Hi All, I am using tomcat 3.3.1 and apache 1.3.27 with mod_jk (ajp12 protocol). We are running it in Solaris 2.8 ( 4 CPU 4GB RAM ). At times when the system is under heavy load, apache simply stops processessing requests. And the hits/sec goes down. The system idle state is around 99%. At times , we get MaxClients reached error in error_logs. But this happens rarely. After 10 or 15 minutes, apache is able to serve requests. Has anyone expericed this kind of problem. Any pointers would be greatly appreciated. regards Rajesh.B -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Can anyone running successfully tomcat and mod_jk on different machines with mod_jk for longtime
Hi, Can Any body be running tomcat 4.0.4(redaht 7.3, j2sdk1.4.1) and apache 2.0.40 on different machines with mod_jk successfully in production environment without giving problems(broken pipe etc... kernel out of memory error) If anubody, could you please help in this regard Thks, --Venkat winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Urgent - Issue with Tomcat/mod_jk?
Hi , Even I too getting the same problem(lots of broken pipe errors )with catalina 4.0.4(redhat 7.3, j2sdk1.4.1) connecting apache 2.0.40(redat 7.3) on diffrenet machine with mod_jk, But what happened is after it ran for cuople of hours, tomcat crases, giving kernel out of memory error in syslog messages Did you get any workaround for this Thks, --Venkat -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED]] Sent: Mon 12/23/2002 5:49 PM To: Tomcat Users List Cc: Subject:Re: Urgent - Issue with Tomcat/mod_jk? I had suspected that in the problem earlier in the day (the part of the email I posted at the end if the last email you replied to). However, what did not make sense was the connection pool woth the database also going up. If I understand the stuff below, after 85 concurrent connections (max connections + accept count) I would start getting the Out of Processors error. However, I cannot see how this would cause the DATABASE connection pool to grow as large as it did (we usually handle 50k connections a business day with 5 pooled connections; during the earlier problem, the database connections went to *30*, our maximum). Additionally, why would we contine to get the following error: 2002-12-23 09:07:28 Ajp13Processor[12009][18] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:91) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:501) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551) at java.lang.Thread.run(Thread.java:479) without seeing the Out of Processor msgs? I may be looking at two independent problems: one a scalability issue with the ajp13 processors (which are at the ddefault setting, btw) and some other issue I am in the dark about. Anyway, these questions are rhetorical. Thanks for the reply and do not feel obliged to answer back. I need to start putting pressure on the developers to help me out here. Thanks again, Ben Ricker On Mon, 2002-12-23 at 16:07, Mark Eggers wrote: Ben, Disclaimer: I'm not a Tomcat developer, but I do use it to develop software and integrate applications. In $CATALINA_HOME/conf/server.xml you should see an entry similar to the following: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I'm using 4.1.18, so your entry may be a bit different. It looks like from your error messages that you may be running out of processors. The following information is taken from Tomcat's 4.1.18 documentation. If you have the documentation installed somewhere, the URL is: http://localhost/tomcat-docs/config/jk.html acceptCount: The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 10. maxProcessors: The maximum number of request processing threads to be created by this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 20. NOTE:For Apache 1.3 on Unix there is a 1 to 1 mapping between httpd processes and Ajp13Processors. You must configure maxProcessors to be greater than or equal to the maximum number of httpd processes your Apache web server spawns. minProcessors: The number of request processing threads that will be created when this Connector is first started. This attribute should be set to a value smaller than that set for maxProcessors. The default value is 5. I hope this gets you started on a productive path. /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ben Ricker [EMAIL PROTECTED] Wellinx.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages
Hi, I am sorry, Iam posting this question again, as I didn't get any response for this question I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with j2sdk1.4.1 for my web application, The problem is after couple of hours(6 or 7 hours after 7 or more users hit the system), tomcat crashes and I ened up finding kernel out of memory killing java process in syslog messages(/var/log/messages) It is not the problem with java heap size I think The same web application is running successfully on tomcat 4.0.4 on redat 7.3 (2-4-18-3) single cpu machine with j2sdk1.4.0 Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1 Any help greatly apprecited Thks --Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Running tomcat 4.0.4 with j2sdk1.4.1 on redhat 7.3 dual processror gives out of memory error in syslog messages
Hi, I am running tomcat 4.0.4 on redhat 7.3 dual processor machine(2-4-18-3SMP) with j2sdk1.4.1 for my web application, The problem is after couple of hours(6 or 7 hours after 7 or more users hit the system), tomcat crashes and I ened up finding kernel out of memory killing java process in syslog messages(/var/log/messages) It is not the problem with java heap size I think The same web application is running successfully on tomcat 4.0.4 on redat 7.3 (2-4-18-3) single cpu machine with j2sdk1.4.0 Here I didn't understand if multi processor redhat 7.3 matters with j2sdk1.4.1 Any help greatly apprecited Thks --Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to run multiple applications on same tomcat server which is running on different box other than apache box
Hi, I am successfull to run tomcat and apache on diffrent boxes using mod_jk. but now I want to run multiple applications on same tomcat instance(I was successfull running multiple apps on multiple tomcat instances using different ajp13 ports) With apache there will be no problem, because we can create multiple virtual hosts for diffrent apps, but how to run multiple apps on same tomcat instance Can you help me or suggest me some documenataion Thks in advance --Venkat winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Error using ajp13 protocol
Hi, According to you, every thing is fine(i.e ajp13 is working fine and listeneing on 8009), can you just verify your mod_jk.conf and check if you are using hostname as localhost and verify in server.xml if you use same name for host and engine (localhost) if you use same name then how do you configure your context and appbase? if you send me details i may help you -Original Message- From: Marc [mailto:[EMAIL PROTECTED]] Sent: Tue 10/8/2002 8:56 AM To: Tomcat Users List Cc: Subject:Re: Error using ajp13 protocol Hi Raj (and thank you for your help yesterday)... I tried to connect using telenet to localhost 8009 and... there wasn't connection refused, but the connection wasn't accepted (showed the Escape character ... ), finally I killed the telnet process because no response was given. I think that the ajp13 connector (tomcat) is not running in the rigth way, because, seems that apache finds the worker (the worker name is ok): [Tue Oct 08 02:49:21 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (238)]: build_worker_map, removing old local_pt1 worker [Tue Oct 08 02:49:21 2002] [jk_worker.c (250)]: build_worker_map, done [Tue Oct 08 02:49:21 2002] [jk_worker.c (111)]: wc_open, done 1 My workers.properties is: ps=/ worker.list=local_pt1 worker.local_pt1.port=8009 worker.local_pt1.host=localhost worker.local_pt1.type=ajp13 worker.local_pt1.lbfactor=1 My server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ And, in catalina_log, seems that the connector starts all threads: 2002-10-08 02:35:06 Ajp13Connector[8009] Opening server socket on all host IP addresses 2002-10-08 02:35:06 Ajp13Connector[8009] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][0] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][1] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][2] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][3] Starting background thread 2002-10-08 02:35:06 Ajp13Processor[8009][4] Starting background thread Any ideas? Regards! Marc Raj Saini wrote: Hi Marc, Though I am not expert in the JK Connectors, But it is very clear that mod_jk part at apache is not able to connect to the tomcat process. There may be three reason for this:- 1. Your JK connector on tomcat is not listening on port 8009. 2. The host name of the worker in worker.properties and tomcat does not match. 3. Tomct is not running at all. Pleas double check your JK connector configuration in server.xml. Check the default host name in tomcat and worker.properties for the local_pt1 match. Try telneting to the host and port you have configured in worker.properties. Raj Marc Vila Pérez wrote: Hi! I'm trying to connect apache with tomcat, using jk (ajp13), in my mod_jk.log (debug log level), I can read this: [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 1 [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (299)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=local_pt1 was added [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 1 rules [Tue Oct 08 02:49:20 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Oct 08 02:49:20 2002] [jk_worker.c (88)]: Into wc_open [Tue Oct 08 02:49:20 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Oct 08 02:49:20 2002] [jk_worker.c (228)]: build_worker_map, creating worker local_pt1 [Tue Oct 08 02:49:20 2002] [jk_worker.c (148)]: Into wc_create_worker [Tue Oct 08 02:49:20 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance local_pt1 of ajp13 [Tue Oct 08 02:49:20 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Tue Oct 08 02:49:20 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init local_pt1 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1206)]: Into jk_worker_t::validate [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1226)]: In jk_worker_t::validate for worker local_pt1 contact is localhost:8009 [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1254)]: Into jk_worker_t::init [Tue Oct 08 02:49:20 2002] [jk_ajp_common.c (1274)]: In jk_worker_t::init, setting socket timeout to 0 [Tue Oct 08 02:49:20 2002] [jk_worker.c (187)]: wc_create_worker, done [Tue
RE: How to create a connection pool
You can use OracleConnectionCacheImpl to implement connection pooling you have to set the attributes for this by getting them from web.xml if you refer that class ou can understand -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]] Sent: Thu 10/3/2002 2:19 AM To: Tomcat Users List Cc: Subject:Re: How to create a connection pool Maybe you can use the connection pooling provided by tomcat. See the JNDI how-to in the docs. phani wrote: Hi, I am using a bean to get connection for a db from my jsp page. But the problem is for each and every request the page fetches a connection from the bean. This becomes a over head to the system. What i want to do is i want to open n no (say 50 ) of connection when the server is started and any request must be routed through these connection only. How to do this? Thanks in advance. phani -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TomCat java_home variable
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thu 10/3/2002 2:55 PM To: Tomcat Users List Cc: Subject:RE: TomCat java_home variable While we are on the subject, I just upgraded from tomcat 4.1 to 4.1.12. I'm on a red-hat 7.something server. When I installed 4.1 I defined a TOMCAT_HOME variable in my .profile. I read something somewhere about defining a CATLINA_HOME for new versions of Tomcat. Do I need to define such a variable in the place of or along with TOMCAT_HOME? what's the difference? --Monte Glenn Gardner On Thu, 3 Oct 2002, Cox, Charlie wrote: try uppercase JAVA_HOME Charlie -Original Message- From: madhur jain [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 12:46 AM To: [EMAIL PROTECTED] Subject: TomCat java_home variable hi yesterday i downloaded the tomcat 4.0.5 when i start startup.bat in the bibn dir. the dosprompt says Java_home env. varible is not defined corrcetly but i have already set the variable in the autoexec.bat file using set java_home=C:\jdk1.3.0_02 executing set on the command prompt shows java_home=C:\jdk1.3.0_02 i am on win98. could u please help me to sort it out. thanx madhur -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: TomCat java_home variable
It should be JAVA_HOME not java_home -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thu 10/3/2002 2:55 PM To: Tomcat Users List Cc: Subject:RE: TomCat java_home variable While we are on the subject, I just upgraded from tomcat 4.1 to 4.1.12. I'm on a red-hat 7.something server. When I installed 4.1 I defined a TOMCAT_HOME variable in my .profile. I read something somewhere about defining a CATLINA_HOME for new versions of Tomcat. Do I need to define such a variable in the place of or along with TOMCAT_HOME? what's the difference? --Monte Glenn Gardner On Thu, 3 Oct 2002, Cox, Charlie wrote: try uppercase JAVA_HOME Charlie -Original Message- From: madhur jain [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 12:46 AM To: [EMAIL PROTECTED] Subject: TomCat java_home variable hi yesterday i downloaded the tomcat 4.0.5 when i start startup.bat in the bibn dir. the dosprompt says Java_home env. varible is not defined corrcetly but i have already set the variable in the autoexec.bat file using set java_home=C:\jdk1.3.0_02 executing set on the command prompt shows java_home=C:\jdk1.3.0_02 i am on win98. could u please help me to sort it out. thanx madhur -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
Thank you very much Raj, I was successfull to make apache connect to tomcat, Thank you very mcuh once again --Venkat -Original Message- From: Raj Mettai [mailto:[EMAIL PROTECTED]] Sent: Fri 9/20/2002 7:18 PM To: [EMAIL PROTECTED] Cc: Subject:RE: Apache2 and Tomcat4 on different boxes Hi Venkat, Here it goes. Machine A (Apache), Machine B (tomcat) - httpd.conf changes... - Below # LoadModule foo_module modules/mod_foo.so Add following lines # # Load mod_jk # LoadModule jk_module libexec/mod_jk.so # # Configure mod_jk # JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug Below DocumentRoot /usr/local/apache/htdocs Add following lines... JkMount /examples ajp13 JkMount /examples/* ajp13 (if you want to configure a application examples running under webapps on tomcat, just specify /examples, you need not sepcify the full path of the application) Then create workers.properties under $Apache_Home$/conf/ like this # In Unix, we use forward slashes: ps=/ # list the workers by name worker.list=ajp13 # worker.ajp13.port=8009(ajp13 port from server.xml on tomcat machine) worker.ajp13.host=hostname(Machine B) worker.ajp13.type=ajp13 (no need to define tomcat_home and java_home parameters here, you define them on catalina.sh on tomcat machine) this is all you need to do on apache machine... server.xml changes on Machine B(tomcat machine) -- Set the required environment variables JAVA_HOME AND CATALINA_HOME in $TOMCAT_HOME$/bin/catalina.sh Commen out the Standalone HTTP port(port 8080) Connector. !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ -- Also Comment out the WARP connector Service name=Tomcat-Apache !-- Connector className=org.apache.catalina.connector.warp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true appBase=webapps acceptCount=10 debug=0/ -- Change the both the Engine Tag and Host tag defaultHost to tomcat hostName(ex: tomcat.apache.com) (This should match with your workers.properties host name.) Engine name=Standalone defaultHost=tomcat.apache.com debug=0 Host name=tomcat.apache.com debug=0 appBase=webapps unpackWARs=true /Host /Engine start tomcat and apache, you should be able to access examples from apache machine I have pretty much followed the http://www.ubeans.com/tomcat/ documentation..many many thanks to Pascal Forget. Let me know, how it goes... -Raj [EMAIL PROTECTED] 09/20/02 06:08PM Hi Raj, you did Excellent job, can you pl explain me how you did, can you answer for following questions 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here is server.xml --- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/opt/catalina/modules/mod_jk.so / Host name=localhost debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/opt/catalina/modules/mod_jk.so / here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Thks in advance Venkat at on a different machine. The problem was on tomcat configuration,I had defaultHost defined as localhost on Engine tag and actual hostName on Host tag, Once I have changed the defaultHost on Engine tag to actual DNS name, every thing worked fine. -Raj [EMAIL PROTECTED] 09/20/02 04:42AM I have never run Tomcat under an Unix like OS, so I don't now. The host neptune.broward.edu is declared in the network
RE: Apache/Tomcat Configuration Question
Did you change mod_jk.conf to point to document root where you are supposed to give apache doc root sample mod_jk.conf-- IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /tmp/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug VirtualHost xxx.xx.xx.xx ServerName www.xxx.com:80 aurora.quinnfable.com:/manager DocumentRoot-- here you got to give your apache document root --- -- -- /virtulhost -Original Message- From: John Green [mailto:[EMAIL PROTECTED]] Sent: Mon 9/23/2002 11:22 AM To: [EMAIL PROTECTED] Cc: Subject:Apache/Tomcat Configuration Question All, I have Apache and Tomcat integrated together using mod_jk. The problem is now when I hit my webserver, it always defaults to the root context of tomcat. No matter what I set in my Apache httpd.conf file it gets ignored. I have tried to setup a virtual server in my httpd.conf file to point to the docroot I want to serve up as the default, but it is ignored. Originally I had my Apache working with PHP, but since I installed Tomcat, I have been unable to figure out how to serve up both. Thanks, John Green __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: unusual problem after installing mod_jk.so ???
I too got the same problem, here I what I understood is , when you try to execute /examples/jsp/images/ you could see iamges, but you can't execute jsp's this means apache itself is executing /examples/jsp/images/ but not tomcat, because images can be viewed by apacahe but where as jsp's can't be executed by apache right, So here my conclusion is might be either you didn't configure mod_jk.so properly or workers.properties and mod_jk.conf properly better try to reconfigure mod_jk.so -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Fri 9/20/2002 12:00 PM To: 'Tomcat Users List' Cc: Subject:RE: unusual problem after installing mod_jk.so ??? If exmaples are in /path/to/tomcat/examples and your Apache root is /some/other/path/to/htdocs then yes, it sounds like you have mod_jk.so installed. From what you have said, it sounds like your JkMount directives are not correct. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 9:59 PM To: [EMAIL PROTECTED] Subject: unusual problem after installing mod_jk.so ??? Hi All. I believe I might have installed mod_jk.so Tomcat works fine : http://MyServer:8080/examples;. All executables in jsp/ and servlets/ work fine. From IE I entered http://MyServer/examples; ... (1) list for images/ ; jsp/ and servlets/ comes up ; (2) all 3 images shown when clicked - fine ; (3) clicked and gone into jsp/ all the examples show up. (3.1) clicking on number guess, rate, snoop etc throws this error : page cannot be found (3.2) clikcing on ErrorPage -- Select car / submit -- page cannot be found (4) Likewise servlets/ , can go in but cannot execute the examples. (5) All source codes can be displayed when clicked on. This is excruciating : * Have I installed mod_jk.so sucessfully or not ??? * Have I got Apache talking with Tomcat ??? * How come most of the executables cannot be run ??? Close yet so far -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Apache2 and Tomcat4 on different boxes
Hi Raj, you did Excellent job, can you pl explain me how you did, can you answer for following questions 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here is server.xml --- Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/opt/catalina/modules/mod_jk.so / Host name=localhost debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/opt/catalina/modules/mod_jk.so / here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Thks in advance Venkat at on a different machine. The problem was on tomcat configuration,I had defaultHost defined as localhost on Engine tag and actual hostName on Host tag, Once I have changed the defaultHost on Engine tag to actual DNS name, every thing worked fine. -Raj [EMAIL PROTECTED] 09/20/02 04:42AM I have never run Tomcat under an Unix like OS, so I don't now. The host neptune.broward.edu is declared in the network configuration of the machine? ping neptune.broward.edu works? -Message d'origine- De : Raj Mettai [mailto:[EMAIL PROTECTED]] Envoy? : jeudi 19 septembre 2002 22:30 ? : [EMAIL PROTECTED] Objet : RE: Apache2 and Tomcat4 on different boxes Hi Vincent, I am running tomcat under root user, do you think it has anything to do for the configuration not to work.. again here are my latest mod_jk.log.. [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 0 [Thu Sep 19 15:28:02 2002] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (88)]: Into wc_open [Thu Sep 19 15:28:02 2002] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Thu Sep 19 15:28:02 2002] [jk_worker.c (228)]: build_worker_map, creating worker ajp13 [Thu Sep 19 15:28:02 2002] [jk_worker.c (148)]: Into wc_create_worker [Thu Sep 19 15:28:02 2002] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp13 of ajp13 [Thu Sep 19 15:28:02 2002] [jk_ajp13_worker.c (108)]: Into ajp13_worker_factory [Thu Sep 19 15:28:02 2002] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp13 [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1178)]: Into jk_worker_t::validate [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1198)]: In jk_worker_t::validate for worker ajp13 contact is neptune.broward.edu:8009 [Thu Sep 19 15:28:02 2002] [jk_ajp_common.c (1226)]: Into jk_worker_t::init [Thu Sep 19 15:28:02 2002] [jk_worker.c (187)]: wc_create_worker, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (238)]: build_worker_map, removing old ajp13 worker [Thu Sep 19 15:28:02 2002] [jk_worker.c (250)]: build_worker_map, done [Thu Sep 19 15:28:02 2002] [jk_worker.c (111)]: wc_open, done 1 thanks a lot -Raj [EMAIL PROTECTED] 09/19/02 03:58AM Sorry I look at your config files, but I see nothing bad (as you I think ;-) ) In your mod_jk logs, we can see that the ajp13 worker is not found first then it's running and found by Apache. And then, it's closed during request processing. That's a strange beaviours. You run this configuration : Apache/2.0.39 (Unix) mod_ssl/2.0.39 OpenSSL/0.9.6g mod_jk/1.2.0 What have you compile by your self? If I were you, I will recompile Apache 2.0.39 (You can change to 2.0.40) without mod_ssl, mod_jk 1.2.0 and Tomcat 4.0.4 on your machine, because it'is so strange... Try to restart your test in a clean environement. Save your config files, they seem to me not bad. Try to do a working configuration without mod_ssl. That's poor help... Sorry
problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
In tomcat box I added following lines as per documentation Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / That's why I had to copy it from apache box to TOmcat box, Here When I tried apache tomcat on same box, they worked well, but when I tired on different boxes I understood that Apache is not at all connecting to TOmcat box, but in mod_jk.log Every thing seems to be fine Thanks in advance Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:26 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Tnank you very much for great help, Can you help me connecting apache and tomcat installed on differnet boxes Thks in advance Venkat -Original Message- From: Venkat Reddy Valluri Sent: Thu 9/19/2002 11:39 AM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk In tomcat box I added following lines as per documentation Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so / Host name=machine 'B' debug=1 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/usr/local/apache2/modules/mod_jk.so / That's why I had to copy it from apache box to TOmcat box, Here When I tried apache tomcat on same box, they worked well, but when I tired on different boxes I understood that Apache is not at all connecting to TOmcat box, but in mod_jk.log Every thing seems to be fine Thanks in advance Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:26 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from machine B to Machine A(Apache Machine) and included it in httpd.conf Here I did not understand Following things 1) in mod_jk.conf (on Machine 'A' Apache) Alias /manager /opt/catalina/webapps/manager -- here what I need to put, because the path mentioned is there on machine 'B' 2)in workesr.properties (on machine 'A' Apache) worker.ajp13.host= machine 'B' I am sure This is ok workers.tomcat_home=/opt/catalina workers.java_home=/opt/java/j2sdk1.4.0_01, here what I need to set up for these (because catalina_home and java_home are there in Machine 'B') here I didn't get any error in mod_jk.log (on machine 'A') Any help greatly appreciated ThksRgds Venkat -- 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] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Thank you very much john, I wish you could havce been succesful Thks Venkat -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:54 AM To: 'Tomcat Users List' Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I wish I could help more, but I haven't had the need to do separate-machine Apache + Tomcat, so all I know is what's in the documentation and what's been posted to the list. I haven't tried it at all. As far as I know, you set things up according to this URL: http://www.ubeans.com/tomcat and then you just change the host parameter in workers.properties to be the fully-qualified domain name of the Tomcat host (or perhaps the IP address would be better, but then I'm not sure that Tomcat would get the host header right). Maybe this weekend I will give setting these up on different boxes a shot, if I have time. It would be an interesting experiment. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:44 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi John, I followed your documenataion only, That is really awesome, so many of tomcat guys suggested your documentation Tnank you very much for great help, Can you help me connecting apache and tomcat installed on differnet boxes Thks in advance Venkat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Hi Michael, Can you pl be more specific abou how to configure tomcat server.xml and how to generate mod_jk.conf manually Thks in advance Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 12:23 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi, I installed Apache 2.0.40 and Tomcat 4.0.4 on different Linux(RedHat) servers and tried to make apache connect to tomcat with mod_jk module, For this I did the following things 1) I installed Apache 2.0.40 on Machine 'A' and built mod_jk.so module (./configure --with-apxs=/usr/local/apache2/bin/apxs --with-java-home=/usr/java/j2sdk1.4.0_01), It was suceesfully done and got mod_jk.so 2) I installed Tomcat 4.0.4 on machine 'B' and copied mod_jk.so from machine 'A'(Apache machine) to Machine 'B' (Tomcat machine), and modified server.xml as per the documenatation here Upon start up of tomact I got mod_jk.conf, I copied it from
RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk
Thanks Mike Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 3:18 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Venkat, Yes, I will give you more details, however, I've got higher priority things to do at this moment, so it will take me a few hours before I can document the details. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:54 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Hi Michael, Can you pl be more specific abou how to configure tomcat server.xml and how to generate mod_jk.conf manually Thks in advance Venkat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 12:23 PM To: Tomcat Users List Cc: Subject:RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I was getting to that, but I forget to mention it before I hit send. (:o) -Mike -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 11:22 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Any thoughts of compiling a HOWTO, by chance? Hint, hint. :) John -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 12:18 PM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk I *just* completed a successful configuration of Apache 2.0.40 and Tomcat 4.0.4 using the mod_jk.so connector (provided by John Turner, thanks John) on RedHat Linux 7.3 where Apache and Tomcat are running on separate machines. If Apache is not connecting to tomcat, then you should look on the Apache box for the cause (assuming that the Tomcat box is running! g). In your httpd.conf file, there should be two directives, JkLogFile and JkLogLevel. Set the JkLogLevel value to debug and restart Apache. Then when you make a request, you should be able to see what is happening via the log file. Note: If you followed John's instructions for configuring the system, you will have a problem because those instructions depend on the Tomcat listener (ApacheConfig) to generate the mod_jk.conf file. This won't work if tomcat and apache are on separate boxes, so you'll have to do that part manually (or copy the generated file from the tomcat box to the apache box). If your httpd.conf file contains this directive: include /usr/local/tomcat/conf/auto/mod_jk.conf then you will have problems, because tomcat is not on the apache box. -Mike Schulz -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:56 AM To: Tomcat Users List Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk Even though I didn't copy, Atleast Apche should have connected to tomcat and I should have executed jsp pages existed on tomcat box, here apache is serving some static files which are existing on apache boxe, but when I tried to execute http://www.xxx.com/examples/(in mod_jk.conf jkmount /examples/* ajp13) it is supposed to connect to tomcat box and execute jsp's, but it is not recognising them, because it is not even connected to tomcat -Original Message- From: Michael Schulz [mailto:[EMAIL PROTECTED]] Sent: Thu 9/19/2002 11:46 AM To: Tomcat Users List Cc: Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk If you want to put Apache and Tomcat on separate boxes, and still run the Tomcat examples, you will have to copy the static (.html) files from the tomcat box to the apache box so that apache can serve them. -Mike Schulz -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:26 AM To: 'Tomcat Users List' Subject: RE: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent machines with mod_jk The lines like tomcat_home etc. in workers.properties are optional. (thanks Milt!) You only need the worker definitions (like port number, etc). I'm not sure about the Alias /manager question, that is a good question. You don't need mod_jk.so on the Tomcat box, its an Apache module. John -Original Message- From: Venkat Reddy Valluri [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 10:47 AM To: [EMAIL PROTECTED] Subject: problem with connecting Apache2.0.40 and Tomcat4.0.4 installed on diffrent
Tomcat 3.2.3 - Shutdown command ignored.
Hi, We are using Tomcat 3.2.3 load balanced through Apache at the web tier. From time to time, in the logs I have noticed Shutdown Command Ignored, and I picked up a thread somewhere that indicated that this would mean that somebody is trying to issue a shutdown command (from web layer through Apache??) that is not locally generated. Would that be the case? If that is so should I consider this as a possible security issue? Any thoughts will help. Thanks Gary __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
How to find Date Format in a Database
Hi, I am sorry to ask you the Java Qn. Is there any way to find date format of date datatype in any database by using a SQL query. And also by using JDBC classes. Any idea will be appreciated. Thanx in advance. -- Venkat -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: protecting a non-jsp file from accessing
Hi, Thank You for your help. I copied db.cfg to app-root/WEB-INF/classes/. My browser says You don't have permission to access /WEB-INF/classes/ on this server, when I use URL http://virtual_host_name/WEB-INF/classes/. But I am able to access it from my browser by using http://virtual_host_name/WEB-INF/classes/db.cfg. The browser displaying all the contents of the file. Any guess?. --thanx Venkat - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 21, 2001 8:10 PM Subject: RE: protecting a non-jsp file from accessing I would include the file in the same place as the class file (in the app-root/web-inf/classes/...)- then you can use something like yourclassname.class.getResourceAsStream(sub folder relative to class's package/db.cfg); Then you can read the configuration properties from that stream (Dont forget to close it after reading the contents). By default tomcat blocks all access to the web-inf folder S. -Original Message- From: Venkat Dosapati [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 12:47 AM To: Tomcat Users List Subject: protecting a non-jsp file from accessing Hi, I have been using Tomcat 3.2.1 with Apache for my application deployment. In my application I have a database configuration file called db.cfg. The file is placed in document root directory. Now my problem is that the file can be accessed through the browser by using http://VirtualHostName/db.cfg. Is there anyway to block the file from users. Any ideas will be appreciated. Thanx in advance. Venkat -- 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]
protecting a non-jsp file from accessing
Hi, I have been using Tomcat 3.2.1 with Apache for my application deployment. In my application I have a database configuration file called db.cfg. The file is placed in document root directory. Now my problem is that the file can be accessed through the browser by using http://VirtualHostName/db.cfg. Is there anyway to block the file from users. Any ideas will be appreciated. Thanx in advance. Venkat
Re: Source script reveal bug
No, It seems a bug in Tomcat 3.2.1 and previous versions. I understand that it's fixed in TC3.2.2, check it on your machine. I'm not sure if TC is used as a standalone Venkat - Original Message - From: Randy Layman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 08, 2001 7:11 PM Subject: RE: Source script reveal bug I am still unable to reproduce this. I am running Tomcat standalone on Win2000 and behind IIS on NT4, neither exhibit the problem you are describing, or the one that you linked to. Both of my systems are using Sun's Java 1.2.2_007. Could it be that somehow your IIS configuration is serving this up? If the Cold Fusion patch was from Microsoft it seems like IIS might be doing some strange things - I would suggest moving all of your JSPs outside of inetpub in order to prevent IIS from finding it (just as a test). Have you done anything to your server.xml file or web.xml file? Perhaps you have stumbled onto a configuration that causes this bug. (My configuration is pretty close to the default with the modification of dropping HTTP on the server and adding servlet mappings for my webapp) Randy -Original Message- From: Venkat [mailto:[EMAIL PROTECTED]] Sent: Friday, June 08, 2001 12:54 AM To: [EMAIL PROTECTED] Subject: Re: Source script reveal bug Please take a look at this url: http://w6.metronet.com/~wjm/tomcat/2001/Apr/msg00163.html My current version is 3.2.1, I upgraded to latest 3.2.2 but of no use, the bug still exists. Anything wrong with my upgrade Thanks Venkat - Original Message - From: Mark Howell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 08, 2001 12:33 PM Subject: Re: Source script reveal bug I know that the release notes for tomcat 4 beta 5 state that appending the string %00 to the end of the JSP url will reveal the source code, but it was referring to tc4 betas prior to beta 5. Is this the issue you're talking about? -Mark Howell [EMAIL PROTECTED] http://nullcraft.org Venkat wrote: Hi All Since I could not get a solution from the archives, this posting is inevitable I'm using Tomcat 3.2.1 on my production server on Win2K with IIS 5. I recently come across about a bug in this version of Tomcat which reveals JSP script source code by URL trickery. I hope many of you guys there are aware of it and fixed it too. I wish to know that is it a bug in Windows platform (because coldfusion on windows has similar problem add +.htr to your cfm url reveals cfm source code, and MS has a fix for NT 4.0 and win2K) If it's a bug in Tomcat, is there a fix for it and how to do it. Please reply with complete details/urls Regards Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Source script reveal bug
Hi All Since I could not get a solution from the archives, this posting is inevitable I'm using Tomcat 3.2.1 on my production server on Win2K with IIS 5. I recently come across about a bug in this version of Tomcat which reveals JSP script source code by URL trickery. I hope many of you guys there are aware of it and fixed it too. I wish to know that is it a bug in Windows platform (because coldfusion on windows has similar problem add +.htr to your cfm url reveals cfm source code, and MS has a fix for NT 4.0 and win2K) If it's a bug in Tomcat, is there a fix for it and how to do it. Please reply with complete details/urls Regards Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Source script reveal bug
Please take a look at this url: http://w6.metronet.com/~wjm/tomcat/2001/Apr/msg00163.html My current version is 3.2.1, I upgraded to latest 3.2.2 but of no use, the bug still exists. Anything wrong with my upgrade Thanks Venkat - Original Message - From: Mark Howell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 08, 2001 12:33 PM Subject: Re: Source script reveal bug I know that the release notes for tomcat 4 beta 5 state that appending the string %00 to the end of the JSP url will reveal the source code, but it was referring to tc4 betas prior to beta 5. Is this the issue you're talking about? -Mark Howell [EMAIL PROTECTED] http://nullcraft.org Venkat wrote: Hi All Since I could not get a solution from the archives, this posting is inevitable I'm using Tomcat 3.2.1 on my production server on Win2K with IIS 5. I recently come across about a bug in this version of Tomcat which reveals JSP script source code by URL trickery. I hope many of you guys there are aware of it and fixed it too. I wish to know that is it a bug in Windows platform (because coldfusion on windows has similar problem add +.htr to your cfm url reveals cfm source code, and MS has a fix for NT 4.0 and win2K) If it's a bug in Tomcat, is there a fix for it and how to do it. Please reply with complete details/urls Regards Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Tomcat in production
I have 2 Intel dual CPU NEC 5800 machines on production since last 3 months with Tomcat 3.2 on win2k with iis 5.0 and MSSQL 7.0, so far no complaints, no crashes, better performance compared to Coldfusion 4.5 I have an unscientific success story, in that Tomcat has treated me well in my small business environment. I can not give you actual stats. But for one project I have, I have about 20-25 servlets and jsp's that take about 45,000 hits over the course of a month. I've never had any complaints about speed or anything (of course, there are many variables in the speed equation, but Tomcat has not presented me with a weak link in my setup). That's about as un-scientific as you can get, but it's what I have to offer. BTW, my config is apache/tomcat/mysql on a dual PIII-600 over a 384K line. I have not used any other container, so I can not compare any other engine directly. Hope that helps a bit, Rob Mazur Aravind Naidu wrote: Hi All, We have been using Tomcat for development and are quite happy with it. I would like to know any success/failure(?) stories of Tomcat as a production servlet/JSP engine. -- Aravind _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Cartes Offertes
Danny I have seen you participating actively in james-user mailing list, how come you are not able to unscribe properly -;) venkat - Original Message - From: Danny Angus To: [EMAIL PROTECTED] Sent: Friday, May 18, 2001 5:41 PM Subject: RE: Cartes Offertes UNSUBSCRIBE dont send me any more mail -Original Message-From: Nicolas Dulion [mailto:[EMAIL PROTECTED]]Sent: Friday, May 18, 2001 8:46 AMTo: [EMAIL PROTECTED]Subject: Cartes Offertes Imprimerie - Objets Promotionnels - Vêtements Publicitaires OFFRE SPECIALE DE LANCEMENT Réalisez vous même vôtre maquette sur le site Internet et recevez : 250 CARTES DE VISITE GRATUITES* ! Cartes 8,5x5,4 Recto quadrichromie (toutes couleurs) sur carton 350g. CM. (*) Participation aux frais de port 30 F. Offre réservée aux professionnels valable jusqu'au 31/05/2001, pour toute maquette réalisée sur Internet.1 lot de 250 cartes gratuites par société. DECOUVREZ sur www.omnipub.net Notre catalogue de supports publicitaires Le calcul de devis instantanement sur le site La réalisation et sauvegarde de vos MAQUETTES en ligne. Imprimerie - Objets Promotionnels - Vêtements Publicitaires 280, bis rue Roland Garros - Espace Fréjorgues Ouest - 34135 MauguioTél. 04 99 13 63 33 - Fax. 04 67 65 03 06 - Mail : [EMAIL PROTECTED]
Re: Tomcat Performance on a Dual Processor Win2K Machine.
Please read recent discussion about this, missing '/' context in server.xml can cause high cpu utilization problems venkat Hi All, I have a java application running under this setup: Tomcat-3.2, IIS-5.0,SQL Server-7.0 with Windows 2000 Professional on a Dual Processor Machine. The problem am encountering is High CPU utilization and non-release of CPU by the application. Any pointers to the cause of this problem. Btw running the same application on a Single processor doesn't cause the problem. Rgds, Karthik _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: inetinfo CPU usage
I have the 3 machines with similar configuration but never faced such problem Check your server configuration contains a '/' (root) context, similar posts were made earlier and found that missing root context can bring your machine to its knees (perhaps a bug in tomcat) hope this helps regards venkat Hi, We are running Tomcat with IIS and see that the CPU utilization increases drastically after a couple of accesses and stays there. Restarting IIS or killing inetinfo seems to be the only solution. However on accessing the application from http://localhost:8080/ABC we do not see any problems. System Info. -- Dual CPU Win2K 5.00.2195 Service Pack1, Tomcat3.1 and IIS 5.0 On testing the application on other servers with a similar configuration but with single CPUs we do not see this problem. Could this be because of the dual CPUs. Is there a workaround to this problem Thanks in advance Vishwa _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Preserving single quotes
Hi all Forgive me if it's a repeated post since I could not get adequate info. from the archives. I'm facing a problem which most of you might have encountered and solved. Please provide a solution to this: I'm able to insert all specials characters into my MSSQL tables using PreparedStatement interface but when I read the same data using a CachedRowSet class or normal ResultSet class, everything works fine except single quotes which are displayed as '?' Please suggest me a work around to this Thank you all venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Session Ended Event
You can implement javax.servlet.http HttpSessionBindingListenerm and override valueBoundand valueUnboundmethods to get desired results Servlet engine notifies valueBound() method when a new session is created and valueUnbound() method when a session is timed out/destroyed Hope this helps Venkat - Original Message - From: Lakshmeenarayana G G To: Tomcat-User Sent: Wednesday, April 11, 2001 5:42 PM Subject: Session Ended Event Hi, My application requires to capture the events occured by session when Times out after Inactive Time period elapsed.or what servelt Engine will do when the session closes because of inactive time period expires. Ragards. L G GoundalkarIntertec Communications Pvt LtdINDIA
bug in DATEFORMAT class .. URGENT!!!
Any month is converted into Jan. Please suggest a workaround for this java.text.SimpleDateFormat fmt=new java.text.SimpleDateFormat("dd/mm/yy",Locale.ENGLISH); fmt.getDateInstance(DateFormat.MEDIUM); java.util.Date pdu=fmt.parse(request.getParameter("publishdate")); java.util.Date adu=fmt.parse(request.getParameter("archivedate")); Thankyou Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Automatic database connection
Hi all Inorder to reduce load on database, I want to connect once to the database everyday (at 12 o' clock midnight or on change of date) and retrieve some information from database (say a quote of the day) and put that in servletcontext and display it to everyone on one particular page I am able to do this in that page and it happens only when somebody requests that page, database connection is made and string data is put in application (servlet) object How can I automate this, is there any way that I write same code in web.xml or in any other place Please advise Thanks Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Automatic database connection
Thanx for ur quick reply but my platform is M$ Win 2K and M$$QL $erver How about this? Thanx Venkat - Original Message - From: "Ryan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 11:48 AM Subject: Re: Automatic database connection just run a cron job and have mysql pipe the output to a file. check out 'man crontab' -ryan - Original Message - From: "Venkat" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 12, 2001 5:20 PM Subject: Automatic database connection Hi all Inorder to reduce load on database, I want to connect once to the database everyday (at 12 o' clock midnight or on change of date) and retrieve some information from database (say a quote of the day) and put that in servletcontext and display it to everyone on one particular page I am able to do this in that page and it happens only when somebody requests that page, database connection is made and string data is put in application (servlet) object How can I automate this, is there any way that I write same code in web.xml or in any other place Please advise Thanks Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Automatic database connection
That's great! Thanx a lot Venkat - Original Message - From: "Tony G" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 12:08 PM Subject: Re: Automatic database connection NT has a command named at - you can launch a browser with a URL as the parameter using at Venkat wrote: Thanx for ur quick reply but my platform is M$ Win 2K and M$$QL $erver How about this? Thanx Venkat - Original Message - From: "Ryan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 11:48 AM Subject: Re: Automatic database connection just run a cron job and have mysql pipe the output to a file. check out 'man crontab' -ryan - Original Message ----- From: "Venkat" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 12, 2001 5:20 PM Subject: Automatic database connection Hi all Inorder to reduce load on database, I want to connect once to the database everyday (at 12 o' clock midnight or on change of date) and retrieve some information from database (say a quote of the day) and put that in servletcontext and display it to everyone on one particular page I am able to do this in that page and it happens only when somebody requests that page, database connection is made and string data is put in application (servlet) object How can I automate this, is there any way that I write same code in web.xml or in any other place Please advise Thanks Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Copying Result set
Hi all If this a repeated post, please excuse me as i could not find any useful info from the archives I am looking for info. on copying/inserting a resultset. My case is I selct a resultset which may contain about 10 columns with 10+ rows, and is displayed, if the user choses to copy that, how can it be done? i tried to put the result set in a hashtable and copy but, is not happening Can anybody give some tips/links on this Thank you Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Disallowing Concurrent sessions
Hi All This has reference to an previous discussion on 'disallowing concurrent login' and Mr.Hans Bergsten came out with a suggestion of implementing HttpSessionBindingListener interface, add every new user to a vector, check the existence when a new user logs in ... I have implemented a solution similar to that, create a table to store details such as sessionId, User Ip, User's unique login id, session created time etc., check the table for login id, if not found, create a new session, add the loginid to that table and deny new session if the login id is found in the table. so, if the same user or anybody with the same loginid tries to sign again is redirected to another page which shows the details such the session details from the table This method works as long the user signs out using another jsp page which removes all cookies and invalidates the session, but the probelm is that if the user closes the browser window without signing out, those details are never removed from the table and he will not be able to login at all unless someone removes his details from the table Here, I am looking for a mechanism 1. which allows the tomcat container to remove all expired sessions from using sessions Ids, 2. Inform the first logged in user, log him out, invalidate that session andcreate new session for the newly signed in user 3. A method which can invalidate a session by its session Id (such as session.invalidate(sessionId), becuse HttpSession.invalidate()method does not take any arguement and invalidate current session) I am contemplating this to work similar to Yahoo Messanger (invalidates old session and creates new) I seek your valuable suggestions Thanks in advance Venkat _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Disallowing Concurrent sessions
- Original Message - From: "David Wall" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 02, 2001 2:01 AM Subject: Re: Disallowing Concurrent sessions This method works as long the user signs out using another jsp page which removes all cookies and invalidates the session, but the probelm is that if the user closes the browser window without signing out, those details are never removed from the table and he will not be able to login at all unless someone removes his details from the table That's kind of a big problem smile. Your revised solution is on the right track. Logout the original account and let the new one in. This also has the consequence of making a person miserable if he shares his login info since his friends will force him off if they come in while he's actually using the service, and of course it correctly handles the case where the user is simply coming back in without having logged out. 2. Inform the first logged in user, log him out, invalidate that session andcreate new session for the newly signed in user Well, HTTP won't let you inform the user unless that user does at least one more request to your site since the server knows nothing about the client. True, but this can be done .. like add a small or a spacer image which refreshes every minute and makes a request .. or a javascript function which makes a request onMouseOver event - catch this event when mouse reaches a prominent/frequently used location on the browser windows so on 3. A method which can invalidate a session by its session Id (such as session.invalidate(sessionId), becuse HttpSession.invalidate()method does not take any arguement and invalidate current session) That would be cool. Right now, I'm unfamiliar with such APIs, and it seems a waste to check every request against your session db to see if the session is still allowed to active. But if you did, you could update your db with a flag indicating that the users has been logged out, return that error page (clearly they didn't really log out since they were able to make another request on the session) and invalidate the session then. In fact, some tools like yahoo chat, mail and messenger services and MSN messenger have these features .. i'm not sure the logic behind this I'd be interested in knowing if there's any support (standard or otherwise) to let someone invalidate another session. That would seem like a generally BAD thing, but I know that Tomcat supports so-called trusted services, and maybe they can do this. Hope, some tomcat-developers contribute to this post David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: IIS 5.0, Windows 2000 Server, Tomcat 32
I use tomcat 3.2.1 with IIS 5.0 on WIN2K machine with dual CPU It works quite normal Venkat - Original Message - From: "Etienne Baert" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 2:24 PM Subject: RE: IIS 5.0, Windows 2000 Server, Tomcat 32 Hi Greg, we are running tomcat 3.2.1 (and ran tomcat 3.1) on 2 dual-CPU machines without any problems. We simply followed the howto documentation for installing them. Etienne -Original Message- From: Niemiec, Greg [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 21, 2001 12:59 PM To: '[EMAIL PROTECTED]' Subject: IIS 5.0, Windows 2000 Server, Tomcat 32 I am looking at installing Tomcat on a multiple CPU IIS 5.0 system and was wondering has anyone did it yet? I have read the tomcat-iis-howto but the thread stops 30 November.. Thanks in advance.. Greg.. Greg Niemiec Per-Se Technologies Software Development Environment Engineer [EMAIL PROTECTED] 909/888-3282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Loading beans
Hi All Can anyone help me to resolve this When i created more contexts in server.xml and added them to uriworkers.properties, but when i use beans, i'm not able to access to be clear: i have created a contex by name tests path d:/tests subfolders d:/tests/web-inf/classes i place my bean classes in web-inf/classes and refer them in my tests/*.jsp files, but tomcat is not reading them if i place the beans in %tomcat_home%/webapps/examples/WEB-INF/classes , it works how do i tell tomcat to look at my /tests/web-inf/classes/*.class files - I tried physically setting classpath to the bean classes - but does not work Thank you in advance Venkat