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
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
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
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
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
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
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
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:
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
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
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:
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
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
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
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
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
-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
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.
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:
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 -
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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]
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
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
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
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
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
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
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.
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
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
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,
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
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:
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
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
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
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.
78 matches
Mail list logo