RE: log4j:WARN
U need to change the path in either java CODE Or in configuration file I meant to say: tell the code... Where log4j resides That's it. Simple and cool -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 16, 2005 1:00 AM To: tomcat-user@jakarta.apache.org Subject: log4j:WARN Hi! I'm developing a digital library with FEDORA (www.fedora.info) that comes with a jakarta-tomcat-5.0.28 server. The server works fine, but I instaled a .war file for an interface in JSPs that gives me the folowing error: - log4j:WARN No appenders could be found for logger (org.acs.elated.lucene.LuceneInterface). log4j:WARN Please initialize the log4j system properly. --- The complect startup looks like this: - c:\fedora-2.0\server\binfedora-start Starting Fedora server... Deploying API-M and API-A... Waiting for server to start... Waiting for server to start... log4j:WARN No appenders could be found for logger (org.acs.elated.lucene.LuceneInterface). log4j:WARN Please initialize the log4j system properly. Processing file C:\fedora-2.0\server\config\deployAPI-A.wsdd AdminDone processing/Admin Processing file C:\fedora-2.0\server\config\deploy.wsdd AdminDone processing/Admin Initializing Fedora Server instance... Fedora Version: 2.0 Fedora Build: 1 Server Host Name: localhost Server Port: 8080 Debugging: false OK Finished. To stop the server, use fedora-stop. c:\fedora-2.0\server\bin I have the log4j.properties in C:\fedora-2.0\server\jakarta-tomcat-5.0.28\webapps\elated\WEB-INF\classes but I dont understand the error... Can anyone help? Thanks António - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can you use Tomcat when you are not on line?
Hi wally, Have u followed the steps properly 1) Check connector PORT number in SERVER.XML 2) if using windows... Create directory with following structure. C:\program files \ apache tomcat 5.something\webapps\Test now in Test Directory, you should put files like this Basically folders in Test directory like the following Test - WEB-INF -classes - lib In WEB-INF directory, u must put web.xml file as well. 3) include the context element in SERVER.XML like the following Host name=localhost debug=1 appBase=webapps unpackWARs=true autoDeploy=true Context path= docBase=/usr/local/jakarta-tomcat-5.5.4/webapps/Test debug=10 / /Host NOTE: Change the path to your path above for Test directory Now write a small servlet saying hello and compile and copy in classes directory That's it Vaneet -Original Message- From: Sng Wee Jim [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 4:07 AM To: Tomcat Users List Subject: RE: Can you use Tomcat when you are not on line? Wally, Did you set your Internet Explorer to Bypass proxy server for local addresses (Internet Options | Local Area Network (LAN) Settings)? Jim -Original Message- From: Walter Lee [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 3:06 AM To: Tomcat Users List; Jason Bainbridge Subject: Re: Can you use Tomcat when you are not on line? Thanks for responding. My IE is totally up to date. I have changed and re-changed all the options for connecting and it does not seem to make any difference. I cannot go to Firefox because the company does not want to. So I will keep playing around and see what happens. It does not seem to be a problem right now. Wally - Original Message - From: Jason Bainbridgemailto:[EMAIL PROTECTED] To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org Sent: Thursday, April 07, 2005 2:42 PM Subject: Re: Can you use Tomcat when you are not on line? On Apr 6, 2005 10:44 AM, Walter Lee [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: I have Tomcat installed on W2K and it says it is installed correctly. When I try the examples it tells me that I must be on line. If I am using localhost:8080 why does it need to be on line? This is just Internet Explorer being tempermental, as other posters have suggested either just use Firefox - http://getfirefox.comhttp://getfirefox.com/ or just play around with checking and unchecking File / work Offline in Internet Explorer in between page refreshes. Eventually it will work. I think this was only a problem with older versions of IE though. -- Jason Bainbridge http://kde.orghttp://kde.org/ - [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] Personal Site - http://jasonbainbridge.comhttp://jasonbainbridge.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED]mailto:tomcat-user-unsubscrib [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] he.org The information in this email is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, please notify the sender of this email immediately. You should not copy, use or disseminate the information contained in the email. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Capco. http://www.capco.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: Can you use Tomcat when you are not on line?
:) Well to test to examples, it connects to internet ( may be) Best way is to write a small servet displaying Hello Try using velocity and servlet ( mvc ) Once, u make one class, u will make many :) Vaneet -Original Message- From: Walter Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 5:44 PM To: tomcat-user@jakarta.apache.org Subject: Can you use Tomcat when you are not on line? I have Tomcat installed on W2K and it says it is installed correctly. When I try the examples it tells me that I must be on line. If I am using localhost:8080 why does it need to be on line? Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to read JNDI resources?
U need to read this page http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/deployment.html Have fun reading Vaneet -Original Message- From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 06, 2005 6:14 PM To: Tomcat Users List Subject: Re: How to read JNDI resources? Thank you, I appreciate your reply. I didn't have a context entry so I added a minimal one (copied from the /examples one) before proceeding further as shown below. Context path=/xxx docBase=xxx debug=0 reloadable=true crossContext=true / Unfortunately tomcat doesn't start now. I get a 'Document base C:\Development\Java\jakarta-tomcat-4.1.31\webapps\xxx does not exist or is not a readable directory' So I added a direcory xxx. Now tomcat starts ok but it doesn't unpack the xxx.war. Again I'm probably making some very simple mistake but can't see the problem or an answer in the docs or by googling... Mark Thomas wrote: You need to include a ResourceLink element in your context. Mark Andrew Watters wrote: Using tomcat 4.3.1 I have included the following in server.xml GlobalNamingResources Environment name=config_file type=java.lang.String value=test/ /GlobalNamingResources In a servlet loaded on startup I try to read in the property InitialContext ic = new InitialContext(); Context ctx = (Context) ic.lookup(java:comp/env); String configFilename = (String)(ctx.lookup(config_file)); This code throws a NamingException. Where have I gone wrong? Thanks Andrew - 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] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication problems with tomcat clustering.
You can find jakarta tomcat connector 1.2.10 Apache website http://jakarta.apache.org/tomcat/connectors-doc/ Have fun. Im still struggling with mod_jk :) Need to change, restart and la la la Vaneet -Original Message- From: David Owens [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 7:25 PM To: Tomcat Users List Subject: RE: Authentication problems with tomcat clustering. Are your servlets in the /servlet/ directory? Or some other name? You have only redirected /servet/*, /*.vm and /therestaurant/servlet/ControllerServlet/* You may want to try just /therestaurant/* And you may want to do this JkMount / therestaurant /* loadbalancer On my problem: So I did some more investigation, and have found that I am authenticating against one tomcat, and then being balanced over to the other tomcat. This is presumably happening before the session is replicated... still looking for a solution... perhaps synchronous replication... I am also trying to find the 1.2.10 mod_jk for my system. (linux) -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 10:09 AM To: Tomcat Users List Subject: RE: Authentication problems with tomcat clustering. Your Apache and Tomcat configuration is exactly like me.. However today I installed connector mod_jk.. Connector 1.2.10... And ... Though apache and tomcat are talking .. I cannot run my servlet page. Pls have a look below to see the configuration Thankx The connector is not loading my servlets? I am writing down my httpd.conf and workers.properties Httpd.conf LoadModule jk_module modules/mod_jk.so ifModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkAutoAlias /usr/local/jakarta-tomcat-5.5.4/webapps JkShmFile /etc/httpd/logs/mod_jk.shm JkMount /servlet/* ajp13Worker JkMount /*.vm ajp13Worker JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker /ifModule NameVirtualHost xxx.xxx.xxx.xxx:80 VirtualHost xxx.xxx.xxx.xxx:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant ServerName www.therestaurant.name /VirtualHost And below is workers.properties file worker.ajp13Worker.port=8009 worker.ajp13Worker.host=xxx.xxx.xxx.xxx worker.ajp13Worker.type=ajp13 worker.ajp13Worker.lbfactor=50 worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600 -Original Message- From: David Owens [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 6:04 PM To: tomcat-user@jakarta.apache.org Subject: Authentication problems with tomcat clustering. I have setup load balancing and clustering between two Tomcat 5.5.7 instances and Apache 2.0.50 with mod_jk. Almost everything works great. I can fail back and forth between the 2 tomcat instances with no trouble. However, I am having problems with the form based authentication. I have an index.html file which redirects the user to a secured resource. When the user hits this file through Apache, it works like normal, directing them to the login page. However, when I attempt to login I get Invalid direct reference to form login page. When I look in the logs, I see the user is being authenticated, and the correct roles are being found. If I continually try logging in, and hitting the secure page, eventually I get in. Then, if I bounce apache, the problem starts again. If I login in the exact same manner directly against one of the tomcat instances, everything works, and I continue to the secure resource. In addition, I have found that if I stop one tomcat instance, I can login on the first try even when going through apache. It's worth noting, once I get successfully logged in once through apache (after many tries), I can logout/in repeatedly with no problem. Once I bounce apache, the problem starts again. I think something strange is happening with the login stuff when tomcat is clustered... Maybe I'm logging into 1 tomcat successfully, but being load balanced over to the other one, and the session has not been completely replicated yet? Any one else out there have this issue, or have any ideas? Thanks in advance! |)ave Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential
RE: Authentication problems with tomcat clustering.
I suggest u do step by step again You will find the bug. Start from basic . First run one ... And then try loadbalancer.. Later on Vaneet -Original Message- From: David Owens [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:11 PM To: tomcat-user@jakarta.apache.org Subject: RE: Authentication problems with tomcat clustering. I have done some further testing and have found what I think the problem is, but I still do not know the solution. What is happening is that the first time I access the webapp through httpd, I am getting the first tomcat server. I then type in my username and password and hit submit. I see in the logs of the first tomcat server log the authentication happening successfully, however, I am then redirected to the second tomcat server where my session is not available. I am using a 'lb' type load balancer, and by default it has sticky sessions, so I wonder why I am being balanced over to the other tomcat. Is this, perhaps, a question for the mod_jk team? Is there such a mailing list? |)ave -Original Message- From: David Owens Sent: Monday, April 04, 2005 10:04 AM To: 'tomcat-user@jakarta.apache.org' Subject: Authentication problems with tomcat clustering. I have setup load balancing and clustering between two Tomcat 5.5.7 instances and Apache 2.0.50 with mod_jk. Almost everything works great. I can fail back and forth between the 2 tomcat instances with no trouble. However, I am having problems with the form based authentication. I have an index.html file which redirects the user to a secured resource. When the user hits this file through Apache, it works like normal, directing them to the login page. However, when I attempt to login I get Invalid direct reference to form login page. When I look in the logs, I see the user is being authenticated, and the correct roles are being found. If I continually try logging in, and hitting the secure page, eventually I get in. Then, if I bounce apache, the problem starts again. If I login in the exact same manner directly against one of the tomcat instances, everything works, and I continue to the secure resource. In addition, I have found that if I stop one tomcat instance, I can login on the first try even when going through apache. It's worth noting, once I get successfully logged in once through apache (after many tries), I can logout/in repeatedly with no problem. Once I bounce apache, the problem starts again. I think something strange is happening with the login stuff when tomcat is clustered... Maybe I'm logging into 1 tomcat successfully, but being load balanced over to the other one, and the session has not been completely replicated yet? Any one else out there have this issue, or have any ideas? Thanks in advance! |)ave Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Error Log
Hello all, I am running centos 3.4 I am using Apacher Web Server 2.0.46 .. And running tomcat 5.5.4 with jakarta-tomcat-connector-1.2.10 Well, Apache and tomcat are communicating .. ... well. :) But ... when I see the logs, I see the this log generated in my custom log file ( mywebapps\logs\thesystemgui.log) DEBUG JspRuntimeContext - Parent class loader is: WebappClassLoader delegate: false repositories: /WEB-INF/classes/ -- Parent Classloader: [EMAIL PROTECTED] 2005-04-05 15:24:07,758 [main] DEBUG JspServlet - Scratch dir for the JSP engine is: /usr/local/jakarta-tomcat-5.5.4/work/Catalina/w ww.therestaurant.name/therestaurant Can some one tell me : why it is not loading the WebappClass loader. I commented out connector element in server.xml. I am using AJP1.3 to handle servlet requests !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- !-- Connector port=80 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / -- Well, basically, my application is connected to a GSM modem at /dev/ttyS0 Before.. When tomcat was running standalone, GSM modem was connecting well but now After Apache and Tomcat are runing using mod_jk.so. GSM modem is not connecting. IN my worker.properties file, I have commented out all directives related to sockets. #worker.ajp13Worker.cachesize=10 #worker.ajp13Worker.cache_timeout=600 #worker.ajp13Worker.socket_keepalive=1 #worker.ajp13Worker.socket_timeout=300 Well, any help will be great. Kind Regards Vaneet Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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.
/dev/ttyS0
I am having this error Im using apache 2.0.46 with tomcat 5.5.4 .. Mod_jk is working fine. But my GSM modem is having problem in connecting.. RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyS0: File exists Any help will be great. Vaneet Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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.
RE: Apache - JK2 - Tomcat Question
Try the virtual host directive in httpd... I think you can do something there Though I will be implementing the same tomorrow :) Regards Vaneet -Original Message- From: Geoff Wiggs [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 7:59 PM To: tomcat-user@jakarta.apache.org Subject: Apache - JK2 - Tomcat Question I have a 'newbie' jk2 / Tomcat question. I am running Tomcat behind Apache with mod_jk2 interfacing the two. If I hit the URL www.myserver.com/contextname I get the JSP/servlet that I am hoping for. I am using the correct mapping ([URI:/contextname/*]) in the workers2.properties and everything up to this point makes sense. I am also running multiple virtual hosts through Apache. I want to be able to hit URLs such as dev.myserver.com or www.myVirtualServer.com/contextname. If I use a redirect in the Apache httpd file, I can redirect the incoming request back to www.myserver.com/context, but this seems hocky. How do I 'connect' alternate inbound URLs to a Tomcat context? What is controlling the connection between www.myserver.com and Tomcat? This is a great list and I really appreciate all the advice that I've gleaned from it so far. PS - Using Tomcat 5.5 and Apache 2.? Regards, Geoff Wiggs Orcas Technologies, Inc [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jakarta-tomcat-connectors-1.2.10-src error
I am getting error in error_log No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! I am using new Jk Connector.. With tomcat 5.5.7 Jakarta connector -1.2.8 is working well with 5.5.7 on my other machine... ( so configuration is fine and working well ) Something has changed in new connector Any suggestion Vaneet Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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.
RE: servlet not connecting
Thankx The connector is not loading my servlets? I am writing down my httpd.conf and workers.properties Httpd.conf LoadModule jk_module modules/mod_jk.so ifModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkAutoAlias /usr/local/jakarta-tomcat-5.5.4/webapps JkShmFile /etc/httpd/logs/mod_jk.shm JkMount /servlet/* ajp13Worker JkMount /*.vm ajp13Worker JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker /ifModule NameVirtualHost xxx.xxx.xxx.xxx:80 VirtualHost xxx.xxx.xxx.xxx:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant ServerName www.therestaurant.name /VirtualHost And below is workers.properties file worker.ajp13Worker.port=8009 worker.ajp13Worker.host=xxx.xxx.xxx.xxx worker.ajp13Worker.type=ajp13 worker.ajp13Worker.lbfactor=50 worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600 Any suggestions ? Im giving IP address in NameVirtualHost and worker.ajp13Worker.host directives. Shall I provide DNS name? Thankx again. Vaneet -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 4:29 PM To: 'Tomcat Users List' Subject: RE: Jakarta-tomcat-connectors-1.2.10-src error This is introduced by jk 1.2.10. Simply add into your httpd.conf JkShmFile logs/mod_jk.shm shall fix this error. -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: April 4, 2005 8:54 AM To: Tomcat Users List Subject: Jakarta-tomcat-connectors-1.2.10-src error I am getting error in error_log No JkShmFile defined in httpd.conf. LoadBalancer will not function properly! I am using new Jk Connector.. With tomcat 5.5.7 Jakarta connector -1.2.8 is working well with 5.5.7 on my other machine... ( so configuration is fine and working well ) Something has changed in new connector Any suggestion Vaneet Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Authentication problems with tomcat clustering.
Your Apache and Tomcat configuration is exactly like me.. However today I installed connector mod_jk.. Connector 1.2.10... And ... Though apache and tomcat are talking .. I cannot run my servlet page. Pls have a look below to see the configuration Thankx The connector is not loading my servlets? I am writing down my httpd.conf and workers.properties Httpd.conf LoadModule jk_module modules/mod_jk.so ifModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-5.5.4/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkAutoAlias /usr/local/jakarta-tomcat-5.5.4/webapps JkShmFile /etc/httpd/logs/mod_jk.shm JkMount /servlet/* ajp13Worker JkMount /*.vm ajp13Worker JkMount /therestaurant/servlet/ControllerServlet/* ajp13Worker /ifModule NameVirtualHost xxx.xxx.xxx.xxx:80 VirtualHost xxx.xxx.xxx.xxx:80 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/jakarta-tomcat-x.x.x/webapps/therestaurant ServerName www.therestaurant.name /VirtualHost And below is workers.properties file worker.ajp13Worker.port=8009 worker.ajp13Worker.host=xxx.xxx.xxx.xxx worker.ajp13Worker.type=ajp13 worker.ajp13Worker.lbfactor=50 worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600 -Original Message- From: David Owens [mailto:[EMAIL PROTECTED] Sent: Monday, April 04, 2005 6:04 PM To: tomcat-user@jakarta.apache.org Subject: Authentication problems with tomcat clustering. I have setup load balancing and clustering between two Tomcat 5.5.7 instances and Apache 2.0.50 with mod_jk. Almost everything works great. I can fail back and forth between the 2 tomcat instances with no trouble. However, I am having problems with the form based authentication. I have an index.html file which redirects the user to a secured resource. When the user hits this file through Apache, it works like normal, directing them to the login page. However, when I attempt to login I get Invalid direct reference to form login page. When I look in the logs, I see the user is being authenticated, and the correct roles are being found. If I continually try logging in, and hitting the secure page, eventually I get in. Then, if I bounce apache, the problem starts again. If I login in the exact same manner directly against one of the tomcat instances, everything works, and I continue to the secure resource. In addition, I have found that if I stop one tomcat instance, I can login on the first try even when going through apache. It's worth noting, once I get successfully logged in once through apache (after many tries), I can logout/in repeatedly with no problem. Once I bounce apache, the problem starts again. I think something strange is happening with the login stuff when tomcat is clustered... Maybe I'm logging into 1 tomcat successfully, but being load balanced over to the other one, and the session has not been completely replicated yet? Any one else out there have this issue, or have any ideas? Thanks in advance! |)ave Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat -- port 80 for Linux
configure apache with tomcat ( if u have some static files in your webapp then performance becomes faster ) use mod_jk connector runing go to apache.org ( go to tomcat ... go to connector and READ and have fun vaneet -Original Message- From: FRANCOIS Dufour [mailto:[EMAIL PROTECTED] Sent: Wed 3/30/2005 2:50 PM To: tomcat-user@jakarta.apache.org Cc: Subject: RE: Tomcat -- port 80 for Linux somwere your going to see this in your server xml under /conf of your tomcat_home folder if there you say 80 it will run on 80 exept if there is alredy somting on port 80? Define a non-SSL HTTP/1.1 Connector on port 8080- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080- [EMAIL PROTECTED] administrateur http://monteregiechat.org From: Jury Levykin [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: Tomcat -- port 80 for Linux Date: Wed, 30 Mar 2005 14:24:36 +0400 Hello! I use tomcat 5.5 as main web server at Linux host. Me need run tomcat in port 80. To solve this task I see two way: 1. Running tomcat as daemon in port 80 by jsvc command. 2. Running apache in port 80 and use mod_jk to redirect users request to tomcat. What way is most secure? - 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] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Webserver with Tomcat 5.5.7
Hello guys, Can someone help me in configuration? Any hints will be helpful as well. vaneet -Original Message- From: Vaneet Sharma Sent: Monday, March 21, 2005 11:28 AM To: tomcat-user@jakarta.apache.org Subject: Centos 3.3 Hello guys, I am not able to configure apache web server 2.something with apache tomcat 5.5.7. I am running centos 3.3. I installed mod_jk. I also changed httpd.conf files.. Also server.xml file in tomcat / conf directory Can anyone help? Can someone tell me an example of how to Put a context element in TOMCAT 5.5.7 . In Tomcat 5.5.7, the context element is in separate file. I have two problems, 1) mod_jk is not connecting Apache Web Server with Tomcat 5.5.5 2) I think tomcat is not picking the context Any hints? Kind Regards Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One request per session
Try to give thread priority. Are u using? Wait and notify ? Try using wait () and notifyAll Can you send me the code? Why are u doing it ? What is real need to do such thing? Vaneet -Original Message- From: Brij Naald [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:39 PM To: tomcat-user@jakarta.apache.org Subject: One request per session Hi, i'm trying to test a locking system for servlets. I've made a chain of servlets which include each other: Servlet1 -- Servlet2 -- Servlet3 When Thread1 is in Servlet2, it puts a lock on Servlet1. That way if there is a new Request, this request (on thread2) wants to start with servlet1. Since there is a lock on it, it has to wait. When Thread1 gets into servlet3 it releases the lock, and Tread2 can start with Servlet1. This is what i've made already. (if there are any questions about this already, please ask!) Now I wanted to test it like this: To test the lock, a thread in servlet2 sleeps for 20 seconds. So thread1 first executes servlet1, then goes to servlet2, waits for 20 seconds and then goes on to servlet3. While thread1 is in servlet2 i have the time to start a new request. Now what do I see: The first request starts with servlet1, then goes to servlet2 and starts waiting 20 seconds. Now I push on the 'previous'-button of my browser, and make a new request. This second thread must wait since servlet1 is locked. This works. But now the problem: when the first thread has waited 20 seconds, it doesn't go to servlet3 anymore. -- Is there somekind of functionality that only one request per session -- is allowed or something like that? Thanks! _ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache Webserver with Tomcat 5.5.7
Dear Jc, Thank you very much, Please read below SECTION A) configuration of httpd.conf Well, if you go there: http://www.export4u.co.uk ( Apacher webserver is running but it is not integrated with Tomcat. ) Java and Tomcat are already installed on the my machine 1) I have installed mod_jk.so ( I put into modules directory in etc/httpd/modules/ ?Am I putting mod_jk.so in right directory ? 2) I have changed httpd.conf. ( I read httpd.conf many times. ( its cool) , I included virtual host settings in the end ) Below is: configuration for httpd.conf NameVirtualHost 213.217.226.168:80 VirtualHost 213.217.226.168:80 #ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/jakarta-tomcat-5.5.7/webapps/XXX ServerName www.export4u.co.uk JkMount /servlet/* ajp13Worker JkMount /therestaurant/* ajp13Worker #ServerAlias export4u.co.uk # ErrorLog /usr/local/jakarta-tomcat-5.5.7/logs #CustomLog logs/dummy-host.example.com-access_log common /VirtualHost 3) I also included this in httpd.conf IfModule mod_jk.c JkWorkersFile /usr/local/jakarta-tomcat-5.5.7/conf/workers.properties JkLogFile /etc/httpd/logs/mod_jk.log JkLogLevel info JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /servlet/* ajp13Worker JkMount /restaurant/* ajp13Worker /IfModule 4) added this to httpd.conf as well : DocumentRoot /usr/local/jakarta-tomcat-5.5.7/webapps/MicsExport 5) Also included this line LoadModule jk_module modules/mod_jk.so 6) Also added :) Listen 213.217.226.168:80 SECTION B ) Coming to Tomcat now. Now after doing all this: I also changed workers.properties file in TOMCAT/conf worker.ajp13Worker.port=8009 worker.ajp13Worker.host=www.export4u.co.uk worker.ajp13Worker.type=ajp13 worker.ajp13Worker.lbfactor=50 worker.ajp13Worker.cachesize=10 worker.ajp13Worker.cache_timeout=600 worker.ajp13Worker.socket_keepalive=1 worker.ajp13Worker.socket_timeout=300 Also, I cannot configure Context in 5.5.7. According to documentation, it says, put context in META-INF. Where is META-INF directory ? Shall I create it? Lastly , I have not changed the SERVER.XML file in tomcat. Is my mod_jk.so file ok ?? I downloaded by following the links of connectors on Tomcat. Thankx again. Kind Regards Vaneet -Original Message- From: Jon Cline - Enthusiast, Inc. [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 5:58 PM To: Tomcat Users List Subject: Re: Apache Webserver with Tomcat 5.5.7 Hello Vaneet. Can you include the virtualhost portion of httpd.conf, host portion of server.xml, workers[2].properties, and jk.conf files so we can check your config? thx. jc On Tue, 22 Mar 2005 12:23:28 +0100, Vaneet Sharma [EMAIL PROTECTED] wrote: Hello guys, Can someone help me in configuration? Any hints will be helpful as well. vaneet -Original Message- From: Vaneet Sharma Sent: Monday, March 21, 2005 11:28 AM To: tomcat-user@jakarta.apache.org Subject: Centos 3.3 Hello guys, I am not able to configure apache web server 2.something with apache tomcat 5.5.7. I am running centos 3.3. I installed mod_jk. I also changed httpd.conf files.. Also server.xml file in tomcat / conf directory Can anyone help? Can someone tell me an example of how to Put a context element in TOMCAT 5.5.7 . In Tomcat 5.5.7, the context element is in separate file. I have two problems, 1) mod_jk is not connecting Apache Web Server with Tomcat 5.5.5 2) I think tomcat is not picking the context Any hints? Kind Regards Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company
Centos 3.3
Hello guys, I am not able to configure apache web server 2.something with apache tomcat 5.5.7. I am running centos 3.3. I installed mod_jk. I also changed httpd.conf files.. Also server.xml file in tomcat / conf directory Can anyone help? Can someone tell me an example of how to Put a context element in TOMCAT 5.5.7 . In Tomcat 5.5.7, the context element is in separate file. I have two problems, 1) mod_jk is not connecting Apache Web Server with Tomcat 5.5.5 2) I think tomcat is not picking the context Any hints? Kind Regards Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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.
RE: RH 7.3 to ES 3 migration Tomcat 5.0.28
I have configuration issues Im running Centos 3.3 I am trying to configure apache webserver with apache tomcat 5.5.7 I installed mod_jk.so in modules directory However my mod_jk is not listening? Any suggestions and hints will be appreciated vaneet -Original Message- From: Andrew Chapman [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 4:23 PM To: tomcat-user@jakarta.apache.org Subject: RH 7.3 to ES 3 migration Tomcat 5.0.28 I am about to update from Red Hat 7.3 to Red Hat Enterprise Server 3. This a move from Linux 2.4 kernel to a 2.4/2.6 hybrid. The Native Posix Threading Library (NPTL) is the biggest change there seems to be, does this cause any problems with the 1.5 JVM? Is anyone running Tomcat 5.0.28 with 1.5 JVM on Red Hat ES 3, are there any configuration issues that I should be aware of? Thanks in advance. Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank Limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet api question ?
Some of the reasons I know as a programmer is Servlet API ( its an extension of j2SDK and part of of J2EE) 1) It take care of many hidden programming implementations like connection to database, connection to remote hosts... Can be done with one method calls, While if u use SERVER API , then you have to write code to take care of these small details 2) Servlet API is being used time and again and hence has track history. Computer Science itself is not that old. With time, the software library improves and becomes robust. Servlet library has reached that stage. If you write your own code, you just cannot make it perfect in one time. You need testing under different environments. However servlet as FREE , is used by developers all over the world and hence tested all over world. Improvement of SERVLET API Is done by reports and bugs from developers all over the world. Bottom line: Whole open source community helps in development of SERVLET API 3) SERVLET API is better than cgi model, you should read the architecture of SERVLET. 4) j2EE is excellent framework. However, parts of framework has succeeded in market. For e.g JMS, SERVLET API and etc. EJB has however failed to succeed. 5) You should look at http://www.springframework.org ( it is really cool) I think it is best j2EE framework. Now, coming to IIS and other application servers, Servlet runs on java containers, like tomcat, jrun Go to http://www.apache.org http://java.sun.com http://www.google.com ( servlet tutorial) Have fun reading. However, the potential of JAVA comes on linux ~( I think ) Run Java on linux ( configure apache webserver with Tomcat ) and u can see it runs COOL Take care Vaneet -Original Message- From: brian [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 5:32 PM To: tomcat list Subject: servlet api question ? What are the advantages or the reason for the popularity of servlet api vis-a-vis the web server specific api ? Say Netscape server or IIS server also have their own specific api's as well where one could write server side code. But the servlet api is so popular and wide spread and one could argue that java sdk is free but then companies buy the third party j2ee servers like websphere or weblogic. (why ?? what is the real reason or advantages of servlet api __ Do you Yahoo!? Make Yahoo! your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vaneet Sharma executive manager iDeasTank limited an iwg business dolphins' court po 388 valletta, m-malta/europe mobile: +356 9943 8263 skype: CALLVANEET fax: +356 9952 phone: +356 9942 [EMAIL PROTECTED] call me on www.skype.com - my ID is CALLVANEET Want a signature like this? - www.plaxo.com\signature iwg is a global e-mobile company creating, building and growing new businesses. iwg founders are pioneers in creating multi-billion dollar mobile and Internet businesses in Europe, Asia and the US. www.iWG.info www.countryprofiler.com/iWG www.visitmalta.com www.mfc.com.mt Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), 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. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Any Examples of jakarta Slide
hi All, Has anyone Worked on jakarta Slide.. I am designing a Document Management System Let me know pleaase Thank you very much Van -Original Message- From: Marco Manini [mailto:[EMAIL PROTECTED] Sent: Wed 03/12/2003 11:27 To: Tomcat Users List Cc: Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2 Hi, i'm using mod_jk2 for load balancing purpose and I have a problem in fail over scenario. I described this scenario in the bugs database: http://issues.apache.org/bugzilla/show_bug.cgi?id=24882 Can you tell me if you have a similar behavior please? Thanks! Marco - Original Message - From: Asif Chowdhary [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 6:52 PM Subject: RE: Please Help: Inconsistent Load Balancing info mod_jk2 Thank you -Original Message- From: David O'Brien [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 12:48 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2 Higher the number ... More Hits I have one worker at lb_factor=4 and one at lb_factor=8 and the distribution if I have 150 sessions active the server with lb_factor=4 has 49 and the server with lb_factor=8 has 101 This can be seen at @ http://www.nacrraware.net/cluster/ -Dave At 10:32 AM 12/2/2003, Asif Chowdhary wrote: The apache documentation say that higher the number the greater the number of requests which tomcat will receive. The tomcat definitive Guide from orielly says that the lower the number the greater the number of requests a tomcat instance will receive. What is correct? Which instance will get more requests? First or Second #First instance of tomcat in workers2.properties lb_factor = 10 #Second instance of tomcat in workers2.properties lb_factor = 20 Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] David G. O'Brien Web Services Coordinator / Systems Administrator NACCRRA The Nation's Network of Child Care Resource Referral 1319 F Street NW, Suite 500 Washington, DC 20004 (202) 393-5501 ext. 113 (202) 393-1109 fax - 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]
jakarta Slide
Hi All, Is there any place where i can find examples on jakarta slide. The idea that i got from slide is that it is a frameworkd for document and content management systems. Am i getting right ? is there anyone who can let me know about jakarta slide/... Tahnkx Vaneet -Original Message- From: Leonardo Lopez [mailto:[EMAIL PROTECTED] Sent: Sun 23/11/2003 20:35 To: Tomcat Users List Cc: Subject: Hot Reload Hi gurus, I`m using tomcat 4.0.6 and I need to know how to configure, a hot reload of an application. I mean if a put a recompiled class, because it suffered any change, on the directory webapps/Aplication/WEB-INF/classes/... , how could I make Tomcat detect that change and reload that application without using the manager tools. (/manager/reload?path=/Application, for instance) Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hot Reload
change server.xml put reloadable = true for your context application simple enjoy Vaneet -Original Message- From: Leonardo Lopez [mailto:[EMAIL PROTECTED] Sent: Sun 23/11/2003 20:35 To: Tomcat Users List Cc: Subject: Hot Reload Hi gurus, I`m using tomcat 4.0.6 and I need to know how to configure, a hot reload of an application. I mean if a put a recompiled class, because it suffered any change, on the directory webapps/Aplication/WEB-INF/classes/... , how could I make Tomcat detect that change and reload that application without using the manager tools. (/manager/reload?path=/Application, for instance) Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Designing Systems Help!
Thank you very much I will definately have a look at it. Thankx Vaneet -Original Message- From: Goehring, Chuck Mr., RCI - San Diego [mailto:[EMAIL PROTECTED] Sent: Thu 20/11/2003 19:15 To: Tomcat Users List Cc: Subject: RE: Designing Systems Help! Vaneet, There are a ton of open source projects at www.sourceforge.net. There is a keyword search capably to find existing projects. Check the Development Status and other project attributes to see if a project meets your objectives. Don't know if there is a Document Management system, but you might find a framework or taglib that will cover some of the pieces. And of course Jakarta has many framework and components libraries for doing various things. Chuck -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 1:19 AM To: Tomcat Users List Subject: Designing Systems Help! Hi all. . Currently i am designing a document management system. According to the architecture proposed, it will be a three - tier architecture. (web based)I am looking forward to use J2EE .. i will be using Tomcat to run it. What i need to know is ? Is there any open source project for Document and Knowledge Management Systems. (Basically versioning the files and searching, storing, and other features). I think i can use good ready made reusable objects in my design.? Where can i get an idea .. on how to desing a good document management system. I want the business rules to lie in an XML file so that the inteface , database and coding need not be changed. Lets say, if my company wants to add some features on the interface , then they can specify in XML file and whole system can be reflected. I would appreciate very much any help on this subject. My research work has led me to Adaptive Reflective Systems. But still, as there are lot of industry experts, i would like to have a feedback. Kind Regards to all Yours Vaneet -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wed 19/11/2003 14:25 To: Tomcat Users List Cc: Subject: RE: Tomcat OpenJMS Design Pattern? Howdy, I've used and use OpenJMS with tomcat all the time, including in several production systems. What are you looking for specifically? A document? Code that sends messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic, all of the above? I've actually gone from using tomcat's JNDI support to specifying the JMS connection parameters in an app-specific configuration file and creating the JMS objects myself. But I had it working via tomcat's JNDI before as well. Yoav Shapira Millennium ChemInformatics -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:25 PM To: Tomcat Users List Subject: Tomcat OpenJMS Design Pattern? Hi All, Just wondering if any could post a working design pattern for using openJMS or another open JMS engine with tomcat, preferably a model using asynchronous queue message handling. I figured someone around here has done it and I would rather use a tried and true model. Looking for some basics about best intregration method, and or for dealing with async message Handling. I currently have openJMS setup using persistent Database storage, using JNDI content lookup to Get the JMS connection factory, is this better looked up once and bound to servlet context as an Application scope variable, etc, etc? Thanks for you any help, Rick This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged
Designing Systems Help!
Hi all. . Currently i am designing a document management system. According to the architecture proposed, it will be a three - tier architecture. (web based)I am looking forward to use J2EE .. i will be using Tomcat to run it. What i need to know is ? Is there any open source project for Document and Knowledge Management Systems. (Basically versioning the files and searching, storing, and other features). I think i can use good ready made reusable objects in my design.? Where can i get an idea .. on how to desing a good document management system. I want the business rules to lie in an XML file so that the inteface , database and coding need not be changed. Lets say, if my company wants to add some features on the interface , then they can specify in XML file and whole system can be reflected. I would appreciate very much any help on this subject. My research work has led me to Adaptive Reflective Systems. But still, as there are lot of industry experts, i would like to have a feedback. Kind Regards to all Yours Vaneet -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wed 19/11/2003 14:25 To: Tomcat Users List Cc: Subject: RE: Tomcat OpenJMS Design Pattern? Howdy, I've used and use OpenJMS with tomcat all the time, including in several production systems. What are you looking for specifically? A document? Code that sends messages to an OpenJMS queue/topic, received from an OpenJMS queue/topic, all of the above? I've actually gone from using tomcat's JNDI support to specifying the JMS connection parameters in an app-specific configuration file and creating the JMS objects myself. But I had it working via tomcat's JNDI before as well. Yoav Shapira Millennium ChemInformatics -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:25 PM To: Tomcat Users List Subject: Tomcat OpenJMS Design Pattern? Hi All, Just wondering if any could post a working design pattern for using openJMS or another open JMS engine with tomcat, preferably a model using asynchronous queue message handling. I figured someone around here has done it and I would rather use a tried and true model. Looking for some basics about best intregration method, and or for dealing with async message Handling. I currently have openJMS setup using persistent Database storage, using JNDI content lookup to Get the JMS connection factory, is this better looked up once and bound to servlet context as an Application scope variable, etc, etc? Thanks for you any help, Rick 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 OpenJMS Design Pattern?
try SwiftMQ, a good implementation of JMS, works well with tomcat I have tried and tested There was a free version availaible before.. i dont know whether it is available now or not Thankx Vaneet -Original Message- From: Gavin, Rick [mailto:[EMAIL PROTECTED] Sent: Wed 19/11/2003 00:24 To: Tomcat Users List Cc: Subject: Tomcat OpenJMS Design Pattern? Hi All, Just wondering if any could post a working design pattern for using openJMS or another open JMS engine with tomcat, preferably a model using asynchronous queue message handling. I figured someone around here has done it and I would rather use a tried and true model. Looking for some basics about best intregration method, and or for dealing with async message Handling. I currently have openJMS setup using persistent Database storage, using JNDI content lookup to Get the JMS connection factory, is this better looked up once and bound to servlet context as an Application scope variable, etc, etc? Thanks for you any help, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29 Configuration Problem
Hi all, I am having a problem in configurating tomcat. 1) I made a web application under webapps called hSolutions. 2) In conf , directory , there are three - four server.xml files. I put the context (hSolutions) in server-noexamples.xml.config 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class 4) In web.xml file i put : web-app servlet servlet-name Hello /servlet-name servlet-class hLibManagSystem.Hello /servlet-class /servlet servlet-mapping servlet-nameHello/servlet-name url-pattern/Hello/url-pattern /servlet-mapping welcome-file-list welcome-file html/Registration.html /welcome-file /welcome-file-list Tomcat is finding the Registration.html but not the classes . It is giving 404 error. I have had problems with tomcat before, but i think this new version TOMCAT 4.1.29 (with a ROOT folder) has some different configuration settings. Why doesnt jakarta, give a proper configuration example. Please let me know. i have wasted a lot of time on configuration today Will appreciate your feedback Thankx Vaneet -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 14:44 To: Tomcat Users List Cc: Subject: RE: Tomcat version Assuming that tomcat 4.0.3 s web.xml layout is the same as as 4.1.24 try adding mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping to conf/web.xml and restart Tomcat -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:48 To: Tomcat Users List Subject: RE: Tomcat version Please tell me how to set the mime type. -Original Message- From: Tom Lyle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 6:56 PM To: Tomcat Users List Subject: RE: Tomcat version At a guess the excel mime type is not set in Tomcat 4.0.3 conf/web.xml -Original Message- From: Aggarwal, Gautam (IE03) [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 13:36 To: [EMAIL PROTECTED] Subject: Tomcat version I have a link on a page in my JSP application that is supposed to open an Excel file. The link is a href=taxCalc.xls target=_blankTax Calculator/a. If the application runs on Tomcat 4.1.24, it works fine. A new browser window opens, the excel file gets downloaded and opens up in the browser. But, if I run the application on another instance of Tomcat which is 4.0.3, the excel file does not open, instead it shows a lot of junk characters in the browser. What could be the reason for this? Thanks, Gautam - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 Problem not solved
Dear Harry, Thankx, i tried it but didnt worked out. The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:14 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration Problem Hello 3) I copied my servlet to webapps/hSolutions/WEB-INF/classes/hLibManagSolutions/Hello.class servlet servlet-name Hello /servlet-name servlet-class hLibManagSystem.Hello /servlet-class /servlet Looks like either 'hLibManagSolutions' should be 'hLibManagSystem' or the other way round. Avoid blank spaces in your element values just to be safe. Instead of this: servlet-name Hello /servlet-name Type this: servlet-nameHello/servlet-name Regards Harry Mantheakis London, UK - 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.29 Configuration .. please see Attachments
The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:43 To: Tomcat Users List Cc: Subject: Re: Java core w TC 4.1.24 Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 Does this happen frequently? Only under load? RH 7.3 is pretty stable, and I've never had a problem with it along with pretty much any JDK. I've heard a lot of suggestions to bypass 1.4.1 due to some serious bug especially in StringBuffer. Give that a try, but I expect that it won't go away... When you get the sig 11, does it always say the same shared lib or does it look like it's coming from all over? -chris - 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 4.1.29 Configuration ..
Can someone solve my problem , it is a bit urgent Thankx Van -Original Message- From: Vaneet Sharma Sent: Tue 18/11/2003 16:48 To: Tomcat Users List Cc: Subject: Tomcat 4.1.29 Configuration .. please see Attachments The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 16:43 To: Tomcat Users List Cc: Subject: Re: Java core w TC 4.1.24 Unexpected Signal : 11 occurred at PC=0x4002245E Function=(null)+0x4002245E Library=/lib/i686/libpthread.so.0 Does this happen frequently? Only under load? RH 7.3 is pretty stable, and I've never had a problem with it along with pretty much any JDK. I've heard a lot of suggestions to bypass 1.4.1 due to some serious bug especially in StringBuffer. Give that a try, but I expect that it won't go away... When you get the sig 11, does it always say the same shared lib or does it look like it's coming from all over? -chris - 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 4.1.29 Configuration ..
No, we are not using Tomcat as a webserver It is running as a service liek 195. . . :8080/html/Regisrtation.html In html page, i have put action to ../servlet/Hello And after pressing submit , it is not picking up the servle. Is it anything to do with server.xml Can anyone explain me Why there are three server.xml files in CONF Thankx Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 17:23 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration .. Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet Are you using Tomcat as your web server, or do you have Apache (or another web server) in front of it? What is the URL that you are using to access the Hello servlet? -chris - 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 4.1.29 Configuration ..
Please see attachments -Original Message- From: Vaneet Sharma Sent: Tue 18/11/2003 17:22 To: Tomcat Users List Cc: Subject: RE: Tomcat 4.1.29 Configuration .. No, we are not using Tomcat as a webserver It is running as a service liek 195. . . :8080/html/Regisrtation.html In html page, i have put action to ../servlet/Hello And after pressing submit , it is not picking up the servle. Is it anything to do with server.xml Can anyone explain me Why there are three server.xml files in CONF Thankx Vaneet -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tue 18/11/2003 17:23 To: Tomcat Users List Cc: Subject: Re: Tomcat 4.1.29 Configuration .. Vaneet, The error is same. After making changes, i went on to Tomcat manager interface and reloaded the context. (I think that restarts the server, am i right ?) Tomcat is finding the Registration.html but not the classes . It is giving 404 error. There aer three or four SERVER.XML Files. Which file to change,,, i dont know.. No documentation avaliable Vaneet Are you using Tomcat as your web server, or do you have Apache (or another web server) in front of it? What is the URL that you are using to access the Hello servlet? -chris - 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]
Customize my error page in Servlet
Hi friends I would like to customize my error page i meant .. i would like that if any error comes to my application.. it should be directed to a page where i tell the user about the error . I am using Tomcat 4.0.2 and with Velocity. i am using MVC architecture model on linux. chao vaneet -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 00:57 To: Tomcat Users List Subject: Re: Heap Size for Tomcat my understanding is that any parameters you pass to bin/startup.bat or bin/startup.sh on the command line will be passed through to the java vm, such as mx128m or -D property=something . Jacob Hookom [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] du cc: Subject: Heap Size for Tomcat 05/16/2002 01:57 PM Please respond to Tomcat Users List Hello All, I was wondering where I can modify the initial heap size settings for tomcat to use. Or more primarily, where the command line is that tomcat uses to initialize its VM. Thanks, Jake Hookom --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [REPOST]: mod_jk: ajp13: cpu load problem with apache
I would suggest you to recheck the Tomcat-Apache installation procedure .. search on internet the right procedure... i think there is a loop hole while installing man if possible do again and see chao vaneet -Original Message- From: Cammy Ng [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 07:16 To: Tomcat Users List Subject: Re: [REPOST]: mod_jk: ajp13: cpu load problem with apache Hi, I have exactly problem you have. Hope anyone can solve this problem. Thanks - Original Message - From: Costas Stergiou [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 10:14 PM Subject: [REPOST]: mod_jk: ajp13: cpu load problem with apache Hi all, nobody seemed to reply anything on this matter. Looking through the code myself I came to some conclusions but actually the one(s) who really know the code should take a look. PLEASE, take another look at this problem. Actually, the Apache-Tomcat integration is useless with such a problem (and there are no alternatives if you want load balancing...). I know that others have reported similar issues. Any help??? Thanks, Costas Hi Costin, continuing on the problem: 1. I downloaded the latest code from CVS and compiled mod_jk. 2. Run apache with it and used gdb to get a stack trace upon the problem. Here is the gdb output: [helium]/#gdb httpd 24550 GNU gdb 5.0-aix43-010414 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as powerpc-ibm-aix4.3.3.0...httpd: No such file or dir ectory. //24550: No such file or directory. Attaching to process 24550 (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... ---Type return to continue, or q return to quit--- [Switching to Thread 1] 0x20070e9c in jk_tcp_socket_recvfull () (gdb) bt #0 0x20070e9c in jk_tcp_socket_recvfull () #1 0x2006b700 in ajp_connection_tcp_get_message () #2 0x200694c0 in ajp_get_reply () #3 0x20069344 in ajp_service () #4 0x200744c8 in jk_handler () #5 0x10020900 in ap_invoke_handler () #6 0x10044c30 in process_request_internal () #7 0x10045db4 in ap_process_request () #8 0x10002a50 in child_main () #9 0x1000244c in make_child () #10 0x10002140 in perform_idle_server_maintenance () #11 0x10001aec in standalone_main () #12 0x10001390 in main () #13 0x11dc in __start () (gdb) quit A debugging session is active. Do you still want to close the debugger?(y or n) y Detaching from program: , process 24550 The only way to stop the above is either by restarting apache or killing the runaway apche process. gdb reports the same until I kill the process (never gets out of that process). Also, I must note that at the same time the jvm tomcat process also consumes a lot of CPU untill I kill the httpd process. Also, I use tomcat 4.0.3 with the compiled java mod_jk libs that come with the distribution. I hope that you can give some feedback on the above. Also, I think that the above problem is occurring when I press the stop button on my browser while I have made a 'big' request (one that brings back a 'big' html page). Any help is greatly welcome, Thanks, Costas - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, May 02, 2002 7:57 PM Subject: Re: Re: mod_jk: ajp13: cpu load problem with apache On Thu, 2 May 2002 [EMAIL PROTECTED] wrote: First of all thank you for your interest. I will download the latest code and try this out. I do have the debug mode enabled so I will sent you any errors (although I have not noticed anything special). I don't think though that I
customize error page ini Servlet
Dear friends can anyone tell me how to customize error page in Servlet. when an error comes in my application, i want the user to redirected to my error page displaying the error. i am using velocity with Servlets on Tomcat 4.0.2 with JDK1.3 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 09:42 To: Tomcat Users List Subject: R: Ref. : How can I redirect only JSP pages to Tomcat? ThanksI will try you solution but I hope someone else has already solved this problem:-) Sorry..but I don't know how to put IIS and tomcat on different machine: I am curious to know how to do too! :-( Regards, Luca -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: venerdi 17 maggio 2002 8.55 A: Tomcat Users List Oggetto: Ref. : How can I redirect only JSP pages to Tomcat? I have the same problem. You can try to add :forwardAll=false noRoot=false in the IIS listener of your context in server.xml I've seen in tomcat doc this manip permits to redirect only Jspservlets but it doesn't work for me. Good luck! Jc ps: Do you know how can I put IIs tomcat on different machines? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: customize error page ini Servlet
-Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 12:27 To: 'Tomcat Users List' Subject: customize error page ini Servlet Dear friends can anyone tell me how to customize error page in Servlet. when an error comes in my application, i want the user to redirected to my error page displaying the error. i am using velocity with Servlets on Tomcat 4.0.2 with JDK1.3 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 09:42 To: Tomcat Users List Subject: R: Ref. : How can I redirect only JSP pages to Tomcat? ThanksI will try you solution but I hope someone else has already solved this problem:-) Sorry..but I don't know how to put IIS and tomcat on different machine: I am curious to know how to do too! :-( Regards, Luca -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: venerdi 17 maggio 2002 8.55 A: Tomcat Users List Oggetto: Ref. : How can I redirect only JSP pages to Tomcat? I have the same problem. You can try to add :forwardAll=false noRoot=false in the IIS listener of your context in server.xml I've seen in tomcat doc this manip permits to redirect only Jspservlets but it doesn't work for me. Good luck! Jc ps: Do you know how can I put IIs tomcat on different machines? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: running JSP with Javabeans
make a folder called whatever in classes under webapps and on your jsp import that with package and then instantiate the constructor of bean or call a method to check -Original Message- From: juan jose amador [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 12:41 To: Tomcat Users List Subject: running JSP with Javabeans Hi, Yesterday I sent a problem running JSP with javabeans.I can run JSP without problem but not with javaBeans and i Know the java files are well built. The answer I received was to make a package but it does not work. The structure of my directories is: WEBAPPS MYPROJECT WEB-INF +jsp files CLASSES PACKAGE here are file.class. Somebody can help me? Thanks. JUANJO -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: customize error page ini Servlet
paul i am using servlets.. so tell me something i can put in my servlet code thankx -Original Message- From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 13:18 To: Tomcat Users List Subject: Re: customize error page ini Servlet 1. If you intend to use custom error pages for errors that are generated by tomcat (page not found for example), in the XML descriptor of the web application you can add tags like this one: error-page error-code404/error-code locationErrorPage.jsp/location /error-page 2. If you want to send the user to a page (i.e. LoginError.jsp for example, when your code detected that the user/pass combination is invalid), the jsp:forward tag will do just fine. Paul - Original Message - From: Vaneet Sharma [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, May 17, 2002 1:32 PM Subject: RE: customize error page ini Servlet -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 12:27 To: 'Tomcat Users List' Subject: customize error page ini Servlet Dear friends can anyone tell me how to customize error page in Servlet. when an error comes in my application, i want the user to redirected to my error page displaying the error. i am using velocity with Servlets on Tomcat 4.0.2 with JDK1.3 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 09:42 To: Tomcat Users List Subject: R: Ref. : How can I redirect only JSP pages to Tomcat? ThanksI will try you solution but I hope someone else has already solved this problem:-) Sorry..but I don't know how to put IIS and tomcat on different machine: I am curious to know how to do too! :-( Regards, Luca -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: venerdi 17 maggio 2002 8.55 A: Tomcat Users List Oggetto: Ref. : How can I redirect only JSP pages to Tomcat? I have the same problem. You can try to add :forwardAll=false noRoot=false in the IIS listener of your context in server.xml I've seen in tomcat doc this manip permits to redirect only Jspservlets but it doesn't work for me. Good luck! Jc ps: Do you know how can I put IIs tomcat on different machines? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: PAUL ...customize error page ini Servlet
i am using servlets .. can you tell me the code .. how to do in servlets chao -Original Message- From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] Sent: 17 May 2001 13:18 To: Tomcat Users List Subject: Re: customize error page ini Servlet 1. If you intend to use custom error pages for errors that are generated by tomcat (page not found for example), in the XML descriptor of the web application you can add tags like this one: error-page error-code404/error-code locationErrorPage.jsp/location /error-page 2. If you want to send the user to a page (i.e. LoginError.jsp for example, when your code detected that the user/pass combination is invalid), the jsp:forward tag will do just fine. Paul - Original Message - From: Vaneet Sharma [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Friday, May 17, 2002 1:32 PM Subject: RE: customize error page ini Servlet -Original Message- From: Vaneet Sharma [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 12:27 To: 'Tomcat Users List' Subject: customize error page ini Servlet Dear friends can anyone tell me how to customize error page in Servlet. when an error comes in my application, i want the user to redirected to my error page displaying the error. i am using velocity with Servlets on Tomcat 4.0.2 with JDK1.3 -Original Message- From: Luca Ventura [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 09:42 To: Tomcat Users List Subject: R: Ref. : How can I redirect only JSP pages to Tomcat? ThanksI will try you solution but I hope someone else has already solved this problem:-) Sorry..but I don't know how to put IIS and tomcat on different machine: I am curious to know how to do too! :-( Regards, Luca -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: venerdi 17 maggio 2002 8.55 A: Tomcat Users List Oggetto: Ref. : How can I redirect only JSP pages to Tomcat? I have the same problem. You can try to add :forwardAll=false noRoot=false in the IIS listener of your context in server.xml I've seen in tomcat doc this manip permits to redirect only Jspservlets but it doesn't work for me. Good luck! Jc ps: Do you know how can I put IIs tomcat on different machines? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: -- A JAR For All Seasons --
There is a way to set that in server.xml read that and you can manage to make files for domains. if you managed to get it.. tell me cos i havent tried but i read .. so it will work in server.xml.. you can define contexts as well as context manager man... chao vaneet -Original Message- From: Shiva.Devaguptapu [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 14:37 To: Tomcat Users List Subject: RE: -- A JAR For All Seasons -- put them in CATALINA_HOME\common\lib or CATALINA_HOME\lib.. -Original Message- From: Tony LaPaso [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 5:40 PM To: Tomcat User Subject: -- A JAR For All Seasons -- Hello, I asked this question earlier in the week and I didn't get any responses...so, at the risk of being a little obnoxious, I'll ask again I'm using Tomcat v4.0.3 on Win2k. I have a few JAR files that I would like to be accessible from within *all* contexts on my web site. In other words, I do not want to duplicate these JAR files in the WEB-INF/lib directory for each and every context on my site. The company that hosts my site, however, only allows me to access the files in *my* domain so I do not have the luxury of putting JAR files in, for example, jre/lib/ext where they would be picked up by other peoples' domains. I was hoping (I even said a couple prayers) there was a place in my directory structure I could put these JARs so they would be accessible to *all* servlets in *all* contexts on *my* site but obviously not accessible to other domains. Is this possible? Thanks very much. Tony LaPaso -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [urgent!] Disabling the context's content listing
nancy look below this is web.xml add the welcome-file-list to your web.xml file ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2.3.dtd; web-app welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app -Original Message- Fro: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 15:45 To: Tomcat Users List Subject: [urgent!] Disabling the context's content listing Hi! Does anybody know how to disable the content of a context listing? I mean, when you try to load a JSP file you must type the following URL: http://address:8080/contextname/file.jsp But when you type http://address:8080/contextname all the list of jsp, gif, jpg files are showed and even you can download the file thru the right button of your mouse with (Save target as...)... It would be right if instead of the listing, a Forbidden or Not Found page appears, wouldn't it? So, could you help me to disable this kind of access? I'll appreciate all your advice!!! Thank you in advance! Nancy. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Conncurency issue with tomcat???
Sychronize the method that is using hastable or synchronize the Block it will work -Original Message- From: Ghorpade, Rajendra [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 16:04 To: 'Tomcat Users List' Subject: RE: Conncurency issue with tomcat??? Sorry, I mean to say I do not invalidate the session myself but it is invalidated by tomcat. After the 5th step I send a request without the cookie so new session is created on the server. I myself is not managing the sesion but it just a simple check in service method to avoid same sassion id to be allocated to two threads. As the hashtable is a member of the servlet(my srvlet) I keep a record of the ongoing sesions in this hashtable.As I am adding and removing the sesions to this hashtable in the service method itself this ensures that for N number of threads(concurrent) there should be always N different entries in the hashtable.If the session id from any request thread is one already present in the hashtable that means the servlet engine is allowing the same session id to be used by two different threads at the same time.Because one thread is already working on this session. Hope u understand my english ...:-) Did u get what i have to say?? Raj -Original Message- From: peter lin [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 3:41 PM To: Tomcat Users List Subject: Re: Conncurency issue with tomcat??? try changing it so it doesn't invalidate the session. If the duplicate sessions do not appear, you know the culprit. The thing about checking the session id's yourself is it won't be reliable, unless you generate your own unique ID and manage it. Otherwise, just let catalina manage the session life cycle. Unless the state of session life cycle on tomcat and your client app are synchronized, the client is going to get duplicate session id's. peter Ghorpade, Rajendra wrote: Peter, I do invalidate session after the 5th step. And the check which I apply in the service method is only in the service method. I mean I add and remove the session Ids in the service method itself.Just to check that the ongoing session id is not give to any other request thread. So there should'nt be new thread started with the same session which is already in progress.!! I have also posted this on the dev list.But not any answer yet. Thanxs, raj -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Reload context web.xml?
i am going out guys see you tomorrow -Original Message- From: Lomvardias, Christopher [mailto:[EMAIL PROTECTED]] Sent: 16 May 2002 17:22 To: '[EMAIL PROTECTED]' Subject: RE: Reload context web.xml? Anyone? -Original Message- From: Lomvardias, Christopher Sent: Wednesday, May 15, 2002 11:42 PM To: '[EMAIL PROTECTED]' Subject: Reload context web.xml? Isn't Tomcat supposed to reload an application's web.xml by using /manager/stop /manager/start? I'm running Tomcat 4.01. Chris -- Chris Lomvardias clomvardiasatsyscom.com PublicBuy.Net -- -- 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]