Re: Load balancing SSL sessions

2005-02-23 Thread Kelly Vista
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 may 
be getting directed to a server that is not available.

Someone pls correct me if I'm wrong about that.
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Load balancing SSL sessions
Date: Tue, 22 Feb 2005 16:01:10 -0600
you can also use DNS round robin,
www.mysite.com resolves to two or more IP addresses.
Filip
Andrew Miehs wrote:
We use F5 BigIPs, but they are probably overkill for your application - 
The cisco probably will be as well.

A 'Cheap' software solution might be to work with redirects, and 2 
separate IP addresses.
ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though 
for this to work.

Does all of your app require ssl? or just a certain part, ie: payment. Do 
you need the stickiness
for the whole app? or just for the ssl (seeing you are using tomcat, you 
will probably need it for the whole app)...

Andrew
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 share.

Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each 
running Tomcat.  We would like to avoid replicating state (since we have 
a lot of state in these apps, for reasons beyond  our current control).  
Even in-memory session replication would not be option here, so we're 
punting on the Tomcat cluster solution.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Load balancing SSL sessions

2005-02-23 Thread Kelly Vista
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 definitely 
not supported.

Again, pls correct me if I'm wrong.
From: Filip Hanik - Dev Lists [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Load balancing SSL sessions
Date: Tue, 22 Feb 2005 16:01:10 -0600
you can also use DNS round robin,
www.mysite.com resolves to two or more IP addresses.
Filip
Andrew Miehs wrote:
We use F5 BigIPs, but they are probably overkill for your application - 
The cisco probably will be as well.

A 'Cheap' software solution might be to work with redirects, and 2 
separate IP addresses.
ie: ssl1.mysite.com and ssl2.mysite.com - You will need 2 ssl keys though 
for this to work.

Does all of your app require ssl? or just a certain part, ie: payment. Do 
you need the stickiness
for the whole app? or just for the ssl (seeing you are using tomcat, you 
will probably need it for the whole app)...

Andrew
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 share.

Our deployment is as pretty run-of-the-mill as it gets: 2 machines, each 
running Tomcat.  We would like to avoid replicating state (since we have 
a lot of state in these apps, for reasons beyond  our current control).  
Even in-memory session replication would not be option here, so we're 
punting on the Tomcat cluster solution.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Getting other Sessions

2005-02-23 Thread Bernhard Slominski
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 Nachricht-
Von: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 05:18
An: tomcat-user@jakarta.apache.org
Betreff: Getting other Sessions


I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Arabic encoding

2005-02-23 Thread Fadwa Barham
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, both the data from the 
database or the messages I write in the code in arabic, is puting these lines 
in the servlet
meta http-equiv=Content-Language content=ar-sa
META http-equiv=Content-Type content=text/html;charset=windows-1256
when I wanted to use Java 5 I get question marks
and when I used the servlets which I compiled on jdk1.3 in tomcat 5.5.8  I need 
to adjust the encoding each time I request the servlet to windows-1256.
what's the problem of the encoding in the new versions of Java and tomcat?
I noticed the internationalization in the tomcat contains
tomcat-i18n-en.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomcat-i18n-es.jar
is the problem that I need tomcat-i18n-ar.jar? and if so, how to get it?
Hope I explained the problem in obvious way.
I can't continue using tomcat 4.0.6 cause I always have dbconnection failure as 
I use jndi DataSource, but I found tomcat 5.5.8 is more stable.
Please I need help
Thanks,


RE: Getting other Sessions

2005-02-23 Thread Dale, Matt

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]
Sent: 23 February 2005 09:17
To: 'Tomcat Users List'
Subject: AW: Getting other Sessions


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 Nachricht-
Von: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 05:18
An: tomcat-user@jakarta.apache.org
Betreff: Getting other Sessions


I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Arabic encoding

2005-02-23 Thread Allistair Crossley
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 Barham [mailto:[EMAIL PROTECTED]
 Sent: 23 February 2005 21:20
 To: tomcat-user@jakarta.apache.org
 Subject: Arabic encoding


 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, both the data from the database or the messages I
 write in the code in arabic, is puting these lines in the servlet
 meta http-equiv=Content-Language content=ar-sa
 META http-equiv=Content-Type
 content=text/html;charset=windows-1256
 when I wanted to use Java 5 I get question marks
 and when I used the servlets which I compiled on jdk1.3 in
 tomcat 5.5.8  I need to adjust the encoding each time I
 request the servlet to windows-1256.
 what's the problem of the encoding in the new versions of
 Java and tomcat?
 I noticed the internationalization in the tomcat contains
 tomcat-i18n-en.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomca
 t-i18n-es.jar
 is the problem that I need tomcat-i18n-ar.jar? and if so, how
 to get it?
 Hope I explained the problem in obvious way.
 I can't continue using tomcat 4.0.6 cause I always have
 dbconnection failure as I use jndi DataSource, but I found
 tomcat 5.5.8 is more stable.
 Please I need help
 Thanks,
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Getting other Sessions

2005-02-23 Thread Bernhard Slominski
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: Mittwoch, 23. Februar 2005 10:25
An: Tomcat Users List
Betreff: RE: Getting other Sessions



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]
Sent: 23 February 2005 09:17
To: 'Tomcat Users List'
Subject: AW: Getting other Sessions


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 Nachricht-
Von: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 05:18
An: tomcat-user@jakarta.apache.org
Betreff: Getting other Sessions


I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Load balancing SSL sessions

2005-02-23 Thread andrew
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 then redirect the traffic server1.mysite.com, or server2.mysite.com

This way the session then stays on server1 or server2.
As I said though, you will need 2 certificates if you do not want the 
clients complaining about broken ssl certificates.

Anderw

Kelly Vista wrote:
Thanks Andrew.
In answer to your question, some of our app requires SSL -- exactly 
like an order-style app (but it's not a product ordering app).

So, a person's session might involve the following path:
1. non SSL req
2. non SSL req
3. SSL req
4. non SSL req
and we'd like that entire session to be persistent (i.e., sticky with 
one particular app server).  BTW, it is not an issue for us if that 
server fails during the session.  It will happen rarely and it's an 
acceptable failure for us (i.e., not mission critical data).

I should have mentioned that we expect 1000 req/hour with this app.  
However, our app is not necessarily quick (dependent on external 
resources) and does keep a lot of state.

I'm personally someone in favor of a H/W LB solution, but looking to 
be convinced that a valid S/W solution exists which is better (or just 
as good) as a H/W solution.  I know the S/W solution will be less 
reliable (not solid state), but I'm looking to hear from folks who 
have done SSL session affinity with a S/W only approach.


Andrew
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 share.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: AW: Getting other Sessions

2005-02-23 Thread Mark Benussi
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 sessionCreated(HttpSessionEvent sessionEvent) {
		if (sessionsById == null) {
			sessionsById = new Hashtable();
		}
		HttpSession session = sessionEvent.getSession();
		String sessionId = session.getId();
		sessionsById.put(sessionId, session);
	}
	/**
	 * @see 
javax.servlet.http.HttpSessionListener#sessionDestroyed(javax.servlet.http.HttpSessionEvent)
	 */
	public void sessionDestroyed(HttpSessionEvent sessionEvent) {
	}
}

Then you can access the sessions via this session helpers Hashtable.
Finally you need to add the following to your web.xml.
web-app id=WebApp
display-nameblah/display-name
listener
listener-classSessionHelper/listener-class
/listener
.. etc
Cheers,
Mark
Original Message Follows
From: Bernhard Slominski [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: AW: Getting other Sessions
Date: Wed, 23 Feb 2005 10:31:00 +0100
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: Mittwoch, 23. Februar 2005 10:25
An: Tomcat Users List
Betreff: RE: Getting other Sessions

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]
Sent: 23 February 2005 09:17
To: 'Tomcat Users List'
Subject: AW: Getting other Sessions
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 Nachricht-
Von: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 05:18
An: tomcat-user@jakarta.apache.org
Betreff: Getting other Sessions
I want to make an admin page in my application.  I needs to be able to
get access to all the current Session objects to access their
attributes.  Is this possible?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Getting other Sessions

