I believe there is an issue with failover, however, with this route (thus,
the second use case for load balancers - failover). If an IP address in the
DNS list goes down, it can take up to 48 hours before the DNS maps are
updated to reflect the loss of one of the IPs. In the meantime, clients
BTW, I believe there is another issue with DNS round robin -- no support for
sticky sessions. There is no assurance that a series of requests (i.e., a
session) for a particular client IP or client with a particular session ID
will be routed to the same server. Also, SSL sticky sessions are
Hi,
HttpSession.getAttributeNames()
should do what you want!
From the javadoc:
getAttributeNames
public java.util.Enumeration getAttributeNames()
Returns an Enumeration of String objects containing the names of all the
objects bound to this session.
Cheers
Bernhard
-Ursprüngliche
Hi,
I face difficulties with encoding, at first I developed servlets that connects
to oracle database, the oracle encoding is US7Ascii and it contains arabic
data, I used Java1.3 to write the code and tomcat 4.0.6 to deploy the servlets,
I just needed to get the write encoding of the servlets,
Hi,
That doesn't answer Joseph's question. It tells him how to access the objects
in his own session but not how to access other peoples sessions. I would be
interested to see how this is done as well.
Ta
Matt
-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED]
Hi,
HTML meta tags won't help you.
Take a look at response.setCharacterEncoding(UTF-8) and JSP page directive
for contentType
%@ page contentType=text/html; charset=UTF-8 %
Replace UTF-8 with the charset for Arabic and see if that helps.
Allistair.
-Original Message-
From: Fadwa
Hi Matt, Joseph,
you're right, I was not reading Joseph's question properly, I thought he
want wants all objects IN the session.
I also can't think of another solution than Antony mentioned earlier.
Bernhard
-Ursprüngliche Nachricht-
Von: Dale, Matt [mailto:[EMAIL PROTECTED]
Gesendet:
Hi Kelly,
To do a software solution you could use the following method.
www.mysite.com - Both servers can answer this request, (for example
round robin dns)
or some form of hsrp (im sure there is a patch for linux to do this)...
and based upon load and a simple script (perl, java, etc)
they
You need to implement a Session Listener like this.
public class SessionHelper implements HttpSessionListener {
private static Hashtable sessionsById = null;
/**
* @see
javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
*/
public void
Hi,
looks to me that this was included in a previous version of the API, but
was removed for security reasons:
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSessionContext.html
Therefore the only way to get all sessions is probably a SessionListener.
HTH
Christoph
Dale, Matt
hi,
thanks for your reply,
I tried using in my servlet
res.setContentType(text/html; charset=UTF-8)
but I didn't have arabic when I compiled it with jdk1.3, and I could't
adjust the encoding from the internet explorer as I did when I don't use
res.setContentType(text/html; charset=UTF-8), and I
Hello,
at last I solved the problem of my tomcat not being able to parse xml code,
but only partially: I am now able to do xml requests in my Geoserver
application, but only on the localhost, if I try to do a request remotely, I
only get the xml code in the browser window. Here is what the remote
On Feb 22, 2005, at 10:24 PM, Kelly Vista wrote:
Hi -
We are looking to deploy our app, running on Tomcat 5, soon and are
exploring load balancing options. We are looking at H/W and S/W
solutions, and I was wondering if anyone had any past
experience/advice they would like to
Hello tomcat gurus, I have developed a small web app that keeps inventory by
reading and writing to a MicroSoft Excel file. The web app is performing as
designed except for reading the input Excel. Currently, I am having the user
browse for the file on the local file system which works OK. The
Hi,
There is a ClassCastException when we run the JspC class with the proper
arguments.
I have given the detailed exception at the end of this mail,
// In org.apache.jasper.JspC class code
private void initServletContext()
{
try
{
context = new
Hi all
I am trying to implement an easy way to update my webapp, running on
tomcat 5.0.27
I need to be able to reload the webapp, after updating the war file on
the server. My webapp has to run unpacked due to certain file access
methods which have been used. I am also using a webapp.xml
in
The best advice I can offer -- have a javascript that does the submit
for you on the event the drop-down changes state. Then let a servlet
handle storing your form data in the session and passing updated data to
the next page. Outside of something like that, I think you'll need to
-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED]
Sent: February 22, 2005 5:20 PM
To: [EMAIL PROTECTED]
Subject: RE: challenging JK connector problem: java.net.SocketException
hello Patrick!
thank you for your help, i really appreciate it as i'm at a total loss
at the
I have downloaded Tomcat 5.5.8 and found that a prereq is J2SE 5.0 and later
(document: release notes)
but to run in a J2SE Version 1.4 or 1.3 (document: running.txt) you can
download the
compatibility package, it is said to be available from the binary download
site:
Hi,
Is there any way to limit the file size of stdout.log?
Thanks,
Joe
This page contains links.
http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
5.5.8-alpha Admin tar.gz -
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.8/bin/jakarta-tomcat-5.5.8-admin.tar.gz
5.5.8-alpha Compat tar.gz -
Hello everybody:
I am developing a web application for tomcat 5.0.28 and I
created a build.xml for ant by following the guidelines explained
at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html.
What is the optimal and fastest method to redeploy the aplication
again an again
Hello
Sorry if this is a trivial question.
I have read Tomcat Documentation and list Archive and as I am not a
specialist of Tomcat, I am not sure of my understanding.
first, tomcat is behind apache.
I want the access to a servlet be secured by client certificate and to
check who can access to
Hi everybody
I've created a folder called test on webapps and a website on IIS
(include ISAPI and virtual directory jakarta) with the same target.
when i call with http://localhost:8080/test/test.jsp works, but when i
call it on the browser: http://localhost/test.jsp , does not work.
need I
Hi,
This is such a well documented configuration. I suggest you either search the
list archives, or head to Tomcat's documentation page and look at the JK for
IIS documentation.
You'll need the ISAPI DLL, a workers.properties file to map URLs to Tomcat from
IIS, and a set of Windows registry
You may just need to add a line like:
/test/*=ajp13w
...or similar, to your uriworkermap.properties file.
You shouldn't need to add a context to server.xml if you're putting
this in $CATALINA_HOME/webapps, though I may be mistaken as I am
wrapping-up my own learning curve on this.
Thanks,
-Matt
And bear in mind that uriworkersmap is for JK2 which is no longer supported
although it of course works. If you are starting out, you will want JK 1.2.8
and therefore workers.properties will be the file to declare URL mappings.
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]
Try with google.
You can find an how to on jakarta.apache.org site.
Or you can ask your friends.
Viorel Dragomir
.
..
---
- Original Message -
From: David IBARRA ROSALES
To: Tomcat Users List
Sent: Wednesday,
List servers = MBeanServerFactory.findMBeanServer(null);
MBeanServer server = (MBeanServer)servers.get(0);
ObjectName objName = new
ObjectName(Catalina:type=Manager,path=/contextPath,host=localhost);
String sessionIds =
(String)server.invoke(objName,listSessionIds,null, null);
Thanks Viorel
you are a smart boy ! I 'had forgotten about google and jakarta.apache.org
site .
really thanks ! but I came from there...
- Original Message -
From: Viorel Dragomir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005
Actually, that's not entirely true.
If you use jk_1.2.8.exe on Windows to install, it creates its own folder
(I forget the name and am away from this system at present, maybe ISAPI
Redirection DLL or such, sorry!) at the same level as $CATALINA_HOME
(Tomcat 5.5 in my case). In there is a conf
I've had the same experience. The fix was to use our domain name in the name
fields requested by the csr tool.
Hope this helps.
Regards,
James.
=
I am not sure, this may have nothing to do with it but On the
documentation I read it said you should use your domain name for the
first and
i was just going by the latest JK 1.2.8 documentation which discusses only the
configuration of workers.properties. uriworkersmap used to be the file used for
jk2 style config.
http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html
-Original Message-
From: Matt
Hi Matt
I appreciat your help, 4 days ago I am trying that this work.
yes, the file is workers.properties.minimal. I have installed the last
version of jk and tomcat 5.5.7 and ISAPI and JAVA with installer, they
are working well, the config files in regedit and anothers is created
Thanks Allistar
I will go on trying... it can be only a small thing i think your message
encourage me,
David
mytwo files show this
--
# workers.properties.minimal -
worker.list=ajp13w
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
actually Matt appears to be correct I admit - i've just checked our 1.2.8
config and it is indeed uriworkersmap.properties you need to add your mappings
to.
sorry for the confusion
-Original Message-
From: David IBARRA ROSALES [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 15:05
Thanks Allistair
Is there documentations for IIS 6.0 , I use IIS 5.0 on win2000, I have
found something new in documentation IIS 6.0:
http://web.archive.org/web/20031229123839/www.rit.edu/~ack5504/tomcat-iis6-howto/WebServiceExtension.JPG
that maybe help me if I found the similar in IIS 5
I
Which exemplifies my point about (and frustration with) the docs...
On Wed, 23 Feb 2005, Allistair Crossley wrote:
i was just going by the latest JK 1.2.8 documentation which discusses only
the configuration of workers.properties. uriworkersmap used to be the file
used for jk2 style config.
Where exactly in the start process can I add -Dfile.encoding=ISO-8859-1
to ensure this is the base encoding of Tomcat:
Quote from tomcat.sh (invoked with start from startup.sh):
quote
if [ $1 = start ] ; then
shift
echo Using classpath: ${CLASSPATH}
if [ $1 = -security ] ; then
shift
These are documented in lots of places (Google for the terms), but
confusing in that they have the extra instructions that you don't need
when you use the jk_1.2.8.exe (that installer is GREAT, it's all the
various docs that need updating and clarification).
The link that I sent you (and you
I have attempted to configure a tomcat cluster using version 5.5.7 of
tomcat.
I have configured a simple tcp cluster in the server.xml. I have two
tomcat instances installed on two different Linux servers
(Fedora core 3, IPTAPLES is turned off, there is not firewall).
I have apache and
hi Patrick,
i've just tried your suggestion and unfortunately i still get the
java.net.SocketExceptions.
i installed Tomcat 5.0.25, upgraded my JDK to 1.4.2_07, reinstalled the
JK connector (setupJK204.exe).
the only real difference it seems is that i'm using Windows XP.
how do you install
Does anyone has any experience with pre-compiling jstl 1.1 and struts-el
enabled jsps on Tomcat 5.5.7.
When I follow instructions from the web site and try to compile it in
eclipse I get a java.util.Zip... exception complaining it
is loading an invalid zip file. This zip file exception may be a
I tried out.print(). The complation failed. The error is:
cannot resolve symbol
symbol : variable out
Thanks
Jin
Antony Paul [EMAIL PROTECTED] wrote:
Why not use out.print() or you are trying to do something else ?.
rgds
Antony Paul
On Tue, 22 Feb 2005 20:26:41 -0800 (PST), Jin Wu wrote:
If you can't find a response [HttpServletResponse] object to use than you can't
print.
Use throw Exception(MESSAGE) ;)
Viorel Dragomir
.
..
---
- Original Message -
From: Jin Wu
To: Tomcat Users List ; Antony Paul
if youre trying to print to a webpage, then you probably want a jsp file or
a servlet in which case this would be one of the reasons you are using
tomcat. If you are just trying to log messages though, i recommend checking
out log4j instead of using system.out and system.error
- Original
Does anybody have any links/documents on how to harden tomcat?
thanks,
--
Patrick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(to web);
-Original Message-
From: Jin Wu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 10:39 AM
To: Tomcat Users List; Antony Paul
Subject: Re: how to print to web page instead of
Specifically authoritative articles on how to do this.. would be
greatly appreciated.
On Wed, 23 Feb 2005 11:24:12 -0800, Patrick Lacson [EMAIL PROTECTED] wrote:
Does anybody have any links/documents on how to harden tomcat?
thanks,
--
Patrick
--
Patrick
Hello,
I am having trouble with a filter. Code below.
What I am trying to achieve is as follows: We have a current web-site, with a
lot of jsp pages, etc. We are moving the code to a load-balanced environment,
and I would like to put a hidden IP address into each display page. This way
I can
Anyone have any luck using the JTDS driver for Micro(Caugh..Caugh) SQL
Server and persistent session management using JDCBStore. I am
currently experiencing a problem connecting with jtds. Here is my
configuration for my JDBCStore...
Manager
I haven't really come across hardening documents for Tomcat or any Java
container for that matter. That is probably because Java by design is
relatively secure as it runs within a virtual machine so it isn't
possible to escape code etc and breakout into the OS kernel space.
So basically run
What database? Do you have the database set up to deliver Unicode, or
CP1256, correctly? Note that not all Arabic fits into CP1256, you might
really be better off with UTF-8.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi Scott.
Your filter should probably set an attribute in the request or perhaps the
session, that your jsp could display, rather than writing to the response's
writer object. By opening up the writer and writing to it you are effectively
setting the response to the request to be the contents of
Hi Tomcat Users -
We are implementing Tomcat (with Axis) for HTML translation to a
proprietary format (as a pass-thru). This is for submission to an
external system (its pretty simple data) and back again.
We were wondering if anyone has any ideas how you would size a box
(Solaris/HP-UX based)
I do not think that anyone can answer that but you.
It is so application specific that any answers we give would be SWAGs at best.
Larry
On Wed, 23 Feb 2005 14:25:32 -0800, Ross Poppel [EMAIL PROTECTED] wrote:
Hi Tomcat Users -
We are implementing Tomcat (with Axis) for HTML translation to
Ross,
I recommend that you think along the lines of expandability.
That is, a load balancer in front of tomcat(s) running on one or
more servers. As demand increases you add more instances,
then another server. There is also the nature of the communication
with the external system to consider.
Yes, this works. Thanks a lot.
James
Daxin Zuo [EMAIL PROTECTED] wrote:
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(to web);
-Original Message-
From: Jin Wu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 10:39 AM
To: Tomcat
Hi David,
I have the same problem like yours before. And found this site.
http://www.shiftomat.com/opensource/
It's effective and it's free! =)
I've been using this for a long time now and encountered no problems.
Hope this helps.
Aris
Philippines
-Original Message-
From: Matt
I didn't get a response on this - does anyone know if a non-default
context works, and if not, if there are plans to fix it?
-- Forwarded message --
Wrom: SKPNKMBIPBARHDMNNSKVFVWRKJVZCM
To: Tomcat Users List tomcat-user@jakarta.apache.org
Date: Fri, 18 Feb 2005 13:43:39 -0500
Hi,
It seems that in my 4-node cluster (TC 5.5.8), the
session.getLastAccessedTime() only returns the last accessed time in each
particular node only. Is this normal? How can I get the last accessed
time of a session across the whole cluster?
Regards,
Joseph Lam
Peter, I don't think Scott wants to modify every JSP in his
application. Sounds like he has a lot!
Scott, the reason your filter isn't working is because the response
from your servlets is getting sent to the client before your filter
has a chance to add it's text to it (using the PrintWriter).
Just for grins take a look at all your file permissions. It may be an issue
that localhost gives you the needed authority to open or modify a needed
file, but as a remote you are treated as a different user and don't have it.
This is just an off the wall idea.
Doug
- Original Message -
Is it possible to obtain the userid within a servlet of the person that has
logged in via a realm authentication? I want to use the standard
authentication to manage access. But once a person is into a certain page,
I'd like to know which user it is so I can display, for instance, that
user's
look at the request, there is a user principle there that is the current user
On Wed, 23 Feb 2005 22:58:32 -0600, J Malcolm [EMAIL PROTECTED] wrote:
Is it possible to obtain the userid within a servlet of the person that has
logged in via a realm authentication? I want to use the standard
if you're talking about XML transformation, the biggest factor is the
parser you use and the cpu speed. If you read my old performance
article on the resource page, you can see some old numbers for AMD
2ghz system.
depending on how much XML you need to handle concurrently, you may
want to
Thanks David for the solution. To be frank, i really
don't know how to code it. Will you give a sample code
snippet? I'm using apache2, tomcat 5.5.7 on Win 2K
machine.
One more problem. I've a form and also submit button.
I've number of text fields in it. On entering some
data and focus losts
Hi,
I know that the SessionContext has been deprecated and have already used
my own static Map object for storing userID-session mapping when session
is created. But such static Map object that holds all the sessions is only
accessible from within one cluster node (i.e. the one who processed that
Found that only when a replication is explicitly triggered by
set/removeAttribute(), the other nodes' session.getLastAccessedTime() will
be synchronized.
Joseph
On Thu, 24 Feb 2005, Joseph Lam wrote:
Hi,
It seems that in my 4-node cluster (TC 5.5.8), the
session.getLastAccessedTime() only
Hi folks,
I am trying to load a simple JNI based .so lib file with Tomcat
5.5.4.(on linux) I am trying to load the .so file within the JSP page.
I am not sure if this is allowed. I have tried all the following
methods..
1. putting the .so file in JAVA_HOME//jre/lib/i386/
2. setting the
I have tried that but still got some weird behavior (seems that it was
able to send out broadcast with the proper interface but unable to listen
broadcast...).
So I gave up that an simply set a static route in the OS for mcast. But
thanks anyway.
Joseph
On Tue, 22 Feb 2005, Filip Hanik - Dev
Anyone knows when a session is replicated to other nodes, will the
HttpSessionBindingListener and HttpSessionAttributeListener objects be
notified again? On the receiver nodes, how can I detect when a session
from the sender node comes in so that I can do something with it?
Joseph
In my JSP pages, I have already set a page buffer size sufficiently large
so that it can hold the whole page before having to flush. However, I
still occasionally got exceptions when I try to forward the request in the
middle, complaining that it can't forward the request as some content is
73 matches
Mail list logo