Re: Missing Request Parameters
(i can't see a previous thread for this, new mail setup, so apologies if I'm restating.) Are you using GET or POST? And how many parameters are you submitting? And are there any particularly long bits of data in the parameters? lmelendez wrote: Hi Rache, Well, we are seeing the problem. Our web application seems to *drop* parameters for some requests and we still don't know what it is. We have enabled Valves and Filters and it looks like the parameters never make it to tomcat. The problem is intermitent and we cannot reproduce it at will. The same request might work sometimes and show the problem in others and we were really surprised that nobody else was having similar issues. We are currently using Apache 2.0.55 and Tomcat 5.0.28. I am wondering if you have more information about this. Thanks! Leo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing Request Parameters
Hi, We are facing the same problem. Sometimes the parameters don't get to tomcat. We've seen this by monitoring our plateform through a servlet simply returning the value of a parameter. We are also using apache+tomcat apache-2.0.54 jakarta-tomcat-5.5.9 It occurs on GET requests, maybe on POST ones but we don't know. The value of the parameter is not long, neither is the value. It appears to occur "randomly" Hope this will help to find a solution to the problem ... -- Nicolas Schwartz Pid a écrit : (i can't see a previous thread for this, new mail setup, so apologies if I'm restating.) Are you using GET or POST? And how many parameters are you submitting? And are there any particularly long bits of data in the parameters? lmelendez wrote: Hi Rache, Well, we are seeing the problem. Our web application seems to *drop* parameters for some requests and we still don't know what it is. We have enabled Valves and Filters and it looks like the parameters never make it to tomcat. The problem is intermitent and we cannot reproduce it at will. The same request might work sometimes and show the problem in others and we were really surprised that nobody else was having similar issues. We are currently using Apache 2.0.55 and Tomcat 5.0.28. I am wondering if you have more information about this. Thanks! Leo. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Encrypt Cleartext Resource Password
Hi, I have a JDBC resource configured with tomcat 5.0 (in server.xml) and it is working fine. type="javax.sql.DataSource" maxActive="10" maxIdle="15" maxWait="1" removeAbandoned="true" removeAbandonedTimeout="300" logAbandoned="true" driverClassName="com.mysql.jdbc.Driver" username="USERNAME" password="PASSWORD" url="jdbc:mysql://localhost: 3306/DB?autoReconnect=true" /> I would like to specify the PASSWORD in an encrypted, or at least encoded, form so it is not cleartext. Checking the docs I see mention of a digest parameter, but I cannot find any reference to using this with regard to a JDBC resource. Is such a thing possible? If not, perhaps someone could point me to the relevant parts of the source code I need to subclass in order to make it possible. Thanks, Darren - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMS Alternative
Hi Richard, Like to thank for the feedback. Yes, I realized that it's quite challenging. Hm, ok.. if I may do so... what kind of technology stacks (API) that I need to ? Feris On 8/16/06, Richard Mixon <[EMAIL PROTECTED]> wrote: If you are wanting to send email, you probably are interested in the Java Mail API - not the JMS API - they are for (usually) different purposes. However one could conceivably use JMS as a conduit between the various components of such a system (e.g. email assembly, delivery and the MTA). Creating an effective, performant mass email subsystem can be quite challenging. I believe I've seen a few that are commercially available and have also participated in the development of one. It is not something that can be easily answered in an email - it an entire project :) That said, maybe someone else on the list knows of a framework that is already built for such a task. HTH - Richard -Original Message- From: Feris Thia [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 15, 2006 10:51 PM To: Tomcat Users List Subject: JMS Alternative Hi All, Is there any alternative JMS api in Tomcat ? And how can I implement multi threading in JMS, let's say to send mass email (at about 100.000) with Java Mail API with customized attachment ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA
Servlets mod_jk Context path problems
Hello, I'm muddling up with Servlets configuration, Context configuration, VirtualHost configuration, and more... My problem is that I have 2 domains --> ecommerce.gmsoft.com and www.gmsoft.com and both are web applications. The first problem is that I don't know how configure Apache (http.conf) to select correct application according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), moreover I've installed correctly mod_jk, so I want the JSPs and servlets is handled with Tomcat. Also, I have problems with server.xml and web.xml files to mapping servlets and Context configuration. However, first I solve it step to step. I'm developing the ecommerce web application and the servers (apache web server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under 192.168.1.2. So, I only have configured this. So, when I access to 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to Apache web server) correctly. However I've created a Servlet that handles user requests (ControllerServlet), but it is inaccessible. I've tried access to ControllerServlet manually (writing the URL direction), but this servlet is not found by servers. I'm sure that is a configuration problem. Now I access to my application throught http://192.168.1.2/ecommerce, when I access to it, it shows me the index.jsp correctly, but when I access to http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. I show you my configuration files: httpd.conf --> ServerName 192.168.1.2 NameVirtualHost 192.168.1.2 ServerName 192.168.1.2 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log common AllowOverride None Deny from all JkMount /ecommerce/*.jsp treb workers.properties --> # workers.properties - ajp13 # # List workers worker.list=treb # # Define work worker.treb.tomcat_home=$TOMCAT_HOME worker.treb.java_home=$JAVA_HOME worker.treb.port=8009 worker.treb.host=localhost worker.treb.type=ajp13 worker.treb.cachesize=10 worker.treb.cache_timeout=600 worker.treb.socket_timeout=300 worker.treb.lbfactor=1 Tomcat Context Web Application configuration --> web.xml --> (only servlet configuration) Controlador Controller com.gmsoft.ControllerServlet Controller /ecommerce/ Can you help me, firstly I want to access manualy to my ServletController. -- View this message in context: http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829085 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlets mod_jk Context path problems
Hi jeusdi, in your Apache configuration you juts Jkmount JSP files that are inside your Application as the statement say: JkMount /ecommerce/*.jsp treb and you are trying to get this : /ecommerce/servlets/ControllerServlet which does not match the directive above either you need to change that directive something like: JkMount /ecommerce/*treb or you Jkmount every Context you want to call for its own JkMount /ecommerce/servlets/ControllerServlet ... i hope this helps. Greeting Yassine Cologne, Germany On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: Hello, I'm muddling up with Servlets configuration, Context configuration, VirtualHost configuration, and more... My problem is that I have 2 domains --> ecommerce.gmsoft.com and www.gmsoft.com and both are web applications. The first problem is that I don't know how configure Apache (http.conf) to select correct application according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), moreover I've installed correctly mod_jk, so I want the JSPs and servlets is handled with Tomcat. Also, I have problems with server.xml and web.xml files to mapping servlets and Context configuration. However, first I solve it step to step. I'm developing the ecommerce web application and the servers (apache web server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under 192.168.1.2. So, I only have configured this. So, when I access to 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to Apache web server) correctly. However I've created a Servlet that handles user requests (ControllerServlet), but it is inaccessible. I've tried access to ControllerServlet manually (writing the URL direction), but this servlet is not found by servers. I'm sure that is a configuration problem. Now I access to my application throught http://192.168.1.2/ecommerce, when I access to it, it shows me the index.jsp correctly, but when I access to http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. I show you my configuration files: httpd.conf --> ServerName 192.168.1.2 NameVirtualHost 192.168.1.2 ServerName 192.168.1.2 ServerAdmin [EMAIL PROTECTED] DocumentRoot /usr/local/tomcat/webapps ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log common AllowOverride None Deny from all JkMount /ecommerce/*.jsp treb workers.properties --> # workers.properties - ajp13 # # List workers worker.list=treb # # Define work worker.treb.tomcat_home=$TOMCAT_HOME worker.treb.java_home=$JAVA_HOME worker.treb.port=8009 worker.treb.host=localhost worker.treb.type=ajp13 worker.treb.cachesize=10 worker.treb.cache_timeout=600 worker.treb.socket_timeout=300 worker.treb.lbfactor=1 Tomcat Context Web Application configuration --> web.xml --> (only servlet configuration) Controlador Controller com.gmsoft.ControllerServlet Controller /ecommerce/ Can you help me, firstly I want to access manualy to my ServletController. -- View this message in context: http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829085 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- (e==mc²)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encrypt Cleartext Resource Password
HI Darren, I guess you need this : digest="MD5" in your realm definition so it would look like follow: Greetings, Yassine Cologne,Germany On 8/16/06, Darren <[EMAIL PROTECTED]> wrote: Hi, I have a JDBC resource configured with tomcat 5.0 (in server.xml) and it is working fine. I would like to specify the PASSWORD in an encrypted, or at least encoded, form so it is not cleartext. Checking the docs I see mention of a digest parameter, but I cannot find any reference to using this with regard to a JDBC resource. Is such a thing possible? If not, perhaps someone could point me to the relevant parts of the source code I need to subclass in order to make it possible. Thanks, Darren - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- (e==mc²)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlets mod_jk Context path problems
Mmm, I've changed httpd.conf file and web.xml file to this --> In httpd.conf I've added JkMount /ecommerce/Controller treb and in web.xml file I've changed mapping --> Controller /ecommerce/Controller And the result is The requested resource (/ecommerce/Controller) is not available. Note: Context path value is "/" and docBase = "/usr/local/tomcat/webapps/ecommerce". Is it important? - Yassine ELassad (YEL) wrote: > > Hi jeusdi, > > > in your Apache configuration you juts Jkmount JSP files that are > inside your Application as the statement say: > > JkMount /ecommerce/*.jsp treb > > and you are trying to get this : > > /ecommerce/servlets/ControllerServlet > > which does not match the directive above either you need to change > that directive something like: > > JkMount /ecommerce/*treb > > or you Jkmount every Context you want to call for its own > > JkMount /ecommerce/servlets/ControllerServlet > ... > > i hope this helps. > > > Greeting Yassine > Cologne, Germany > > > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I'm muddling up with Servlets configuration, Context configuration, >> VirtualHost configuration, and more... >> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >> www.gmsoft.com and both are web applications. The first problem is that I >> don't know how configure Apache (http.conf) to select correct application >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >> moreover >> I've installed correctly mod_jk, so I want the JSPs and servlets is >> handled >> with Tomcat. >> >> Also, I have problems with server.xml and web.xml files to mapping >> servlets >> and Context configuration. >> >> However, first I solve it step to step. >> >> I'm developing the ecommerce web application and the servers (apache >> web >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >> 192.168.1.2. So, I only have configured this. So, when I access to >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to >> Apache web server) correctly. However I've created a Servlet that handles >> user requests (ControllerServlet), but it is inaccessible. I've tried >> access >> to ControllerServlet manually (writing the URL direction), but this >> servlet >> is not found by servers. I'm sure that is a configuration problem. >> >> Now I access to my application throught http://192.168.1.2/ecommerce, >> when I >> access to it, it shows me the index.jsp correctly, but when I access to >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. >> >> I show you my configuration files: >> >> >> httpd.conf --> >> ServerName 192.168.1.2 >> >> NameVirtualHost 192.168.1.2 >> >> >>ServerName 192.168.1.2 >>ServerAdmin [EMAIL PROTECTED] >>DocumentRoot /usr/local/tomcat/webapps >>ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log >>CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log >> common >> >>AllowOverride None >>Deny from all >> >>JkMount /ecommerce/*.jsp treb >> >> >> workers.properties --> >> >> # workers.properties - ajp13 >> # >> # List workers >> worker.list=treb >> # >> # Define work >> worker.treb.tomcat_home=$TOMCAT_HOME >> worker.treb.java_home=$JAVA_HOME >> worker.treb.port=8009 >> worker.treb.host=localhost >> worker.treb.type=ajp13 >> worker.treb.cachesize=10 >> worker.treb.cache_timeout=600 >> worker.treb.socket_timeout=300 >> worker.treb.lbfactor=1 >> >> Tomcat Context Web Application configuration --> >> >> > docBase="/usr/local/tomcat/webapps/ecommerce" >> workDir="/usr/local/tomcat/webapps/webshop/ecommerce/work"/> >> >> web.xml --> (only servlet configuration) >> >> >> >> Controlador >> Controller >> com.gmsoft.ControllerServlet >> >> >> >> >> Controller >> /ecommerce/ >> >> >> Can you help me, firstly I want to access manualy to my >> ServletController. >> -- >> View this message in context: >> http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829085 >> Sent from the Tomcat - User forum at Nabble.com. >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > (e==mc²)? > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829699 Sent from the Tomcat - User forum at Nabble.com. ---
Re: Servlets mod_jk Context path problems
hi try to access the context directly via port 8080, so you know it's a mod_jk related issue if you can access http://yourHostMachine:8080/ecommerce/Controller so the problem is coming from your JK configuration otherwise it from tomcat Greeting Yassine Cologne, Germany On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: Mmm, I've changed httpd.conf file and web.xml file to this --> In httpd.conf I've added JkMount /ecommerce/Controller treb and in web.xml file I've changed mapping --> Controller /ecommerce/Controller And the result is The requested resource (/ecommerce/Controller) is not available. Note: Context path value is "/" and docBase = "/usr/local/tomcat/webapps/ecommerce". Is it important? - Yassine ELassad (YEL) wrote: > > Hi jeusdi, > > > in your Apache configuration you juts Jkmount JSP files that are > inside your Application as the statement say: > > JkMount /ecommerce/*.jsp treb > > and you are trying to get this : > > /ecommerce/servlets/ControllerServlet > > which does not match the directive above either you need to change > that directive something like: > > JkMount /ecommerce/*treb > > or you Jkmount every Context you want to call for its own > > JkMount /ecommerce/servlets/ControllerServlet > ... > > i hope this helps. > > > Greeting Yassine > Cologne, Germany > > > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> Hello, >> I'm muddling up with Servlets configuration, Context configuration, >> VirtualHost configuration, and more... >> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >> www.gmsoft.com and both are web applications. The first problem is that I >> don't know how configure Apache (http.conf) to select correct application >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >> moreover >> I've installed correctly mod_jk, so I want the JSPs and servlets is >> handled >> with Tomcat. >> >> Also, I have problems with server.xml and web.xml files to mapping >> servlets >> and Context configuration. >> >> However, first I solve it step to step. >> >> I'm developing the ecommerce web application and the servers (apache >> web >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >> 192.168.1.2. So, I only have configured this. So, when I access to >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect to >> Apache web server) correctly. However I've created a Servlet that handles >> user requests (ControllerServlet), but it is inaccessible. I've tried >> access >> to ControllerServlet manually (writing the URL direction), but this >> servlet >> is not found by servers. I'm sure that is a configuration problem. >> >> Now I access to my application throught http://192.168.1.2/ecommerce, >> when I >> access to it, it shows me the index.jsp correctly, but when I access to >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't happen. >> >> I show you my configuration files: >> >> >> httpd.conf --> >> ServerName 192.168.1.2 >> >> NameVirtualHost 192.168.1.2 >> >> >>ServerName 192.168.1.2 >>ServerAdmin [EMAIL PROTECTED] >>DocumentRoot /usr/local/tomcat/webapps >>ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log >>CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log >> common >> >>AllowOverride None >>Deny from all >> >>JkMount /ecommerce/*.jsp treb >> >> >> workers.properties --> >> >> # workers.properties - ajp13 >> # >> # List workers >> worker.list=treb >> # >> # Define work >> worker.treb.tomcat_home=$TOMCAT_HOME >> worker.treb.java_home=$JAVA_HOME >> worker.treb.port=8009 >> worker.treb.host=localhost >> worker.treb.type=ajp13 >> worker.treb.cachesize=10 >> worker.treb.cache_timeout=600 >> worker.treb.socket_timeout=300 >> worker.treb.lbfactor=1 >> >> Tomcat Context Web Application configuration --> >> >> > docBase="/usr/local/tomcat/webapps/ecommerce" >> workDir="/usr/local/tomcat/webapps/webshop/ecommerce/work"/> >> >> web.xml --> (only servlet configuration) >> >> >> >> Controlador >> Controller >> com.gmsoft.ControllerServlet >> >> >> >> >> Controller >> /ecommerce/ >> >> >> Can you help me, firstly I want to access manualy to my >> ServletController. >> -- >> View this message in context: >> http://www.nabble.com/Servlets-mod_jk-Context-path-problems-tf2114133.html#a5829085 >> Sent from the Tomcat - User forum at Nabble.com. >> >> >> - >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > (e==mc²)? > > - > To start a new topic, e-mail: use
Re: Servlets mod_jk Context path problems
So, the problem surges out form tomcat because I can't access it. If I try access throught 192.168.1.2/ecommerce/Controller the message is the same, so it comes form Tomcat. I've seen jk log messages and i works correctly. So, What's wrong is tomcat? Yassine ELassad (YEL) wrote: > > hi > > try to access the context directly via port 8080, so you know it's a > mod_jk related issue > if you can access > > http://yourHostMachine:8080/ecommerce/Controller > > so the problem is coming from your JK configuration otherwise it from > tomcat > > Greeting Yassine > Cologne, Germany > > > > > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> Mmm, I've changed httpd.conf file and web.xml file to this --> >> >> In httpd.conf I've added JkMount /ecommerce/Controller treb >> and in web.xml file I've changed mapping --> >> >> >> Controller >> /ecommerce/Controller >> >> >> And the result is The requested resource (/ecommerce/Controller) is not >> available. >> Note: Context path value is "/" and docBase = >> "/usr/local/tomcat/webapps/ecommerce". Is it important? >> >> - >> >> >> >> Yassine ELassad (YEL) wrote: >> > >> > Hi jeusdi, >> > >> > >> > in your Apache configuration you juts Jkmount JSP files that are >> > inside your Application as the statement say: >> > >> > JkMount /ecommerce/*.jsp treb >> > >> > and you are trying to get this : >> > >> > /ecommerce/servlets/ControllerServlet >> > >> > which does not match the directive above either you need to change >> > that directive something like: >> > >> > JkMount /ecommerce/*treb >> > >> > or you Jkmount every Context you want to call for its own >> > >> > JkMount /ecommerce/servlets/ControllerServlet >> > ... >> > >> > i hope this helps. >> > >> > >> > Greeting Yassine >> > Cologne, Germany >> > >> > >> > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >> >> >> >> Hello, >> >> I'm muddling up with Servlets configuration, Context configuration, >> >> VirtualHost configuration, and more... >> >> >> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >> >> www.gmsoft.com and both are web applications. The first problem is >> that I >> >> don't know how configure Apache (http.conf) to select correct >> application >> >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >> >> moreover >> >> I've installed correctly mod_jk, so I want the JSPs and servlets is >> >> handled >> >> with Tomcat. >> >> >> >> Also, I have problems with server.xml and web.xml files to mapping >> >> servlets >> >> and Context configuration. >> >> >> >> However, first I solve it step to step. >> >> >> >> I'm developing the ecommerce web application and the servers (apache >> >> web >> >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >> >> 192.168.1.2. So, I only have configured this. So, when I access to >> >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect >> to >> >> Apache web server) correctly. However I've created a Servlet that >> handles >> >> user requests (ControllerServlet), but it is inaccessible. I've tried >> >> access >> >> to ControllerServlet manually (writing the URL direction), but this >> >> servlet >> >> is not found by servers. I'm sure that is a configuration problem. >> >> >> >> Now I access to my application throught http://192.168.1.2/ecommerce, >> >> when I >> >> access to it, it shows me the index.jsp correctly, but when I access >> to >> >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't >> happen. >> >> >> >> I show you my configuration files: >> >> >> >> >> >> httpd.conf --> >> >> ServerName 192.168.1.2 >> >> >> >> NameVirtualHost 192.168.1.2 >> >> >> >> >> >>ServerName 192.168.1.2 >> >>ServerAdmin [EMAIL PROTECTED] >> >>DocumentRoot /usr/local/tomcat/webapps >> >>ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log >> >>CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log >> >> common >> >> >> >>AllowOverride None >> >>Deny from all >> >> >> >>JkMount /ecommerce/*.jsp treb >> >> >> >> >> >> workers.properties --> >> >> >> >> # workers.properties - ajp13 >> >> # >> >> # List workers >> >> worker.list=treb >> >> # >> >> # Define work >> >> worker.treb.tomcat_home=$TOMCAT_HOME >> >> worker.treb.java_home=$JAVA_HOME >> >> worker.treb.port=8009 >> >> worker.treb.host=localhost >> >> worker.treb.type=ajp13 >> >> worker.treb.cachesize=10 >> >> worker.treb.cache_timeout=600 >> >> worker.treb.socket_timeout=300 >> >> worker.treb.lbfactor=1 >> >> >> >> Tomcat Context Web Application configuration --> >> >> >> >> > >> docBase="/usr/local/tomcat/webapps/ecommerce" >> >> workDir="/usr/local/tomcat/webapps/webshop/ecommerce/work"/> >> >> >> >> web.xml --> (only servlet configuration) >> >> >> >> >> >> >> >> Controlador
Re: Servlets mod_jk Context path problems
MMM, I've just probed to access http://192.168.1.2:8080/ecommerce/ecommerce/Controller and I've accessed to the servlet. What must I change to access as http://192.168.1.2/ecommerce/Controller? jeusdi wrote: > > So, the problem surges out form tomcat because I can't access it. > > If I try access throught 192.168.1.2/ecommerce/Controller the message is > the same, so it comes form Tomcat. > > I've seen jk log messages and i works correctly. > So, What's wrong is tomcat? > > > > Yassine ELassad (YEL) wrote: >> >> hi >> >> try to access the context directly via port 8080, so you know it's a >> mod_jk related issue >> if you can access >> >> http://yourHostMachine:8080/ecommerce/Controller >> >> so the problem is coming from your JK configuration otherwise it from >> tomcat >> >> Greeting Yassine >> Cologne, Germany >> >> >> >> >> On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >>> Mmm, I've changed httpd.conf file and web.xml file to this --> >>> >>> In httpd.conf I've added JkMount /ecommerce/Controller treb >>> and in web.xml file I've changed mapping --> >>> >>> >>> Controller >>> /ecommerce/Controller >>> >>> >>> And the result is The requested resource (/ecommerce/Controller) is not >>> available. >>> Note: Context path value is "/" and docBase = >>> "/usr/local/tomcat/webapps/ecommerce". Is it important? >>> >>> - >>> >>> >>> >>> Yassine ELassad (YEL) wrote: >>> > >>> > Hi jeusdi, >>> > >>> > >>> > in your Apache configuration you juts Jkmount JSP files that are >>> > inside your Application as the statement say: >>> > >>> > JkMount /ecommerce/*.jsp treb >>> > >>> > and you are trying to get this : >>> > >>> > /ecommerce/servlets/ControllerServlet >>> > >>> > which does not match the directive above either you need to change >>> > that directive something like: >>> > >>> > JkMount /ecommerce/*treb >>> > >>> > or you Jkmount every Context you want to call for its own >>> > >>> > JkMount /ecommerce/servlets/ControllerServlet >>> > ... >>> > >>> > i hope this helps. >>> > >>> > >>> > Greeting Yassine >>> > Cologne, Germany >>> > >>> > >>> > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hello, >>> >> I'm muddling up with Servlets configuration, Context configuration, >>> >> VirtualHost configuration, and more... >>> >> >>> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com and >>> >> www.gmsoft.com and both are web applications. The first problem is >>> that I >>> >> don't know how configure Apache (http.conf) to select correct >>> application >>> >> according to domain_name (ecommerce.gmsoft.com or www.gmsoft.com), >>> >> moreover >>> >> I've installed correctly mod_jk, so I want the JSPs and servlets is >>> >> handled >>> >> with Tomcat. >>> >> >>> >> Also, I have problems with server.xml and web.xml files to mapping >>> >> servlets >>> >> and Context configuration. >>> >> >>> >> However, first I solve it step to step. >>> >> >>> >> I'm developing the ecommerce web application and the servers >>> (apache >>> >> web >>> >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs under >>> >> 192.168.1.2. So, I only have configured this. So, when I access to >>> >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and redirect >>> to >>> >> Apache web server) correctly. However I've created a Servlet that >>> handles >>> >> user requests (ControllerServlet), but it is inaccessible. I've tried >>> >> access >>> >> to ControllerServlet manually (writing the URL direction), but this >>> >> servlet >>> >> is not found by servers. I'm sure that is a configuration problem. >>> >> >>> >> Now I access to my application throught http://192.168.1.2/ecommerce, >>> >> when I >>> >> access to it, it shows me the index.jsp correctly, but when I access >>> to >>> >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't >>> happen. >>> >> >>> >> I show you my configuration files: >>> >> >>> >> >>> >> httpd.conf --> >>> >> ServerName 192.168.1.2 >>> >> >>> >> NameVirtualHost 192.168.1.2 >>> >> >>> >> >>> >>ServerName 192.168.1.2 >>> >>ServerAdmin [EMAIL PROTECTED] >>> >>DocumentRoot /usr/local/tomcat/webapps >>> >>ErrorLog /usr/local/tomcat/webapps/ecommerce/logs/error_log >>> >>CustomLog /usr/local/tomcat/webapps/ecommerce/logs/access_log >>> >> common >>> >> >>> >>AllowOverride None >>> >>Deny from all >>> >> >>> >>JkMount /ecommerce/*.jsp treb >>> >> >>> >> >>> >> workers.properties --> >>> >> >>> >> # workers.properties - ajp13 >>> >> # >>> >> # List workers >>> >> worker.list=treb >>> >> # >>> >> # Define work >>> >> worker.treb.tomcat_home=$TOMCAT_HOME >>> >> worker.treb.java_home=$JAVA_HOME >>> >> worker.treb.port=8009 >>> >> worker.treb.host=localhost >>> >> worker.treb.type=ajp13 >>> >> worker.treb.cachesize=10 >>> >
Re: isVirtualWebappRelative not working
Good Morning Ross- If your path does not begin with a slash (/) then it is taken to be *relative to the current document* --Include head.html (head.html current location loads correctly) --Include in Foo.html (Foo.html loads current location) from Foo folder note the absence of "/" in the first position so this is the relative to current document --Include in the original head.html NB: Use #include virtual instead of #exec cgi to pass QueryStrings More info available at http://httpd.apache.org/docs/1.3/mod/mod_include.html HTH, Martin-- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. > Hi everybody, > > I'm having issues with isVirtualWebappRelative parameter when configuring the > SSIServlet. It just won't work for me. I have set up the value to 1 to make > the path be interpreted as relative to the context root, but I'm still > getting the following output in catalina.out: > > ... > SEVERE: #include--Couldn't include file: /head.html > java.io.IOException: Couldn't find file: /head.html >at > org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:537) >at > org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:155) >at org.apache.catalina.ssi.SSIInclude.process(SSIInclude.java:44) > ... > > The file, head.html, exists in the context root and everything works fine > when a file from the same directory is including it via The problem comes when a file from a subdirectory > tries to include it. > > I'm testing this with Tomcat 5.5.17 on Linux. The same configuration works > fine with Tomcat 5.0.25 > > Does anybody know of any bugs related to the isVirtualWebappRelative > parameter in Tomcat 5.5? I might have missed something in the configuration, > but can't think of it right now. > > Any help and ideas are welcome. > > Thanks, > Ross > > "This communication is intended solely for the addressee and is confidential > and not for third party unauthorized distribution" > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Encrypt Cleartext Resource Password
I tried adding digest="MD5" as you advised, but it's not being used. If the password is left in cleartext (with digest="MD5") the connection works fine, but if the MD5 version of the password is used it fails to connect to the database. On 16 Aug 2006, at 10:31, Yassine ELassad (YEL) wrote: HI Darren, I guess you need this : digest="MD5" in your realm definition so it would look like follow: url="jdbc:mysql://localhost: 3306/DB? autoReconnect=true" /> Greetings, Yassine Cologne,Germany On 8/16/06, Darren <[EMAIL PROTECTED]> wrote: Hi, I have a JDBC resource configured with tomcat 5.0 (in server.xml) and it is working fine. I would like to specify the PASSWORD in an encrypted, or at least encoded, form so it is not cleartext. Checking the docs I see mention of a digest parameter, but I cannot find any reference to using this with regard to a JDBC resource. Is such a thing possible? If not, perhaps someone could point me to the relevant parts of the source code I need to subclass in order to make it possible. Thanks, Darren - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Classpath Problem
Straight from TOMCAT doc a.. Shared - This class loader is the place to put classes and resources that you wish to share across ALL web applications Doc available at http://tomcat.apache.org/tomcat-5.5-doc/printer/class-loader-howto.html Martin -- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, August 15, 2006 8:28 AM Subject: Re: Classpath Problem > CLASSPATH is ignored by default in tomcat (and for the better might I > add). Is there a reason you can't do recommended best practice and > place these in either shared/lib or WEB-INF/lib of each webapp requiring > them? > > --David > > Madhuraka Godahewa wrote: > >>Hi, >> >>I am using jakarta-tomcat-5.0.30 and currently having a problem with the >>CLASSPATH variable. I am in the process of configuring my website to access a >>payment gateway. They gave me the following jar files and I put them in my >>JAVA_HOME/jre/lib/ext/ directory. >> >>ibmjceprovider.jar >>jce1_2_1.jar >>ibmpkcs.jar >>US_export_policy.jar >>sunjce_provider.jar >>local_policy.jar >>iclient.jar >> >> >>Then I changed the classpath as follows. >> >> >>CLASSPATH=$CLASSPATH:/usr/local/jakarta-tomcat-5.0.30/webapps/myapp/WEB- >>INF/lib/iclient.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/jce1_2_1.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/ibmjceprovider.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/ibmpkcs.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/US_export_policy.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/sunjce_provider.jar >>CLASSPATH=$CLASSPATH:/usr/local/j2sdk1.4.2_11/jre/lib/ext/local_policy.jar >> >> >>Then I wrote a JSP file. It has an import statement as follows. >> >><@page import="iclient.*"> >> >>When this portion of code executes, tomcat generates an error saying that, it >>cannot find the package 'iclient'. >> >> >>Anybody knows the reason for this? >> >> >>Thanks in advance >> >>--- >>- >>Madhuraka Godahewa >>Telecommunications Engineer >>Research and Development Unit >>Electroteks Global Networks (Pvt.) Ltd. >> >>Mobile: + 94-777-647055 >> >>- >>To start a new topic, e-mail: users@tomcat.apache.org >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Encrypt Cleartext Resource Password
There is no way built in to tomcat to obfuscate the password on a JNDI resource. It's been discussed here on the list and the general concensus is to secure the server.xml file from prying eyes using file permissions and general server configuration. --David Darren wrote: I tried adding digest="MD5" as you advised, but it's not being used. If the password is left in cleartext (with digest="MD5") the connection works fine, but if the MD5 version of the password is used it fails to connect to the database. On 16 Aug 2006, at 10:31, Yassine ELassad (YEL) wrote: HI Darren, I guess you need this : digest="MD5" in your realm definition so it would look like follow: url="jdbc:mysql://localhost: 3306/DB? autoReconnect=true" /> Greetings, Yassine Cologne,Germany On 8/16/06, Darren <[EMAIL PROTECTED]> wrote: Hi, I have a JDBC resource configured with tomcat 5.0 (in server.xml) and it is working fine. I would like to specify the PASSWORD in an encrypted, or at least encoded, form so it is not cleartext. Checking the docs I see mention of a digest parameter, but I cannot find any reference to using this with regard to a JDBC resource. Is such a thing possible? If not, perhaps someone could point me to the relevant parts of the source code I need to subclass in order to make it possible. Thanks, Darren - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat upgrade from 5.0.28 to 5.5.17, Tomcat Manager does not work for context based deployments
Venkatesh Jayaraman (jvenky) wrote: > Let me answer my own posting here. > > > > Tomcat 5.5.17 changed code with respect to deploy command. But > documentation did not reflect it. > > > > Deploy works if the url specified > > > > a. With jar prefix removed > > b. default path added at the end > > > > http://localhost:8080/manager/deploy? > config=file:/path/context.xml&war=file:/path/bar.war&path=/bar > > Can you please fix the documentation please? Please update your bug report with this information and it will get done. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doesn't Process CSS files
aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css style sheets. However, when it goes to tomcat and serves .jsp files, it doesn't process them with the .css style sheet. I thought that the page went to the browser, the browser "sees" the reference to the .css file, then goes back and requests it to determine how to render the page. Is this right? If so, why doesn't apache give the .css file out of its directory like it does for the .htm pages? BTW, I've also tried putting a copy of the .css file in the same directory as the .jsp pages, to no avail, and, in the .jsp file, have tried several combinations and permutations of referencing the .css file using various url's including and not including the webapp directory name. Here's the directory structure: apache's stuff: /var/www/MyWebSite/ <- All .htm's and .css's /var/webapps/MyWebSite/ <- All .jsp's and .tld's /var/webapps/MyWebSite/WEB-INF <- Exactly what you think it is- all servlets and tag libraries Thanks. anw - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Your assumption is correct that the client browser makes a separate request to retrieve css files just like images or any other page resource. I would think your apache access log would offer some insight into why the css files aren't being delivered and what the status code is. You can also attempt to access them directly and see what kind of response you get. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering in Tomcat-4.x
Hi, Can someone point me to a step by step setup process for Clustering Tomcat4.x? The Tomcat documentations that i saw, only talk about Tomcat5.x clustering configurations Thank you. regards, -Jaikiran - Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Re: Doesn't Process CSS files
On Wednesday 16 August 2006 07:42, David Smith wrote: > aladdin wrote: > > >I have an apache-http tomcat configuration set up that works just > >fine, with static htm's, jsp's, and servlets, except for one thing. It > >finds all my .htm static content, and, when serving that, uses the > >referenced .css style sheets. However, when it goes to tomcat and > >serves .jsp files, it doesn't process them with the .css style sheet. > > > >I thought that the page went to the browser, the browser "sees" the > >reference to the .css file, then goes back and requests it to determine > >how to render the page. > > > >Is this right? If so, why doesn't apache give the .css file out of its > >directory > >like it does for the .htm pages? BTW, I've also tried putting a copy of the > >.css file in the same directory as the .jsp pages, to no avail, and, in the > >.jsp > >file, have tried several combinations and permutations of referencing the > >.css file using various url's including and not including the webapp > >directory > >name. > > > >Here's the directory structure: > > > >apache's stuff: > > > >/var/www/MyWebSite/ <- All .htm's and .css's > >/var/webapps/MyWebSite/ <- All .jsp's and .tld's > >/var/webapps/MyWebSite/WEB-INF <- Exactly what you think it is- all > >servlets and tag libraries > > > >Thanks. > >anw > > > >- > >To start a new topic, e-mail: users@tomcat.apache.org > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > Your assumption is correct that the client browser makes a separate > request to retrieve css files just like images or any other page resource. > > I would think your apache access log would offer some insight into why > the css files aren't being delivered and what the status code is. You > can also attempt to access them directly and see what kind of response > you get. > > --David > Thanks! I'll check out those logs as soon as I get into work, Meantime, what do you mean by "attempt to access them directly"? anw > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doesn't Process CSS files
aladdin wrote: > Thanks! I'll check out those logs as soon as I get into work, Meantime, > what do you mean by "attempt to access them directly"? Type the url of an css file directly into your browser and see what the response is. Something like: http://www.apache.org/style/style.css Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doesn't Process CSS files
aladdin wrote: On Wednesday 16 August 2006 07:42, David Smith wrote: aladdin wrote: I have an apache-http tomcat configuration set up that works just fine, with static htm's, jsp's, and servlets, except for one thing. It finds all my .htm static content, and, when serving that, uses the referenced .css style sheets. However, when it goes to tomcat and serves .jsp files, it doesn't process them with the .css style sheet. I thought that the page went to the browser, the browser "sees" the reference to the .css file, then goes back and requests it to determine how to render the page. Is this right? If so, why doesn't apache give the .css file out of its directory like it does for the .htm pages? BTW, I've also tried putting a copy of the .css file in the same directory as the .jsp pages, to no avail, and, in the .jsp file, have tried several combinations and permutations of referencing the .css file using various url's including and not including the webapp directory name. Here's the directory structure: apache's stuff: /var/www/MyWebSite/ <- All .htm's and .css's /var/webapps/MyWebSite/ <- All .jsp's and .tld's /var/webapps/MyWebSite/WEB-INF <- Exactly what you think it is- all servlets and tag libraries Thanks. anw - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Your assumption is correct that the client browser makes a separate request to retrieve css files just like images or any other page resource. I would think your apache access log would offer some insight into why the css files aren't being delivered and what the status code is. You can also attempt to access them directly and see what kind of response you get. --David Thanks! I'll check out those logs as soon as I get into work, Meantime, what do you mean by "attempt to access them directly"? anw Type the url of the css file in your favorite browser: http://www.myserver.com/path/to/css/cssfile.css --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JMS Alternative
Before asking about an optimized multithreaded e-mail application on a mailinglist for a webserver you should make it clear what you are doing. Maybe the non-optimized singlethreaded e-mail loop is fast enough for you. It wil save you a lot of time debugging. How much e-mail are you sending? 100.000 per second/minute/day? How big are your e-mails? Do you have enough bandwidth for them? BTW: This has nothing to do with Tomcat. Ronald. On Wed Aug 16 07:51:12 CEST 2006 Tomcat Users List wrote: Hi All, Is there any alternative JMS api in Tomcat ? And how can I implement multi threading in JMS, let's say to send mass email (at about 100.000) with Java Mail API with customized attachment ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA
Access to directories outside document root?
Hello, Is it possible to obtain access to an arbitrary directory (possibly mounted file) which is not below the Tomcat webapps directory from within a webapp? GetServletContext.getRealpath("") seems to only access directories below the webapp app directory... Thanks in advance... Rob. Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you.
Re: Clustering in Tomcat-4.x
clustering in 4.x was only experimental, and probably has a load of bugs http://people.apache.org/~fhanik/index.html.old Filip jaikiran pai wrote: Hi, Can someone point me to a step by step setup process for Clustering Tomcat4.x? The Tomcat documentations that i saw, only talk about Tomcat5.x clustering configurations Thank you. regards, -Jaikiran - Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access to directories outside document root?
Rob Elliott wrote: > Is it possible to obtain access to an arbitrary directory (possibly > mounted file) which is not below the Tomcat webapps directory from > within a webapp? GetServletContext.getRealpath("") seems to only access > directories below the webapp app directory... What exactly do you want to achieve? For example: If you want the contents of the directory /foo/bar to be accessible via, say http:///mybardir you simply have to create a definition with the "docBase"-attribute set appropriately. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Clustering in Tomcat-4.x
Thanks Filip for that link(i hadnt found any material even after doing a lot of googling). Upgrading to Tomcat-5 seems to be the right thing to do. Thanks a lot. regards, -Jaikiran Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: clustering in 4.x was only experimental, and probably has a load of bugs http://people.apache.org/~fhanik/index.html.old Filip jaikiran pai wrote: > Hi, > Can someone point me to a step by step setup process for Clustering > Tomcat4.x? The Tomcat documentations that i saw, only talk about Tomcat5.x > clustering configurations > > Thank you. > regards, > -Jaikiran > > > - > Here's a new way to find what you're looking for - Yahoo! Answers > Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it > NOW > > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.10.10/419 - Release Date: 8/15/2006 > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Here's a new way to find what you're looking for - Yahoo! Answers Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
Tomcat5.5.17 work directory have the whole tomcat structure
Hi all, I installed the image(my project)with all the class files(work is having the class files)by doing the precompilation.After installation , I tried to launch webpages ...it's throwing the Filenotfound exception. So I analyzed the problem and deleted the work directory under tomcat and stop and started the tomcat and able to launch all the webpages . *Here my Question is:Why it's not launching with precompilation classes?* After deleting the work dir and while launching the web pages its created the work directory but looks strange in work directory. i could see the tomcat work directory with all tomcat directories. EX: tomcat/work/Standalone/localhost having my three contexts directories and bin,conf,server,shared ,common,temp(all of the tomcat direc) but is not giving any problem. Just I want to avoid that unneccessary folders under tomcat work directory.Ideleted those directories ,stop and started the tomcat and launched the pages successfully. After doing these steps ..I conluded that i need to avoid these unneccessary folders in work dire.hope that will solve my problem?Is there any setting in tomcat side to compile only the webapps folder instead of whole tomcat?What I am doing wrong here?I am doing the precompilation with ant.jar?please suggest me to avoid this problem. Thanks in advance Regards Raju
RE: Access to directories outside document root?
Thanks for your response. The servlet will simply launch a Timer Task that will periodically obtain a list of files under /foo/bar, examine their timestamps and delete the file if its shelflife has expired. There is no requirement to expose anything... Thanks, Rob. -Original Message- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 9:37 AM To: Tomcat Users List Subject: Re: Access to directories outside document root? Rob Elliott wrote: > Is it possible to obtain access to an arbitrary directory (possibly > mounted file) which is not below the Tomcat webapps directory from > within a webapp? GetServletContext.getRealpath("") seems to only access > directories below the webapp app directory... What exactly do you want to achieve? For example: If you want the contents of the directory /foo/bar to be accessible via, say http:///mybardir you simply have to create a definition with the "docBase"-attribute set appropriately. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Access to directories outside document root?
Rob Elliott wrote: > The servlet will simply launch a Timer Task that will periodically obtain a > list of files under /foo/bar, examine their timestamps and delete the file > if its shelflife has expired. There is no requirement to expose anything... I don't see a reason why your timer task should not be able to access /foo/bar and do it's work with the files there. Unless you're running Tomcat with the security manager. In this case you'd propably have to add a rule to conf/catalina.policy that allows access to /foo/bar. Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat5.5.17 work directory have the whole tomcat structure
Sounds like you set a Context up with the Tomcat directory as the base appDir, so it's trying to publish the lot. Check your Server.xml Pid Raju Balugu wrote: Hi all, I installed the image(my project)with all the class files(work is having the class files)by doing the precompilation.After installation , I tried to launch webpages ...it's throwing the Filenotfound exception. So I analyzed the problem and deleted the work directory under tomcat and stop and started the tomcat and able to launch all the webpages . *Here my Question is:Why it's not launching with precompilation classes?* After deleting the work dir and while launching the web pages its created the work directory but looks strange in work directory. i could see the tomcat work directory with all tomcat directories. EX: tomcat/work/Standalone/localhost having my three contexts directories and bin,conf,server,shared ,common,temp(all of the tomcat direc) but is not giving any problem. Just I want to avoid that unneccessary folders under tomcat work directory.Ideleted those directories ,stop and started the tomcat and launched the pages successfully. After doing these steps ..I conluded that i need to avoid these unneccessary folders in work dire.hope that will solve my problem?Is there any setting in tomcat side to compile only the webapps folder instead of whole tomcat?What I am doing wrong here?I am doing the precompilation with ant.jar?please suggest me to avoid this problem. Thanks in advance Regards Raju - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache- Tomcat Connector Problem...newbi question
Thanks everyone! Its working ! Best Regards, Atul Govande 818 717 5621 NOTE: Please note that Delta Tau no longer allows the sending or receiving of attachments with the extension .ZIP or .EXE. Please rename all .ZIP attachments to .ZZZ. Please zip all .EXE attachments and then rename them to .ZZZ. If you receive an attachment named .ZZZ please rename it to .ZIP. Sorry for the inconvenience. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yassine ELassad (YEL) Sent: Tuesday, August 15, 2006 4:09 PM To: Tomcat Users List Subject: Re: Apache- Tomcat Connector Problem...newbi question Hi Atul, it would be a good help if you can send us your configurations of Apache, server.xml, workers.properties and the mod_jk.conf if you have some you could have a look at this sample it maybe a good place to start for you: http://tomcat.anfatech.com/cocoon/tomcat/g12/19.html Greetings yassine Cologne, Germany On 8/15/06, Atul Govande <[EMAIL PROTECTED]> wrote: > Hi, > I am using Apache 2.0.54 > Tomcat 5.0.30 > Mod JK 1.2.6 > I was able to get all the example working with :8080 method. > I configured httpd.cnf and server.XML so as workers properties by referring > to available documents. > When I directly used IP address/example the examples do not work and shows > JSP text. > In mod_jk log file I get ... > jk_uri_worker_map_t::map_uri_to_worker, done without a match > I am sure it is not connecting or not understanding my worker. > > Any help is appreciated! > > Best Regards, > Atul Govande > 818 717 5621 > NOTE: Please note that Delta Tau no longer allows the sending or receiving > of attachments with the extension .ZIP or .EXE. Please rename all .ZIP > attachments to .ZZZ. Please zip all .EXE attachments and then rename them to > .ZZZ. If you receive an attachment named .ZZZ please rename it to .ZIP. > Sorry for the inconvenience. > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- (e==mc²)? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing Request Parameters
rache wrote: Parameter values are set in the jsp either as hardcoded links(http://j.jsp?param=value) or as hidden parameters. When the program enters the doGet() or doPost() method of a servlet and check for the parameter, its null. String pvalue = req.getParameter("param"); This happens intermittently. Is there any explanation on this. Is this a bug on Tomcat or somethings wrong with my code? Any help would be great! Thanks! I have noticed when debugging my loop, to assign actions, will cycle more times than there are variables. Have you looked at the entire request buffer with your debugger? Enumeration e = request.getParameterNames(); while (e.hasMoreElements()) { String s = (String)e.nextElement(); if (s.equals(A_BUTTON)) {action = A; break;} else if (s.equals(B_BUTTON)) {action = B; break;} } - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
web.xml config
Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally using a GUI? Thanks, Rob. Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you.
RE: isVirtualWebappRelative not working
Martin, thanks for replying. I agree with what you are saying, but my point is that should work from any subdirectory /Foo or /Foo/Moo or /Foo/Moo/TooFoo because the isVirtualWebappRelative parameter is set to true. Which means the "virtual" path should be interpreted as relative to the context root. If the current directory is /Foo or /Too/Moo, should still work. if in /Foo, this will also work in in /Foo/Moo should work too Setting isVirtualWebappRelative to true or false has worked fine for me with previous versions of Tomcat, but not with Tomcat 5.5. This makes migrating sites very difficult. A developer shouldn't be changing the code every time the web server version is upgraded. Ross -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 5:49 AM To: Tomcat Users List Subject: Re: isVirtualWebappRelative not working Good Morning Ross- If your path does not begin with a slash (/) then it is taken to be *relative to the current document* --Include head.html (head.html current location loads correctly) --Include in Foo.html (Foo.html loads current location) from Foo folder note the absence of "/" in the first position so this is the relative to current document --Include in the original head.html NB: Use #include virtual instead of #exec cgi to pass QueryStrings More info available at http://httpd.apache.org/docs/1.3/mod/mod_include.html HTH, Martin-- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. > Hi everybody, > > I'm having issues with isVirtualWebappRelative parameter when configuring the > SSIServlet. It just won't work for me. I have set up the value to 1 to make > the path be interpreted as relative to the context root, but I'm still > getting the following output in catalina.out: > > ... > SEVERE: #include--Couldn't include file: /head.html > java.io.IOException: Couldn't find file: /head.html >at > org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:537) >at > org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:155) >at org.apache.catalina.ssi.SSIInclude.process(SSIInclude.java:44) > ... > > The file, head.html, exists in the context root and everything works fine > when a file from the same directory is including it via The problem comes when a file from a subdirectory > tries to include it. > > I'm testing this with Tomcat 5.5.17 on Linux. The same configuration works > fine with Tomcat 5.0.25 > > Does anybody know of any bugs related to the isVirtualWebappRelative > parameter in Tomcat 5.5? I might have missed something in the configuration, > but can't think of it right now. > > Any help and ideas are welcome. > > Thanks, > Ross > > "This communication is intended solely for the addressee and is confidential > and not for third party unauthorized distribution" > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > "This communication is intended solely for the addressee and is confidential and not for third party unauthorized distribution" - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlets mod_jk Context path problems
Changing to Controller /Controller Will fix the "/ecommerce/ecommerce" problem. Probably what you are really trying to do is make your webapp the "ROOT" webapp. For that you need to rename your webapp directory to ROOT and change your context definition. If you search the postings for ROOT it is brought up several times a week and you should find the details - sorry I don't want to misquote them from memory. -Original Message- From: jeusdi [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 3:33 AM To: users@tomcat.apache.org Subject: Re: Servlets mod_jk Context path problems MMM, I've just probed to access http://192.168.1.2:8080/ecommerce/ecommerce/Controller and I've accessed to the servlet. What must I change to access as http://192.168.1.2/ecommerce/Controller? jeusdi wrote: > > So, the problem surges out form tomcat because I can't access it. > > If I try access throught 192.168.1.2/ecommerce/Controller the message > is the same, so it comes form Tomcat. > > I've seen jk log messages and i works correctly. > So, What's wrong is tomcat? > > > > Yassine ELassad (YEL) wrote: >> >> hi >> >> try to access the context directly via port 8080, so you know it's a >> mod_jk related issue if you can access >> >> http://yourHostMachine:8080/ecommerce/Controller >> >> so the problem is coming from your JK configuration otherwise it from >> tomcat >> >> Greeting Yassine >> Cologne, Germany >> >> >> >> >> On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >>> Mmm, I've changed httpd.conf file and web.xml file to this --> >>> >>> In httpd.conf I've added JkMount /ecommerce/Controller treb and in >>> web.xml file I've changed mapping --> >>> >>> >>> Controller >>> /ecommerce/Controller >>> >>> >>> And the result is The requested resource (/ecommerce/Controller) is >>> not available. >>> Note: Context path value is "/" and docBase = >>> "/usr/local/tomcat/webapps/ecommerce". Is it important? >>> >>> >>> - >>> >>> >>> >>> Yassine ELassad (YEL) wrote: >>> > >>> > Hi jeusdi, >>> > >>> > >>> > in your Apache configuration you juts Jkmount JSP files that are >>> > inside your Application as the statement say: >>> > >>> > JkMount /ecommerce/*.jsp treb >>> > >>> > and you are trying to get this : >>> > >>> > /ecommerce/servlets/ControllerServlet >>> > >>> > which does not match the directive above either you need to change >>> > that directive something like: >>> > >>> > JkMount /ecommerce/*treb >>> > >>> > or you Jkmount every Context you want to call for its own >>> > >>> > JkMount /ecommerce/servlets/ControllerServlet >>> > ... >>> > >>> > i hope this helps. >>> > >>> > >>> > Greeting Yassine >>> > Cologne, Germany >>> > >>> > >>> > On 8/16/06, jeusdi <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hello, >>> >> I'm muddling up with Servlets configuration, Context >>> >> configuration, VirtualHost configuration, and more... >>> >> >>> >> My problem is that I have 2 domains --> ecommerce.gmsoft.com >>> >> and www.gmsoft.com and both are web applications. The first >>> >> problem is >>> that I >>> >> don't know how configure Apache (http.conf) to select correct >>> application >>> >> according to domain_name (ecommerce.gmsoft.com or >>> >> www.gmsoft.com), moreover I've installed correctly mod_jk, so I >>> >> want the JSPs and servlets is handled with Tomcat. >>> >> >>> >> Also, I have problems with server.xml and web.xml files to >>> >> mapping servlets and Context configuration. >>> >> >>> >> However, first I solve it step to step. >>> >> >>> >> I'm developing the ecommerce web application and the servers >>> (apache >>> >> web >>> >> server (port 80) and Tomcat (port 8009 ajp13 connector)) runs >>> >> under 192.168.1.2. So, I only have configured this. So, when I >>> >> access to >>> >> 192.168.1.2 it shows me my index.jsp (handled by tomcat and >>> >> redirect >>> to >>> >> Apache web server) correctly. However I've created a Servlet that >>> handles >>> >> user requests (ControllerServlet), but it is inaccessible. I've >>> >> tried access to ControllerServlet manually (writing the URL >>> >> direction), but this servlet is not found by servers. I'm sure >>> >> that is a configuration problem. >>> >> >>> >> Now I access to my application throught >>> >> http://192.168.1.2/ecommerce, when I access to it, it shows me >>> >> the index.jsp correctly, but when I access >>> to >>> >> http://192.168.1.2/ecommerce/servlets/ControllerServlet, doesn't >>> happen. >>> >> >>> >> I show you my configuration files: >>> >> >>> >> >>> >> httpd.conf --> >>> >> ServerName 192.168.1.2 >>> >> >>> >> NameVirtualHost 192.168.1.2 >>> >> >>> >> >>> >>ServerName 192.168.1.2 >>> >>ServerAdmin [EMAIL PROTECTED] >>> >>DocumentRoot /usr/local/tomcat/webapps >>> >>ErrorLog /usr/local/tomcat/webapps/ecommerce/log
RE: Tomcat upgrade from 5.0.28 to 5.5.17, Tomcat Manager does not work for context based deployments
Updated the bug. http://issues.apache.org/bugzilla/show_bug.cgi?id=40257 Please take action as needed. -Venky -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 4:42 AM To: Tomcat Users List Subject: Re: Tomcat upgrade from 5.0.28 to 5.5.17, Tomcat Manager does not work for context based deployments Venkatesh Jayaraman (jvenky) wrote: > Let me answer my own posting here. > > > > Tomcat 5.5.17 changed code with respect to deploy command. But > documentation did not reflect it. > > > > Deploy works if the url specified > > > > a. With jar prefix removed > > b. default path added at the end > > > > http://localhost:8080/manager/deploy? > config=file:/path/context.xml&war=file:/path/bar.war&path=/bar > > Can you please fix the documentation please? Please update your bug report with this information and it will get done. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing Request Parameters
Nicolas Schwartz wrote: > > It occurs on GET requests, maybe on POST ones but we don't know. > The value of the parameter is not long, neither is the value. > It appears to occur "randomly" > Exact same thing in our case. We have seen it in GET requests, not entirely sure about POSTs. We use some URLs that are quite long (more than 255 characters), but we have seen the problem with URLs with four or five parameters only. I'll check to see if we have long bits of data in the parameters. Do you think that is related? We are a bit confused because we started seeing the problem only about a month ago. We checked all changes we did to the product and none of them seem to be causing the issue. Thanks for the help! Leo. -- View this message in context: http://www.nabble.com/Missing-Request-Parameters-tf2018230.html#a5835672 Sent from the Tomcat - User forum at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat, apache, mod_rewrite and http-auth
Hi all; I do have a web environment running inside my LAN in a tomcat container, forcing users through HTTP Basic authentication. For now and locally, this uses to work well - the browser is prompting the user with a HTTP login window, and everything is fine. Right now, I need to expose this service, and, as for most of the other web sites hosted in our LAN, this includes using an apache2 in a DMZ environment acting as Reverse Proxy using mod_rewrite. So far, so good. My setup is something like that: RewriteEngine On RewriteLogLevel 5 RewriteLog "/var/log/apache2/rewrite.log" RewriteRule ^/pcd/(.*) http://192.168.1.242:8080/pcd/$1 [P] [L] It works, which I hoped. But it doesn't work _right_. Whenever requesting an URL like http://pcd/get?... , I am prompted to log in using HTTP auth. But then, after this happened, the browser tries to access 192.168.1.242 instead of . This is obviously not working, and this also ain't what I want. But I wonder why mod_rewrite doesn't work well in this situations. Explanations, anyone? Or hints how to get out of this? Much appreciated, if so. TIA and bye, Kristian -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 "Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encrypt Cleartext Resource Password
I found this provider to be a good starting point http://www.bouncycastle.org/latest_releases.html There are multiple classes available for Message Digest 5 http://www.bouncycastle.org/docs/docs1.5/index.html one of which is Message Digest 5 with Data Encryption Standard see JCEBlockCipher.PBEWithMD5AndDES Does this answer your question? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. > Hi, > > I have a JDBC resource configured with tomcat 5.0 (in server.xml) and > it is working fine. > > type="javax.sql.DataSource" maxActive="10" maxIdle="15" > maxWait="1" removeAbandoned="true" removeAbandonedTimeout="300" > logAbandoned="true" driverClassName="com.mysql.jdbc.Driver" > username="USERNAME" password="PASSWORD" url="jdbc:mysql://localhost: > 3306/DB?autoReconnect=true" /> > > I would like to specify the PASSWORD in an encrypted, or at least > encoded, form so it is not cleartext. Checking the docs I see > mention of a digest parameter, but I cannot find any reference to > using this with regard to a JDBC resource. Is such a thing > possible? If not, perhaps someone could point me to the relevant > parts of the source code I need to subclass in order to make it > possible. > > Thanks, > Darren > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Service start in Windows with java opts
Hi!, I am using Tomcat 5.0 in Windows XP pro. The application i am using uses Ant in order to start tomcat with the following env keys: However, it always opens a new command window showing the info about tomcat starting up. I am interested in not having this window shown. I used the Tomcat Monitor (to avoid showing the window with info about tomcat starting up) and added the following lines to the "Java Options" section: -DproxySet=true -DproxyPort=80 However, when i start my application, it sends errors. Is there any way to verify that this settings are being used? Thanks for the help Complete ant code:
Re: tomcat, apache, mod_rewrite and http-auth
The connector receiving request from Apache needs at least the first attribute added to it: proxyName="domain.name.com": the domain name of the Apache httpd server acting as a front end to Tomcat proxyPort="80": the port number of the Apache httpd server There is a sample of this in the server.xml distributed with tomcat. --David Kristian Rink wrote: Hi all; I do have a web environment running inside my LAN in a tomcat container, forcing users through HTTP Basic authentication. For now and locally, this uses to work well - the browser is prompting the user with a HTTP login window, and everything is fine. Right now, I need to expose this service, and, as for most of the other web sites hosted in our LAN, this includes using an apache2 in a DMZ environment acting as Reverse Proxy using mod_rewrite. So far, so good. My setup is something like that: RewriteEngine On RewriteLogLevel 5 RewriteLog "/var/log/apache2/rewrite.log" RewriteRule ^/pcd/(.*) http://192.168.1.242:8080/pcd/$1 [P] [L] It works, which I hoped. But it doesn't work _right_. Whenever requesting an URL like http://pcd/get?..., I am prompted to log in using HTTP auth. But then, after this happened, the browser tries to access 192.168.1.242 instead of . This is obviously not working, and this also ain't what I want. But I wonder why mod_rewrite doesn't work well in this situations. Explanations, anyone? Or hints how to get out of this? Much appreciated, if so. TIA and bye, Kristian - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Static vars / connection pools / tomcat app design
Hi. I have a series of tomcat based apps that all use a single .jar to do some common admin tasks like sending mail and connecting to a DB. The .jar file uses the Tomcat/JNDI connection pooling to save overhead (supposedly). In the other apps (that use the above .jar) I have both servlets and session beans. Im trying to minimize memory use by putting the creation of the .jar classes into a base class and declaring it 'static'. Ill then (re)base my servlets and beans on these two base classes. Something about this is striking me as wrong. It seems like I will be getting an instance of my 'support' jar for each session. Which means each one will have its own connection pool. So if there are 4 web apps being used, with 5 users I will end up with 20 instances of the connection pool. Surely there is a better way.. yes? no? maybe?? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Service start in Windows with java opts
Elias Chavarria wrote: > -DproxySet=true > -DproxyPort=80 > > However, when i start my application, it sends errors. Is there any way to > verify that this settings are being used? Drop that as a JSP into some webapp-dir on your tomcat: -snip- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false" import="java.util.Enumeration" %> List of properties List of properties property nameproperty value <% Enumeration propNames = System.getProperties().propertyNames(); while (propNames.hasMoreElements()) { String propName = (String) propNames.nextElement(); String propValue = System.getProperty(propName); %> <%=propName%><%=propValue%> <% } %> -snap- Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static vars / connection pools / tomcat app design
whats wrong with separating resources for independent applications? Leon On 8/16/06, Jon Yeargers <[EMAIL PROTECTED]> wrote: Hi. I have a series of tomcat based apps that all use a single .jar to do some common admin tasks like sending mail and connecting to a DB. The .jar file uses the Tomcat/JNDI connection pooling to save overhead (supposedly). In the other apps (that use the above .jar) I have both servlets and session beans. Im trying to minimize memory use by putting the creation of the .jar classes into a base class and declaring it 'static'. Ill then (re)base my servlets and beans on these two base classes. Something about this is striking me as wrong. It seems like I will be getting an instance of my 'support' jar for each session. Which means each one will have its own connection pool. So if there are 4 web apps being used, with 5 users I will end up with 20 instances of the connection pool. Surely there is a better way.. yes? no? maybe?? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changing to different index.jsp from Tomcat default index.jsp
When I start my Tomcat server and link to http://localhost/ I get the default index.jsp that comes with Apache Tomcat Server. I want to use my own index.jsp how do I achieve this objective? Brian
Logging of request parameters -- how do I turn off
Hi. I've noticed that request parameters are being written to the file catalina.out (using Tomcat 4.1.31). For the most part I don't really care, but when forms include passwords and those plaintext password gets written into the file I do. I've never intentionally turned that capability on. How do I turn it off? Thanks, Rob -- Rob Tanner UNIX Services Manager Linfield College, McMinnville OR - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging of request parameters -- how do I turn off
You need to use a custom pattern with the AccessLogValve pattern='%a %U' http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html It would be much better to use POST requests when items such as passwords are in the URL. This way they will also not be cached by the browser or any intermediate proxies. -Tim Rob Tanner wrote: Hi. I've noticed that request parameters are being written to the file catalina.out (using Tomcat 4.1.31). For the most part I don't really care, but when forms include passwords and those plaintext password gets written into the file I do. I've never intentionally turned that capability on. How do I turn it off? Thanks, Rob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing to different index.jsp from Tomcat default index.jsp
McRaven, Brian wrote: When I start my Tomcat server and link to http://localhost/ I get the default index.jsp that comes with Apache Tomcat Server. I want to use my own index.jsp how do I achieve this objective? Brian It's under webapps/ROOT. But, rename the original one, as it is useful. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + WebDAV
Hi, I installed tomcat5 on a Debian Linux machine to test WebDAV. I can see the files at http://server:8180/webdav but unfortunately I cannot write to it. I tried several clients: internet explorer, gnome nautilus, konqueror. Konqueror gives the following error: "A resource cannot be created at the destination until one or more intermediate collections (folders) have been created." I did uncomment the required lines in the web.xml file (setting "readonly" to false). So I don't know what the problem is. Any help would be greatly appreciated. Thanks, Aditya
RE: Changing to different index.jsp from Tomcat default index.jsp
I thought it was created in a Servlet and you had to change some parameters in one of the .xml files like web.xml in the ROOT directory. Is this correct for Apache Tomcat 5.5.17? -Original Message- From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 3:12 PM To: Tomcat Users List Subject: Re: Changing to different index.jsp from Tomcat default index.jsp McRaven, Brian wrote: > When I start my Tomcat server and link to http://localhost/ I get the > default index.jsp that comes with Apache Tomcat Server. I want to use > my own index.jsp how do I achieve this objective? > > Brian > > It's under webapps/ROOT. But, rename the original one, as it is useful. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: performance question
Lambda Probe is a free+easy way to get some instrumentation Propes, Barry L wrote: I'm having some problems this morning with performance. How can I easily determine if it's servlets, or Tomcat, as opposed to possibly the database (Oracle) I'm using? I've not had this problem before. Barry - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Static vars / connection pools / tomcat app design
Jon Yeargers wrote: Hi. I have a series of tomcat based apps that all use a single .jar to do some common admin tasks like sending mail and connecting to a DB. The .jar file uses the Tomcat/JNDI connection pooling to save overhead (supposedly). In the other apps (that use the above .jar) I have both servlets and session beans. Im trying to minimize memory use by putting the creation of the .jar classes into a base class and declaring it 'static'. Ill then (re)base my servlets and beans on these two base classes. Something about this is striking me as wrong. It seems like I will be getting an instance of my 'support' jar for each session. Which means each one will have its own connection pool. So if there are 4 web apps being used, with 5 users I will end up with 20 instances of the connection pool. Surely there is a better way.. yes? no? maybe?? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Strikes me as wrong as well and maybe it's just because I'm misunderstanding what you are trying to do. So you have a .jar library with some classes to encapsulate using various JNDI resources. Very cool. Next, it looks like you are creating a base class for your beans and servlets that use the pooled resources. Cool as long as these classes aren't managing the pool themselves. The base classes encapsulating the JNDI resources should get connections, do whatever and immediately close them so they return to the pool. That is where your performance improvement will come from. I would drop the static stuff unless you are using a static factory method, but then again, such a method should not be in the base class of a bean or servlet. Done right, there should be fewer connections to the pool than clients as each connection services several different requests (even from different contexts). One last word of caution -- don't store connections from your pooled JNDI resources in the session. They'll idle and wasting memory waiting for the user to come back with a new request. --David - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing to different index.jsp from Tomcat default index.jsp
Right. All of the jsps shipped with tomcat are precompiled to classes. You'll have to remove a servlet mapping in webapps/ROOT/WEB-INF/web.xml before tomcat will offer up your custom index.jsp. --David McRaven, Brian wrote: I thought it was created in a Servlet and you had to change some parameters in one of the .xml files like web.xml in the ROOT directory. Is this correct for Apache Tomcat 5.5.17? -Original Message- From: Lou Caudell [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 3:12 PM To: Tomcat Users List Subject: Re: Changing to different index.jsp from Tomcat default index.jsp McRaven, Brian wrote: When I start my Tomcat server and link to http://localhost/ I get the default index.jsp that comes with Apache Tomcat Server. I want to use my own index.jsp how do I achieve this objective? Brian It's under webapps/ROOT. But, rename the original one, as it is useful. - Lou Caudell - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing to different index.jsp from Tomcat default index.jsp
McRaven, Brian wrote: > I thought it was created in a Servlet and you had to change some > parameters in one of the .xml files like web.xml in the ROOT directory. > Is this correct for Apache Tomcat 5.5.17? Yes. And the index.jsp the OP wants to replace, even contains this information: "NOTE: This page is precompiled. If you change it, this page will not change since it was compiled into a servlet at build time. (See $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml as to how it was mapped.)" Regards mks - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I set up Embedded Tomcat to override the Security Constraints set in the web.xml file using the catalina.deploy.SecurityConstaint class?
I am trying to override the web.xml SecurityConstraints using the Context addConstraint/removeConstraint methods. The context.xml contains the following element WEB-INF/web.xml I tried the following to override the SecurityConstraints: // adding the authConstraint SecurityConstraint sc = new SecurityConstraint(); sc.setAuthConstraint(false); I've tried to use both the addConstraint(sc) and removeConstraint(sc) methods to remove the auth-constraint element. context.addConstraint(sc); host.addChild(context); The methods are set correctly but the web.xml security constraints overrides these security constraint changes. Is there a way to override the web.xml security constraints using the catalina.deploy.SecurityConstaint and Context methods? Lisa
Re: Doesn't Process CSS files
On Wednesday 16 August 2006 08:16, David Smith wrote: > aladdin wrote: > > >On Wednesday 16 August 2006 07:42, David Smith wrote: > > > > > >>aladdin wrote: > >> > >> > >> > >>>I have an apache-http tomcat configuration set up that works just > >>>fine, with static htm's, jsp's, and servlets, except for one thing. It > >>>finds all my .htm static content, and, when serving that, uses the > >>>referenced .css style sheets. However, when it goes to tomcat and > >>>serves .jsp files, it doesn't process them with the .css style sheet. > >>> > >>>I thought that the page went to the browser, the browser "sees" the > >>>reference to the .css file, then goes back and requests it to determine > >>>how to render the page. > >>> > >>>Is this right? If so, why doesn't apache give the .css file out of its > >>>directory > >>>like it does for the .htm pages? BTW, I've also tried putting a copy of > >>>the > >>>.css file in the same directory as the .jsp pages, to no avail, and, in > >>>the .jsp > >>>file, have tried several combinations and permutations of referencing the > >>>.css file using various url's including and not including the webapp > >>>directory > >>>name. > >>> > >>>Here's the directory structure: > >>> > >>>apache's stuff: > >>> > >>>/var/www/MyWebSite/ <- All .htm's and .css's > >>>/var/webapps/MyWebSite/ <- All .jsp's and .tld's > >>>/var/webapps/MyWebSite/WEB-INF <- Exactly what you think it is- all > >>>servlets and tag libraries > >>> > >>>Thanks. > >>>anw > >>> > >>>- > >>>To start a new topic, e-mail: users@tomcat.apache.org > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >>Your assumption is correct that the client browser makes a separate > >>request to retrieve css files just like images or any other page resource. > >> > >>I would think your apache access log would offer some insight into why > >>the css files aren't being delivered and what the status code is. You > >>can also attempt to access them directly and see what kind of response > >>you get. > >> > >>--David > >> > >> > >> > > > >Thanks! I'll check out those logs as soon as I get into work, Meantime, > >what do you mean by "attempt to access them directly"? > > > >anw > > > > > > > > > > > Type the url of the css file in your favorite browser: > http://www.myserver.com/path/to/css/cssfile.css > > --David > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Ahh! Late breaking experiment- thanks for the "how to check directly". When I type http://my.addr.whatever/style.css, I get it. However, when go to https://my.addr.whatever/style.css, I don't get it. Note the http vs. https. However when I put the same document root into the virtual host associated with the secure socket (port 443), and then try, I do https://my.addr.whatever/style.css, now I do get it. Sorry, that was kind of convoluted. In other words, I can get it by typing directly, both with http and https (after fixing my virtual host in the apache.conf file), but the JSPs are not seeing it, and it's still attempting to be mapped as indicated below, in the mod_jk.log file. I've looked in the apache log files, and found this in the JK log file: [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/smsinfo.css' from 6 maps [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/smsinfo/TopicsAdmin' [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/smsinfo/register' [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/smsinfo/login' [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*/servlet/*' [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/servlet/*' [Tue Aug 15 21:08:37 2006][23449:1728] [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/*.jsp' Here is my mod_jk configuration file, so why is it trying to map the '/smsinfo.css' to mod_jk for tomcat processing? LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so # AddModule mod_jk.c-> Is this deprecated? JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLeveldebug JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" # These assign URLs to the Tomcat worker # Notes: I *think* the name (ajp1
Re: Doesn't Process CSS files
Ouch! I fixed it, after David put me onto typing directly into the browser (many thanks, David). I had "style.css" in the link reference, and as soon as I changed that to "/style.css", it found it. And, also, now there's no attempt at mapping in the mod_jk log. But I still have the question as to why is this the case? Why would a file referenced as "file.ext" be mapped to mod_jk, when a file referenced as "/file.ext" isn't? Actually, I'm beginning to think I'll never understand how an integrated apache/tomcat installation resolves its file names. On Wednesday 16 August 2006 16:42, aladdin wrote: > On Wednesday 16 August 2006 08:16, David Smith wrote: > > aladdin wrote: > > > > >On Wednesday 16 August 2006 07:42, David Smith wrote: > > > > > > > > >>aladdin wrote: > > >> > > >> > > >> > > >>>I have an apache-http tomcat configuration set up that works just > > >>>fine, with static htm's, jsp's, and servlets, except for one thing. It > > >>>finds all my .htm static content, and, when serving that, uses the > > >>>referenced .css style sheets. However, when it goes to tomcat and > > >>>serves .jsp files, it doesn't process them with the .css style sheet. > > >>> > > >>>I thought that the page went to the browser, the browser "sees" the > > >>>reference to the .css file, then goes back and requests it to determine > > >>>how to render the page. > > >>> > > >>>Is this right? If so, why doesn't apache give the .css file out of its > > >>>directory > > >>>like it does for the .htm pages? BTW, I've also tried putting a copy of > > >>>the > > >>>.css file in the same directory as the .jsp pages, to no avail, and, in > > >>>the .jsp > > >>>file, have tried several combinations and permutations of referencing the > > >>>.css file using various url's including and not including the webapp > > >>>directory > > >>>name. > > >>> > > >>>Here's the directory structure: > > >>> > > >>>apache's stuff: > > >>> > > >>>/var/www/MyWebSite/ <- All .htm's and .css's > > >>>/var/webapps/MyWebSite/ <- All .jsp's and .tld's > > >>>/var/webapps/MyWebSite/WEB-INF <- Exactly what you think it is- all > > >>>servlets and tag libraries > > >>> > > >>>Thanks. > > >>>anw > > >>> > > >>>- > > >>>To start a new topic, e-mail: users@tomcat.apache.org > > >>>To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>>For additional commands, e-mail: [EMAIL PROTECTED] > > >>> > > >>> > > >>> > > >>> > > >>> > > >>Your assumption is correct that the client browser makes a separate > > >>request to retrieve css files just like images or any other page resource. > > >> > > >>I would think your apache access log would offer some insight into why > > >>the css files aren't being delivered and what the status code is. You > > >>can also attempt to access them directly and see what kind of response > > >>you get. > > >> > > >>--David > > >> > > >> > > >> > > > > > >Thanks! I'll check out those logs as soon as I get into work, Meantime, > > >what do you mean by "attempt to access them directly"? > > > > > >anw > > > > > > > > > > > > > > > > > Type the url of the css file in your favorite browser: > > http://www.myserver.com/path/to/css/cssfile.css > > > > --David > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > Ahh! Late breaking experiment- thanks for the "how to check directly". > > When I type http://my.addr.whatever/style.css, I get it. However, when > go to https://my.addr.whatever/style.css, I don't get it. Note the http vs. > https. However when I put the same document root into the virtual host > associated with the secure socket (port 443), and then try, I do > https://my.addr.whatever/style.css, now I do get it. > > Sorry, that was kind of convoluted. In other words, I can get > it by typing directly, both with http and https (after fixing my virtual host > in the > apache.conf file), but the JSPs are not seeing it, and it's > still attempting to be mapped as indicated below, in the mod_jk.log file. > > I've looked in the apache log files, and found this in the JK log file: > > [Tue Aug 15 21:08:37 2006][23449:1728] > [debug]map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI > '/smsinfo.css' from 6 maps > [Tue Aug 15 21:08:37 2006][23449:1728] > [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map > context URI '/smsinfo/TopicsAdmin' > [Tue Aug 15 21:08:37 2006][23449:1728] > [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map > context URI '/smsinfo/register' > [Tue Aug 15 21:08:37 2006][23449:1728] > [debug]map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map > context URI '/smsinfo/login' > [Tue Aug 15 21:08:37 2006][2
RE: Create an object that's shared with multiple applications?
You can serialize/deseriaize your object(s) in /from an Ms SQLserver blob field I can email you some code off list if this is what you are looking forward Phil -Original Message- From: 0 8 [mailto:[EMAIL PROTECTED] Sent: 09 August 2006 20:14 To: Tomcat Users List Subject: Re: Create an object that's shared with multiple applications? Pid, I'm sure this is a stupid question but...what? I don't follow. I can store the object in a database? I'm limited to SQL Server. Does that matter? On 8/9/06, Pid <[EMAIL PROTECTED]> wrote: > put it in a database? > > 0 8 wrote: > > Hello, > > > > I currently have a JSP application under Tomcat that uses an object > > created when Tomcat starts up. The object is created using a class > > that implements ServletContextListener and I can call the object > > from my JSPs. All is well. > > > > Originally, I thought I could have one of these objects per > > application. But it turns out I can have only one per server. > > > > I've been doing some searching and looking through the > > documentation, but I can't figure out how to do this. > > > > How can I create a single object when Tomcat starts up and access > > that object from multiple web apps? > > > > Thanks, > > Matt > > > > > > - To start a new topic, e-mail: users@tomcat.apache.org To > > unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, > e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.10.8/414 - Release Date: 09/08/2006 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running web application on Tomcat on a Windows Server - License question
there's a Windows2004? Hadn't heard of that. Did you mean 2003? Or something newer? -Original Message- From: Ravindran Rabindran [mailto:[EMAIL PROTECTED] Sent: Friday, August 11, 2006 5:29 AM To: users@tomcat.apache.org Subject: Running web application on Tomcat on a Windows Server - License question Hello all, I am interested in deploying some JSP web applications on Tomcat. Data for these application will reside in a MySQL database. My preference is that the server computer hosting these web applications run on a Windows 2003 Server. The server computer has 4 GB of memory. The application authentication will be based on userid/passwords residing in the MySQL database. Would appreciate some advice on whether a Windows 2004 Server software is suffcient for the above. Or would I require any other licenses from Microsoft? Would also appreciate a link to some online reference where the above answers may reside. Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session hijacking with Tomcat/Myfaces - unable to fix it
yeah, I've found that, too, although getRemoteHost theoretically should return the machine name in many cases, but sometimes it won't. -Original Message- From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Sent: Saturday, August 12, 2006 2:45 AM To: Tomcat Users List Subject: Re: Session hijacking with Tomcat/Myfaces - unable to fix it Hello Barry Generally, getRemoteHost() and getRemoteAddr() return the same value, but I had found a situation during testing where getRemoteAddr() returned an IP address but getRemoteHost() returned nothing. (That was two months ago, and I can't, at this time, remember the exact conditions under which this occurred.) Maurice Yarrow Propes, Barry L wrote: >what about getRemoteHost()? > >-Original Message- >From: Maurice Yarrow [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 10, 2006 5:30 PM >To: Tomcat Users List >Subject: Re: Session hijacking with Tomcat/Myfaces - unable to fix it > > >Hello David, Tomas: > >About two months ago, I tried using the getRemoteAddr() for doing IP >check as an addtional auth metric, but found exactly than on local >net, this did not discriminate in many cases and only a single IP >was returned for hosts on LAN. So I decided that there was too >much ambiguity to use this approach, even as addt'l metric. > >One could however assume validity of positives but ignore false >negatives, i.e., if IP in conflict with orig, assume man-in-middle >attack, but if IP agrees, must rely on other metrics to determine >possible jeopardy. > >Maurice Yarrow > > >David Rees wrote: > > > I wonder if associating (and checking) the request IP with the session would reduce the problem to some acceptable level. What is the chance of a session being hijacked from the same network (face-ip)? Another question is can the original request IP be spoofed? >>>In this case the chances are relatively high - imagine a company >>>using a proxy to connect to the Internet. The client IP does not >>>change, a someone in the company sniffing can easily hijack sessions >>>from his/her colleagues. >>> >>> >>Checking the request IP to ensure that it matches the session is a >>good idea, though it doesn't stop all attacks. >> >>If you were to do that, you could also easily add a session attribute >>indicating whether the session was created under http or https and >>invalidate/create a new session if a http session is attempted to be >>used under https. >> >>Besides that, as others suggested, the best thing to do is to simply >>put everything under SSL. >> >>-Dave >> >>- >>To start a new topic, e-mail: users@tomcat.apache.org >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > >- >To start a new topic, e-mail: users@tomcat.apache.org >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session hijacking with Tomcat/Myfaces - unable to fix it
On 8/16/06, Propes, Barry L <[EMAIL PROTECTED]> wrote: From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Generally, getRemoteHost() and getRemoteAddr() return the same value, but I had found a situation during testing where getRemoteAddr() returned an IP address but getRemoteHost() returned nothing. (That was two months ago, and I can't, at this time, remember the exact conditions under which this occurred.) yeah, I've found that, too, although getRemoteHost theoretically should return the machine name in many cases, but sometimes it won't. It does't always return a host name because getRemoteHost does a reverse DNS lookup on the IP address, which doesn't return a hostname if the DNS servers are either not responding quickly enough or if there was no reverse hostname assigned to the IP address. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session hijacking with Tomcat/Myfaces - unable to fix it
I thought it was for some reason like that and I guess more environments are closing that option off. -Original Message- From: David Rees [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 6:02 PM To: Tomcat Users List Subject: Re: Session hijacking with Tomcat/Myfaces - unable to fix it On 8/16/06, Propes, Barry L <[EMAIL PROTECTED]> wrote: > From: Maurice Yarrow [mailto:[EMAIL PROTECTED] >> Generally, getRemoteHost() and getRemoteAddr() return >> the same value, but I had found a situation during testing >> where getRemoteAddr() returned an IP address but >> getRemoteHost() returned nothing. (That was two months >> ago, and I can't, at this time, remember the exact >> conditions under which this occurred.) > > yeah, I've found that, too, although getRemoteHost theoretically > should return the machine name in many cases, but sometimes it won't. It does't always return a host name because getRemoteHost does a reverse DNS lookup on the IP address, which doesn't return a hostname if the DNS servers are either not responding quickly enough or if there was no reverse hostname assigned to the IP address. -Dave - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Setting LD_ASSUME_KERNEL in RHEL 3 (Redhat enterprise linux 3)?
After 350,000 http requests, tomcat stops responding and got the some errors in mod_jk.log. After I set LD_ASSUME_KERNEL=2.4.1, Tomcat has handled 400,000 requests so far. Could someone confirm that setting LD_ASSUME_KERNEL=2.4.1 is the best way to solve "Tomcat stops responding" problem? I am using Tomcat 5.5, jvm 1.5 and Red Hat Enterprise Linux WS release 3 (Taroon Update 4). Kernel: 2.4.21-37a2smp glibc: glibc-2.3.2-95.30 Thank you in advance. === errors in mod_jk.log [Mon Jul 24 23:19:53 2006] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (949): ERROR: can't receive the response message from tomcat, network problems or tomcat is down (127.0.0.1:8009), err =-104 [Mon Jul 24 23:19:53 2006] [error] ajp_get_reply::jk_ajp_common.c (1479): Tomcat is down or network problems. No response has been sent to the client (yet) [Mon Jul 24 23:19:53 2006] [info] ajp_service::jk_ajp_common.c (1696): Receiving from tomcat failed, recoverable operation attempt=0 [Mon Jul 24 23:19:53 2006] [info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=1 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't assign requested address error
I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get the following error: Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 15152 ms StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:487 Any ideas? Thanks! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml config
if you user tomcat 5.5 and jdk1.5 ,so , the webapp can autoDeploy yes or no? On 8/16/06, Rob Elliott <[EMAIL PROTECTED]> wrote: Hello, I need to deliver a WAR file to a customer. The cutomer will ultimately need to change the webapp configuration however they would like to do so without having to compile a new WAR file. Is it possible to change web.xml config parameters after deployment, ideally using a GUI? Thanks, Rob. Information contained in this e-mail and any attachments are intended for the use of the addressee only, and may contain confidential information of Ubiquity Software Corporation. All unauthorized use, disclosure or distribution is strictly prohibited. If you are not the addressee, please notify the sender immediately and destroy all copies of this email. Unless otherwise expressly agreed in writing signed by an officer of Ubiquity Software Corporation, nothing in this communication shall be deemed to be legally binding. Thank you. -- from rui.zhg
Re: web.xml config
Rob Elliott wrote: > Hello, > > I need to deliver a WAR file to a customer. The cutomer will ultimately > need to change the webapp configuration however they would like to do so > without having to compile a new WAR file. Is it possible to change > web.xml config parameters after deployment, ideally using a GUI? Not a GUI but context parameters and/or environment entries as per http://tomcat.apache.org/tomcat-5.5-doc/config/context.html might be what you are looking for. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat, apache, mod_rewrite and http-auth
Hi David, @list; first off, both thanks a lot for pointing me the right way, and let me apologize, as well, as this seems to be a question where RTFM would have been helpful before bothering the list - however, I wasn't aware that tomcat would need a special setup in order to run behind a proxy. By now, it basically is working the way I want it, leaving only one issue: This whole configuration is just almost unusable in our environment.:/ One of the core parts of the application to be proxied relies upon refreshing frequently (read, each second) using "Refresh" headers, and somehow this doesn't seem to work accessing the page from the outside through the apache2 proxy. There are several different phenomenons to appear almost randomly: - Sometimes, the "Refresh" of the site works well, the result is displayed well. - Sometimes, the site refresh ends up displaying a "302 moved - this document is here". This sometimes also includes partial or full textual output of the page to be refreshed. - Sometimes, just nothing happens, ending with a blank page. Depending on how the proxy is configured (using mod_proxy or mod_rewrite), things are better or worse but never really pleasing. Questions, this way: - Can I get "Refresh" headers through a reverse proxy in a working way with a configuration like that? - Is this strange behaviour more likely to be a matter of configuration or of slow network / hardware? - Right now I am looking at mod_jk(2) to see how this will do - is this likely to get me out of this trouble given that tomcat and apache2 are running on different hosts? Thanks a lot for any inspirations and help. Bye, Kristian David Smith schrieb: > The connector receiving request from Apache needs at least the first > attribute added to it: > > proxyName="domain.name.com": the domain name of the Apache httpd server > acting as a front end to Tomcat > proxyPort="80": the port number of the Apache httpd server > > There is a sample of this in the server.xml distributed with tomcat. > -- Kristian Rink * http://zimmer428.net * jab: [EMAIL PROTECTED] icq: 48874445 * fon: ++49 176 2447 2771 "Wenn einer allein träumt, ist es nur ein Traum. Wenn viele gemeinsam träumen, ist das der Anfang einer neuen Wirklichkeit." (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't assign requested address error
Biernesser, Beth ha scritto: I'm running tomcat 5.0.25 on RHES 3.0 and when starting tomcat, I get the following error: Aug 16, 2006 5:00:52 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 15152 ms StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:487 Any ideas? Thanks! You can find many (and better) answers in this mailing list. However it's possible that another server is using the address that tomcat needs, take a look at the configuration files. I can replicate this error starting tomcat two times on the same machine. Edoardo -- [EMAIL PROTECTED] AIM: edoardopn Jabber: [EMAIL PROTECTED] tel:075 9142766 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]