Re: loadbalancing with mod_jk 1.2.8

2005-01-27 Thread John Smith
I do know how to stop TC, I said the whole idea for people to know I was thinking about an HA set up using Apache + TC instances The part I am most interested in is,namely; how to make the connector at run time NOT send NEW connections to one the tomcat instances being used for loadbalancing

Tomcat Freezes unexpectedly

2005-01-27 Thread Diego Espada
Hi, we are having a serious problem with Tomcat 5.0.27. We have a web server in production that is supposed to be 7x24, but it keeps hanging after a few hours with no apparent cause. We have to keep restarting it. One time, Tomcat logged that it was running out of threads (150), so I changed

How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
The API for the HttpServletResponse.encodeURL() method states that the implementation of this method includes the logic to determine whether the session ID needs to be encoded in the URL. How does Tomcat know whether or not a browser supports cookies, or session tracking is turned off? Is it

rowset.jar can't find properties

2005-01-27 Thread Alexander Wöhrer
Hello, I'm working on this since 2 days and the suggested solutions on the tomcat-user archive didn't help me. Here is my problem. The following code works fine under a standalone java app: WebRowSet c1 = new WebRowSetImpl(); //here comes the exception Using the same code in Tomcat

IIS, Tomcat and NTLM Authentication

2005-01-27 Thread Sue Roe
Hi We have just upgraded our server software, running a Java application, as follows: From: IIS 4, Tomcat 4.1 - both running on same server - NT4 To: IIS 5, Tomcat 4.1 - both running on same server - Windows 2000 The application is to be available to all staff, either over the

RE: IIS, Tomcat and NTLM Authentication

2005-01-27 Thread Allistair Crossley
Hi, Sounds like you need to set tomcatAuthentication=false for JK. Have a look at my blog on upgrading issues here http://www.adcworks.com/blog/ Allistair. -Original Message- From: Sue Roe [mailto:[EMAIL PROTECTED] Sent: 27 January 2005 11:09 To: [EMAIL PROTECTED] Apache. Org

RE: IIS, Tomcat and NTLM Authentication

2005-01-27 Thread Allistair Crossley
Sorry! just noticed you are not moving to TC 5. Perhaps this does not solve your problem afterall. -Original Message- From: Allistair Crossley Sent: 27 January 2005 11:28 To: Tomcat Users List Subject: RE: IIS, Tomcat and NTLM Authentication Hi, Sounds like you need to set

mod_jk2 + Apache 2.0.49 + Tomcat 5.0.19

2005-01-27 Thread Arantza Lozano
Hi, I´m configuring mod_jk2 with Apache 2.0.49 and Tomcat 5.0.19 I've read a lot of documentation but I still have doubts about which configuration is better. This one: Location /application/* JkUriSet group ajp13:localhost:8009 /Location or this one:

RHEL, mysql 4.1.9 tomcat 5028, form authentication login failure.

2005-01-27 Thread Pawson, David
After chasing for a day, a nasty arose I thought others might like to know of. rhel has /etc/hosts localhost entry as 127.0.0.1 localhost.localdomain localhost If you use form authentication, with server.xml entries such as Realm className=org.apache.catalina.realm.JDBCRealm

Re: Tomcat Freezes unexpectedly

2005-01-27 Thread VTR Ravi Kumar
This might be something related to number of simultaneous users increasing some threshold. Similar thing happens in our intranet server also and at that time a message like Internal Server Error. Your servlet container is bing upgraded ... appears. VTR Ravi Kumar. Diego Espada wrote: Hi, we

Re: Chirag: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-01-27 Thread Parsons Technical Services
Check the configuration: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations 5.5 has a different set up than 5.0 . You also need a resource link. See:

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Markus Schönhaber
Punit Duggal wrote: What language is this ?? Dutch. It would really be nice if those bounce-messages could get filtered out. I received 40 of them since Jan 24. which is about 15% of the overall traffic on the list since then. Regards mks

Re: Realms getting confused in context reload