2005-02-23 Thread Christoph Kutzinski
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 wrote:
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]
Sent: 23 February 2005 09:17
To: 'Tomcat Users List'
Subject: AW: Getting other Sessions
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 Nachricht-
Von: Joseph Shraibman [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 23. Februar 2005 05:18
An: tomcat-user@jakarta.apache.org
Betreff: Getting other Sessions
I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Arabic encoding

2005-02-23 Thread Fadwa Barham
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 also tried 
res.setContentType(text/html; charset=windows-1256) and I get all the 
arabic data in the servlet and the database question marks.

I noticed something: when I compile the servlet using Java 5 and write in 
the servlet
res.setContentType(text/html; charset=UTF-8) or
res.setContentType(text/html; charset=windows-1256)
without using
meta http-equiv=Content-Language content=ar-sa
META http-equiv=Content-Type content=text/html;charset=windows-1256
I get the words I wrote in the servlet in arabic correct but the data from 
the database in question mark and also if the servlet has a form, when I 
submit the data I get the phrase also in question mark.
and when I used
req.setCharacterEncoding(utf-8) or 
req.setCharacterEncoding(windows-1256) or
meta http-equiv=Content-Language content=ar-sa
META http-equiv=Content-Type content=text/html;charset=windows-1256
I have the form phrase in arabic but the database cannot realize the 
encoding and return 0 results.
thanks,
Fadwa

- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005 11:29 AM
Subject: RE: Arabic encoding


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 Barham [mailto:[EMAIL PROTECTED]
Sent: 23 February 2005 21:20
To: tomcat-user@jakarta.apache.org
Subject: Arabic encoding
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, both the data from the database or the messages I
write in the code in arabic, is puting these lines in the servlet
meta http-equiv=Content-Language content=ar-sa
META http-equiv=Content-Type
content=text/html;charset=windows-1256
when I wanted to use Java 5 I get question marks
and when I used the servlets which I compiled on jdk1.3 in
tomcat 5.5.8  I need to adjust the encoding each time I
request the servlet to windows-1256.
what's the problem of the encoding in the new versions of
Java and tomcat?
I noticed the internationalization in the tomcat contains
tomcat-i18n-en.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,tomca
t-i18n-es.jar
is the problem that I need tomcat-i18n-ar.jar? and if so, how
to get it?
Hope I explained the problem in obvious way.
I can't continue using tomcat 4.0.6 cause I always have
dbconnection failure as I use jndi DataSource, but I found
tomcat 5.5.8 is more stable.
Please I need help
Thanks,

FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


XML Parsing only on localhost but not remotely

2005-02-23 Thread Jan Peters-Anders
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 Browser
shows:

8--
WFS_Capabilities version=1.0.0
xsi:schemaLocation=http://www.opengis.net/wfs
http://systemsresearch.ac.at:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-capabilities.xsd;
-
Service
NameMy GeoServer WFS/Name
TitleMy GeoServer WFS/Title
-
Abstract

This is a description of your Web Feature Server.

The GeoServer is a full transactional Web Feature Server, you may wish to
limit
GeoServer to a Basic service level to prevent modificaiton of your
geographic
data.
 
/Abstract
KeywordsWFS, WMS,
GEOSERVER/Keywords
OnlineResourcehttp://geoserver.sourceforge.net/html/index.php/OnlineResource
FeesNONE/Fees
AccessConstraintsNONE/AccessConstraints
/Service
-
Capability
-
Request
-
GetCapabilities
-
DCPType
-
HTTP
Get
onlineResource=http://systemsresearch.ac.at:8080/geoserver/wfs/GetCapabilities?/
/HTTP
/DCPType
-
DCPType
-
HTTP
Post
onlineResource=http://systemsresearch.ac.at:8080/geoserver/wfs/GetCapabilities/
/HTTP
/DCPType
/GetCapabilities
-
DescribeFeatureType
.
.
.
etc.
---8--

What do I have to modify so that tomcat will be doing the xml parsing also
for the remote browser? As I understand it, the code should not be sent to
the browser, but should be executed on the localhost and the result should
be sent to my browser, right? So what could be wrong? Please tell my what
file  information you need to give me a hint (e.g. server.xml oder web.xml
etc.).

Thank you very much in advance

Jan Peters-Anders

-- 
Remember, Linux is a wigwam: No Windows. No Gates. Apache inside. 









.

DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Load balancing SSL sessions

2005-02-23 Thread James Richardson
  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 share.
 
  Our deployment is as pretty run-of-the-mill as it gets: 2 machines,
  each running Tomcat.  We would like to avoid replicating state (since
  we have a lot of state in these apps, for reasons beyond  our current
  control).  Even in-memory session replication would not be option
  here, so we're punting on the Tomcat cluster solution.
 

You could use Coherence*Web to cluster your session state, and a Foundry
switch to do the load balancing. It can do sticky load balancing, and if a
server fails then coherence will ensure that your other boxes still have
the session state. 

http://www.foundrynet.com/products/webswitches/serveriron/
http://www.tangosol.com/coherence-uses-a.jsp

Best Regards,

James


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



disk file as servlet or jsp resource

2005-02-23 Thread David W. Brown
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 client server 
application works OK when the client and server are the same machine. When I 
access the web app from a remote client machine I am of course not able to see 
the input Excel file that resides on the server machine. I am deploying my app 
in the usual way using an ant build.xml file and the Tomcat /manager servlet. I 
have been able to include the input Excel data file in the output (dot).war 
file by placing the Excel input data file in the web directory. Is there some 
way of using the input Excel data file as a web app resource such that the data 
file can be loaded when the (dot).war file is deployed and is started up? 
Please advise, David.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ClassCastException

2005-02-23 Thread Jagadeesha T
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 JspCServletContext(new PrintWriter(System.out), new 
URL(file: + uriRoot.replace('\\', '/') + '/'));
tldLocationsCache = new TldLocationsCache(context, true);
}
catch(MalformedURLException me)
{
System.out.println(** + me);
}
rctxt = new JspRuntimeContext(context, this);
jspConfig = new JspConfig(context);
tagPluginManager = new TagPluginManager(context);
}
In this method it creates the object of jspRunTimeContext
rctxt = new JspRuntimeContext(context, this);
// end JspC class code
// In org.apache.jasper.compiler.JspRuntimeContext class 
In constructor of this class,
public JspRuntimeContext(ServletContext context, Options options){
jsps = Collections.synchronizedMap(new HashMap());
thread = null;
threadDone = false;
threadName = JspRuntimeContext;
System.setErr(new SystemLogHandler(System.err));
this.context = context;
this.options = options;
// The below line causing the exception to be thrown 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();
if(parentClassLoader == null)
parentClassLoader = (URLClassLoader)getClass().getClassLoader();
if(log.isDebugEnabled())
if(parentClassLoader != null)

log.debug(Localizer.getMessage(jsp.message.parent_class_loader_is, 
parentClassLoader.toString()));
else

log.debug(Localizer.getMessage(jsp.message.parent_class_loader_is, none));
initClassPath();
if(context instanceof JspCServletContext)
return;
if(System.getSecurityManager() != null)
 ...
 ..}
// Here it is expecting the current thread class loader to be of type 
URLClassLoader,
 which is not,it is set with the AntClassLoader2..
 Hence throwing the exception
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();
/// end of org.apache.jasper.compiler.JspRuntimeContext class 
The reason is the current thread class loader has set in JspC after 
JspRuntimeContext() object 
creation call, 
setting of current thread class loader to URLClassLoader is done in the below 
given method in JspC class
private void initClassLoader(JspCompilationContext clctxt) method
// Begin JspC class
Thread.currentThread().setContextClassLoader(loader);
// end JspC class 

The class loader, URLClassLoader is set to the current thread after the 
exception is thrown from 
org.apache.jasper.compiler.JspRuntimeContext, if it set before ,then it will 
definitely work.
--- total flow.
from JspC class,
methods flow 
Main() -- execute()--- initServletContext();
initServletContext() In this method creating the below object by calling the 
only one constructor of
org.apache.jasper.compiler.JspRuntimeContext(context, option)
--
in org.apache.jasper.compiler.JspRuntimeContext
org.apache.jasper.compiler.JspRuntimeContext
taking the current thread class loader and expecting to be as URLClassloader,
exception thrown
---
in JspC 
after this flow there is code to set the currentCLassLoader to URLClassLoader,
in initClassLoader(JspCompilationContext clctxt) method
this should be set before the creation of JspRuntimeContext object to avoid 
this exception.
---
It would be great if we have precompilation feature.
I don't know if there is any other alternatives available for this,
I think we could do this. Please let me know if this is 
considered already and have counter this problem.
---

The detailed exception is ...
The line numbers may not correct since i put some System.out.println()..
The code thrrowing the exception is 
JspRuntimeContext costructor 
parentClassLoader = 
(URLClassLoader)Thread.currentThread().getContextClassLoader();


[java] java.lang.ClassCastException
[java] at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:172)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
[java] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[java] at 

Deployment Issues

2005-02-23 Thread Chris Picton
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 /etc/tomcat5/Catalina/localhost to configure an ldap authentication
realm

I have tried the following, both of which give issues:

 1. Set autoDeploy=true in my Host, and drop the war file
into /var/lib/tomcat5/webapps.  This works most of the time,
updating the unpacked directory, but it frequently gives me an
error about 'Missing application web.xml, using defaults only'.
I have double and triple-checked - the web.xml is there, but
tomcat does not see it during auto unpacking.  This does not
happen all the time, but at seemingly random times.
 2. set autoDeploy=false in my Host, and use the manager app to
try to redeploy the webapp.  The easiest way I can see to do
this
is: 
/deploy?config=file:/home/my.xmlwar=file:/home/my.warpath=/update=true, but 
I get an error: FAIL - Encountered exception java.io.IOException: 
java.lang.IllegalStateException: Context path  is already in use.  The 
update=true does not seem to be undeploying the installed context first.

Does anyone have some hints for me as to how to get this working.  I
need to script the reloading of the webapp and I cannot restart tomcat.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to send hidden variables to next page

2005-02-23 Thread David Smith
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 
incorporate a submit button.

--David
U K Laxmi wrote:
Thanks for the answers Shakeel.
My problem is, i've a page that doesn't have submit
button. I need to send the hidden variables in that
HTML page to next HTML page. Here the hidden value is
set based on the type of option selected from 'select'
drpo down box in HTML. To put it in session, i need to
identify the selected option and assign it to java
varialbe. I don't think it's possible to assign a
javascript variable to java variable. Pls help to
solve this problem.
--- Shakeel Ahmad [EMAIL PROTECTED] wrote:
 

Wel this might help...
// You write following two lines in first JSP page.
String name = Java;// This might be your hidden
field.
session.setAttribute(HiddenName, name);
//Then you get the name on next page as follows.
String userName =
(String)session.getAttribute(HiddenName);
The name attribute will be available throught the
session life, unless we
remove it explicitly or restart Tomcat.
We can use it on any page once it is placed
properly.
Best Regards,
S H A K E E L   A H M A D
http://members.fortunecity.com/javaclub/shakeel.htm
Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com
EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 10:37 AM
To: Tomcat Users List
Subject: RE: How to send hidden variables to next
page
Yes. I'm using JSP. Can you pls tell me the syntax
or
guidelines as how to do it.
Thank you.
--- Shakeel Ahmad [EMAIL PROTECTED]
wrote:
   

If you are developing a JSP/Servlet then you can
 

do
   

this by keeping those
variables in session.
Best Regards,
S H A K E E L   A H M A D
 

http://members.fortunecity.com/javaclub/shakeel.htm
   

