RE: Loadbalancing....please Help!
Gabriel, I may be totally off base, but I thought that I had heard that this type of session management can only be done with URL re-writing and not cookies. This allows the session ID to be passed along with the request. Anyway, I have never done this, but since no one else seems to be responding I thought I would at least try to be a sounding board. --JG -Original Message- From: Gabriel Maffia [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 12:14 PM To: 'Tomcat Users List' Subject: Loadbalancingplease Help! Hello all: I´ve been struggling with this issue for quite a long time now, and I can´t seem to find a solution. I´m actually using this configuration: Apache 1.3.23 Tomcat 4.0.1 Jboss 4.2.3 I´ve used mod_jk and the loadbalancer connector to connect my web server with two other tomcat servers. Both of the tomcat servers connect to the Jboss server. The problem is that sessions are not mantained. Apache keeps sending me randomly to one tomcat server or the other instead of choosing one. That makes me lose my session id and get errors in my application. Regarding to the tomcat servers configuration, I have my jvmroute statement set right (I think): in server 1: Engine jvmRoute=tomcat1 name=Standalone defaultHost=foo.bar.com debug=1 in server 2: Engine jvmRoute=tomcat2 name=Standalone defaulttHost=foo2.bar.com debug=1 the workers.properties file has this configuration: # list the workers by name worker.list=tomcat1, tomcat2, loadbalancer # # First tomcat server # worker.tomcat1.port=8009 worker.tomcat1.host=foo.bar.com worker.tomcat1.type=ajp13# # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat1.lbfactor=50 # # Second tomcat server # worker.tomcat2.port=8009 worker.tomcat2.host=foo2.bar.com worker.tomcat2.type=ajp13 # Specify the size of the open connection cache. #worker.tomcat2.cachesize # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.tomcat2.lbfactor=50 # # Load Balancer worker # # # The loadbalancer (type lb) worker performs weighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #worker. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1, tomcat2 # # END workers.properties # Maybe I set the lbfactor wrong? Wich numbers should I use? Thanks a lot for all your help so far. Gabriel PS: Here is a little graph of the distribution of the servers **** *Apache web server ** Tomcat2 server * *Tomcat1 server ** Jboss 2.4.3 * *foo.bar.com** foo2.bar.com * **** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
Don't know of a way... Sorry. If you find out let me know - it would be nice to take that hit during a maintenance window... -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:30 AM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Location of *.jsp files
You put .jsp files in the same place as you would put the .html files for your webapp. However, you do need to make sure that you have the following mapping: JkMount /*.jsp ajp13 Jake At 02:26 PM 5/3/2002 -0400, you wrote: Here is my set up. Windows2000Professional Apache2.0 Tomcat4.0.3 j2sdk1.4.0 Basically both Tomcat and Apache are installed and running. I created a virtual host in Apache with the following information NameVirtualHost 1XX.1XX.2X.1XX VirtualHost 1XX.1XX.2X.1XX ServerName www.bootini.com ServerAlias bootini.com DocumentRoot c:/www.bootini.com DirectoryIndex index.html /VirtualHost This is running also. Now the big question. Where do I place the *.jsp files? In this directory or do I need to edit server.xml of Tomcat and reference this Virtual Host Thanks in Advance. ** This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you ** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: RE: The Catalina installation path
Thanks John. I know there is a way to retrieve a short path name from a DOS prompt window, just couldn't record what it shall be. There was not any other path starting with Apache. Anyway, I already switched back to the old installation method, which I have used since the 3.2.x version. As a programmer, I, like you somewhat, used to be very paranoid when I come to software installation. I could easily get very frustrated on installation problems.. 5/3/2002 11:06:50 PM, John Niven [EMAIL PROTECTED] wrote: -Original Message- From: Vernon Wu [mailto:[EMAIL PROTECTED]] Sent: 2 May 2002 09:54 To: Tomcat Users List Subject: Re: The Catalina installation path Thanks, Jake for your input. In fact, I had tried using Apache~1. (Indeed, it is on Windows). It doesn't work. Vernon, Have you tried Apache~2 etc? If you have any other Apache software installed (eg. the HTTP server) that would change the number after the ~. There's a way to get the DOS 8.3 name of files, but it escapes me at the moment - I tend to still use the 8.3 naming convention for Java stuff. If there is not solution, I have to uninstall and reinstall using the zip file format. I'd probably recommend this anyway - but I'm a little too paranoid when it comes to software installers...! Best of luck John -- John Niven Please reply through mailing list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: RE: The Catalina installation path
From a dos prompt you can do a dir /x to get the 8.3 version of a file or directory. Abe -Original Message- From: Vernon Wu [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 8:06 PM To: Tomcat Users List; Tomcat Users List Subject: Re: RE: The Catalina installation path Thanks John. I know there is a way to retrieve a short path name from a DOS prompt window, just couldn't record what it shall be. There was not any other path starting with Apache. Anyway, I already switched back to the old installation method, which I have used since the 3.2.x version. As a programmer, I, like you somewhat, used to be very paranoid when I come to software installation. I could easily get very frustrated on installation problems.. 5/3/2002 11:06:50 PM, John Niven [EMAIL PROTECTED] wrote: -Original Message- From: Vernon Wu [mailto:[EMAIL PROTECTED]] Sent: 2 May 2002 09:54 To: Tomcat Users List Subject: Re: The Catalina installation path Thanks, Jake for your input. In fact, I had tried using Apache~1. (Indeed, it is on Windows). It doesn't work. Vernon, Have you tried Apache~2 etc? If you have any other Apache software installed (eg. the HTTP server) that would change the number after the ~. There's a way to get the DOS 8.3 name of files, but it escapes me at the moment - I tend to still use the 8.3 naming convention for Java stuff. If there is not solution, I have to uninstall and reinstall using the zip file format. I'd probably recommend this anyway - but I'm a little too paranoid when it comes to software installers...! Best of luck John -- John Niven Please reply through mailing list -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
Is this so that everything is ready to go for the first user? If so, you could pre-compile you JSPs using jspc. I have done this in an ANT build script and have gotten it down to a two step process. You still have to manually add the generated servlet definitions and mappings to your web.xml file. Hopefully this will be changed in the future. The other option is to write your own script to run through the URLs with the ?jsp_precompile=ture parameter appended to the end. Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true. This compiles the page without running it. I am with Abraham though, if you find a better way let us know. --JG -Original Message- From: Abraham Fathman [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:39 AM To: 'Tomcat Users List' Subject: RE: How to force compilation of Jspz at startup Don't know of a way... Sorry. If you find out let me know - it would be nice to take that hit during a maintenance window... -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:30 AM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to force compilation of Jspz at startup
Thanks a lot Jay, As of now I am opting for your second suggestion. And lets hope this feature improves in future. Gurmeet -Original Message- From: Jay Gardner [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:34 PM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup Is this so that everything is ready to go for the first user? If so, you could pre-compile you JSPs using jspc. I have done this in an ANT build script and have gotten it down to a two step process. You still have to manually add the generated servlet definitions and mappings to your web.xml file. Hopefully this will be changed in the future. The other option is to write your own script to run through the URLs with the ?jsp_precompile=ture parameter appended to the end. Ex. http://server:8080/context/myjso.jsp?jsp_precompile=true. This compiles the page without running it. I am with Abraham though, if you find a better way let us know. --JG -Original Message- From: Abraham Fathman [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:39 AM To: 'Tomcat Users List' Subject: RE: How to force compilation of Jspz at startup Don't know of a way... Sorry. If you find out let me know - it would be nice to take that hit during a maintenance window... -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 2:30 AM To: Tomcat Users List Subject: RE: How to force compilation of Jspz at startup I am posting this question again as I did not get any response. How do I inform Tomcat to compile all the JSPz in a particular context on startup. We can do this in weblogic by specifying the following in its web.xml. context-param param-nameweblogic.jsp.precompile/param-name param-valuetrue/param-value /context-param I am sure there is some way we can do this in Tomcat also. Thanks in advance. Gurmeet -Original Message- From: Gurmeet [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 12:34 PM To: Tomcat Users List Subject: How to force compilation of Jspz at startup Hi all, How do I inform Tomcat to compile all the JSPz on startup. Regards, Gurmeet -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: IE 5.5 and keytool names?
Hi David, I was also facing a similar problem. However, as suggested by you, giving localhost while generating the certificate helped. But i get the same message if i try to access from another machine. So how do i overcome this? I also wanted to know where shud the certificate be placed on the server(tomcat). I've generated a self-signed certificate would like to know how to configure it with the server. Any help in thsis regard wud be welcome. cheers, Ritesh -Original Message- From: David Farb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 8:38 PM To: Tomcat Users List Subject: Re: IE 5.5 and keytool names? Never mind, it is apparently supposed to be the domain name when keytool asks for your first and last name, as well as your organizational unit: CN=domain name OU=domain name seems to work. GEFGW - Original Message - From: David Farb [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 9:47 AM Subject: IE 5.5 and keytool names? This is probably a dumb question, but I don't have the time to research the answer. I am using Tomcat 4.0.3 and have generated an SSL keystore and it all works fine. But when I access the site from Internet Explorer 5.5 it keeps complaining that The name on the security certificate does not match the name of the site. Ok, which names have to match? The full login name is https://localhost:8443/HomeFix/login.jsp, where in keytool do you specify this name? Thanks David Farb -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
can´t run JSP examples - Tomcat 4.0.3 Internal Server Error
I can´t run JSP examples (no JSP examples run ok). I get the error: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Invalid class file format in C:\j2sdk1.4.0\jre\lib\rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand. C:\apache-tomcat-4.0.3\work\localhost\examples\jsp\dates\date$jsp.java:0: Class java.lang.Object not found in class javax.servlet.GenericServlet. package org.apache.jsp; I´m running on Win2000, Tomcat 4.0.3 and Sun´s J2SE 1.4.0 (build 1.4.0-b92). Can someone help me? Thank you, Leandro *-* | Prof. Leandro J. Komosinski | | e-mail: [EMAIL PROTECTED] | | home page : http://www.inf.ufsc.br/~leandro | | fone : 0xx 48 331 7508 | | INE/CTC/UFSC| *-* -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
JSP-pages and reloadable
Hi! I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: virtual domains in tomcat4.0 standalone mode
Ken, Check out the Alias directive within you Host entry in server.xml. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html under Host Name Aliases HTH, Joel. Grondell, Ken [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... | is it possible to have virtual domains in tomcat standalone mode or do you | need use apache. | | if you can have a virtual domain in tomcat how do you do it? all of the | documentation I have seen points to using apache. | | I would like to have | www.foo.com go to ROOT/foo/ | and www.foo2.com go to ROOT/foo/ | | Thanks | Ken | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help me: URGENT!!!
But I dont't want my IP. I presume that .getLocalHost() in my servlet gives me my IP. I want the Ip address of the requesting server (and not my IP or IP cost client = user). Thanks Laura Alle 12:03, venerdì 3 maggio 2002, Anton Schoultz ha scritto: Hi Laura, Have a look at the class java.net.InetAddress, it has a method .getLocalHost() which returns the local host's IP address. Kindest Regards Anton Schoultz Rubico (Pty) Ltd Cell Phone: +27 83 651 7191 Tel: +27 (11) 808 1000 Fax: +27 (11) 808 1101 mailto:[EMAIL PROTECTED] www.Rubico.com The Business Component Company -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: Fri 03 May 2002 11:18 To: [EMAIL PROTECTED] Subject: Help me: URGENT!!! Hi all, please help me!! I'll explain you my problem. I have a servlet which has to recognize two ip addresses. If the servlet finds that the request is from the IP1 (server1), it sets a shop login variable to x, else if the request IP is IP2 (server2) it sets the shop login to . The problem is this: the ecommerce page is on a machine 1 while the pay gateway is on the machine2 (my servlets). The user buys something on the machine 1 and when he has to pay he is redirected to my servlet on machine 2. I use this instructions for distinguishing the request IP: String senderIP = request.getRemoteAddr(); BUT THIS IS THE HOST IP AND NOT THE IP OF MY SERVER (server1 or server2 with two shop login different). How can I know the request ip of my server? Please help me! Thanks for your help Laura -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP-pages and reloadable
lørdag 4. mai 2002, 17:23, skrev Mattias Brändström: Hi! I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. -- ToreS -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help me: URGENT!!!
Laura, From what I understand you want the IP address of the referrer, why not use HttpServletRequest's getHeader method to get the 'referer' header that the browser has hopefully sent (not all do). Be careful with the spelling of referrer, it's spelt (incorrectly) referer when the browser sends it. The alternative is to send an extra parameter in the url. Regards, James Williamson www.nameonthe.net UK Tomcat Hosting - Original Message - From: Laura [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Anton Schoultz [EMAIL PROTECTED] Sent: Friday, May 03, 2002 11:32 AM Subject: Re: Help me: URGENT!!! But I dont't want my IP. I presume that .getLocalHost() in my servlet gives me my IP. I want the Ip address of the requesting server (and not my IP or IP cost client = user). Thanks Laura Alle 12:03, venerdì 3 maggio 2002, Anton Schoultz ha scritto: Hi Laura, Have a look at the class java.net.InetAddress, it has a method .getLocalHost() which returns the local host's IP address. Kindest Regards Anton Schoultz Rubico (Pty) Ltd Cell Phone: +27 83 651 7191 Tel: +27 (11) 808 1000 Fax: +27 (11) 808 1101 mailto:[EMAIL PROTECTED] www.Rubico.com The Business Component Company -Original Message- From: Laura [mailto:[EMAIL PROTECTED]] Sent: Fri 03 May 2002 11:18 To: [EMAIL PROTECTED] Subject: Help me: URGENT!!! Hi all, please help me!! I'll explain you my problem. I have a servlet which has to recognize two ip addresses. If the servlet finds that the request is from the IP1 (server1), it sets a shop login variable to x, else if the request IP is IP2 (server2) it sets the shop login to . The problem is this: the ecommerce page is on a machine 1 while the pay gateway is on the machine2 (my servlets). The user buys something on the machine 1 and when he has to pay he is redirected to my servlet on machine 2. I use this instructions for distinguishing the request IP: String senderIP = request.getRemoteAddr(); BUT THIS IS THE HOST IP AND NOT THE IP OF MY SERVER (server1 or server2 with two shop login different). How can I know the request ip of my server? Please help me! Thanks for your help Laura -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP-pages and reloadable
Tore Skogly wrote: lørdag 4. mai 2002, 17:23, skrev Mattias Brändström: Hi! I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. For some reason that doesn't work for me. Is there some kind of special configuration that needs to be done or should that work automaticaly? Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP-pages and reloadable
Should be the only way for it to work Why don't you try a test page in a new web app. Goto tomcat's\webapp directory create a directory called test create a file in test called test.jsp place %=executing jsp% in test.jsp Navigate to it in the browser http://localhost:8080/test/test.jsp (this is by default if you have changed your port or the server is on a different machine it will be different...) Monitor your work directory for the .java and .class file that will be created. There should be a tomcat/work/hostname/test/test$jsp.java. When you change test.jsp and access it again the test$jsp.java should update. I know this has been true on all of the versions of tomcat that I have used. (3.3-4.0.3) Hope this helps, Abe -Original Message- From: Mattias Brändström [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 12:58 PM To: Tomcat Users List Subject: Re: JSP-pages and reloadable Tore Skogly wrote: lørdag 4. mai 2002, 17:23, skrev Mattias Brändström: Hi! I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. For some reason that doesn't work for me. Is there some kind of special configuration that needs to be done or should that work automaticaly? Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP-pages and reloadable
Mattias Brändström wrote: I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. For some reason that doesn't work for me. Is there some kind of special configuration that needs to be done or should that work automaticaly? I think it's ... Context ... reloadable=true ... / P. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Change Classes during tests
I sthere a way to change classes (I mean change code and recompile in .class) in a web-app and see the results without restarting Tomcat?? I usually use manager/reload but it wouild be nicer if it can do it automatically when a request is made. The reloadable=true in context is set, ... Ideas? Thanks in advance Gianluca Gravina -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
publishing Tomcat-Servlet twice under different URLs
Hi List, I am looking for a solution to protect one of our two content-areas within one unique sevlet -installation (OPENCMS-CMS-system) , publishing the two content-areas with Tomcat 4.0.1, WARP-Connector, Apache 1.3.x under the following URLs (use of DNS-CNAME-Configuration and Apache virtual Hosts): 1) servername1/opencms/opencms/eads-ww/ge_eadsportal/index.html 2) servername2/opencms/opencms/private/index.html (restricted area) We restricted the access to the area 2) by using simple IP-based AccessControl from Apache 1.3.x, but anyway external users could see the internal content of area 2) by simply using the address-combination servername1/opencms/opencms/private/index.html because the content of both areas is stored within one unique database in the same OPENCMS-instance (Tomcat-Servlet) . Although I know, that I would have a chance with two WARP-Connections, each for one of the virtual Apache-hosts, and two different OpenCMS-Servlet -Instances for the content-areas, I want to ask the list, if there is another possibility. May be there is a chance by changing the Tomcat-/Apache-Configuration so that I have two new URLs pointing to the same OPENCMS -Servlet-instance??? This would preventing me from dividing up the actual OpenCMS-content into two separate Servlet -instances. I need something like changing the URLs servername1/opencms/opencms/eads-ww/ into servername1/eads/ and servername2/opencms/opencms/private into servername2/bu/ Does anybody have an idea, what to change in httpd.conf, web.xml and server.xml (Apache 1.3x / Tomcat 4.0.1 / WARP-Connector-mod_webapp - Configuration) to achieve these new URL-possiblities? Are there other possiblities to provide IP-based access-control for a part of the opencms-SERVLET-based-content? Thanx for Your replies! Regards, Martin Martin Buehrle EADS - European Aeronautic Defence and Space Company Telefax: +49 89 3179-8927 eMail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Getting tomcat to serve off port 80 on my own servlets
Hello - wondered if someone had a minute to help me with this Am following a tutorial on the apple site: http://developer.apple.com/internet/macosx/tomcat1.html It mentions about serving off port 80 as well as 8080 - and indeed I can get the tomcat examples to do this - but my own web-app - called 'mine' only serves off 8080 I can't seem to find a difference in the conf/server.xml or mine/WEB-INF/web.xml The error message in Apache_log States: [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests Any pointers very gratefully received Many Thanks Steven Shingler -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Can't build mod_webapp.so
Hi, I have installed tomcat 4.0.3 and it works like a champ. I am trying integrate with apache however I'm using glibc2.1 and there does not seem to be a binary that I can use. So I downloaded the src and when I try to run the configure script I get the output below. I have also tried support/buildconf.sh and I still have the exact same error. Anyone have an idea of what could be wrong? Thanks, Erik loading cache ./config.cache checking for test... /usr/custombin/test Copying / mnt mnt2 mnt3 proc Now copying /usr cp: /mnt/usr/*: No such file or directory chmod: /mnt2/usr/tmp: No such file or directory checking for true... /bin/true Copying / mnt mnt2 mnt3 proc Now copying /usr cp: /mnt/usr/*: No such file or directory chmod: /mnt2/usr/tmp: No such file or directory configure: error: cannot find required binary true -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Contexts
I am totally new to Tomcat ( and servlets JSP's in general ). I have successfully installed Tomcat but do NOT seem to be able to successfully configure a location for my Sevlets and JSP's. My default Home for Tomcat is d:\jbuilder5\jakarta-3.2.1 Currently, if I place a servlet under the directory d:\jbuilder5\jakarta-3.2.1classes ...it runs fine. I simply reference http://localhost:8080/servlet/SomeServletName http://localhost:8080/servlet/SomeServletName in my browser URL. JSP's run fine if placed under d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp. I simply reference http://localhost:8080/examples/jsp/SomeJSPName.jsp http://localhost:8080/servlet/SomeServletName in my browser URL. Both of these are directories created by the Tomcat install process. From what I have read, I should be able to modify SERVER.XML file to specify a CONTEXT I would like. So far NO Success ...I made the entries: Context path=/ServletRoot docBase=webapps/ServletRoot crossContext=false debug=0 reloadable=true /Context in SERVER.XML in my attempt to create my own SERVLET location. My presumption was that I would create the directory ServletRoot under d:\jbuilder5\jakarta-3.2.1\webapps, place my servlet or JSP file in this new ( ServletRoot ) directory, restart Tomcat and run my servlet using http://localhost:8080/ServletRoot/SomeServletName http://localhost:8080/ServletRoot/SomeServletName . or my JSP file using http://localhost:8080/ServletRoot/SomeJSPName.jsp. http://localhost:8080/ServletRoot/SomeJSPName.jsp. This does not work ...all is well though if I put my servlet in the CLASSES directory or my new JSP file in the d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp directory ! Any tips on how to structure my own JSP and servlet directories ...Please!! E-Mail [EMAIL PROTECTED]
Re: Contexts
You really need to look at the structure of the other webapps. For instance, look at the examples webapp that comes with Tomcat. Notice that it has a WEB-INF directory with classes and lib directories underneath. That is where servlets go. Also, the web.xml file goes in WEB-INF. *.jsp files do not go inside the WEB-INF directory. They go in the same places as .html files go. You should make sure you study existing examples to find patterns on how things are set up. You should also get a servlet book. I'm sure the first chapter would answer most of these questions. Jake At 04:27 PM 5/4/2002 -0500, you wrote: I am totally new to Tomcat ( and servlets JSP's in general ). I have successfully installed Tomcat but do NOT seem to be able to successfully configure a location for my Sevlets and JSP's. My default Home for Tomcat is d:\jbuilder5\jakarta-3.2.1 Currently, if I place a servlet under the directory d:\jbuilder5\jakarta-3.2.1classes ...it runs fine. I simply reference http://localhost:8080/servlet/SomeServletName http://localhost:8080/servlet/SomeServletName in my browser URL. JSP's run fine if placed under d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp. I simply reference http://localhost:8080/examples/jsp/SomeJSPName.jsp http://localhost:8080/servlet/SomeServletName in my browser URL. Both of these are directories created by the Tomcat install process. From what I have read, I should be able to modify SERVER.XML file to specify a CONTEXT I would like. So far NO Success ...I made the entries: Context path=/ServletRoot docBase=webapps/ServletRoot crossContext=false debug=0 reloadable=true /Context in SERVER.XML in my attempt to create my own SERVLET location. My presumption was that I would create the directory ServletRoot under d:\jbuilder5\jakarta-3.2.1\webapps, place my servlet or JSP file in this new ( ServletRoot ) directory, restart Tomcat and run my servlet using http://localhost:8080/ServletRoot/SomeServletName http://localhost:8080/ServletRoot/SomeServletName . or my JSP file using http://localhost:8080/ServletRoot/SomeJSPName.jsp. http://localhost:8080/ServletRoot/SomeJSPName.jsp. This does not work ...all is well though if I put my servlet in the CLASSES directory or my new JSP file in the d:\jbuilder5\jakarta-3.2.1\webapps\examples\jsp directory ! Any tips on how to structure my own JSP and servlet directories ...Please!! E-Mail [EMAIL PROTECTED]
RE: JSP-pages and reloadable
I have run into similar problems before. It turned out to be one of two things. Either I had to force my browser to reload or I was making changes in a JSP that was an include for another JSP. I am sure you have tried the first. I don't know if the second is what you are doing, but if it is, you will need to save the outer JSP so the timestamp changes. Then both the outer and any included JSPs will be re-compiled. Other than that I don't know what the problem could be. Regards, --JG -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 10:58 AM To: Tomcat Users List Subject: Re: JSP-pages and reloadable Mattias Brändström wrote: I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. For some reason that doesn't work for me. Is there some kind of special configuration that needs to be done or should that work automaticaly? I think it's ... Context ... reloadable=true ... / P. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jspInit() and errors
Hi! As I understand it I can override jspInit() and do write some initialisation code for my JSP-page there. Now I have been looking at the JSP 1.2 specification and I can't find any way to report errors from jspInit(). To me that seems like a good thing to do. If I can't initialise my page then I don't want it to be created/instantiated. How do you guys handle this problem? Or perhaps you don't think it is a problem? Then I'd like to know why! =) Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: JSP-pages and reloadable
Jay Gardner wrote: I have run into similar problems before. It turned out to be one of two things. Either I had to force my browser to reload or I was making changes in a JSP that was an include for another JSP. I am sure you have tried the first. I don't know if the second is what you are doing, but if it is, you will need to save the outer JSP so the timestamp changes. Then both the outer and any included JSPs will be re-compiled. Other than that I don't know what the problem could be. It turned out to be a problem related to the dates on the jsp-files. I was editing files shared with samba to my windows box using WinEmacs. For some reason the dates on the files did not get updated correcty when I saved them so I had to 'touch' them in order to get a good date. When I did that everything worked fine. Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
More complex security-constraint options
Hi all, I'm trying to create a web application that imposes a security constraint on all but a few of the JSP pages. I don't want to split up the application putting the non-public stuff in a private directory and only applying the security-constraint to this, as this isn't as elegant as the solution I would ideally like as I want the root of the webapp to be the root for a logged in user, not for them to go to some directory within the webapp. Basically, is there a way to refine the security constraints url-pattern tag to allow excluding certain files or directories? Thanks in advance, Joel Baker. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
struts + jndi + ejb (on iAS)
Hello, I'm a struts-newbie, but have worked with WebObjects/Model2 for many years. So I hope I'm not asking a dumb question here ;-) I've got a simple struts action, and a simple ejb. They work fine until I try to access the bean on iAS, from Tomcat. I want to access the bean via a jndi.properties file: java.naming.factory.initial=javax.naming.InitialContext #java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory -- this works when I run in JDeveloper java.naming.provider.url=ormi://brasil/clientes-bean java.naming.security.principal=* java.naming.security.credentials=* I put ejb.jar in $CATALINA_HOME/common/lib I cannot get a connection to the iAS - bean server. Tomcat is failing to load EJBHome. The tomcat locahost shows this exception: 2002-05-04 22:24:18 oreilly: Error creating Action instance for path '/login', class name 'com.oreilly.actions.LoginAction' java.lang.NoClassDefFoundError: javax/ejb/EJBHome at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLo ader.java:1631) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.jav a:926) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1360) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav a:1243) ... ... 1) What naming factory do I use, since the oracle naming factory is not available on Tomcat? 2) I think this is part of my problem, what else? Can anybody clue me in? Thanks Stan
Customising the logic behind Container Authentication (j_security_check)
Hi there, The webapp I'm currently developing uses the j_security_check method of authentication. That is, when authentication is required (ie: when a client tries to access a restricted resource) the client gets directed to the file specified in the form-login-page tag in my web.xml file - in this case this file is login.jsp. This JSP presents a form to the client whose action is j_security_check, an internal Tomcat servlet (though it is more general than Tomcat, being in the Servlet spec) that processes this response. When the user is authenticated, based on her username and password, by the j_security_check servlet she is returned to the resource she first requested. However, I am needing to set further login tokens based on the username and password given and am thus looking to somehow intercept the j_security_check servlet - ideally without rewriting it. This is because I am trying to create an authentication token for a third party web application (and thus creating single sign on as the third party web app doesn't use tomcat container authentication) at the same time as logging into the main site. If anyone has any ideas I would be, of course, very grateful. Joel Baker. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JSP-pages and reloadable
I have had that problem before: included jsp's updating but the outer one not compiling. Why doesn't this feature get added to tomcat? I know weblogic does it and it is quite an annoyance in tomcat Abe -Original Message- From: Jay Gardner [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 9:59 PM To: Tomcat Users List Subject: RE: JSP-pages and reloadable I have run into similar problems before. It turned out to be one of two things. Either I had to force my browser to reload or I was making changes in a JSP that was an include for another JSP. I am sure you have tried the first. I don't know if the second is what you are doing, but if it is, you will need to save the outer JSP so the timestamp changes. Then both the outer and any included JSPs will be re-compiled. Other than that I don't know what the problem could be. Regards, --JG -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 10:58 AM To: Tomcat Users List Subject: Re: JSP-pages and reloadable Mattias Brändström wrote: I have a simple question. Is there a way to get Tomcat to handle JSP-pages the same way it does classes in WEB-INF when you set reloadable=true in your Context-element. It is a bit cumbersome to restart tomcat and apache every time I have made a change to my JSP-page... You don't have to restart Tomcat /Apache when the jsp-page is changed. Just reload it in your browser. For some reason that doesn't work for me. Is there some kind of special configuration that needs to be done or should that work automaticaly? I think it's ... Context ... reloadable=true ... / P. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: More complex security-constraint options
Joel, Setup a security-contraint in the web.xml that includes the url that you want to restrict. -Original Message- From: Joel Baker [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 10:24 PM To: [EMAIL PROTECTED] Subject: More complex security-constraint options Hi all, I'm trying to create a web application that imposes a security constraint on all but a few of the JSP pages. I don't want to split up the application putting the non-public stuff in a private directory and only applying the security-constraint to this, as this isn't as elegant as the solution I would ideally like as I want the root of the webapp to be the root for a logged in user, not for them to go to some directory within the webapp. Basically, is there a way to refine the security constraints url-pattern tag to allow excluding certain files or directories? Thanks in advance, Joel Baker. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Customising the logic behind Container Authentication (j_security_check)
Joel, I wouldn't use the Security in the spec - ie don't use j_security_check servlet... Write your own authentication mechanism that will tie into this third party. You can write a filter (as of servlet spec 2.3) that will restrict access to certain url by first redirecting them to a logon page. Does this make sense? I have written applications that do excatly what you are talking about so if it doesn't, respond with what I need to expand on. Hope I can help! Abe -Original Message- From: Joel Baker [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 11:55 PM To: [EMAIL PROTECTED] Subject: Customising the logic behind Container Authentication (j_security_check) Hi there, The webapp I'm currently developing uses the j_security_check method of authentication. That is, when authentication is required (ie: when a client tries to access a restricted resource) the client gets directed to the file specified in the form-login-page tag in my web.xml file - in this case this file is login.jsp. This JSP presents a form to the client whose action is j_security_check, an internal Tomcat servlet (though it is more general than Tomcat, being in the Servlet spec) that processes this response. When the user is authenticated, based on her username and password, by the j_security_check servlet she is returned to the resource she first requested. However, I am needing to set further login tokens based on the username and password given and am thus looking to somehow intercept the j_security_check servlet - ideally without rewriting it. This is because I am trying to create an authentication token for a third party web application (and thus creating single sign on as the third party web app doesn't use tomcat container authentication) at the same time as logging into the main site. If anyone has any ideas I would be, of course, very grateful. Joel Baker. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: publishing Tomcat-Servlet twice under different URLs
Martin, I am not certain I understand your problem but I'll do my best to answer it... If you want a single servlet accessible from to url's you can add two servlet-mapping entries in your web.xml file. This will allow two different requests to excecute the same servlet. Also, because of srv.3.6 in the servlet spec when using mod_webapp the whole webapp will be deployed for each domain. This means if you have any static variables in the servlet each servername will have it's own instance of these (each deployed webapp has it's own classloader). Because of this you might just want to consider doing this with two warp connections, as you mentioned... Hope this helps, Abe -Original Message- From: Bührle, Martin, FCI1 [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 1:17 PM To: '[EMAIL PROTECTED]' Subject: publishing Tomcat-Servlet twice under different URLs Hi List, I am looking for a solution to protect one of our two content-areas within one unique sevlet -installation (OPENCMS-CMS-system) , publishing the two content-areas with Tomcat 4.0.1, WARP-Connector, Apache 1.3.x under the following URLs (use of DNS-CNAME-Configuration and Apache virtual Hosts): 1) servername1/opencms/opencms/eads-ww/ge_eadsportal/index.html 2) servername2/opencms/opencms/private/index.html (restricted area) We restricted the access to the area 2) by using simple IP-based AccessControl from Apache 1.3.x, but anyway external users could see the internal content of area 2) by simply using the address-combination servername1/opencms/opencms/private/index.html because the content of both areas is stored within one unique database in the same OPENCMS-instance (Tomcat-Servlet) . Although I know, that I would have a chance with two WARP-Connections, each for one of the virtual Apache-hosts, and two different OpenCMS-Servlet -Instances for the content-areas, I want to ask the list, if there is another possibility. May be there is a chance by changing the Tomcat-/Apache-Configuration so that I have two new URLs pointing to the same OPENCMS -Servlet-instance??? This would preventing me from dividing up the actual OpenCMS-content into two separate Servlet -instances. I need something like changing the URLs servername1/opencms/opencms/eads-ww/ into servername1/eads/ and servername2/opencms/opencms/private into servername2/bu/ Does anybody have an idea, what to change in httpd.conf, web.xml and server.xml (Apache 1.3x / Tomcat 4.0.1 / WARP-Connector-mod_webapp - Configuration) to achieve these new URL-possiblities? Are there other possiblities to provide IP-based access-control for a part of the opencms-SERVLET-based-content? Thanx for Your replies! Regards, Martin Martin Buehrle EADS - European Aeronautic Defence and Space Company Telefax: +49 89 3179-8927 eMail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Getting tomcat to serve off port 80 on my own servlets
Steven, What does your server.xml say? Particularly the Connector className=org.apache.catalina.connector.http.HttpConnector port=80 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Section? See mine above - it just serves on port 80... -Original Message- From: steven shingler [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 3:01 PM To: Tomcat Users List Subject: Getting tomcat to serve off port 80 on my own servlets Hello - wondered if someone had a minute to help me with this Am following a tutorial on the apple site: http://developer.apple.com/internet/macosx/tomcat1.html It mentions about serving off port 80 as well as 8080 - and indeed I can get the tomcat examples to do this - but my own web-app - called 'mine' only serves off 8080 I can't seem to find a difference in the conf/server.xml or mine/WEB-INF/web.xml The error message in Apache_log States: [org.apache.catalina.connector.warp.WarpConnector] Error accepting requests Any pointers very gratefully received Many Thanks Steven Shingler -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: jspInit() and errors
Mattias, Can you just throw an exception? Abe -Original Message- From: Mattias Brändström [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 04, 2002 10:02 PM To: [EMAIL PROTECTED] Subject: jspInit() and errors Hi! As I understand it I can override jspInit() and do write some initialisation code for my JSP-page there. Now I have been looking at the JSP 1.2 specification and I can't find any way to report errors from jspInit(). To me that seems like a good thing to do. If I can't initialise my page then I don't want it to be created/instantiated. How do you guys handle this problem? Or perhaps you don't think it is a problem? Then I'd like to know why! =) Regards, Mattias -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: More complex security-constraint options
I want to restrict all of /*.jsp except a few jsp files that are used for logging on and such. I currently have a security-constraint doing this (restricting access to *.jsp) but of course I can't find any way of allowing the few jsps I want to publically allow. Joel. Abraham Fathman [EMAIL PROTECTED] wrote in message news:013c01c1f3ec$2bc49720$8a56e20a@pcg... | Joel, | | Setup a security-contraint in the web.xml that includes the url that | you want to restrict. | | | -Original Message- | From: Joel Baker [mailto:[EMAIL PROTECTED]] | Sent: Saturday, May 04, 2002 10:24 PM | To: [EMAIL PROTECTED] | Subject: More complex security-constraint options | | | Hi all, | | I'm trying to create a web application that imposes a security | constraint on all but a few of the JSP pages. I don't want to split up | the application putting the non-public stuff in a private directory and | only applying the security-constraint to this, as this isn't as elegant | as the solution I would ideally like as I want the root of the webapp to | be the root for a logged in user, not for them to go to some directory | within the webapp. | | Basically, is there a way to refine the security constraints url-pattern | tag to allow excluding certain files or directories? | | Thanks in advance, | | Joel Baker. | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: More complex security-constraint options
Joel, You could: A) Setup a servlet that just included this jsp's. B) I don't know if this would work but list the other jsp's in a separate security-constraint giving everyone access to these jsps... (I don't know if this is possible - I would do A - it better follows MVC...) -Original Message- From: Joel Baker [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 12:55 AM To: [EMAIL PROTECTED] Subject: Re: More complex security-constraint options I want to restrict all of /*.jsp except a few jsp files that are used for logging on and such. I currently have a security-constraint doing this (restricting access to *.jsp) but of course I can't find any way of allowing the few jsps I want to publically allow. Joel. Abraham Fathman [EMAIL PROTECTED] wrote in message news:013c01c1f3ec$2bc49720$8a56e20a@pcg... | Joel, | | Setup a security-contraint in the web.xml that includes the url that | you want to restrict. | | | -Original Message- | From: Joel Baker [mailto:[EMAIL PROTECTED]] | Sent: Saturday, May 04, 2002 10:24 PM | To: [EMAIL PROTECTED] | Subject: More complex security-constraint options | | | Hi all, | | I'm trying to create a web application that imposes a security | constraint on all but a few of the JSP pages. I don't want to split up | the application putting the non-public stuff in a private directory | and only applying the security-constraint to this, as this isn't as | elegant as the solution I would ideally like as I want the root of the | webapp to be the root for a logged in user, not for them to go to some | directory within the webapp. | | Basically, is there a way to refine the security constraints | url-pattern tag to allow excluding certain files or directories? | | Thanks in advance, | | Joel Baker. | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]