2005-01-27 Thread Larry Meadors
I was equally surprised to see this behavior, but my hat is off to the people who read this specification, and implemented it - the RFCs are a can of worms. The RFC for this (#2617 - HTTP Authentication: Basic and Digest Access Authentication - http://www.ietf.org/rfc/rfc2617.txt) says that The

Re: RHEL, mysql 4.1.9 tomcat 5028, form authentication login failure.

2005-01-27 Thread David Smith
Or grant privileges on the database to 'x'@'localhost' and 'x'@'localhost.localdomain'. Then give both accounts the same password. It won't matter which one mysql sees because they'll both work. For the record, mysql does a reverse lookup of the host and makes that part of the credentials

RE: Using native and ld_library_path

2005-01-27 Thread Caldarale, Charles R
From: Andreas Andersson [mailto:[EMAIL PROTECTED] Subject: Re: Using native and ld_library_path I never use System.loadLibrary() in the javacode that does work (outside tomcat), do I have to? Take a look at: http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html - Chuck

RE: mod_jk2 + Apache 2.0.49 + Tomcat 5.0.19

2005-01-27 Thread Cox, Charlie
Jk2 is deprecated, so you may want to look at mod_jk 1.2.8 which has all the jk2 enhancements(but still uses the jk syntax). If you still need to use jk2, the Location matching works fine with 2.0.49. I have been using it for quite a while now with multiple vhosts. Charlie -Original

RE: RHEL, mysql 4.1.9 tomcat 5028, form authentication login failure.

2005-01-27 Thread Pawson, David
-Original Message- From: David Smith Or grant privileges on the database to 'x'@'localhost' and 'x'@'localhost.localdomain'. Then give both accounts the same password. It won't matter which one mysql sees because they'll both work. Thanks, easier than

Two versions of Tomcat running on the same pc at the same time

2005-01-27 Thread Inma Marín López
Hello!!! I would like to have two versions of Tomcat (Tomcat 5.0.25 and Tomcat 5.5.4) running on the same pc at the same time. Is it possible??? Firstly, I have tried to install Tomcat 5.0.25 first and then Tomcat 5.5.4, but when launching either Tomcat, Tomcat 5.5.4 is executing.

Re: Two versions of Tomcat running on the same pc at the same time

2005-01-27 Thread Viorel Dragomir
See the server.xml and search for 8080 / 8005 / 8009 You can't execute two servers for the same port[s] so you must change this value for the second installation. Viorel Dragomir . .. --- - Original Message - From:

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev
yes, There is code that takes care of that scenario, I believe it was peter who coded it. There is a valve called JvmRouteBinderValve that peter wrote, that you enable for your context. It will rewrite the session id for, and broadbast it to the cluster. Filip - Original Message -

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Javier Villalobos Arancibia
I use a HttpSession object. HttpSession object = null; When user access to site, i use: object = request.getSession(); later i use: boolean n = object.isNew(); if n = true, then user is not using cookies. I suppose that tomcat is using Session Cookies and not re-writting politic.. because, tomcat

load-on-start and custom class loader

2005-01-27 Thread Kevin L. Cobb
Hi all, I am new to the list but not new to Tomcat. We have a main servlet that we want instantiated before any pages are hit. Hence, in the web.xml, we use the directive load-on-startup1/load-on-startup. In addition, we use a Custom Class Loader that extends WebapppClassLoader because our

Re: Chirag: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2005-01-27 Thread Chirag
I did changed the code I changed the server.xml file and changed as this Resource name=B2BSite auth=Container type=javax.sql.DataSource driverClassName=sun.jdbc.odbc.JdbcOdbcDriver url=jdbc:odbc:B2BSite username=myuser password=mypasswd maxActive=20 maxIdle=10

RE: loadbalancing with mod_jk 1.2.8

2005-01-27 Thread Richard Mixon (qwest)
John, From what I gather, this is the purpose of the properties local_worker and local_worker_only properties in the workers.properties file. They are documented at the bottom of this page: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html Unfortunately the explanation is not

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip, Thank you - that appears to be what I need. Unfortunately the only documentation I can find is at: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/ apache/catalina/cluster/session/JvmRouteBinderValve.html BEGIN-QUOTE Valve to handle Tomcat jvmRoute takeover using

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev
Try to configure the JvmRouteSessionIDBinderLifecycleListener like any other Lifecycle listener, Server Listener className=o.a.c.c.s.JvmRouteSessionIDBinderLifecycleListener/ Filip - Original Message - From: Richard Mixon (qwest) [EMAIL PROTECTED] To: Tomcat Users List

Trouble with XSL transforms with JSP

2005-01-27 Thread cknell
I have played with several versions of Tomcat, but now I have decided to study JSP in earnest and I downloaded the latest release two days ago. I have also upgraded my Java installation. The installation went relatively well and Tomcat is running on my machine. I decided to start with

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
I understand what you are saying, Javier, if you have a round-trip situation, where you set cookies in one response, and then test for them in a follow-up request. But I'm not convinced that's how Tomcat does it. The first time a client connects to a server, there will not be any cookies,

Tomcat 4 logging on Windows

2005-01-27 Thread Cervenka, Tom
How do you configure Tomcat 4 on windows to redirect output to a filelogger type class the creates a new log file every day and releases old log file handles so the log can be rotated? I am talking about global output that normally goes to the console window, stdout and stderr, not context

Re: loadbalancing with mod_jk 1.2.8

2005-01-27 Thread Mladen Turk
Richard Mixon (qwest) wrote: John, From what I gather, this is the purpose of the properties local_worker and local_worker_only properties in the workers.properties file. They are documented at the bottom of this page: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html

RE: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Mike Curwen
So you're saying that you've seen Tomcat *not* rewrite URLs in a response to a first request from a client that *does* support cookies, and *does* rewrite the URLs in a response to a first request from a client that doesn't support cookies? That would indeed be very powerful software. Tomcat

Re: loadbalancing with mod_jk 1.2.8

2005-01-27 Thread John Smith
Well, it definitely looks like something to look into. Thank you. I was thinking about HA options and found this one to be so easy, that wonder why people are not using it. Now, you say, I have users that may work on a session for several hours sometimes Is this a think-time issue (are

Oracle JDBC

2005-01-27 Thread Nathan Aaron
I have the Oracle jdbc driver installed in Tomcat's shared/lib directory. I have a JSP file that resides in the webapps/jsp-examples that connects to an Oracle database successfully. When I move it to a context (/opt/application/appname) outside one of the contexts that are included with

Tomcat 5.5 Package installation Administration

2005-01-27 Thread Susan G. Conger
Hi, I am new to Tomcat. I have it installed using the Tomcat5.5.4.exe. However this doesn't include the Administration package. I am having trouble figuring out exactly how to install the administration package. I have searched the web and I have not found any information on how to install

precompilation and jspf

2005-01-27 Thread Marcus Beyer
Hello! I trigger org.apache.jasper.JspC of Tomcat 5.0.26 from ant to precompile my JSPs. It seems that incremental compilation does not check if included files (*.jspf) have changed. Is that right? Is there any workaround for this? To always clean can take minutes ... Perhaps we could check

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip/all, Thank you - with your suggestion I was able to get it configured as follows: 1) After the Server line in server.xml I added Listener className=org.apache.catalina.cluster.session.JvmRouteSessionIDBinderLi fecycleListener / 2) I added to the conf/context.xml this line:

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev
As mentioned, you can't have the persistence manager, with clustering. DEBUG TP-Processor3 org.apache.catalina.cluster.session.JvmRouteBinderValve - No Cluster DeltaManager [EMAIL PROTECTED] at /stars - Original Message - From: Richard Mixon (qwest) [EMAIL PROTECTED] To: Tomcat

Invoker workaround on AIX

2005-01-27 Thread Flaffer
I am migrating around 10 apps from Tomcat 4.0.6 (Sun JDK 1.3.1) to Tomcat 4.0.6 on AIX 5.2 using IBMs JDK 1.3.1sr7). I am having an issue working around the invoker servlet. I have the workaround(where you explicitely map the /servlet context ) working on Solaris. But when I bring the config over

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Robert F. Hall
Dutch? Punit Duggal wrote: What language is this ?? From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Subject: Re: Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5 Date: 26 Jan 2005 23:13:47 - Geachte relatie, Het door u gebruikte