Voice: 00923002723316
Senior Software Engineer.
NorthStar Technologies. www.globalnorthstar.com
EE(Computer Engineering), UET Lahore, Pakistan.
SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
Brain Bench Certified Java Programmer.
-Original Message-
From: U K Laxmi [mailto:[EMAIL PROTECTED]
Sent: 23 February, 2005 10:31 AM
To: Tomcat Users List
Subject: How to send hidden variables to next page
Sorry if it's not the right place to post this
question. Excuse me.
I've some hidden variables in a web page. I want
 

to
   

send them to next page without using submit
 

button.
   

I
don't know how to do it. More over i don't know
 

how
   

to
access those variables in the next page. Is there
any
option available to do this html or tomcat or
apache?
Thanks!!
--- Matt [EMAIL PROTECTED] wrote:
 

Ah-ha, somehow I changed a line in the
uriworkermap.properties file from
this (some pointless experiment out of past
frustrated delirium):
/jsp-examples/*=ajp13w
...to this:
/jsp-examples/*.jsp
...so changing it back (which is how it was
out-of-the-box after
jk_1.2.8.exe was run) to:
/jsp-examples/*=ajp13w
...fixes it, and I can now access both
   

directories
   

fine (inside and
outside of $CATALINA_HOME/webapps)!!!  YAY!!!
I now get the expected results for:
http://localhost/jsp-examples/ (the webapps/
examples page)
...and for:
http://localhost:8080/jsp-examples/ (the
   

webapps/
   

examples page)
...and for:
http://localhost:8080 (Tomcat home page)
...and for:
http://localhost (IIS home page)
...and for:
http://localhost/JSP/MYwebapps/MYjsp-examples
(the C:\Inetpub\wwwroot\JSP\MYwebapps\ examples
page)
...and the .JSP pages work as expected in both
places!
Now I can add docabses to my heart's content -
*relieved sigh*
SO...the easy answer is a simple, single CONTEXT
addition, but making sure
to overlap the end of the docbase path with
   

the
   

path:
Context path=/JSP
docbase=C:/Inetpub/wwwroot/JSP debug=0
reloadable=true crossContext=false /
As an aside, I got rid of the ...path=
docbase=... CONTEXT, so I
have no idea why you're using that line in your
server.xml file, Wendy?
THANKS, Wendy!!!
-Matt
On Tue, 22 Feb 2005, Matt wrote:
   

OK, we've at least gotten to the point where I
 

can
 

now run the examples
   

from my own directory outside of
 

$CATALINA_HOME/webapps, and by ONLY
   

editing server.xml and uriworkermap.properties
 

slightly, and NOTHING
   

ELSE, which is not only nice, but also what I
 

expected all along!
   

(THANK YOU!THANK YOU!THANK YOU!)*
*HOWEVER, now that I made the changes you
 

recommended, the webapps area
   

now is NOT FOUND when using plain URL's.  I
 

get
   

a
 

(Tomcat-based) directory
   

listing when using the 

FW: challenging JK connector problem: java.net.SocketException

2005-02-23 Thread Patrick . King


-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 bizarness of the problem (works through Tomcat, but not when
going through IIS/JK).  i didn't have time to try out your suggestion
just yet, but i definitely will.

i just wanted to confirm however, because my Tomcat is an old version
4.1.24, did you mean downgrade my current JDK to one that was current
at the time 4.1.24 was current?  (ie. use the JDK of the same time
period?)

 I think it would be best to upgrade your version of tomcat to 5.0+ and to
use
the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on the
operating system Linux Enterprise 3.0.

or did you mean upgrade my JDK to the latest current release which i
believe is 1.5 or something.

i am currently using JDK 1.4.1_02.

best regards,
woodchuck


--- [EMAIL PROTECTED] wrote:

 Hi :
 
 This is most likely an issue with the version of JDK that is deployed
 on
 your machine.
 Try using a newer version of the JDK which is comaptible with the
 version of
 tomcat that is deployed on your machine.
 
   Patrick King
 
 Patrick King
 BSc.(Hon.) Geophysics
 Senior Systems Scientist
 Canada Centre For Remote Sensing
 615 Booth St. Room 650
 Ottawa, Ontario
 K1A0E9
 Phone: 613-947-0463
 E-mail : [EMAIL PROTECTED]
 
 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED]
 Sent: February 22, 2005 2:15 PM
 To: tomcat; struts
 Subject: challenging JK connector problem: java.net.SocketException
 
 
 hihi all,
 
 i have installed the JK connector (setupJK204.exe) with my IIS 5.1
 and
 Tomcat 4.1.24.
 
 everything is working fine, except that i'm noticing in the Tomcat
 console display i see the following exceptions at run-time:
 
 java.net.SocketException: Software caused connection abort: recv
 failed
 at java.net.SocketInputStream.socketRead0(Native Method)
 at
 java.net.SocketInputStream.read(SocketInputStream.java:129)
 at
 java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
 at
 java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
 at
 java.io.BufferedInputStream.read(BufferedInputStream.java:277)
 at
 org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
 at
 org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
 snip.
 
 
 and 
 
 
 
 java.net.SocketException: Connection reset by peer: socket write
 error
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at
 java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at
 java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at
 org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
 at
 org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
 at
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
 at org.apache.coyote.Response.action(Response.java:222)
 at org.apache.coyote.Response.finish(Response.java:343)
 snip
 
 in particular these exceptions are coming up when i use my app's
 search
 functionality
 
 the weird part is that the exceptions only occur when i access my web
 site through IIS (ie. via JK connector).  i *don't* get any
 exceptions
 at all when accessing Tomcat directly by specifying port 8080 in my
 URL.
 
 these exceptions are causing weird/incorrect app behaviour in the
 search functionality as well, so it's not just harmless exception
 logs
 being generated.  if i use my application by connecting to Tomcat
 directly (port 8080), the search functionality works perfectly and
 there's no errors at all.
 
 i have looked at my code and cannot see what i could be doing that
 may
 cause such errors to happen in the JK connector.
 
 has anyone any suggestions on how to go about debugging this?  or has
 come across this before and found a solution?
 
 in my search page, i am using logic:present and logic:empty
 struts
 tags to detect if my collection (of search results) object is null or
 not, and if not, is it an empty collection or not respectively.  is
 this a known bug/issue perhaps with some struts tags being used
 through
 JK connector?  why is connection reset by peer happening?  doesn't
 this mean the request/form being submitted is suddenly cut off?
 
 any help is appreciated.
 
 please and thanks,
 woodchuck
 
 
   
 __ 
 Do you Yahoo!? 
 All your favorites on one personal page - Try My Yahoo!
 http://my.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: 

Where is the compatibility package

2005-02-23 Thread lars.bjerges
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:

http://jakarta.apache.org/site/binindex.cgi

I have tried to locate the download but failed.

Does anybody know where it resides?

Thank you in advance.

Hälsningar

 

Lars Bjerges

Team Verktyg

* FöreningsSparbanken IT

105 34 Stockholm

* +46 (0)8 58 59 43 45

* +46 (0)70 95 27 774

 



Limit stdout.log file size?

2005-02-23 Thread Joe Reger, Jr.
Hi,
 
Is there any way to limit the file size of stdout.log?
 
Thanks,
 
Joe


Re: Where is the compatibility package

2005-02-23 Thread Antony Paul
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 -
http://apache.mirrors.hoobly.com/jakarta/tomcat-5/v5.5.8/bin/jakarta-tomcat-5.5.8-compat.tar.gz

rgds
Antony Paul


On Wed, 23 Feb 2005 14:15:10 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 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:
 
 http://jakarta.apache.org/site/binindex.cgi
 
 I have tried to locate the download but failed.
 
 Does anybody know where it resides?
 
 Thank you in advance.
 
 Hälsningar
 
 Lars Bjerges
 
 Team Verktyg
 
 * FöreningsSparbanken IT
 
 105 34 Stockholm
 
 * +46 (0)8 58 59 43 45
 
 * +46 (0)70 95 27 774
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



(Re)deploying at development cycle

2005-02-23 Thread Ramiro Alba Queipo
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 when changing *.java or *.jsp at the development
cycle?:
 
a) ant deploy (undeploy + deploy) - slow
b) ant install:
   1) ant restart (stop + start)
   2) ant reload
 
I read FAQs carefully and dived into the mailing list archive and
I know about de growing memory when reloading the application until
tomcats send a java.lang.OutOfMemory exception, but:
 
Is there a way of avoiding getting to this situation and not having
to restart tomcat every now and then?.
 
Thanks in advance
 
Regards



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat behind Apache + SSL + htaccess

2005-02-23 Thread Xavier Jeannin
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 this servlet. I want to use the FakeBasicAuth of 
mod_SSL (SSLOptions +FakeBasicAuth). This type of authentication allows 
apache to check whether a certificate (the DN of the certificate) is 
contained in file (the name of this file is contained in .htaccess), to 
let the client access to the URL (in my case a servlet).
I have understood that it can be possible. how can I do it ?
Where must I put my .htaccess file ?

thanks in advance
Best Regards
xJ
--
_
Xavier Jeannin
UREC/CNRS Université P.  M. Curie, Courrier : case 171, 4 place Jussieu 
75252 PARIS CEDEX 05
Tél : 01 44 27 42 59 - Fax : 01 44 27 42 61 - Courriel : 
[EMAIL PROTECTED]


smime.p7s
Description: S/MIME Cryptographic Signature


trying with my first site on Tomcat with IIS

2005-02-23 Thread David IBARRA ROSALES
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 to do  any change in server.xml or uriworkermap.properties every time
that i add a site?


test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---

thanks in advance
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trying with my first site on Tomcat with IIS

2005-02-23 Thread Allistair Crossley
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 settings to configure the JK ISAPI DLL. All 
this can be found readily in the JK documentation or a simple search in google.

Allistair.

 -Original Message-
 From: David IBARRA ROSALES [mailto:[EMAIL PROTECTED]
 Sent: 23 February 2005 14:23
 To: Tomcat Users List
 Subject: trying with my first site on Tomcat with IIS
 
 
 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 to do  any change in server.xml or 
 uriworkermap.properties every time
 that i add a site?
 
 
 test.jsp
 -
 html
 head
 titleFirst JSP page./title
 /head
 body
 %=Hello JSP%
 /body
 /html
 ---
 
 thanks in advance
 David
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trying with my first site on Tomcat with IIS

2005-02-23 Thread Matt
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


On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:

 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 to do  any change in server.xml or uriworkermap.properties every time
 that i add a site?


 test.jsp
 -
 html
 head
 titleFirst JSP page./title
 /head
 body
 %=Hello JSP%
 /body
 /html
 ---

 thanks in advance
 David


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Matthew Kozak
Rutgers University-Camden
[EMAIL PROTECTED]

**
 They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.  -Ben Franklin
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trying with my first site on Tomcat with IIS

2005-02-23 Thread Allistair Crossley
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]
 Sent: 23 February 2005 14:17
 To: Tomcat Users List
 Subject: Re: trying with my first site on Tomcat with IIS
 
 
 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
 
 
 On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
 
  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 to do  any change in server.xml or 
 uriworkermap.properties every time
  that i add a site?
 
 
  test.jsp
  -
  html
  head
  titleFirst JSP page./title
  /head
  body
  %=Hello JSP%
  /body
  /html
  ---
 
  thanks in advance
  David
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 Matthew Kozak
 Rutgers University-Camden
 [EMAIL PROTECTED]
 
 **
 
  They that can give up essential liberty to obtain a little temporary
   safety deserve neither liberty nor safety.  -Ben Franklin
 **
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: trying with my first site on Tomcat with IIS

2005-02-23 Thread Viorel Dragomir
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, February 23, 2005 16:22
Subject: trying with my first site on Tomcat with IIS


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 to do  any change in server.xml or uriworkermap.properties every time
that i add a site?


test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---

thanks in advance
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Getting other Sessions

2005-02-23 Thread Michael Greer
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);

You can get the rest by each sessionId. Take a look at the MBean docs 
on how to make jmx calls. There is a jmxproxy in 5.5 manager app which 
shows all of the mbeans by default, and lets you test your queries. 
Complex, but not hard.

-Michael Greer  
On Feb 22, 2005, at 11:17 PM, Joseph Shraibman wrote:
I want to make an admin page in my application.  I needs to be able to 
get access to all the current Session objects to access their 
attributes.  Is this possible?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: trying with my first site on Tomcat with IIS

2005-02-23 Thread David IBARRA ROSALES
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 11:21 AM
Subject: Re: trying with my first site on Tomcat with IIS


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, February 23, 2005 16:22
Subject: trying with my first site on Tomcat with IIS


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 to do  any change in server.xml or uriworkermap.properties every time
that i add a site?


test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---

thanks in advance
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trying with my first site on Tomcat with IIS

2005-02-23 Thread Matt
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 folder and in there are:
uriworkermap.properties
-AND-
workers.properties.minimal

You *should not* have to touch the second file, and will make all of your
configurations in the first file (at least I have)!  I would imagine the
1.2.8 setup for other systems is similar?  If not, there's more
obfuscation that should be corrected...!

Obviously, getting there with :8080 means he's well-beyond the
installation phase, and if he can get to the examples without expressly
using :8080, then he also has the DLL working already (is this the case,
David)?  I feel his pain on getting any further - the docs are obtuse at
best.

Although elementary for some, the addition of the line I mentioned for
uriworkermap.properties should solve this once the DLL is working and
your web server is configured to use it...

I found out the above in plain English using Google, and am working on
getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
interested, David (offline, or look at old posts).

If you can not get the examples to work and are not using apache, try the
following document (if you try to use one of the links all over the net,
it fails, so you HAVE to go HERE to get this now!):
http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html

Thanks,
-Matt


On Wed, 23 Feb 2005, Allistair Crossley wrote:

 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]
  Sent: 23 February 2005 14:17
  To: Tomcat Users List
  Subject: Re: trying with my first site on Tomcat with IIS
 
 
  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
 
 
  On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
 
   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 to do  any change in server.xml or
  uriworkermap.properties every time
   that i add a site?
  
  
   test.jsp
   -
   html
   head
   titleFirst JSP page./title
   /head
   body
   %=Hello JSP%
   /body
   /html
   ---
  
   thanks in advance
   David
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  Matthew Kozak
  Rutgers University-Camden
  [EMAIL PROTECTED]
 
  **
  
   They that can give up essential liberty to obtain a little temporary
  safety deserve neither liberty nor safety.  -Ben Franklin
  **
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Matthew Kozak
Rutgers University-Camden
[EMAIL PROTECTED]

**
 They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.  -Ben Franklin
**

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 and ssl

2005-02-23 Thread James Sys
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 last name of the process when you created the csr to send to
verisign.  What name did you use  when you ran the keytool to create the
csr to send to verisign ? Did you use your domain name  first name
=mydomain.com   o=xxx ou=xxx state=xxx city= xxx country=us
I hope this  helps.



Christopher W. Hosler
Network Administrator
Ingham County MIS Department
Email  [EMAIL PROTECTED]
As water reflects the face
So a mans heart reflects the man

 [EMAIL PROTECTED] 2/22/2005 3:44:23 PM 

I have set a Tomcat 5.0.28 server with jsdk 1.4.2_04. I had
setup the keystore and imported the received certificate from verisign.
I have configured the Tomcat server to use SSL and it shows the
certificate is valid but it says the name on certificate does not match
the site. I look at the name on the certificate and it is the dsn name
of the server. Is there something I am missing?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: trying with my first site on Tomcat with IIS

2005-02-23 Thread Allistair Crossley
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 [mailto:[EMAIL PROTECTED]
 Sent: 23 February 2005 14:36
 To: Tomcat Users List
 Subject: RE: trying with my first site on Tomcat with IIS
 
 
 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 folder and in there are:
 uriworkermap.properties
 -AND-
 workers.properties.minimal
 
 You *should not* have to touch the second file, and will make 
 all of your
 configurations in the first file (at least I have)!  I would 
 imagine the
 1.2.8 setup for other systems is similar?  If not, there's more
 obfuscation that should be corrected...!
 
 Obviously, getting there with :8080 means he's well-beyond the
 installation phase, and if he can get to the examples without 
 expressly
 using :8080, then he also has the DLL working already (is 
 this the case,
 David)?  I feel his pain on getting any further - the docs 
 are obtuse at
 best.
 
 Although elementary for some, the addition of the line I mentioned for
 uriworkermap.properties should solve this once the DLL is working and
 your web server is configured to use it...
 
 I found out the above in plain English using Google, and am working on
 getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
 interested, David (offline, or look at old posts).
 
 If you can not get the examples to work and are not using 
 apache, try the
 following document (if you try to use one of the links all 
 over the net,
 it fails, so you HAVE to go HERE to get this now!):
 http://web.archive.org/web/20040324133706/http://www.rit.edu/~
 ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
 
 Thanks,
 -Matt
 
 
 On Wed, 23 Feb 2005, Allistair Crossley wrote:
 
  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]
   Sent: 23 February 2005 14:17
   To: Tomcat Users List
   Subject: Re: trying with my first site on Tomcat with IIS
  
  
   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
  
  
   On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
  
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 to do  any change in server.xml or
   uriworkermap.properties every time
that i add a site?
   
   
test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---
   
thanks in advance
David
   
   
   
   
 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   Matthew Kozak
   Rutgers University-Camden
   [EMAIL PROTECTED]
  
   **
   
They that can give up essential liberty to obtain a 
 little temporary
 safety deserve neither liberty nor safety.  -Ben Franklin
   **
   
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 
 
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 Matthew Kozak
 Rutgers University-Camden
 [EMAIL 

Re: trying with my first site on Tomcat with IIS

2005-02-23 Thread David IBARRA ROSALES
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
automatically.

I think need  documentation  about to creat a new website with IIS and ISAPI
on port 80. I 'll read the link and will go on trying.
Regards
David

- Original Message - 
From: Matt [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005 11:36 AM
Subject: RE: trying with my first site on Tomcat with IIS


 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 folder and in there are:
 uriworkermap.properties
 -AND-
 workers.properties.minimal

 You *should not* have to touch the second file, and will make all of your
 configurations in the first file (at least I have)!  I would imagine the
 1.2.8 setup for other systems is similar?  If not, there's more
 obfuscation that should be corrected...!

 Obviously, getting there with :8080 means he's well-beyond the
 installation phase, and if he can get to the examples without expressly
 using :8080, then he also has the DLL working already (is this the case,
 David)?  I feel his pain on getting any further - the docs are obtuse at
 best.

 Although elementary for some, the addition of the line I mentioned for
 uriworkermap.properties should solve this once the DLL is working and
 your web server is configured to use it...

 I found out the above in plain English using Google, and am working on
 getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
 interested, David (offline, or look at old posts).

 If you can not get the examples to work and are not using apache, try the
 following document (if you try to use one of the links all over the net,
 it fails, so you HAVE to go HERE to get this now!):

http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html

 Thanks,
 -Matt


 On Wed, 23 Feb 2005, Allistair Crossley wrote:

  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]
   Sent: 23 February 2005 14:17
   To: Tomcat Users List
   Subject: Re: trying with my first site on Tomcat with IIS
  
  
   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
  
  
   On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
  
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 to do  any change in server.xml or
   uriworkermap.properties every time
that i add a site?
   
   
test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---
   
thanks in advance
David
   
   
   
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   Matthew Kozak
   Rutgers University-Camden
   [EMAIL PROTECTED]
  
   **
   
They that can give up essential liberty to obtain a little temporary
   safety deserve neither liberty nor safety.  -Ben Franklin
   **
   
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
  ---
  QAS Ltd.
  Developers of QuickAddress Software
  a href=http://www.qas.com;www.qas.com/a
  Registered in England: No 2582055
  Registered in Australia: No 082 851 474
  ---
  /FONT
 
 
  

Re: trying with my first site on Tomcat with IIS (2)

2005-02-23 Thread David IBARRA ROSALES
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
worker.ajp13w.port=8009
--
# uriworkermap.properties - IIS
#
/test/*=ajp13w


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005 11:43 AM
Subject: RE: trying with my first site on Tomcat with IIS


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 [mailto:[EMAIL PROTECTED]
 Sent: 23 February 2005 14:36
 To: Tomcat Users List
 Subject: RE: trying with my first site on Tomcat with IIS


 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 folder and in there are:
 uriworkermap.properties
 -AND-
 workers.properties.minimal

 You *should not* have to touch the second file, and will make
 all of your
 configurations in the first file (at least I have)!  I would
 imagine the
 1.2.8 setup for other systems is similar?  If not, there's more
 obfuscation that should be corrected...!

 Obviously, getting there with :8080 means he's well-beyond the
 installation phase, and if he can get to the examples without
 expressly
 using :8080, then he also has the DLL working already (is
 this the case,
 David)?  I feel his pain on getting any further - the docs
 are obtuse at
 best.

 Although elementary for some, the addition of the line I mentioned for
 uriworkermap.properties should solve this once the DLL is working and
 your web server is configured to use it...

 I found out the above in plain English using Google, and am working on
 getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
 interested, David (offline, or look at old posts).

 If you can not get the examples to work and are not using
 apache, try the
 following document (if you try to use one of the links all
 over the net,
 it fails, so you HAVE to go HERE to get this now!):
 http://web.archive.org/web/20040324133706/http://www.rit.edu/~
 ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html

 Thanks,
 -Matt


 On Wed, 23 Feb 2005, Allistair Crossley wrote:

  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]
   Sent: 23 February 2005 14:17
   To: Tomcat Users List
   Subject: Re: trying with my first site on Tomcat with IIS
  
  
   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
  
  
   On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
  
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 to do  any change in server.xml or
   uriworkermap.properties every time
that i add a site?
   
   
test.jsp
-
html
head
titleFirst JSP page./title
/head
body
%=Hello JSP%
/body
/html
---
   
thanks in advance
David
   
   
   
  
 -
To unsubscribe, e-mail:
 [EMAIL PROTECTED]
For additional commands, e-mail:
 [EMAIL PROTECTED]
   
   
  
  
   Matthew Kozak
   Rutgers University-Camden
   [EMAIL PROTECTED]
  
   **
   
They that can give up essential liberty to obtain a
 little temporary
   safety deserve neither liberty nor safety.  -Ben Franklin
   **
   
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  

RE: Re: trying with my first site on Tomcat with IIS (2)

2005-02-23 Thread Allistair Crossley
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
 To: Tomcat Users List
 Subject: Re: trying with my first site on Tomcat with IIS (2)
 
 
 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
 worker.ajp13w.port=8009
 --
 # uriworkermap.properties - IIS
 #
 /test/*=ajp13w
 
 
 - Original Message - 
 From: Allistair Crossley [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, February 23, 2005 11:43 AM
 Subject: RE: trying with my first site on Tomcat with IIS
 
 
 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 [mailto:[EMAIL PROTECTED]
  Sent: 23 February 2005 14:36
  To: Tomcat Users List
  Subject: RE: trying with my first site on Tomcat with IIS
 
 
  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 folder and in 
 there are:
  uriworkermap.properties
  -AND-
  workers.properties.minimal
 
  You *should not* have to touch the second file, and will make
  all of your
  configurations in the first file (at least I have)!  I would
  imagine the
  1.2.8 setup for other systems is similar?  If not, there's more
  obfuscation that should be corrected...!
 
  Obviously, getting there with :8080 means he's well-beyond the
  installation phase, and if he can get to the examples without
  expressly
  using :8080, then he also has the DLL working already (is
  this the case,
  David)?  I feel his pain on getting any further - the docs
  are obtuse at
  best.
 
  Although elementary for some, the addition of the line I 
 mentioned for
  uriworkermap.properties should solve this once the DLL is 
 working and
  your web server is configured to use it...
 
  I found out the above in plain English using Google, and am 
 working on
  getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
  interested, David (offline, or look at old posts).
 
  If you can not get the examples to work and are not using
  apache, try the
  following document (if you try to use one of the links all
  over the net,
  it fails, so you HAVE to go HERE to get this now!):
  http://web.archive.org/web/20040324133706/http://www.rit.edu/~
  ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
 
  Thanks,
  -Matt
 
 
  On Wed, 23 Feb 2005, Allistair Crossley wrote:
 
   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]
Sent: 23 February 2005 14:17
To: Tomcat Users List
Subject: Re: trying with my first site on Tomcat with IIS
   
   
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
   
   
On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
   
 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 to do  any change in server.xml or
uriworkermap.properties every time
 that i add a site?


 test.jsp
 -
 html
 head
 titleFirst JSP page./title
 /head
 body
 %=Hello JSP%
 /body
 /html
 ---

 thanks in advance
 David



   
  
 -
 To unsubscribe, e-mail:
  [EMAIL PROTECTED]
 For additional commands, e-mail:
  [EMAIL PROTECTED]

Re: Re: trying with my first site on Tomcat with IIS 5.0 (3)

2005-02-23 Thread David IBARRA ROSALES
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 already know , I 'd have use IIS 6.0, but i don'want to do more MS
upgrading , o maybe Linux and Apache :o , but that will have time, menwhile
I  change JSP and PHP for ASP.

Regards
David


- Original Message - 
From: Allistair Crossley [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005 11:59 AM
Subject: RE: Re: trying with my first site on Tomcat with IIS (2)


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
 To: Tomcat Users List
 Subject: Re: trying with my first site on Tomcat with IIS (2)


 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
 worker.ajp13w.port=8009
 --
 # uriworkermap.properties - IIS
 #
 /test/*=ajp13w


 - Original Message - 
 From: Allistair Crossley [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, February 23, 2005 11:43 AM
 Subject: RE: trying with my first site on Tomcat with IIS


 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 [mailto:[EMAIL PROTECTED]
  Sent: 23 February 2005 14:36
  To: Tomcat Users List
  Subject: RE: trying with my first site on Tomcat with IIS
 
 
  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 folder and in
 there are:
  uriworkermap.properties
  -AND-
  workers.properties.minimal
 
  You *should not* have to touch the second file, and will make
  all of your
  configurations in the first file (at least I have)!  I would
  imagine the
  1.2.8 setup for other systems is similar?  If not, there's more
  obfuscation that should be corrected...!
 
  Obviously, getting there with :8080 means he's well-beyond the
  installation phase, and if he can get to the examples without
  expressly
  using :8080, then he also has the DLL working already (is
  this the case,
  David)?  I feel his pain on getting any further - the docs
  are obtuse at
  best.
 
  Although elementary for some, the addition of the line I
 mentioned for
  uriworkermap.properties should solve this once the DLL is
 working and
  your web server is configured to use it...
 
  I found out the above in plain English using Google, and am
 working on
  getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
  interested, David (offline, or look at old posts).
 
  If you can not get the examples to work and are not using
  apache, try the
  following document (if you try to use one of the links all
  over the net,
  it fails, so you HAVE to go HERE to get this now!):
  http://web.archive.org/web/20040324133706/http://www.rit.edu/~
  ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
 
  Thanks,
  -Matt
 
 
  On Wed, 23 Feb 2005, Allistair Crossley wrote:
 
   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]
Sent: 23 February 2005 14:17
To: Tomcat Users List
Subject: Re: trying with my first site on Tomcat with IIS
   
   
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
   
   
On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
   
 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  

RE: trying with my first site on Tomcat with IIS

2005-02-23 Thread Matt
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.

 http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html

  -Original Message-
  From: Matt [mailto:[EMAIL PROTECTED]
  Sent: 23 February 2005 14:36
  To: Tomcat Users List
  Subject: RE: trying with my first site on Tomcat with IIS
 
 
  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 folder and in there are:
  uriworkermap.properties
  -AND-
  workers.properties.minimal
 
  You *should not* have to touch the second file, and will make
  all of your
  configurations in the first file (at least I have)!  I would
  imagine the
  1.2.8 setup for other systems is similar?  If not, there's more
  obfuscation that should be corrected...!
 
  Obviously, getting there with :8080 means he's well-beyond the
  installation phase, and if he can get to the examples without
  expressly
  using :8080, then he also has the DLL working already (is
  this the case,
  David)?  I feel his pain on getting any further - the docs
  are obtuse at
  best.
 
  Although elementary for some, the addition of the line I mentioned for
  uriworkermap.properties should solve this once the DLL is working and
  your web server is configured to use it...
 
  I found out the above in plain English using Google, and am working on
  getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
  interested, David (offline, or look at old posts).
 
  If you can not get the examples to work and are not using
  apache, try the
  following document (if you try to use one of the links all
  over the net,
  it fails, so you HAVE to go HERE to get this now!):
  http://web.archive.org/web/20040324133706/http://www.rit.edu/~
  ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
 
  Thanks,
  -Matt
 
 
  On Wed, 23 Feb 2005, Allistair Crossley wrote:
 
   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]
Sent: 23 February 2005 14:17
To: Tomcat Users List
Subject: Re: trying with my first site on Tomcat with IIS
   
   
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
   
   
On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:
   
 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 to do  any change in server.xml or
uriworkermap.properties every time
 that i add a site?


 test.jsp
 -
 html
 head
 titleFirst JSP page./title
 /head
 body
 %=Hello JSP%
 /body
 /html
 ---

 thanks in advance
 David



   
  -
 To unsubscribe, e-mail:
  [EMAIL PROTECTED]
 For additional commands, e-mail:
  [EMAIL PROTECTED]


   
   
Matthew Kozak
Rutgers University-Camden
[EMAIL PROTECTED]
   
**

 They that can give up essential liberty to obtain a
  little temporary
safety deserve neither liberty nor safety.  -Ben Franklin
**

   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  
   FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
   ---
   QAS Ltd.
   Developers of QuickAddress Software
   a href=http://www.qas.com;www.qas.com/a
   Registered in England: No 2582055
   Registered in Australia: No 082 851 474
   

Adding -Dfile.encoding=ISO-8859-1 to where in tomcat.sh?

2005-02-23 Thread Mieke Banderas

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
echo Starting with a SecurityManager
$JAVACMD $TOMCAT_OPTS -Djava.security.manager -
Djava.security.policy==${TOMCAT_HOME}/conf/tomcat.policy -
Dtomcat.home=${TOMCAT_HOME}  org.apache.tomcat.startup.Tomcat $@ 
  else
  $JAVACMD $TOMCAT_OPTS -Dtomcat.home=${TOMCAT_HOME} 
org.apache.tomcat.startup.Tomcat $@ 
  fi
#   $JAVACMD org.apache.tomcat.shell.Startup $@ 
/quote


($JAVACMD= $JAVA_HOME/bin/java and $TOMCAT_OPTS seem to be )

I tried adding my line at several positions in the else part, but get
errors like XmlMapper: Can't find resource for entity:... Isn't
there anyone that can give advice on the subject? I use Tomcat 3.2.4
(Yes, I know this is old, but it's what I'm stuck with for now).



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: trying with my first site on Tomcat with IIS 5.0 (3)

2005-02-23 Thread Matt
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 refer to below) is what I used to
configure IIS 5 on Win2K myself.  Again, don't be confused by what the
jk_1.2.8.exe installer has already done for you, just move on to the next
step(s).
In IIS 5, you will still have to:
1) Add the ISAPI filter (clear in the instructions)
2) Add Application Configuration for .jsp w via the 1.2.8 DLL (not as
clear, if at all in the instructions)

It seems some docs expect that Step 1 and Step 2 are the same thing, but
they're not.  If you're having trouble with the two steps above, you may
need to investigate IIS configuration docs/instructions.  Let me know, but
I'm not in front of this system again until late tonight to try to give
you any more epxlicit step-by-step instructions.

Thanks!
-Matt


On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:

 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 already know , I 'd have use IIS 6.0, but i don'want to do more MS
 upgrading , o maybe Linux and Apache :o , but that will have time, menwhile
 I  change JSP and PHP for ASP.

 Regards
 David


 - Original Message -
 From: Allistair Crossley [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, February 23, 2005 11:59 AM
 Subject: RE: Re: trying with my first site on Tomcat with IIS (2)


 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
  To: Tomcat Users List
  Subject: Re: trying with my first site on Tomcat with IIS (2)
 
 
  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
  worker.ajp13w.port=8009
  --
  # uriworkermap.properties - IIS
  #
  /test/*=ajp13w
 
 
  - Original Message -
  From: Allistair Crossley [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Sent: Wednesday, February 23, 2005 11:43 AM
  Subject: RE: trying with my first site on Tomcat with IIS
 
 
  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 [mailto:[EMAIL PROTECTED]
   Sent: 23 February 2005 14:36
   To: Tomcat Users List
   Subject: RE: trying with my first site on Tomcat with IIS
  
  
   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 folder and in
  there are:
   uriworkermap.properties
   -AND-
   workers.properties.minimal
  
   You *should not* have to touch the second file, and will make
   all of your
   configurations in the first file (at least I have)!  I would
   imagine the
   1.2.8 setup for other systems is similar?  If not, there's more
   obfuscation that should be corrected...!
  
   Obviously, getting there with :8080 means he's well-beyond the
   installation phase, and if he can get to the examples without
   expressly
   using :8080, then he also has the DLL working already (is
   this the case,
   David)?  I feel his pain on getting any further - the docs
   are obtuse at
   best.
  
   Although elementary for some, the addition of the line I
  mentioned for
   uriworkermap.properties should solve this once the DLL is
  working and
   your web server is configured to use it...
  
   I found out the above in plain English using Google, and am
  working on
   getting an app to work OUTSIDE of $CATALINA_HOME/webapps if you're
   interested, David (offline, or look at old posts).
  
   If you can not get the examples to work and are not using
   apache, try the
   following document (if you try to use one of the links all
   over the net,
   it fails, so you HAVE to go HERE to get this now!):
   

Tomcat Cluster

2005-02-23 Thread Randall Svancara
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 mod_jk set up on a third server.  Multicast is
enabled!!!  
When I start up each tomcat instance I receive the following message in
the catalina.out file.

--
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.tcp.SimpleTcpCluster
start
INFO: Cluster is about to start
Feb 23, 2005 9:21:49 AM
org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket
INFO: Setting multihome multicast interface to:/10.111.22.163
Feb 23, 2005 9:21:49 AM org.apache.catalina.cluster.mcast.McastService
start
INFO: Sleeping for 2000 secs to establish cluster membership
Feb 23, 2005 9:21:51 AM
org.apache.catalina.cluster.deploy.FarmWarDeployer start
INFO: Cluster FarmWarDeployer started.
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Starting clustering manager...:/testapp
Feb 23, 2005 9:21:51 AM org.apache.catalina.cluster.session.DeltaManager
start
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
-

The important thing to note here is that in the last line, I see 
INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.
At first I was thinking that multicast was not working properly.
However, I was researching the
Tomcat mailing list and found another thread discussing the same issue.
I tried to use the tool,
tomcat-replication.jar located on the CVS for tomcat.  I can see the
multicast sessions being generated between
both servers using this tool.  I also started up ethereal, the packet
sniffer.  I noticed that both servers are generating multicast packets.

However after careful analysis of the packet information, I noticed that
my servers were looking for 127.0.0.1/4001 for the receiver port.
So I set the tcpListenAddress from auto to 10.111.22.163  This
seemed to fix the problem with the multicast packets sending out
the incorrect listener addresses.  However, I am still getting the same
error...

INFO: Manager[/testapp], skipping state transfer. No members active in
cluster group.

So here are my questions:
1. Is this really an error, or is session replication working and I am
not testing it properly?  

2.What is the proper way to test that session replication is working
properly?  Can anyone provide me with code that works.  I am currently
using a
bean that I declare with jsp:usebean scope=session.Is this
wrong, should I use request.getAttribute(),
request.setAttribute()instead.

3.Can session replication replicate things like a class that I implement
as java.io.serializable?


Thanks in advance,

Randall



Cluster configuration from server.xml:

Cluster
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
 
managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true
 notifyListenersOnReplication=true

Membership
 
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=224.0.0.5
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
mcastBindAddress=10.111.22.163/

Receiver
 
className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=10.111.22.163
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender
 
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled
ackTimeout=15000/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;
/

Deployer
className=org.apache.catalina.cluster.deploy.FarmWarDeployer
  tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: challenging JK connector problem: java.net.SocketException

2005-02-23 Thread Woodchuck
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 your JK connector?  can you show me the contents of
your workers2.properties file?

here is my workers2.properties:

#Look at 
#http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html

#for parameter description 

[shm:] 
info=Scoreboard. Required for reconfiguration and status with
multiprocess servers 
file=C:\jakarta-tomcat-5.0.25\temp\jk2.shm 
size=1048576 

[channel.socket:localhost:8009] 
info=Ajp13 forwarding over socket 
tomcatId=localhost:8009 

# Map webapps to the Web server uri space 
[uri:/jsp-examples/*]
[uri:/myapp/*]
[uri:/servlets-examples/*]


maybe there are some differences between my workers file and yours?  at
this point i'll try anything :)

but since you're on unix, your JK connector is most likely not using
isapi_redirector2.dll.  so maybe there's implementation differences
between the unix JK and windows JK...

thanks in advance,
woodchuck


--- [EMAIL PROTECTED] wrote:

 
 
 -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 bizarness of the problem (works through Tomcat, but not when
 going through IIS/JK).  i didn't have time to try out your suggestion
 just yet, but i definitely will.
 
 i just wanted to confirm however, because my Tomcat is an old version
 4.1.24, did you mean downgrade my current JDK to one that was current
 at the time 4.1.24 was current?  (ie. use the JDK of the same time
 period?)
 
  I think it would be best to upgrade your version of tomcat to 5.0+
 and to
 use
 the recommended jdk. I am using tomcat 5.0.28 with jdk 1.4.2_07 on
 the
 operating system Linux Enterprise 3.0.
 
 or did you mean upgrade my JDK to the latest current release which i
 believe is 1.5 or something.
 
 i am currently using JDK 1.4.1_02.
 
 best regards,
 woodchuck
 
 
 --- [EMAIL PROTECTED] wrote:
 
  Hi :
  
  This is most likely an issue with the version of JDK that is
 deployed
  on
  your machine.
  Try using a newer version of the JDK which is comaptible with the
  version of
  tomcat that is deployed on your machine.
  
  Patrick King
  
  Patrick King
  BSc.(Hon.) Geophysics
  Senior Systems Scientist
  Canada Centre For Remote Sensing
  615 Booth St. Room 650
  Ottawa, Ontario
  K1A0E9
  Phone: 613-947-0463
  E-mail : [EMAIL PROTECTED]
  
  -Original Message-
  From: Woodchuck [mailto:[EMAIL PROTECTED]
  Sent: February 22, 2005 2:15 PM
  To: tomcat; struts
  Subject: challenging JK connector problem: java.net.SocketException
  
  
  hihi all,
  
  i have installed the JK connector (setupJK204.exe) with my IIS 5.1
  and
  Tomcat 4.1.24.
  
  everything is working fine, except that i'm noticing in the Tomcat
  console display i see the following exceptions at run-time:
  
  java.net.SocketException: Software caused connection abort: recv
  failed
  at java.net.SocketInputStream.socketRead0(Native Method)
  at
  java.net.SocketInputStream.read(SocketInputStream.java:129)
  at
  java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
  at
  java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
  at
  java.io.BufferedInputStream.read(BufferedInputStream.java:277)
  at
  org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:498)
  at
  org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:436)
  snip.
  
  
  and 
  
  
  
  java.net.SocketException: Connection reset by peer: socket write
  error
  at java.net.SocketOutputStream.socketWrite0(Native Method)
  at
  java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  at
  java.net.SocketOutputStream.write(SocketOutputStream.java:136)
  at
  org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
  at
  org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
  at
 
 org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
  at org.apache.coyote.Response.action(Response.java:222)
  at org.apache.coyote.Response.finish(Response.java:343)
  snip
  
  in particular these exceptions are coming up when i use my app's
  search
  functionality
  
  the weird part is that the exceptions only occur when i access my
 web
  site through IIS (ie. via JK connector).  i *don't* get any
  exceptions
  at all when accessing Tomcat directly by specifying port 8080 in my
  URL.
  
  these exceptions are causing weird/incorrect app behaviour in the
  search functionality as 

Help Needed

2005-02-23 Thread Edmon Begoli
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 side 
effect of something else - not sure.

Could this be related to use of -el tlds, and inability of Jasper2 to 
understand -el tlds. I did noticed that It fails compiling jsps that 
have -el
jsp tags in it.

Any help is appreciated.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to print to web page instead of catalina.out

2005-02-23 Thread Jin Wu
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:
 Hi,
 
 It seems that System.out.printlin(...) prints to catalina.out. Is there a 
 way I can print to web page?
 
 Thanks,
 James
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: how to print to web page instead of catalina.out

2005-02-23 Thread Viorel Dragomir
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 
Sent: Wednesday, February 23, 2005 20:38
Subject: Re: how to print to web page instead of catalina.out


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:
 Hi,
 
 It seems that System.out.printlin(...) prints to catalina.out. Is there a 
 way I can print to web page?
 
 Thanks,
 James
 
 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

Re: how to print to web page instead of catalina.out

2005-02-23 Thread Eric J. Pastoor
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 Message - 
From: Jin Wu [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Antony Paul 
[EMAIL PROTECTED]
Sent: Wednesday, February 23, 2005 1:38 PM
Subject: Re: how to print to web page instead of catalina.out


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:
Hi,
It seems that System.out.printlin(...) prints to catalina.out. Is there 
a way I can print to web page?

Thanks,
James
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


how to harden tomcat?

2005-02-23 Thread Patrick Lacson
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]



RE: how to print to web page instead of catalina.out

2005-02-23 Thread Daxin Zuo
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 catalina.out


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:
 Hi,

 It seems that System.out.printlin(...) prints to catalina.out. Is there
a way I can print to web page?

 Thanks,
 James

 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to harden tomcat?

2005-02-23 Thread Patrick Lacson
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

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



filter question

2005-02-23 Thread Scott Purcell
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 know which environment the page came from when debugging, etc.
 
I figured I could use a 'filter' and have each page insert the IP into itself 
in a hidden field. I am unable to achieve my goal and could use a hand if 
anyone has experience with this. Is this possible, or will I have to write into 
a header and then edit each jsp page to show the value?
 
 
 
Here is what I have, but it does not print anything on pages.
 
web.xml
filter
   filter-nameHelloWorld/filter-name
   filter-classchapter18.HelloWorldFilter/filter-class
  /filter
 
  filter-mapping
   filter-nameHelloWorld/filter-name
   url-pattern/*.jsp/url-pattern
  /filter-mapping
 
And I have the servlet code from SCWCD book
package chapter18;
 
import java.io.*;
import javax.servlet.*;
 

public class HelloWorldFilter
implements Filter
{
 
public void destroy()
{
}
 
public void doFilter(ServletRequest servletrequest, ServletResponse 
servletresponse, FilterChain filterchain)
throws ServletException, IOException
{
PrintWriter printwriter = servletresponse.getWriter();
printwriter.println();
}
 
public void init(FilterConfig filterconfig)
{
filterConfig = filterconfig;
System.out.println(Chapter 18: HelloWorldFilter initialized);
}
 
public HelloWorldFilter()
{
}
 
private FilterConfig filterConfig;
}
 
 
Thanks,
Scott


JDBCStore JTDS

2005-02-23 Thread Randall Svancara
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

className=org.apache.catalina.session.PersistentManager
Store className=org.apache.catalina.session.JDBCStore

connectionURL=jdbc:jtds:sqlserver://10.113.2.60/propsys;user=webuser;pa
ssword=password
driverName=net.sourceforge.jtds.jdbc.Driver
sessionIdCol=session_id
sessionValidCol=valid_session
sessionMaxInactiveCol=max_inactive
sessionLastAccessedCol=last_access
sessionTable=tomcat_sessions
sessionAppCol=app_context
sessionDataCol=session_data /
/Manager



I recieve this error when trying to use the driver/ConnectionURL to
connect to the database.  

Feb 23, 2005 7:52:35 AM org.apache.catalina.session.JDBCStore
getConnection
SEVERE: A SQL exception occurred java.sql.SQLException: Single-Sign-On
is only supported on Windows. Please specify a user name.

Any help/advice/hints would be appreciated.  Of course, my platform is
Linux and single sign on is not what I want anyway.

Randall





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to harden tomcat?

2005-02-23 Thread Peter Johnson
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 Tomcat as a specific user and tune the filesystem 
parameters to only allow access to the resources it needs (standard 
approach for every app Java or not). Now focus all your attention on the 
application code (not Tomcat but the webapp) make sure all database 
interactions are escaped properly etc etc etc

One thing to look out for would be the use of JNI i.e. native calls. I'm 
not sure if there is a way of preventing someone from packaging a .so in 
a WAR and then loading it in to the app via code to bypass the lack of 
LD_LIBRARY_PATH (on *nix).

The authentication / authorisation stuff (e.g. realms) is all to do with 
access to webapps.

If you come across anything else I would be interested to know about it, 
especially if it is to do with securing Java in general.

PJ
Patrick Lacson wrote:
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
   


 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Arabic encoding

2005-02-23 Thread Benson Margulies
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 additional commands, e-mail: [EMAIL PROTECTED]



Re: filter question

2005-02-23 Thread Peter Davison
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 your call to the
printwriter.println() method.

For example: your doFilter method could have something like:

request.setAttribute(IPAddress, getIPAddress());

You'll have to write the getIPAddress() method. :-)

In your jsp, you could pull the stored value out of the request and display it
in the page:

IP Address: %= request.getAttribute(IPAddress) %


Hope that helps...

Regards,
Pete.

Quoting Scott Purcell [EMAIL PROTECTED]:

 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 know which environment the page came from when debugging, etc.
  
 I figured I could use a 'filter' and have each page insert the IP into itself
 in a hidden field. I am unable to achieve my goal and could use a hand if
 anyone has experience with this. Is this possible, or will I have to write
 into a header and then edit each jsp page to show the value?
  
  
  
 Here is what I have, but it does not print anything on pages.
  
 web.xml
 filter
filter-nameHelloWorld/filter-name
filter-classchapter18.HelloWorldFilter/filter-class
   /filter
  
   filter-mapping
filter-nameHelloWorld/filter-name
url-pattern/*.jsp/url-pattern
   /filter-mapping
  
 And I have the servlet code from SCWCD book
 package chapter18;
  
 import java.io.*;
 import javax.servlet.*;
  
 
 public class HelloWorldFilter
 implements Filter
 {
  
 public void destroy()
 {
 }
  
 public void doFilter(ServletRequest servletrequest, ServletResponse
 servletresponse, FilterChain filterchain)
 throws ServletException, IOException
 {
 PrintWriter printwriter = servletresponse.getWriter();
 printwriter.println();
 }
  
 public void init(FilterConfig filterconfig)
 {
 filterConfig = filterconfig;
 System.out.println(Chapter 18: HelloWorldFilter initialized);
 }
  
 public HelloWorldFilter()
 {
 }
  
 private FilterConfig filterConfig;
 }
  
  
 Thanks,
 Scott
 


-- 
Peter Davison _/_/_/   _/_/_/   _/_/_/
e: [EMAIL PROTECTED] _/   _/  _/   _/  _/   _/
w: http://rpdavison.ca  _/_/_/   _/_/_/   _/   _/
c: 647 883 6486_/  _/   _/   _/   _/
h: 416 699 2964   _/   _/  _/   _/_/_/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Throughput and scalability

2005-02-23 Thread Ross Poppel
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) if you want to get a specific throughput (x number
of messages per second).  Is there any guidelines anyone can recommend?

---
Ross Poppel - [EMAIL PROTECTED]
Solutions Architect, PORTAL Software
Cell:  (609) 744-2050
EFax:  (617) 344-2585
SMS:   [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Throughput and scalability

2005-02-23 Thread Larry Meadors
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 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) if you want to get a specific throughput (x number
 of messages per second).  Is there any guidelines anyone can recommend?
 
 ---
 Ross Poppel - [EMAIL PROTECTED]
 Solutions Architect, PORTAL Software
 Cell:  (609) 744-2050
 EFax:  (617) 344-2585
 SMS:   [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Throughput and scalability

2005-02-23 Thread Robert F. Hall
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.  It sounds like you should
profile the app at a range of loads, identify bottlenecks, and
design/specify accordingly.
-Robert
Larry Meadors wrote:
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 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) if you want to get a specific throughput (x number
of messages per second).  Is there any guidelines anyone can recommend?
---
Ross Poppel - [EMAIL PROTECTED]
Solutions Architect, PORTAL Software
Cell:  (609) 744-2050
EFax:  (617) 344-2585
SMS:   [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



RE: how to print to web page instead of catalina.out

2005-02-23 Thread Jin Wu
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 Users List; Antony Paul
Subject: Re: how to print to web page instead of catalina.out


I tried out.print(). The complation failed. The error is:

cannot resolve symbol
symbol : variable out

Thanks
Jin

Antony Paul 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:
 Hi,

 It seems that System.out.printlin(...) prints to catalina.out. Is there
a way I can print to web page?

 Thanks,
 James

 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

RE: Re: trying with my first site on Tomcat with IIS 5.0 (3)

2005-02-23 Thread Aris Javier
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 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24, 2005 12:07 AM
To: Tomcat Users List
Subject: Re: Re: trying with my first site on Tomcat with IIS 5.0 (3)

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 refer to below) is what I used to
configure IIS 5 on Win2K myself.  Again, don't be confused by what the
jk_1.2.8.exe installer has already done for you, just move on to the
next step(s).
In IIS 5, you will still have to:
1) Add the ISAPI filter (clear in the instructions)
2) Add Application Configuration for .jsp w via the 1.2.8 DLL (not as
clear, if at all in the instructions)

It seems some docs expect that Step 1 and Step 2 are the same thing, but
they're not.  If you're having trouble with the two steps above, you may
need to investigate IIS configuration docs/instructions.  Let me know,
but I'm not in front of this system again until late tonight to try to
give you any more epxlicit step-by-step instructions.

Thanks!
-Matt


On Wed, 23 Feb 2005, David IBARRA ROSALES wrote:

 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 already know , I 'd have use IIS 6.0, but i don'want to do more MS 
 upgrading , o maybe Linux and Apache :o , but that will have time, 
 menwhile I  change JSP and PHP for ASP.

 Regards
 David


 - Original Message -
 From: Allistair Crossley [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, February 23, 2005 11:59 AM
 Subject: RE: Re: trying with my first site on Tomcat with IIS (2)


 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
  To: Tomcat Users List
  Subject: Re: trying with my first site on Tomcat with IIS (2)
 
 
  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
  worker.ajp13w.port=8009
  --
  # uriworkermap.properties - IIS
  #
  /test/*=ajp13w
 
 
  - Original Message -
  From: Allistair Crossley [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Sent: Wednesday, February 23, 2005 11:43 AM
  Subject: RE: trying with my first site on Tomcat with IIS
 
 
  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 [mailto:[EMAIL PROTECTED]
   Sent: 23 February 2005 14:36
   To: Tomcat Users List
   Subject: RE: trying with my first site on Tomcat with IIS
  
  
   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 folder

   and in
  there are:
   uriworkermap.properties
   -AND-
   workers.properties.minimal
  
   You *should not* have to touch the second file, and will make all 
   of your configurations in the first file (at least I have)!  I 
   would imagine the
   1.2.8 setup for other systems is similar?  If not, there's more 
   obfuscation that should be corrected...!
  
   Obviously, getting there with :8080 means he's well-beyond the 
   installation phase, and if he can get to the examples without 
   expressly using :8080, then he also has the DLL working already 
   (is this the case, David)?  I feel his pain on getting any further

   - the docs are obtuse at best.
  
   Although elementary for some, the addition of the line I
  mentioned for
   uriworkermap.properties should solve this once the DLL is
  working and
   your web server is configured to use 

Fwd: deployment with a different context than war name - tomcat 5.5.7

2005-02-23 Thread Chad Woolley
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
 Subject: Re: deployment with a different context than war name - tomcat 5.5.7
 I would suspect your stuck on this one.  I think I remember a thread
 here back in the fall that essentially said the path attribute to
 Context/ is ignored in TC 5.5.7.  Any of the developers care to
 confirm that??

 --David

 Chad Woolley wrote:

 Hi,
 
 Can anyone point me to a working example of of using a context xml
 fragment file to deploy an war at a different context than the war
 name?  In other words, I don't want to define it in the global config
 file.
 
 I've read all the docs I can find on this, and it still doesn't work.
 I'm using the manager app to deploy, and it always says invalid
 context.
 
 Thanks,
 Chad Woolley

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cluster: Is session's lastAccessedTime got replicated?

2005-02-23 Thread Joseph Lam
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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: filter question

2005-02-23 Thread Andre Van Klaveren
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).

To have this work you need to wrap the original HttpServletResponse
object with your own.  You do this by writing your own object that
extends the HttpServletResponse interface.  This custom response
object is then passed to the doFilter() method of your filter class. 
Your custom HttpServletResponse object needs to also implement it's
own output stream so that you can capture any output that any
downstream code adds to the response.  Once the doFilter() method
returns from the stack you can modify the output in your custom
object's output buffer any way you want.  Then you just send the
contents of that buffer to the original output stream.

This probably sounds pretty complicated.  It's late (for me) and I'm
tired.  Sorry.  Try doing some research on the
HttpServletResponseWrapper class.  It's a convenience class that
already implements the HttpServletResponse interface and implements
the methods of that interface (actually it just delegates the calls to
the underlying response object).  All you need to do is extend this
class and override the methods you need to do any custom work.  In
your case you'd extend the getOutputStream() method and return your
code's version of the output stream.

To give you an idea of how to do it, do a Google on Servlet filters
(try compression filters).  Somebody out there has probably written an
article and/or posted their code.  Your code would be similar in
nature.

Good luck!

Virtually,
Andre Van Klaveren
SCP


On Wed, 23 Feb 2005 17:06:06 -0500, Peter Davison [EMAIL PROTECTED] wrote:
 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 your call to the
 printwriter.println() method.
 
 For example: your doFilter method could have something like:
 
 request.setAttribute(IPAddress, getIPAddress());
 
 You'll have to write the getIPAddress() method. :-)
 
 In your jsp, you could pull the stored value out of the request and display it
 in the page:
 
 IP Address: %= request.getAttribute(IPAddress) %
 
 Hope that helps...
 
 Regards,
 Pete.
 
 Quoting Scott Purcell [EMAIL PROTECTED]:
 
  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 know which environment the page came from when debugging, etc.
 
  I figured I could use a 'filter' and have each page insert the IP into 
  itself
  in a hidden field. I am unable to achieve my goal and could use a hand if
  anyone has experience with this. Is this possible, or will I have to write
  into a header and then edit each jsp page to show the value?
 
 
 
  Here is what I have, but it does not print anything on pages.
 
  web.xml
  filter
 filter-nameHelloWorld/filter-name
 filter-classchapter18.HelloWorldFilter/filter-class
/filter
 
filter-mapping
 filter-nameHelloWorld/filter-name
 url-pattern/*.jsp/url-pattern
/filter-mapping
 
  And I have the servlet code from SCWCD book
  package chapter18;
 
  import java.io.*;
  import javax.servlet.*;
 
 
  public class HelloWorldFilter
  implements Filter
  {
 
  public void destroy()
  {
  }
 
  public void doFilter(ServletRequest servletrequest, ServletResponse
  servletresponse, FilterChain filterchain)
  throws ServletException, IOException
  {
  PrintWriter printwriter = servletresponse.getWriter();
  printwriter.println();
  }
 
  public void init(FilterConfig filterconfig)
  {
  filterConfig = filterconfig;
  System.out.println(Chapter 18: HelloWorldFilter initialized);
  }
 
  public HelloWorldFilter()
  {
  }
 
  private FilterConfig filterConfig;
  }
 
 
  Thanks,
  Scott
 
 
 --
 Peter Davison _/_/_/   _/_/_/   _/_/_/
 e: [EMAIL PROTECTED] _/   _/  _/   _/  _/   _/
 w: http://rpdavison.ca  _/_/_/   _/_/_/   _/   _/
 c: 647 883 6486_/  _/   _/   _/   _/
 h: 416 699 2964   _/   _/  _/   _/_/_/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional 

Re: XML Parsing only on localhost but not remotely

2005-02-23 Thread Parsons Technical Services
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 - 
From: Jan Peters-Anders [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, February 23, 2005 5:01 AM
Subject: XML Parsing only on localhost but not remotely


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 
Browser
shows:

8--
WFS_Capabilities version=1.0.0
xsi:schemaLocation=http://www.opengis.net/wfs
http://systemsresearch.ac.at:8080/geoserver/data/capabilities/wfs/1.0.0/WFS-capabilities.xsd;
-
Service
NameMy GeoServer WFS/Name
TitleMy GeoServer WFS/Title
-
Abstract
This is a description of your Web Feature Server.
The GeoServer is a full transactional Web Feature Server, you may wish to
limit
GeoServer to a Basic service level to prevent modificaiton of your
geographic
data.
/Abstract
KeywordsWFS, WMS,
GEOSERVER/Keywords
OnlineResourcehttp://geoserver.sourceforge.net/html/index.php/OnlineResource
FeesNONE/Fees
AccessConstraintsNONE/AccessConstraints
/Service
-
Capability
-
Request
-
GetCapabilities
-
DCPType
-
HTTP
Get
onlineResource=http://systemsresearch.ac.at:8080/geoserver/wfs/GetCapabilities?/
/HTTP
/DCPType
-
DCPType
-
HTTP
Post
onlineResource=http://systemsresearch.ac.at:8080/geoserver/wfs/GetCapabilities/
/HTTP
/DCPType
/GetCapabilities
-
DescribeFeatureType
.
.
.
etc.
---8--
What do I have to modify so that tomcat will be doing the xml parsing also
for the remote browser? As I understand it, the code should not be sent to
the browser, but should be executed on the localhost and the result should
be sent to my browser, right? So what could be wrong? Please tell my what
file  information you need to give me a hint (e.g. server.xml oder web.xml
etc.).
Thank you very much in advance
Jan Peters-Anders
--
Remember, Linux is a wigwam: No Windows. No Gates. Apache inside.




.
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION Kein Einrichtungspreis nutzen: http://www.gmx.net/de/go/dsl
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Getting userid of current authenticated user

2005-02-23 Thread J Malcolm
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 account info.

Thanks in advance.

Jerry


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Getting userid of current authenticated user

2005-02-23 Thread Larry Meadors
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
 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 account info.
 
 Thanks in advance.
 
 Jerry
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Throughput and scalability

2005-02-23 Thread Peter Lin
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 consider XML accelerators to get near wire speed. The primary
limitations for XML processing is CPU and RAM. hope that helps

peter


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 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) if you want to get a specific throughput (x number
 of messages per second).  Is there any guidelines anyone can recommend?
 
 ---
 Ross Poppel - [EMAIL PROTECTED]
 Solutions Architect, PORTAL Software
 Cell:  (609) 744-2050
 EFax:  (617) 344-2585
 SMS:   [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to send hidden variables to next page

2005-02-23 Thread U K Laxmi
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 from that field, i call a
javascript function, i set number of hidden values and
call a JSP using location.href of Javascript. But
hidden values are not getting passed to jsp.I'm
getting null. Why? How to overcome this? Pls help.

One more requirement what i've is: 
i'VE A FORM WITH FORM ELEMENTS IN IT AND A 'aDD'
BUTTON. After filling theform, if the user clicks on
'Add' button, the contents gets added aas row into a
HTML table located below that form. That way user can
add n number of rows to the bottom table. In the
table, i need a 'Delete' button. After selecting any
row, if the user clicks on 'Delete' button, it should
get deleted from the table. I guess it can be
possible. But it's a big challenge to me as i know
only ABCD of HTML  Javascript.

If anybody can direct me to a good HTML/Javascritp
forum also fine. If i get a solution directly, it's
wonderful.

Thanks a lot. Sorry again if it's not the right place
to post this.


--- David Smith [EMAIL PROTECTED] wrote:

 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 
 incorporate a submit button.
 
 --David
 
 U K Laxmi wrote:
 
 Thanks for the answers Shakeel.
 
 My problem is, i've a page that doesn't have submit
 button. I need to send the hidden variables in that
 HTML page to next HTML page. Here the hidden value
 is
 set based on the type of option selected from
 'select'
 drpo down box in HTML. To put it in session, i need
 to
 identify the selected option and assign it to java
 varialbe. I don't think it's possible to assign a
 javascript variable to java variable. Pls help to
 solve this problem.
 
 
 --- Shakeel Ahmad [EMAIL PROTECTED]
 wrote:
 
   
 
 Wel this might help...
 
 // You write following two lines in first JSP
 page.
 String name = Java;// This might be your hidden
 field.
 session.setAttribute(HiddenName, name);
 
 
 //Then you get the name on next page as follows.
 
 String userName =
 (String)session.getAttribute(HiddenName);
 
 
 The name attribute will be available throught
 the
 session life, unless we
 remove it explicitly or restart Tomcat.
 We can use it on any page once it is placed
 properly.
 
 Best Regards,
 S H A K E E L   A H M A D

http://members.fortunecity.com/javaclub/shakeel.htm
 Voice: 00923002723316
 Senior Software Engineer.
 NorthStar Technologies. www.globalnorthstar.com
 
 EE(Computer Engineering), UET Lahore, Pakistan.
 SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
 Brain Bench Certified Java Programmer.
 
 -Original Message-
 From: U K Laxmi [mailto:[EMAIL PROTECTED]
 Sent: 23 February, 2005 10:37 AM
 To: Tomcat Users List
 Subject: RE: How to send hidden variables to next
 page
 
 
 Yes. I'm using JSP. Can you pls tell me the syntax
 or
 guidelines as how to do it.
 
 Thank you.
 
 --- Shakeel Ahmad [EMAIL PROTECTED]
 wrote:
 
 
 
 If you are developing a JSP/Servlet then you can
   
 
 do
 
 
 this by keeping those
 variables in session.
 
 Best Regards,
 S H A K E E L   A H M A D
 
   
 

http://members.fortunecity.com/javaclub/shakeel.htm
 
 
 Voice: 00923002723316
 Senior Software Engineer.
 NorthStar Technologies. www.globalnorthstar.com
 
 EE(Computer Engineering), UET Lahore, Pakistan.
 SCJP,SCWCD  SCBCD Sun Microsystems, Inc.
 Brain Bench Certified Java Programmer.
 
 -Original Message-
 From: U K Laxmi [mailto:[EMAIL PROTECTED]
 Sent: 23 February, 2005 10:31 AM
 To: Tomcat Users List
 Subject: How to send hidden variables to next
 page
 
 
 Sorry if it's not the right place to post this
 question. Excuse me.
 
 I've some hidden variables in a web page. I want
   
 
 to
 
 
 send them to next page without using submit
   
 
 button.
 
 
 I
 don't know how to do it. More over i don't know
   
 
 how
 
 
 to
 access those variables in the next page. Is there
 any
 option available to do this html or tomcat or
 apache?
 
 Thanks!!
 
 --- Matt [EMAIL PROTECTED] wrote:
 
   
 
 Ah-ha, somehow I changed a line in the
 uriworkermap.properties file from
 this (some pointless experiment out of past
 frustrated delirium):
 /jsp-examples/*=ajp13w
 ...to this:
 /jsp-examples/*.jsp
 ...so changing it back (which is how it was
 out-of-the-box after
 jk_1.2.8.exe was run) to:
 /jsp-examples/*=ajp13w
 ...fixes it, and I can now access both
 
 
 directories
 
 
 fine (inside and
 outside of $CATALINA_HOME/webapps)!!!  YAY!!!
 
 I now get the expected results for:
 http://localhost/jsp-examples/ (the webapps/

Cluster: keeptracking a map of all sessions across nodes

2005-02-23 Thread LAM
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
particular login request and created the session). On the other nodes,
their static maps don't contain that session. 

The problem is that I have another program which will query the Tomcat and
ask for the last access time of a userID, and such request often got
routed by Apache to a node which doesn't have that userID-session
mapping. Therefore I want to have access to all existing session objects
to find out which one belongs to a particular user.

Joseph


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cluster: Is session's lastAccessedTime got replicated?

2005-02-23 Thread Joseph Lam
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 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
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JNI loading problem

2005-02-23 Thread vaheesan selvarajah
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 LD_LIBRARY_PATH to where my lib is and exporting it

3. inside the catelina.sh file added an extra -Djava.library.path=mylibpath

Inside the JSP i tried the following options...

1.   try {
 //System.loadLibrary(AriaJava);   // the name of the file is
libAriaJava.so
 } catch (UnsatisfiedLinkError e) {
   System.err.println(Native code library failed to load.\n + e);
 }

2.
try {
 System.load( /home/path_to_lib/libAriaJava.so);
 } catch (UnsatisfiedLinkError e) {
   System.err.println(Native code library failed to load.\n + e);
 }

in all these trials it fails with unsatisfied link error !!

Any help is appreciated !!

r
-Vaheesan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cluster: how to set mcast interface for dual LAN card? (SOLVED)

2005-02-23 Thread Joseph Lam
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 Lists wrote:

 there is an attribute mcastBindAddr
 
 that allows you to bind to the interface.
 
 Joseph Lam wrote:
 
 Hi,
 
 If I have two LAN cards and I want my Tomcat to mcast through one of them,
 what parameter should I set?
 
 Regards,
 Joseph
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cluster: will session listeners got called again after replication?

2005-02-23 Thread Joseph Lam
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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSP page buffering problem

2005-02-23 Thread Joseph Lam
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
already flushed. Are there any other factors (e.g. timing, browser, %@
include %, etc...) which might have forced the flush before the buffer is
full?

Joseph


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]