Help Me on Servlet in Tomcat 5.0
Hi All, Can any body give me guidence to run my first servlet on Tomcat 5.0. This is my file... import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(html); out.println(head); out.println(titleHello World!/title); out.println(/head); out.println(body); out.println(h1Hello World!/h1); out.println(/body); out.println(/html); } } I compiled it(windows environment). But confused where should i should put it and run on my local machine typing http://localhost/ I go through several tutorials.But could not able to success.If any one can help me it would be agreat help. Thanks. Athula. Send instant messages to your online friends http://uk.messenger.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]
Re: Help Me on Servlet in Tomcat 5.0
Try this link, they have some good tutorials: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ On 12/28/06, athula bogoda [EMAIL PROTECTED] wrote: Hi All, Can any body give me guidence to run my first servlet on Tomcat 5.0. This is my file... import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.println(html); out.println(head); out.println(titleHello World!/title); out.println(/head); out.println(body); out.println(h1Hello World!/h1); out.println(/body); out.println(/html); } } I compiled it(windows environment). But confused where should i should put it and run on my local machine typing http://localhost/ I go through several tutorials.But could not able to success.If any one can help me it would be agreat help. Thanks. Athula. Send instant messages to your online friends http://uk.messenger.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] -- talk trash and carry a small stick. PAUL KRUGMAN (NYT)
Questions about connector
Hello there! We have a Jboss 4.0.1sp1 (tomcat 5.0). Checking the connector status at the web-console some strange behavior is noticed. We have some requests that are either in Servicing or Keep-Alive, that lasts for over 4 hours (165.000.000 ms). We decided to kill the remote user, and still their IP is listed as it is still running. Is there any reason for this? How can we avoid it? Here's a snippet of our connector properties under server.xml Connector port=8009 address=${jboss.bind.address} maxThreads=1800 minSpareThreads=50 maxSpareThreads=150 enableLookups=false redirectPort=8443 debug=0 connectionTimeout=6 protocol=AJP/1.3/ Best regards and happy holidays -- IBM Certified SOA Solution Designer IBM Database Associate - DB2 UDB V8.1 Family Sun Certified Enterprise Architect (Part I) - 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: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released
I cannot find the isapi_redirect.msi file to install properly isapi filter on windows like in previous release (ie. 1.2.15) and I have to edit manually the windows registry. Why? It was so useful. Matteo TURRA -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: giovedì 21 dicembre 2006 2.29 To: announce@apache.org; Tomcat Developers List; Tomcat Users List Subject: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.20 of the Apache Tomcat Connectors. It contains connectors, which allow a web server such as Apache HTTPD, Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web application server. This version contains several enhancements and fixes a number of minor bugs of the previous version 1.2.19. See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html for a complete list of changes. Source distribtions can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Binary distributions for a number of different operating systems and web servers can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Documentation for using JK with Tomcat 3.3, 4.1, 5.0 and 5.5 can be found at: http://tomcat.apache.org/connectors-doc/ Thank you, -- The Apache Tomcat Team - 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: Not having to restart tomcat
reloading the webapp will be the solution. but if you dont have sessions persisting into DB your users will loose the session. am I right ? From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Thu 12/28/2006 1:46 AM To: Tomcat Users List Subject: Re: Not having to restart tomcat read the docs http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server cheers greg -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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 message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. - 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: Help Me on Servlet in Tomcat 5.0
Try this link, they have some good tutorials: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ THIS LINK IS GOOD - 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: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released
Hi Matteo Can you accomplish this same objective by registering the applicable dll's regsvr32 -i isapi_redirect.dll regsvr32 -i nsapi_redirect.dll Anyone else? M --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Matteo Turra [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; [EMAIL PROTECTED]; Tomcat Developers List dev@tomcat.apache.org Sent: Thursday, December 28, 2006 6:54 AM Subject: RE: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released I cannot find the isapi_redirect.msi file to install properly isapi filter on windows like in previous release (ie. 1.2.15) and I have to edit manually the windows registry. Why? It was so useful. Matteo TURRA -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: giovedì 21 dicembre 2006 2.29 To: announce@apache.org; Tomcat Developers List; Tomcat Users List Subject: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.20 of the Apache Tomcat Connectors. It contains connectors, which allow a web server such as Apache HTTPD, Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web application server. This version contains several enhancements and fixes a number of minor bugs of the previous version 1.2.19. See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html for a complete list of changes. Source distribtions can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Binary distributions for a number of different operating systems and web servers can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Documentation for using JK with Tomcat 3.3, 4.1, 5.0 and 5.5 can be found at: http://tomcat.apache.org/connectors-doc/ Thank you, -- The Apache Tomcat Team - 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: Virtual Hosts
Does anybody have a good tutorial on how to do this with Apache sitting in front of Tomcat? I'd like to have a single server with multiple one-to-one domainname-to-webapp apps running in Tomcat such that I can hot deploy one webapp in Tomcat without affecting the other webapps. Apache VirtualHost -- Tomcat webapp location foo.mydomain.com -- webapps/foo bar.mydomain.com -- webapps/bar eggs.mydomain.com -- webapps/eggs Thanks, JG -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:33 AM To: Tomcat Users List Subject: Re: Virtual Hosts On 12/27/06, Víctor Fragoso [EMAIL PROTECTED] wrote: ... but when I try it, just a blank page shows up And there are no errors in the logs? Look there first. Also, perhaps this will help: http://webtuitive.com/samples/virtual-hosting-howto.jsp If not, post the relevant parts of your server.xml and Context files... -- Hassan Schroeder [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: Virtual Hosts
Gormley, Josh wrote: Does anybody have a good tutorial on how to do this with Apache sitting in front of Tomcat? I'd like to have a single server with multiple one-to-one domainname-to-webapp apps running in Tomcat such that I can hot deploy one webapp in Tomcat without affecting the other webapps. Apache VirtualHost -- Tomcat webapp location foo.mydomain.com -- webapps/foo bar.mydomain.com -- webapps/bar eggs.mydomain.com -- webapps/eggs I think it is possible to achieve this using various mod_rewrite / mod_proxy directives, e.i. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse On the other hand, it is very easy to add another Host elements to Tomcat's server.xml file: default entry: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ another vhosts: Host name=foo.mydomain.com appBase=/some/path/foo unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ Host name=bar.mydomain.com appBase=/some/path/bar unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ Host name=eggs.mydomain.com appBase=/some/path/eggs unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ and deploy your apps in ROOT contexts. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Virtual Hosts
I have used something like the following with mod proxy. This goes in your apache config file VirtualHost 10.0.0.10:80 ServerName www.domainname.co.uk ServerAlias www.domainname.com ProxyPass / http://192.168.100.20:8080/yourwebapp/ ProxyPassReverse / http://192.168.100.20:8080/youwebapp/ ProxyRequests off ErrorLog logs/youwebapp-error_log TransferLog logs/youwebapp-access_log /VirtualHost On 12/28/06, Gormley, Josh [EMAIL PROTECTED] wrote: Does anybody have a good tutorial on how to do this with Apache sitting in front of Tomcat? I'd like to have a single server with multiple one-to-one domainname-to-webapp apps running in Tomcat such that I can hot deploy one webapp in Tomcat without affecting the other webapps. Apache VirtualHost -- Tomcat webapp location foo.mydomain.com -- webapps/foo bar.mydomain.com -- webapps/bar eggs.mydomain.com -- webapps/eggs Thanks, JG -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 27, 2006 10:33 AM To: Tomcat Users List Subject: Re: Virtual Hosts On 12/27/06, Víctor Fragoso [EMAIL PROTECTED] wrote: ... but when I try it, just a blank page shows up And there are no errors in the logs? Look there first. Also, perhaps this will help: http://webtuitive.com/samples/virtual-hosting-howto.jsp If not, post the relevant parts of your server.xml and Context files... -- Hassan Schroeder [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: Virtual Hosts
ben short wrote: I have used something like the following with mod proxy. This goes in your apache config file VirtualHost 10.0.0.10:80 ServerName www.domainname.co.uk ServerAlias www.domainname.com ProxyPass / http://192.168.100.20:8080/yourwebapp/ ProxyPassReverse / http://192.168.100.20:8080/youwebapp/ ProxyRequests off ErrorLog logs/youwebapp-error_log TransferLog logs/youwebapp-access_log /VirtualHost How does this config handle cookies? Tomcat sets cookies with path set to application's context, not the website root. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Virtual Hosts
ben short wrote: I have used something like the following with mod proxy. This goes in your apache config file VirtualHost 10.0.0.10:80 ServerName www.domainname.co.uk ServerAlias www.domainname.com ProxyPass / http://192.168.100.20:8080/yourwebapp/ ProxyPassReverse / http://192.168.100.20:8080/youwebapp/ This will not work with struts application. Taglibs used with struts make use of application's context, so you will end with invalid links like www.domainname.com/yourwebapp -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
RE: Virtual Hosts
Thanks Mikolaj. I'm going to try out having multiple appBases and deploy as the ROOT in each. I haven't tried that yet. As a side question, is this possible to do without modifying the server.xml file every time I want to add a new host? I've read that it's bad practice to modify the server.xml file much like it's bad practice to modify the httpd.conf file in Apache. In Apache, I have a vhost directory with .conf files for each host -- is there a similar method to do this with Tomcat? Thanks, JG -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 8:42 AM To: Tomcat Users List Subject: Re: Virtual Hosts Gormley, Josh wrote: Does anybody have a good tutorial on how to do this with Apache sitting in front of Tomcat? I'd like to have a single server with multiple one-to-one domainname-to-webapp apps running in Tomcat such that I can hot deploy one webapp in Tomcat without affecting the other webapps. Apache VirtualHost -- Tomcat webapp location foo.mydomain.com -- webapps/foo bar.mydomain.com -- webapps/bar eggs.mydomain.com -- webapps/eggs I think it is possible to achieve this using various mod_rewrite / mod_proxy directives, e.i. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse On the other hand, it is very easy to add another Host elements to Tomcat's server.xml file: default entry: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ another vhosts: Host name=foo.mydomain.com appBase=/some/path/foo unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ Host name=bar.mydomain.com appBase=/some/path/bar unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ Host name=eggs.mydomain.com appBase=/some/path/eggs unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false/ and deploy your apps in ROOT contexts. -- Mikolaj Rydzewski [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: Virtual Hosts
Gormley, Josh wrote: As a side question, is this possible to do without modifying the server.xml file every time I want to add a new host? I've read that it's bad practice to modify the server.xml file much like it's bad practice to modify the httpd.conf file in Apache. In Apache, I have a vhost directory with .conf files for each host -- is there a similar method to do this with Tomcat? There is a host-manager webapp which comes with Tomcat to allow adding vhosts on the fly (I haven't used it, however). You will need user with admin role in tomcat-users.xml to access it. -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
RE: Help Me on Servlet in Tomcat 5.0
From: athula bogoda [mailto:[EMAIL PROTECTED] Subject: Help Me on Servlet in Tomcat 5.0 But confused where should i should put it and run on my local machine typing http://localhost/ 1) Read the servlet spec: http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html 2) Read the Tomcat deployment doc: http://tomcat.apache.org/tomcat-5.0-doc/appdev/deployment.html 3) Suggest using 5.5.20, not an outdated version of Tomcat. 4) Declare your class to be part of some package. 5) If you want this servlet to be part of the default webapp, it must be placed in webapps/ROOT, either in a .jar in webapps/ROOT/lib or as a .class file under webapps/ROOT/classes. 6) Define the appropriate servlet mapping in webapps/ROOT/WEB-INF/web.xml. 7) Reconfigure the HTTP connector in conf/server.xml to use port 80 rather than the Tomcat default of 8080. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error-page http status 408
I am using Tomcat 5.5.17 on Windows. I have a problem setting a 408 error-page in my web.xml on form based authentication. I am using servlet spec defined authentication for my webapp: login-config auth-methodFORM/auth-method realm-nameAuthentication/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config Step 1) In a web browser, load the login.jsp page Step 2) Let the web browser sit on the login page for the period of time that would expire the users session (30 mins by default) Step 3) Click submit to send the authentication username/password. The result of this is, not surprisingly, an error. However, the error varies by web browser: Firefox 2 gives a browser error: The connection was reset The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. Internet Explorer 6 gives a tomcat error: HTTP Status 408 - The time allowed for the login process has been exceeded. If you wish to continue you must either click back twice and re-click the link you requested or close and re-open your browser So my first question: why is Firefox not displaying the 408 error? Next, I add an error-page element to my web.xml: error-page error-code408/error-code location/408.html/location /error-page Then, follow the same 3 steps from above, and I would expect Firefox to display the same browser error, but IE should display my 408.html page. Firefox does display the same The connection was reset error, however, IE displays a new error: The page is currently unavailable Due to current high demand, the page you are looking for cannot be delivered right now. Please click the Refresh button, or try again later. HTTP Error 408 / 409 - Not acceptable / Resource conflict Internet Explorer So my second question: why is the error-page 408.html that is defined in my web.xml, not being picked up and displayed to the browser? Thanks for reading all of this, -rg
RE: Questions about connector
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Subject: Questions about connector Here's a snippet of our connector properties under server.xml Connector port=8009 address=${jboss.bind.address} maxThreads=1800 minSpareThreads=50 maxSpareThreads=150 enableLookups=false redirectPort=8443 debug=0 connectionTimeout=6 protocol=AJP/1.3/ The above is the declaration for the AJP connector, used only when front-ending Tomcat (or JBoss) with httpd or IIS. Are you sure that's the one you're using? If so, then it's the front end that's keeping the connection alive, not the real client. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build error mod_jk 1.2.2o
Hi all, I'm trying to build mod_jk 1.2.20 on my linux machine but I obtain this error message during make: jk_jni_worker.c: In function 'open_jvm1': jk_jni_worker.c:817: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:817: error: (Each undeclared identifier is reported only once jk_jni_worker.c:817: error: for each function it appears in.) jk_jni_worker.c:817: error: expected ';' before 'vm_args' jk_jni_worker.c:824: error: 'vm_args' undeclared (first use in this function) jk_jni_worker.c: In function 'detect_jvm_version': jk_jni_worker.c:884: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:884: error: expected ';' before 'vm_args' jk_jni_worker.c:890: error: 'vm_args' undeclared (first use in this function) make[1]: *** [jk_jni_worker.lo] Error 1 make[1]: Leaving directory `/home/luca/mod_jk/src/tomcat-connectors-1.2.20-src/native/common' make: *** [all-recursive] Error 1 I invoke configure script with: ./configure --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --with-java-home=/opt/java --with-java-platform=2 --enable-jni My java version is: java version 1.6.0 Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) Tomcat 5.5.20 Apache 2.2.3 Linux kernel 2.6.19 Anyone can help me? Thanks in advance Luca - 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: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released
Are you sure Martin? I remember the msi file did configure jakarta virtual directory, isapi filter and put this keys in the registry : [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector] @= [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] @= extension_uri=/jakarta/isapi_redirect.dll log_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\log\\isapi_redirect.log log_level=info worker_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\workers.properties.minimal worker_mount_file=C:\\Program Files\\Apache Software Foundation\\Jakarta Isapi Redirector\\conf\\uriworkermap.properties I think it was pretty easy and fast instead do all by hand. Matteo. -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: giovedì 28 dicembre 2006 15.04 To: Tomcat Users List; [EMAIL PROTECTED]; Tomcat Developers List Subject: Re: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released Hi Matteo Can you accomplish this same objective by registering the applicable dll's regsvr32 -i isapi_redirect.dll regsvr32 -i nsapi_redirect.dll Anyone else? M --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: Matteo Turra [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org; [EMAIL PROTECTED]; Tomcat Developers List dev@tomcat.apache.org Sent: Thursday, December 28, 2006 6:54 AM Subject: RE: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released I cannot find the isapi_redirect.msi file to install properly isapi filter on windows like in previous release (ie. 1.2.15) and I have to edit manually the windows registry. Why? It was so useful. Matteo TURRA -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: giovedì 21 dicembre 2006 2.29 To: announce@apache.org; Tomcat Developers List; Tomcat Users List Subject: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released The Apache Tomcat team is pleased to announce the immediate availability of version 1.2.20 of the Apache Tomcat Connectors. It contains connectors, which allow a web server such as Apache HTTPD, Microsoft IIS and Sun Web Server to act as a front end to the Tomcat web application server. This version contains several enhancements and fixes a number of minor bugs of the previous version 1.2.19. See http://tomcat.apache.org/connectors-doc/miscellaneous/changelog.html for a complete list of changes. Source distribtions can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Binary distributions for a number of different operating systems and web servers can be downloaded from an Apache Software Foundation mirror at: http://tomcat.apache.org/download-connectors.cgi Documentation for using JK with Tomcat 3.3, 4.1, 5.0 and 5.5 can be found at: http://tomcat.apache.org/connectors-doc/ Thank you, -- The Apache Tomcat Team - 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: [ANN] Apache Tomcat JK 1.2.20 Web Server Connector released
Matteo Turra wrote: I cannot find the isapi_redirect.msi file to install properly isapi filter on windows like in previous release (ie. 1.2.15) and I have to edit manually the windows registry. Why? It was so useful. There isn't one any more. The reason is quite simple: I don't have InstallShield license any more. If someone is willing to buy the InstallShield and donate it to the Tomcat community, I'll create .msi/.exe installers. I've tried to contact the InstallShield directly, but without any luck. Regards, Mladen. - 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 plugin in eclipse environment
Hello Tomcat users, I am trying to use the sysdeo plug in in eclipse env , to start/stop tomcat, so that debugging web applications , would be possible. I have the following problem , when trying to use the sysdeo plugin version (tomcat_3.2.0.beta3). I have set up the eclipse environment as per the instructions given on the page (http://www.sysdeo.com/eclipse/tomcatplugin http://www.sysdeo.com/eclipse/tomcatplugin ). I also , went through the tutorials, on this page. Tomcat_Base C:\Program Files\Apache Software Foundation\Tomcat5.5 Tomcat Home C:\Program Files\Apache Software Foundation\Tomcat5.5 server.xml - C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\server.xml When I try to start , tomcat server from eclipse env , I get the following exception log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:224) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) When I start , tomcat server manually , using bin/startup.bat, the server starts without any exceptions. is there any property , which Iam missing, please let me know. I googled on this topic, I tried couple of suggestions, of including tomcat jars in class path, but it did not help. We need a debugging env for our project as soon as possible, otherwise we'll end up with thousands of system.out.print statements. Any help is greatly appreciated. thanks, Suchitha.
Tomcat Status, Administration and Manager not working
I have installed apache-tomcat-5.5.20.zip ... into c:\apache-tomcat-5.5.20 I also installed apache-tomcat-5.5.20-admin.zip. Then in two admin.xml files .. conf\Catalina\localhost\admin.xml and server\webapps\admin\admin.xml .. valves were uncommented to allow access to localhost. Valve className=org.apache.catalina.valves.RemoteAddrValve allow=localhost/ Launching tomcat from home page .. JSP and Servlet Examples work o.k. .. but Status, Tomcat Administration and Tomcat Manager links do not work. HTTP Status 403 reports as below . http://localhost:8080/manager/status description: Access to the specified resource (Access to the requested resource has been denied) has been forbidden. http://localhost:8080/admin/ description: Access to the specified resource () has been forbidden. http://localhost:8080/manager/html description: Access to the specified resource (Access to the requested resource has been denied) has been forbidden. tomcat-users.xml appears to have access rights setup as per manual. ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat/ user username=both password=tomcat roles=tomcat,role1/ user username=role1 password=tomcat roles=role1/ user username=manager password=xxxyyyzzz roles=manager/ user username=admin password=xxxyyyzzz roles=tomcat,manager,admin/ /tomcat-users -- View this message in context: http://www.nabble.com/Tomcat-Status%2C-Administration-and-Manager-not-working-tf2891579.html#a8078324 Sent from the Tomcat - User mailing list archive 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: Tomcat Status, Administration and Manager not working
From: dl [mailto:[EMAIL PROTECTED] Subject: Tomcat Status, Administration and Manager not working conf\Catalina\localhost\admin.xml and server\webapps\admin\admin.xml The latter .xml file isn't actually used; only the one in conf/Catalina/localhost is significant. .. valves were uncommented to allow access to localhost. I presume you mean allow access only to localhost or restrict access to only localhost. Access is normally permitted to all IP addresses. Valve className=org.apache.catalina.valves.RemoteAddrValve allow=localhost/ Use the actual IP address (usually 127.0.0.1), not the pseudo-DNS name. This appears to be required even when the Connector is configured with the enableLookups attribute set to true. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Virtual Hosts [mostly solved]
With the help of several people on this list, I've been able to get my server configured [mostly] the way I wanted it configured. Here's my solution, hopefully it will be helpful to others Goals: * One instance of Tomcat running behind Apache * Multiple VirtualHosts, each pointing to its own Tomcat webapp * The ability to hot-deploy an app without affecting the other apps * Minimal or no modifications required to server.xml for additional hosts * A solution that is maintainable and is not a hack Solution: * Apache with mod_jk * Each domain has a .conf file at /etc/httpd/conf.d/vhosts * The conf file routes .do and .jsp files to tomcat using mod_jk JkMount /*.do router JkMount /*.jsp router * The VirtualHost declaration has the DocumentRoot set to the path of the webapp * Tomcat's server.xml file has a host declaration for each webapp and a declaration for localhost (though that is not necessary) Host name=localhost appBase=webapps / Host name=foo.mydomain.com appBase=webapps/foo / Host name=bar.mydomain.com appBase=webapps/bar / Host name=eggs.mydomain.com appBase=webapps/eggs / * Deploy a war file named ROOT.war to the correct appBase for each application. This file must be named ROOT.war * GOTCHA: I tried to also include the manager webapp for each of the hosts by adding the manager.xml file to $CATALINA_HOME/conf/Catalina/foo.mydomain.com/ as described here http://webtuitive.com/samples/virtual-hosting-howto.jsp but by having a context defined in this location, I was not able to deploy my applications using Automatic Application Deployment as defined in the Tomcat docs. I'm not sure why this doesn't work but by removing the manager.xml file, I am able to hot-deploy my apps. This is working well for me, and that in itself makes me happy. The only things I'd like to improve upon are: * Not having to modify server.xml directly. According to the Tomcat docs, you shouldn't modify this file. I'm not sure how to avoid this. * Being able to include the manager app for each host that I define. I was using ant's tomcat tasks to tie into the manager for deploying my apps, but now I have to scp the war file into the directory. This isn't the worst thing that could happen, but it seems like there is a solution out there for this. Anyway, thanks to everybody who helped out on this. Josh Gormley -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:34 AM To: Tomcat Users List Subject: Re: Virtual Hosts Gormley, Josh wrote: As a side question, is this possible to do without modifying the server.xml file every time I want to add a new host? I've read that it's bad practice to modify the server.xml file much like it's bad practice to modify the httpd.conf file in Apache. In Apache, I have a vhost directory with .conf files for each host -- is there a similar method to do this with Tomcat? There is a host-manager webapp which comes with Tomcat to allow adding vhosts on the fly (I haven't used it, however). You will need user with admin role in tomcat-users.xml to access it. -- Mikolaj Rydzewski [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 plugin in eclipse environment
Sysdeo sucks, if you get WST of eclipse (http://www.eclipse.org/webtools/) you have a great eclipse integration, its free and it allows you have several servers in you ide (jboss, bea, tomcat, etc.) regards From: Suchitha Koneru (sukoneru) [mailto:[EMAIL PROTECTED] Sent: Thu 12/28/2006 9:55 AM To: users@tomcat.apache.org Subject: Tomcat plugin in eclipse environment Hello Tomcat users, I am trying to use the sysdeo plug in in eclipse env , to start/stop tomcat, so that debugging web applications , would be possible. I have the following problem , when trying to use the sysdeo plugin version (tomcat_3.2.0.beta3). I have set up the eclipse environment as per the instructions given on the page (http://www.sysdeo.com/eclipse/tomcatplugin http://www.sysdeo.com/eclipse/tomcatplugin ). I also , went through the tutorials, on this page. Tomcat_Base C:\Program Files\Apache Software Foundation\Tomcat5.5 Tomcat Home C:\Program Files\Apache Software Foundation\Tomcat5.5 server.xml - C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\server.xml When I try to start , tomcat server from eclipse env , I get the following exception log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:224) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) When I start , tomcat server manually , using bin/startup.bat, the server starts without any exceptions. is there any property , which Iam missing, please let me know. I googled on this topic, I tried couple of suggestions, of including tomcat jars in class path, but it did not help. We need a debugging env for our project as soon as possible, otherwise we'll end up with thousands of system.out.print statements. Any help is greatly appreciated. thanks, Suchitha. This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. - 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: Virtual Hosts [mostly solved]
You may find that the default host loads all of the web applications. In order to solve this, make sure that each of the contexts are not some subdirectory of another context. Host name=localhost appBase=vhosts/local / Host name=foo.mydomain.com appBase=vhosts/foo / Host name=bar.mydomain.com appBase=vhosts/bar / Host name=eggs.mydomain.com appBase=vhosts/eggs / You can use an absolute path to place this structure outside of your Tomcat installation. For large structures I think this is nice, because then you can upgrade Tomcat without disturbing your applications. Cutover would involve installing a parallel Tomcat, modifying server.xml. shutting down the old version, and starting up the new version. If the new version failed, recovery is just shutting down the new version and starting up the old version. If you want a one-stop place for all of your web applications, please ignore this comment. For a root context, I usually set up an application.xml file in conf/Catalina/hostname/ with the appropriate path= in the Context element, or a context.xml file in the web application's META-INF directory with the same context information. Once you separate each of the virtual hosts so that subdirectories don't overlap, I think you will find that multiple manager applications work. The manager application will then be specific to the virtual host, and you'll have to access that manager application by going to the specific virtual host (ie, http://hostname:8080/manager/html) HTH /mde/ . . . . . just my two cents --- Gormley, Josh [EMAIL PROTECTED] wrote: With the help of several people on this list, I've been able to get my server configured [mostly] the way I wanted it configured. Here's my solution, hopefully it will be helpful to others Goals: * One instance of Tomcat running behind Apache * Multiple VirtualHosts, each pointing to its own Tomcat webapp * The ability to hot-deploy an app without affecting the other apps * Minimal or no modifications required to server.xml for additional hosts * A solution that is maintainable and is not a hack Solution: * Apache with mod_jk * Each domain has a .conf file at /etc/httpd/conf.d/vhosts * The conf file routes .do and .jsp files to tomcat using mod_jk JkMount /*.do router JkMount /*.jsp router * The VirtualHost declaration has the DocumentRoot set to the path of the webapp * Tomcat's server.xml file has a host declaration for each webapp and a declaration for localhost (though that is not necessary) Host name=localhost appBase=webapps / Host name=foo.mydomain.com appBase=webapps/foo / Host name=bar.mydomain.com appBase=webapps/bar / Host name=eggs.mydomain.com appBase=webapps/eggs / * Deploy a war file named ROOT.war to the correct appBase for each application. This file must be named ROOT.war * GOTCHA: I tried to also include the manager webapp for each of the hosts by adding the manager.xml file to $CATALINA_HOME/conf/Catalina/foo.mydomain.com/ as described here http://webtuitive.com/samples/virtual-hosting-howto.jsp but by having a context defined in this location, I was not able to deploy my applications using Automatic Application Deployment as defined in the Tomcat docs. I'm not sure why this doesn't work but by removing the manager.xml file, I am able to hot-deploy my apps. This is working well for me, and that in itself makes me happy. The only things I'd like to improve upon are: * Not having to modify server.xml directly. According to the Tomcat docs, you shouldn't modify this file. I'm not sure how to avoid this. * Being able to include the manager app for each host that I define. I was using ant's tomcat tasks to tie into the manager for deploying my apps, but now I have to scp the war file into the directory. This isn't the worst thing that could happen, but it seems like there is a solution out there for this. Anyway, thanks to everybody who helped out on this. Josh Gormley -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:34 AM To: Tomcat Users List Subject: Re: Virtual Hosts Gormley, Josh wrote: As a side question, is this possible to do without modifying the server.xml file every time I want to add a new host? I've read that it's bad practice to modify the server.xml file much like it's bad practice to modify the httpd.conf file in Apache. In Apache, I have a vhost directory with .conf files for each host -- is there a similar method to do this with Tomcat? There is a host-manager webapp which comes with Tomcat to allow adding vhosts on the fly (I haven't used it, however). You will need user with admin role in tomcat-users.xml to access it. -- Mikolaj Rydzewski [EMAIL
RE: Tomcat Status, Administration and Manager not working
Thanks .. changed valve to 127.0.0.1 .. restarted server .. Now Tomcat Administration launches .. but unfortunately the other two links still do not work .. same error reports Status and Tomcat Manager In Tomcat Administration page I can see .. Context (/admin) Context (/manager) (plus other entries) c:\apache-tomcat-5.5.20\logs\manager.2006-12-28.log file is empty. -- View this message in context: http://www.nabble.com/Tomcat-Status%2C-Administration-and-Manager-not-working-tf2891579.html#a8079789 Sent from the Tomcat - User mailing list archive 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: Not having to restart tomcat
well, i've never tried out intentionally, however, i'd believe tomcat can handle this since - the session is handled (and stored) in the servlet-container - it's stored in the client either with cookies or url-rewriting as long as you don't clone - copy the session but refer to it via getSession(), everything should run smooth. however, that's my personal assumption without having tried. anyone who can confim / disagree? cheers greg -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - 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 plugin in eclipse environment
Thank you Asensio, for the information. I am currently trying out the WTP plug in, but found limitations , in its usage. We need to follow a pre defined directory structure for using it, also Iam not able to debug the code by setting break points. Using the WST for eclipse, were you able to debug by setting break points ? Please let me know, Thanks, Suchitha. -Original Message- From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] Sent: Thursday, December 28, 2006 11:53 AM To: Tomcat Users List Subject: RE: Tomcat plugin in eclipse environment Sysdeo sucks, if you get WST of eclipse (http://www.eclipse.org/webtools/) you have a great eclipse integration, its free and it allows you have several servers in you ide (jboss, bea, tomcat, etc.) regards From: Suchitha Koneru (sukoneru) [mailto:[EMAIL PROTECTED] Sent: Thu 12/28/2006 9:55 AM To: users@tomcat.apache.org Subject: Tomcat plugin in eclipse environment Hello Tomcat users, I am trying to use the sysdeo plug in in eclipse env , to start/stop tomcat, so that debugging web applications , would be possible. I have the following problem , when trying to use the sysdeo plugin version (tomcat_3.2.0.beta3). I have set up the eclipse environment as per the instructions given on the page (http://www.sysdeo.com/eclipse/tomcatplugin http://www.sysdeo.com/eclipse/tomcatplugin ). I also , went through the tutorials, on this page. Tomcat_Base C:\Program Files\Apache Software Foundation\Tomcat5.5 Tomcat Home C:\Program Files\Apache Software Foundation\Tomcat5.5 server.xml - C:\Program Files\Apache Software Foundation\Tomcat5.5\conf\server.xml When I try to start , tomcat server from eclipse env , I get the following exception log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Bootstrap). log4j:WARN Please initialize the log4j system properly. java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:224) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) When I start , tomcat server manually , using bin/startup.bat, the server starts without any exceptions. is there any property , which Iam missing, please let me know. I googled on this topic, I tried couple of suggestions, of including tomcat jars in class path, but it did not help. We need a debugging env for our project as soon as possible, otherwise we'll end up with thousands of system.out.print statements. Any help is greatly appreciated. thanks, Suchitha. This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session#getId changes during doGet invocation under heavy load
Tomcat fans, I am using the 6.0.2 tomcat beta and doing some stress testing with a servlet app for which a form login has been declared and that does repeated login/logout's (session invalidate). THe problem I run into is that, under heavy load, during the doGet invocation for the login request the session attached to the request is changed by some other thread (the value returned from getId changes and attributes that are originally set are removed). I have the impression that at the time the doGet for the login is invoked the session is not completely initialized and some other thread is doing that concurrently. I have not tried to isolate the issue further, so I might be overlooking something within the servlet, but before I try to debug further (getting where I am now with this took me already day), I was wondering whether someone has seen this before, whether this is expected behavior or whether someone perhaps has ideas how to fix this. Any help or suggestions warmly welcomed, Peter -- View this message in context: http://www.nabble.com/session-getId-changes-during-doGet-invocation-under-heavy-load-tf2892448.html#a8081064 Sent from the Tomcat - User mailing list archive 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: Build error mod_jk 1.2.2o
The JNI worker is very close to getting deprecated. Do you really need the --enable-jni? ./configure --with-apxs=/usr/sbin/apxs --sysconfdir=/etc should work. Regards, Rainer Luca Peduto schrieb: Hi all, I'm trying to build mod_jk 1.2.20 on my linux machine but I obtain this error message during make: jk_jni_worker.c: In function 'open_jvm1': jk_jni_worker.c:817: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:817: error: (Each undeclared identifier is reported only once jk_jni_worker.c:817: error: for each function it appears in.) jk_jni_worker.c:817: error: expected ';' before 'vm_args' jk_jni_worker.c:824: error: 'vm_args' undeclared (first use in this function) jk_jni_worker.c: In function 'detect_jvm_version': jk_jni_worker.c:884: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:884: error: expected ';' before 'vm_args' jk_jni_worker.c:890: error: 'vm_args' undeclared (first use in this function) make[1]: *** [jk_jni_worker.lo] Error 1 make[1]: Leaving directory `/home/luca/mod_jk/src/tomcat-connectors-1.2.20-src/native/common' make: *** [all-recursive] Error 1 I invoke configure script with: ./configure --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --with-java-home=/opt/java --with-java-platform=2 --enable-jni My java version is: java version 1.6.0 Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) Tomcat 5.5.20 Apache 2.2.3 Linux kernel 2.6.19 Anyone can help me? Thanks in advance Luca - 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: Virtual Hosts [mostly solved]
From: Mark Eggers [mailto:[EMAIL PROTECTED] Subject: RE: Virtual Hosts [mostly solved] For a root context, I usually set up an application.xml file in conf/Catalina/hostname/ with the appropriate path= in the Context element That's incorrect for all recent versions of Tomcat. You must not use a path attribute unless the Context element is in server.xml, which is strongly discouraged. For the default app, place the Context element with an appropriate docBase in a file named ROOT.xml inside each conf/Catalina/[host] directory. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Virtual Hosts [mostly solved]
From: Gormley, Josh [mailto:[EMAIL PROTECTED] Subject: RE: Virtual Hosts [mostly solved] * Not having to modify server.xml directly. According to the Tomcat docs, you shouldn't modify this file. I think you may have misconstrued something in the docs. There's nothing wrong with modifying server.xml; for example, production environments must change it and web.xml to remove development-oriented attributes. Certainly you should not place Context elements in server.xml, since that requires a Tomcat restart to modify webapp attributes. * Tomcat's server.xml file has a host declaration for each webapp and a declaration for localhost (though that is not necessary) Host name=localhost appBase=webapps / I would remove the Host entry for localhost, since, as someone else pointed out, its appBase points to a parent directory of the other Hosts, and this is at best bad practice and confusing, even if not necessarily causing errors. * Being able to include the manager app for each host that I define. I don't have a problem doing this. All I did was place a copy of manager.xml is each conf/Catalina/[host] directory, and all apps deploy properly under each of their hosts. Did you change something in manager.xml? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: sendRedirect scheme
You can use the following config params in the connector element for the connector you are using (see http://tomcat.apache.org/tomcat-5.5-doc/config/http.html): - protocol - proxyName - proxyPort - redirectPort - scheme - secure Regards, Rainer Siddhartha Subramanian schrieb: Hi Is there is way we can specify tomcat not to] change the protocol scheme on redirecting relative URL's? example http://localhost/myapp http://localhost/myapp post does s response.sendRedirect(/myapp/mynextlocation?name=test) tomcat (using 5.5) makes this into https://localhost/myapp/mynextlocation?name=test https://localhost/myapp/mynextlocation?name=test and obviously since I do not have anything running on secure mode at the port 443 this fails.. I tried to do a response.sendRedirect(http://+remoteaddress+/myapp/mynextlocation?nam e=test) tomcat just ignored my protocol specification. any input help will be appreciated. --Sid - 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 Status, Administration and Manager not working
From: dl [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat Status, Administration and Manager not working .. but unfortunately the other two links still do not work .. same error reports Both the Status and Tomcat Manager links refer to servlets within the manager app, and both paths, by default, only require a role of manager to access them. Have you made any changes to the conf/Catalina/localhost/manager.xml or server/webapps/manager/WEB-INF/web.xml files? The former contains the file system location of the manager app, the latter the servlet mappings and security constraints. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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#getId changes during doGet invocation under heavy load
From: Peter Coppens [mailto:[EMAIL PROTECTED] Subject: session#getId changes during doGet invocation under heavy load THe problem I run into is that, under heavy load, during the doGet invocation for the login request the session attached to the request is changed by some other thread (the value returned from getId changes and attributes that are originally set are removed). This is most likely an application problem - storing session- or request-specific data in an inappropriately scoped structure (e.g., a servlet field). Under light load, this won't hurt, since the insertion and retrieval for a given request don't overlap any other requests. As the load increases, so does the probability of an overlap and erroneous retrieval of data for another request. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlet Plugins for Eclipse
Hi All, Can any one tell how can I download or add plugins for Eclipse to develop Servlet applications. Thanks, Athula Send instant messages to your online friends http://uk.messenger.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]
Re: Setup of Tomcat
everything should be at /bin folder, use startup.bat to start, shutdown.batto shutdown. service.bat to register to windows services. edit server.xml at /conf to change port, add valve, etc... On 12/27/06, Dinesh Kumar [EMAIL PROTECTED] wrote: Just downloaded tomcat 6.0.2 for windows. How can Install it? There is apparently no setup file. Regards Dinesh -- -Andre- People see things the way they are and say why ? I see things that never were and say Why not ?
Re: Servlet Plugins for Eclipse
athula bogoda schrieb: Hi All, Can any one tell how can I download or add plugins for Eclipse to develop Servlet applications. The Eclipse Web Tools Platform (WTP) provides all you need for that. Check http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoenix/demos/install-wtp/install-wtp.html to get a clue on how to use it. Starting with Eclipse Callisto (see http://www.eclipse.org/callisto/java.ph ), installing and using these things has become a breeze. :) Good luck, 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]
Problem with using Java Bean on apache-tomcat-5.5.20
We are planning to upgrade our Apache Tomcat server from 5.0.28 to 5.5.20. During this process, we found that one of the application is not working in apache-tomcat-5.5.20 which is working successfully without any problem in jakarta-Tomcat-5.0.28. Flow of the application is as follows: 1. A Java servlet is accessed which creates a bean using following code MyBean mybean = new MyBean(); After populating this bean, it is added to session variable in the same servlet using session.setAttribute(whichbean,mybean); and control is transfered to a jsp page. 2. In the JSP page, we are retrieving the bean object from session using % MyBean bn = (MyBean) session.getAttribute(whichbean); % But, after this in same JSP, a) if we access % bn.getName() %, it returns correct result. b) if we access the bean property using jsp:getProperty name=bn property=name / it generates following error message, --- org.apache.jasper.JasperException: Attempted a bean operation on a null object. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause org.apache.jasper.JasperException: Attempted a bean operation on a null object. org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:601) org.apache.jsp.2_jsp._jspService(2_jsp.java:122) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --- Why is it so ? What is the solution ? - 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: Problem with using Java Bean on apache-tomcat-5.5.20
Hi. 29Dec2006 @ 11:02 [EMAIL PROTECTED] thusly spake We are planning to upgrade our Apache Tomcat server from 5.0.28 to 5.5.20. During this process, we found that one of the application is not working in apache-tomcat-5.5.20 which is working successfully without any problem in jakarta-Tomcat-5.0.28. Flow of the application is as follows: 1. A Java servlet is accessed which creates a bean using following code MyBean mybean = new MyBean(); After populating this bean, it is added to session variable in the same servlet using session.setAttribute(whichbean,mybean); and control is transfered to a jsp page. 2. In the JSP page, we are retrieving the bean object from session using % MyBean bn = (MyBean) session.getAttribute(whichbean); % But, after this in same JSP, a) if we access % bn.getName() %, it returns correct result. b) if we access the bean property using jsp:getProperty name=bn property=name / it generates following error message, Have you tried jsp:useBean id=bn scope=session class=packageName.MyBean/ also: you may need a jsp:import .../ statement. HTH. Kind regards. Luke Vanderfluit. --- org.apache.jasper.JasperException: Attempted a bean operation on a null object. org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause org.apache.jasper.JasperException: Attempted a bean operation on a null object. org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:601) org.apache.jsp.2_jsp._jspService(2_jsp.java:122) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) --- Why is it so ? What is the solution ? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
control JMX beans remotely in Tomcat instance
hi all, i am trying write a simple applicationto connect to tomcat remotely to view the jmx beans. Is there any articles or tutorials i can look upon for a kickstart? Appreciate any help.
Re: Build error mod_jk 1.2.2o
Hi Rainer, thank you for your reply. It's true, without --enable-jni the build process completes without any issues. Thank you again. Luca On 28/12/06, Rainer Jung [EMAIL PROTECTED] wrote: The JNI worker is very close to getting deprecated. Do you really need the --enable-jni? ./configure --with-apxs=/usr/sbin/apxs --sysconfdir=/etc should work. Regards, Rainer Luca Peduto schrieb: Hi all, I'm trying to build mod_jk 1.2.20 on my linux machine but I obtain this error message during make: jk_jni_worker.c: In function 'open_jvm1': jk_jni_worker.c:817: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:817: error: (Each undeclared identifier is reported only once jk_jni_worker.c:817: error: for each function it appears in.) jk_jni_worker.c:817: error: expected ';' before 'vm_args' jk_jni_worker.c:824: error: 'vm_args' undeclared (first use in this function) jk_jni_worker.c: In function 'detect_jvm_version': jk_jni_worker.c:884: error: 'JDK1_1InitArgs' undeclared (first use in this function) jk_jni_worker.c:884: error: expected ';' before 'vm_args' jk_jni_worker.c:890: error: 'vm_args' undeclared (first use in this function) make[1]: *** [jk_jni_worker.lo] Error 1 make[1]: Leaving directory `/home/luca/mod_jk/src/tomcat-connectors-1.2.20-src/native/common' make: *** [all-recursive] Error 1 I invoke configure script with: ./configure --with-apxs=/usr/sbin/apxs --sysconfdir=/etc --with-java-home=/opt/java --with-java-platform=2 --enable-jni My java version is: java version 1.6.0 Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) Tomcat 5.5.20 Apache 2.2.3 Linux kernel 2.6.19 Anyone can help me? Thanks in advance Luca - 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]