Re: Tomcat 5.5 Package installation Administration

2005-01-27 Thread Edmon Begoli
Susan, Download the admin package available on the Tomcat main site Unzip the contents in the webapps directory under the root directory of your Tomcat 5.5.x installation Change tomcat-users.xml file - add user and role admin with password admin, or add role admin, and add that role to any

Re: How does Tomcat know that a browser supports cookies?

2005-01-27 Thread Harry Mantheakis
Thanks Mike - and Javier I installed 'livehttpheaders' (cool!) and all was revealed - pretty much as you and Javier said. First time requests always result in URLs being rewritten to include the session cookie ID - and it carries on that way if the client browser has cookies disabled. If

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
However, First, Filip, thank you sincerely for your persistence in helping me. I am committed to writing up a HOWTO for this general use case when done and will post the same. But I am not quite there :( After placing this statement in my application context xml file Manager

Kill context from the shell

2005-01-27 Thread Kristian Hellquist
Hi! Is there any alternative way to close/reload a context on Tomcat and not using the Manager? I would like to just call a command like shutdown foo from the shell. I have seen examples by making a telnet call and providing username and password to the manager-context, but is there any other

Re: 403 Forbidden

2005-01-27 Thread James Sys
Hi Soren and Wendy, I wondered if either of you have made progress with this problem. It's so= mething I too would like to use, so I'm keen to pick your brains. Thanks, James. -- Have you tried this. WEB_INF/web.xml error-page error-code403/error-code

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev
why are you insisting on using a self defined manager? Remove the manager element. Filip - Original Message - From: Richard Mixon (qwest) [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, January 27, 2005 12:36 PM Subject: RE:

Re: Tomcat 5.5 Package installation Administration

2005-01-27 Thread David Smith
The admin webapp should be placed in $TOMCAT_HOME/server/webapps right next to the manager webapp instead of in the general $TOMCAT_HOME/webapps directory. The admin.xml file is written to look for it here. --David Edmon Begoli wrote: Susan, Download the admin package available on the Tomcat

Tomcat datasource not persisting across restarts

2005-01-27 Thread Johnny Tolliver
I've built a simple web app using Sun JSCreator. It accesses a MySQL database, and I've deployed on Tomcat 5.0.28. It took a little haggling to get the datasource registration in Tomcat just right, but it finally works. I used Tomcat's admin GUI to register the data source, and I deploy the web

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Never mind. Sorry for the dumb questions, its in my application ontext. - Richard -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 11:09 AM To: Tomcat Users List Cc: Filip Hanik - Dev [EMAIL PROTECTED] Subject: RE: JK, Session

Re: Oracle JDBC

2005-01-27 Thread Dustin
You need to place the driver in common/lib. Dustin --- Nathan Aaron [EMAIL PROTECTED] wrote: I have the Oracle jdbc driver installed in Tomcat's shared/lib directory. I have a JSP file that resides in the webapps/jsp-examples that connects to an Oracle database successfully. When I

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip, Yes you did say that earlier. However I do not reference PersistentManager anywhere in my server.xml. How is it getting enable? Here is the clustering part if my server.xml (I can send the entire server.xml if necessary). Cluster

logging remote IP address

2005-01-27 Thread Mark
Hi, Can anybody help how to log remote IP internal address using catalina logger (org.apache.catalina.*) classes and Http request class? request.getRemoteAddr() returns only one IP, but I'd like to see if the request came from subnewtwork or not: I'm looking for both values external IP and

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev
you said you enabled it in your context.xml file, if so remove it Filip - Original Message - From: Richard Mixon (qwest) [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, January 27, 2005 12:08 PM Subject: RE: JK, Session

Re: Oracle JDBC

2005-01-27 Thread Nathan Aaron
Already tried it. Still doesn't work. Thanks for the interest though! Nathan Dustin wrote: You need to place the driver in common/lib. Dustin --- Nathan Aaron [EMAIL PROTECTED] wrote: I have the Oracle jdbc driver installed in Tomcat's shared/lib directory. I have a JSP file that resides in

Re: Oracle JDBC

2005-01-27 Thread dshort
Not sure if you can have your JSPs/servlets outside of the Tomcat contexts structure. I think Tomcat, actually I think Servlet spec 2.3, expects a certain directory tree to be in place. So, it will look in the application context WEB-INF/lib directory, then up the tree to the shared/lib

Re: Oracle JDBC

2005-01-27 Thread dshort
Not sure if you can have your JSPs/servlets outside of the Tomcat contexts structure. I think Tomcat, actually I think Servlet spec 2.3, expects a certain directory tree to be in place. So, it will look in the application context WEB-INF/lib directory, then up the tree to the shared/lib

Re: Oracle JDBC

2005-01-27 Thread Nathan Aaron
The pain factor of moving the app would be too great at this point. What doesn't make sense is that I have a servlet that runs and uses the jdbc driver in shared/libs the servlet code is in /opt/application/appname/WEB-INF/lib. The jsp page is located in /opt/application/appname. My application

Re: Oracle JDBC

2005-01-27 Thread dshort
You may have to deploy an appname.xml file under the /conf/catalina/localhost directory. In the file put the following: Context docBase=appname path=/opt/application/appname / Tomcat needs to find the jsp file unlike the servlet class file, which resides in a jar file in your

RE: loadbalancing with mod_jk 1.2.8

2005-01-27 Thread Richard Mixon (qwest)
Mladen Turk wrote: Richard Mixon (qwest) wrote: John, SNIP From what I do understand: 1) At the point that you decide to do maintenance on one machine, you need to change your workers.properties and set local_worker=0 for that particular machine. 2) Then do a reload on your Apache

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip, Thanks so much for some reason taking the Manager statement completely out of the context worked. I can now see session replication occurring, which then identified some objects that were not serializable. I have fixed these and can see the session replicating correctly in the log

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Robert F. Hall
Try killing one of the Tomcat JVM's at the OS level. -Robert Richard Mixon (qwest) wrote: Filip, Thanks so much for some reason taking the Manager statement completely out of the context worked. I can now see session replication occurring, which then identified some objects that were not

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
expireSessionsOnShutdown=true set this property to false! this will not kill the sessions on the other servers during shutdown. but, yes kill -9 or taskmanager killing it, will work too Filip Richard Mixon (qwest) wrote: Filip, Thanks so much for some reason taking the Manager statement

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Robert F. Hall wrote: Try killing one of the Tomcat JVM's at the OS level. Robert - thanks! That worked. - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip Hanik - Dev lists wrote: expireSessionsOnShutdown=true set this property to false! this will not kill the sessions on the other servers during shutdown. but, yes kill -9 or taskmanager killing it, will work too Filip, Thank you so much. Setting expireSessionsOnShutdown=false allowed

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
Interesting, I haven't done any work with the latest work of tomcat because of engagements elsewhere. but you have the time to create a very small simple war file where this occurs, I will look at it tomorrow. It looks like the context class loader is not getting set properly, and this could

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
I meant, if you have time to create a simple test app, that I can work with, it will speed up the process Filip Filip Hanik - Dev lists wrote: Interesting, I haven't done any work with the latest work of tomcat because of engagements elsewhere. but you have the time to create a very small

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
another thought, this object com.ltoj.webapp.util.ClassGrid does it contain a reference to a struts object, and maybe that is why the loading doesn't work, just a thought. Filip Filip Hanik - Dev lists wrote: Interesting, I haven't done any work with the latest work of tomcat because of

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip Hanik - Dev lists wrote: another thought, this object com.ltoj.webapp.util.ClassGrid does it contain a reference to a struts object, and maybe that is why the loading doesn't work, just a thought. Filip Hanik - Dev lists wrote: Interesting, I haven't done any work with the latest

Make Tomcat use one JVM for JSPs accessed from multiple URL paths

2005-01-27 Thread Ethan Herdrick (ReAtlas)
How do I get Tomcat to serve the same JSPs from the same directory for URLs with different requested paths, yet use a single JVM instance? I know that I can create two different contexts that use the same docBase, but unfortunately each context will have its own JVM. So, is there a way to get

Re: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Filip Hanik - Dev lists
Hi Richard, Static variable don't get serialized with an object (anyone correct me if I am wrong), so that is not the problem. I believe it to be a bug. Struts is taking a class loader and loading the data, my guess is that its taking the context classloader, and that one is not set properly.

RE: Make Tomcat use one JVM for JSPs accessed from multiple URL paths

2005-01-27 Thread Caldarale, Charles R
From: Ethan Herdrick (ReAtlas) [mailto:[EMAIL PROTECTED] Subject: Make Tomcat use one JVM for JSPs accessed from multiple URL paths I can create two different contexts that use the same docBase, but unfortunately each context will have its own JVM. ??? I think there's a little confusion

Re: logging remote IP address

2005-01-27 Thread Parsons Technical Services
If what you are trying to see is the private IP of a machine then you will only have success if the machine was named the IP. Not likely. The IP is not stored in the HTTP header (Unless I missed it) but is derived from the TCP/IP packet. When a machine is on a private network this address is

RE: JK, Session Replication/Clustering, SSL and failover in Tomcat 5

2005-01-27 Thread Richard Mixon (qwest)
Filip Hanik - Dev lists wrote: Hi Richard, Static variable don't get serialized with an object (anyone correct me if I am wrong), so that is not the problem. I believe it to be a bug. Struts is taking a class loader and loading the data, my guess is that its taking the context classloader,

Re: Make Tomcat use one JVM for JSPs accessed from multiple URL paths

2005-01-27 Thread Parsons Technical Services
I think he may be looking for the alias attribute in the context. Different URLs served by the same app. Give an example and we can probably give you an answer. Doug - Original Message - From: Caldarale, Charles R [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org

Re: Invoker workaround on AIX

2005-01-27 Thread Parsons Technical Services
I have not worked with TC4 but I think your problem is that the mappings for the servlets should be in the web.xml for the app and not in the general web.xml. Also when you do the mappings in the app web.xml you do not need fully qualified paths. Doug - Original Message - From:

Re: Tomcat datasource not persisting across restarts

2005-01-27 Thread Parsons Technical Services
Post your config files. server.xml and web.xml from ../conf/ and the web and context files for you app. Doug - Original Message - From: Johnny Tolliver [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, January 27, 2005 2:07 PM Subject: Tomcat datasource not persisting

Basic Authentication Window

2005-01-27 Thread Gia Thornton
Hi, I am using Tomcat Container managed security: Basic Authentication by adding the following to web.xml. security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/XMLServlet/url-pattern

RE: Make Tomcat use one JVM for JSPs accessed from multiple URL paths

2005-01-27 Thread Ethan Herdrick (ReAtlas)
Hmm. I guess I jumped to a conclusion. Here's my situation: I've been running a web app for a while now that has multiple contexts that use the same docBase. What I have found is that the values of the static fields of my classes are not shared across contexts. I need to make all my contexts

Re: Make Tomcat use one JVM for JSPs accessed from multiple URL paths

2005-01-27 Thread Parsons Technical Services
You are correct. that's what I get for trying to remember stuff. Alias is on the host element. Pointing different URLs to the same host. So you are using one URL with several paths. And are wanting the apps to be able to share info. Two ways one might do this: Use a database or outside resource.