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.
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 sh
Hi,
I am using Tomcat Container managed security: Basic Authentication by adding
the following to web.xml.
The Entire Web Application
/XMLServlet
tomcat
BASIC
UserDatabase
An example role defined in "conf/tomcat-users.xml
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:
Sent: Thursday, January 27, 2005 2:07 PM
Subject: Tomcat datasource not persisting across restarts
I've bui
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: "Flaffe
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"
Sent: Thursday, January 27,
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
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
> 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
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.
L
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 Tom
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
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 engage
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 simpl
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 be
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"
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]
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 "
I can now see session re
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 "
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 replica
Filip,
Thanks so much for some reason taking the " 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"
> Cc: <>
> Sent: Thursday, January 27, 2005 12:08 PM
> Su
Mladen Turk wrote:
> Richard Mixon (qwest) wrote:
>> John,
>>
>>> 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 Ap
You may have to deploy an appname.xml file under the /conf/catalina/localhost
directory. In the file put the following:
Tomcat needs to find the jsp file unlike the servlet class file, which resides
in a jar file in your appname/WEB-INF/lib directory. Tomcat will compile the
jsp, if it hasn
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
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 direct
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 direct
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
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"
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 27, 2005 12:08 PM
Subject: RE: JK, Session Replication/Clustering, SSL
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 intern
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).
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.
> Wh
Jon,
I checked my build.properties and there is no trailing white space. In any
case, since this is not 'make', it should not matter. Anyway thanks for your
reply - no one else has replied.
Thanks,
Anil
-Original Message-
From: Jon Ellis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January
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 Repli
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 app
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 m
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"
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 27, 2005 12:36 PM
Subject: RE: JK, Session Replication/
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
403
/errorpages/403.jsp
From: Søren Blidorf <[EMAI
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
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
it still does not fail ove
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 cookie
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 exist
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 e-mai
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
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
Filip/all,
Thank you - with your suggestion I was able to get it configured as
follows:
1) After the "
2) I added to the conf/context.xml this line:
All starts fine. But I still get prompted to logon when the failover
occurs from "srv1" to "srv2".
Here are the Tomcat logs (I have mostly
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 if
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 the
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 Tomc
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 t
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 nee
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
Unfort
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 loggin
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,
session
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 something
Try to configure the JvmRouteSessionIDBinderLifecycleListener like any other
Lifecycle listener,
Filip
- Original Message -
From: "Richard Mixon (qwest)" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 27, 2005 9:37 AM
Subject: R
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 mo
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
I did changed the code
I changed the server.xml file and changed as this
But again the same Exception
Still could not try our JDBC-ODBC thing in Microsoft Access
Thanks in advance
CSJakharia
Subscribe to bermudaEmail: [input] [input] Browse Archives at
groups-beta.goo
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
1. In addition, we use a Custom Class
Loader that extends WebapppClassLoader because our core classes are
encrypted.
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 k
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 -
From
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: Inm
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.
Secon
-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
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 Mess
> 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
- Ch
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 ma
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
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
---
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:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/global
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 a
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
then the connection is most likely to fail, not allowed, mysql e
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:
JkUriSet group ajp13:localhost:8009
or this one:
[uri:www.home.org/application/*]
group=ajp13
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 nee
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
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 Intra
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 4.1.29/Win2k/j
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 si
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 th
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
--
79 matches
Mail list logo