Where are Tomcat logs when run as service?

2004-08-23 Thread ohaya
Hi,

Up until tonight, I've been running standalone Tomcat as an executable. 
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

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



RE: Where are Tomcat logs when run as service?

2004-08-23 Thread Joseph Samuel

The logs are present in the 'logs' directory of your tomcat installation. It
is stored in the file 'stdout.log' These log files are cleared each time you
restart Tomcat.

Jo


-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:06 PM
To: Tomcat Users List
Subject: Where are Tomcat logs when run as service?


Hi,

Up until tonight, I've been running standalone Tomcat as an executable.
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

-
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: Where are Tomcat logs when run as service?

2004-08-23 Thread Eric YH WONG
Try to see /logs/stdout.log


- Original Message - 
From: ohaya [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:36 PM
Subject: Where are Tomcat logs when run as service?


 Hi,
 
 Up until tonight, I've been running standalone Tomcat as an executable. 
 But, I installed Tomcat on another machine, this time, installing it as
 a service.  I can't find anywhere where Tomcat on this new machine logs
 the messages like you seen in the DOS window when you run Tomcat as an
 executable.
 
 I've checked in my .\logs directory, and watched the localhost...txt
 file, but I don't seen anthing much there?
 
 Can someone tell me where Tomcat is logging to?
 
 Thanks,
 Jim
 
 -
 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: Where are Tomcat logs when run as service?

2004-08-23 Thread Shakeel
Hi, thats good that you started this as a service, we just done same with
our application, and may be our discussion help each other.

Here is exact information about logs of Tomcat when running as a service.
1- All System.out.print go to $:\Tomcat4.1\logs\stdout.log
2- All System.err.print go to $:\Tomcat4.1\logs\stderr.log
3- All other loggers like Log4j etc go to there respective streams.

Now if you want to see the live logs exactly like Tomcat running as a stand
alone server you will install cygwin and use folllowing command.
tail -f c:/Tomcat4.1/logs/stdout.log

etc.

I wish we could communicate as we also have some unresolved issues like
printing from POS terminals, which are under RD.
Also keep in mind that as a service JVM is picking JAVA_OPTS or not. Or you
will have to edit some registry values.

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 11:36 AM
To: Tomcat Users List
Subject: Where are Tomcat logs when run as service?


Hi,

Up until tonight, I've been running standalone Tomcat as an executable.
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

-
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: Where are Tomcat logs when run as service?

2004-08-23 Thread ohaya


Shakeel wrote:
 
 Hi, thats good that you started this as a service, we just done same with
 our application, and may be our discussion help each other.
 
 Here is exact information about logs of Tomcat when running as a service.
 1- All System.out.print go to $:\Tomcat4.1\logs\stdout.log
 2- All System.err.print go to $:\Tomcat4.1\logs\stderr.log
 3- All other loggers like Log4j etc go to there respective streams.
 
 Now if you want to see the live logs exactly like Tomcat running as a stand
 alone server you will install cygwin and use folllowing command.
 tail -f c:/Tomcat4.1/logs/stdout.log
 
 etc.
 
 I wish we could communicate as we also have some unresolved issues like
 printing from POS terminals, which are under RD.
 Also keep in mind that as a service JVM is picking JAVA_OPTS or not. Or you
 will have to edit some registry values.
 


Hi Joseph, Eric, and Shakeel,

Thanks!  I missed those files, as I've been working with the .EXE for
awhile, and didn't notice them there after I installed the service on
the new machine :(.  Things seem to be working ok now.

Thanks,
Jim

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



Class Load Order

2004-08-23 Thread Varley, Roger
Hi

In what order does Tomcat search ./common/classes, ./shared/classes and 
./webapp/classes for .class files? I have a number of web-apps that use class files 
located in ./shared/classes to connect to a backend ERP system. There has always been 
an implicit assumption that there would only ever be one backend system hence locating 
the class files in ./shared/classes - that assumption was blown apart this morning. 

Regards
Roger 


__
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive this 
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group 
liability cannot be triggered for the message content. Although the 
sender endeavours to maintain a computer virus-free network, the sender 
does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted.
__

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



Re: Class Load Order

2004-08-23 Thread Mike Fowler
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
-Mike Fowler
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Class Load Order

2004-08-23 Thread Varley, Roger
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
 owto.html
 

Thanks, I'd missed that.

Regards
Roger


__
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive this 
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group 
liability cannot be triggered for the message content. Although the 
sender endeavours to maintain a computer virus-free network, the sender 
does not warrant that this transmission is virus-free and will not be 
liable for any damages resulting from any virus transmitted.
__

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



Re: JSP WhiteSpace

2004-08-23 Thread Jon Wingfield
I've used a Filter to strip out redundant whitespace from text/html 
output. I wrapped the ServletResponse so that a custom 
ServletOutputStream filters out empty and recurring linefeeds. Works 
pretty well.

As for mod_gzip, I would be very surprised if it didn't respect the 
Accept-Encoding header the user-agent sends in the request. No header or 
gzip not specified shouldn't lead to a compressed response.

Jon
A wrote:
I know its not part of the spec - what is the
workaround / is there a workaround current developers
have used.
Thank you
--- Hiroshi Iwatani [EMAIL PROTECTED] wrote:

Read JSP 1.2 spec 2.3.7 'White Space'.
A wrote:
In the compiled JSP page - I dont want to remove
white
space from the code for the sake of readability
--- Schalk Neethling [EMAIL PROTECTED] wrote:

Are you talking about about white spaces in the
code
or the rendered 
page itself?

Parsons Technical Services wrote:

Then they are using a very odd or out dated
browser. Thus a very small

percentage of the users will have problems.
Doug Parsons
www.parsonstechnical.com
- Original Message - 
From: A [EMAIL PROTECTED]
To: Tomcat Users List
[EMAIL PROTECTED]
Sent: Saturday, August 21, 2004 12:22 PM
Subject: Re: JSP WhiteSpace



Well what happens if your users cannot accept
zipped

content - your pretty much screwed then if you
choose

this method.  I woul dprefer a way of doing this
without compressing the output.
Any ideas?
--- Tim Funk [EMAIL PROTECTED] wrote:
 


Use mod_gzip. (If using apache, or tomcat 5
also
supports compressing on the
HTTP connector) The whitespace becomes a
non-issue

and your *really* save
bandwidth.
-Tim
Jack Kada wrote:
   


Developers,
I have completed a JSP project but when i view
the

source of the HTML pages there are loads of
 

whitespace
   


in between tables rows.
I am using Tomcat 5 and in the mailing list
read
 

that
   


there is a parameter called trimSpaces().  I
tried

this but it had no effect on the webpage.
If i could remove whitespace without touching
JSP

 

code
   


i would save a lot of bandwidth.
 

   

-
 


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

___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo!
Enter
now.

http://promotions.yahoo.com/goldrush
-
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]


--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
This message contains information that is
considered
to be sensitive or confidential and may not be
forwarded or disclosed to any other party without
the permission of the sender. If you received this
message in error, please notify me immediately so
that I can correct and delete the original email.
Thank you.

=== message truncated ===
__
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]

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


Swing communicating with a Servlet.

2004-08-23 Thread anunay.ashish

Hi,
I am trying to send data from a swing application to a Servlet.
I am having the following piece of code within the action event of a
button
URL callback = new
URL(http://localhost:8080/UMSDriver/SwingToServlet;);
URLConnection c = callback.openConnection();
c.setDoOutput(true);
c.setUseCaches(false);
System.out.println(c.getContentType());
But the value that is printed out in the console is null.
Why is it so? Where am I going wrong?
Regards,
Anunay Ashish.



Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: Swing communicating with a Servlet.

2004-08-23 Thread Shakeel
try followings
or set content type explicitly

con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: Swing communicating with a Servlet.



Hi,
I am trying to send data from a swing application to a Servlet.
I am having the following piece of code within the action event of a
button
URL callback = new
URL(http://localhost:8080/UMSDriver/SwingToServlet;);
URLConnection c = callback.openConnection();
c.setDoOutput(true);
c.setUseCaches(false);
System.out.println(c.getContentType());
But the value that is printed out in the console is null.
Why is it so? Where am I going wrong?
Regards,
Anunay Ashish.



Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
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]



unpackWARs and autoDeploy

2004-08-23 Thread Anthony Colebourne
Hi,
How does Tomcat determine when to reload the app (using autoDeploy)?
It appears to compare the time stamp on the war with the time stamp of 
the expanded directory.

How then does it do it when you set unpackWARs=false?
Thanks,
Anthony.


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


RE: unpackWARs and autoDeploy

2004-08-23 Thread Donie Kelly

How then does it do it when you set unpackWARs=false?

It doesn't do it at all. You have to do it manually...

Donie

-Original Message-
From: Anthony Colebourne [mailto:[EMAIL PROTECTED]
Sent: 23 August 2004 10:58
To: [EMAIL PROTECTED]
Subject: unpackWARs and autoDeploy

Hi,

How does Tomcat determine when to reload the app (using autoDeploy)?

It appears to compare the time stamp on the war with the time stamp of
the expanded directory.

How then does it do it when you set unpackWARs=false?

Thanks,
Anthony.






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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**


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



Re: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Jon Wingfield
You may want to watch the status of the following bug:
  Hi,
  There's a known escaping issue there,
  http://issues.apache.org/bugzilla/show_bug.cgi?id=28219.
  Yoav Shapira
  Millennium Research Informatics
HTH,
Jon
Sun House wrote:
Chuck ,
YOU ARE THE MAN 
Escaping the dollar sign doesn't work, BUT double $$ do works:
context docBase=\\my-computer\c$$\temp 
 

As my grandma used to say the more $ you have, the less headache you have 

Have a beautiful day 

Sun House
 

Caldarale, Charles R [EMAIL PROTECTED] wrote:
From: Sun House [mailto:[EMAIL PROTECTED]
Subject: RE: docBase attribute in context element doesn't recognize c$ 

still i the tomcat somehow parses  docBase=\\my-computer\c$\temp ... 
as \\my-computer\c\temp .

Have you tried simply escaping the dollar sign, perhaps by useing $$?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL 
and is thus for use only by the intended recipient. If you received this in error, 
please contact the sender and delete the e-mail and its attachments from all computers.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

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


Adding a web-app which is not automaticly started on start of tomcat.

2004-08-23 Thread Michiel Meeuwissen
Hello,

For a test environment (currently running tomcat 4.1) I add web-apps to
server.xml with the 'Context' tag.

Can I somehow add an option which makes it unstarted on default (but easily
startable by the tomcat manager)?

Michiel

-- 
Michiel Meeuwissen
Mediacentrum 140 H'sum 
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

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



RE: Swing communicating with a Servlet.

2004-08-23 Thread anunay.ashish

I am trying to set the content type as
c.setRequestProperty(content-type,
application/x-www-form-urlencoded);
Is it okay?

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 3:30 PM
To: Tomcat Users List
Subject: RE: Swing communicating with a Servlet.

try followings
or set content type explicitly

con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: Swing communicating with a Servlet.



Hi,
I am trying to send data from a swing application to a Servlet.
I am having the following piece of code within the action event of a
button
URL callback = new
URL(http://localhost:8080/UMSDriver/SwingToServlet;);
URLConnection c = callback.openConnection();
c.setDoOutput(true);
c.setUseCaches(false);
System.out.println(c.getContentType());
But the value that is printed out in the console is null.
Why is it so? Where am I going wrong?
Regards,
Anunay Ashish.



Confidentiality Notice
The information contained in this electronic message and any attachments
to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
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]




Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Re: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Darryl L. Pierce
On Sunday 22 August 2004 02:49 pm, Caldarale, Charles R wrote:
  still i the tomcat somehow parses Context
  docBase=\\my-computer\c$\temp ... 
  as \\my-computer\c\temp .

 Have you tried simply escaping the dollar sign, perhaps by useing $$?

Or giving the root of C: on that PC a proper share name?

-- 
Darryl L. Pierce [EMAIL PROTECTED]
Visit the Infobahn Offramp - http://mypage.org/mcpierce
Lobby, lobby, lobby, lobby, lobby, lobby, lobby, lobby...

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



How to write a Valve that can inspect the HTTP Body, without damaging the InputStream?

2004-08-23 Thread Betts, Chris
Hi Folks,

   I want to write a tomcat security Valve that does content checking of the HTTP 
body, before anything else happens (e.g. 3rd party destination servlets I have no 
control over are called).  

   However, to read the body data I 'use up' the inputStream, and can't find any way 
to put it back - the result is the final servlet gets an empty body.  

   Unfortunately, the data is actually HTTP POST data containing SOAP/XML, otherwise I 
could use the servlet request parameter methods.  Since it is SOAP/XML though, I 
really have to get the body data directly, as no parameters are set.

   I've tried mark() and reset() on both the input stream and the reader methods, but 
no luck (not implemented and no effect respectively).  And, coyote doc not 
withstanding, 'setStream()' is actually a no-op - the source code shows it is an empty 
method - so I can't reset the stream that way.
   
   I'm getting a 'you can't get there from here feeling' at this stage; does anyone 
have any clues?  I'm using tomcat 4.0.29 at the moment, but the code seems pretty 
similar in tomcat 5 as well so I don't think switching will help...

   thanks heaps in advance :-),

   - Chris


Dr Christopher Betts
Web Services Security
Computer Associates   


Re: MySql driver not available in JSP.

2004-08-23 Thread James Black
[EMAIL PROTECTED] wrote:
Hi,
I have a class that uses the MySql driver for accessing the database. If
I run this class on its own then it works fine. But if I use the same
class in a JSP, then the driver is not found.
What is the reason?
 

You don't have the mysql jar file in the WEB-INF/lib directory, perhaps?
--
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to write a Valve that can inspect the HTTP Body, without damaging the InputStream?

2004-08-23 Thread Betts, Chris
Hi Folks,

   I want to write a tomcat security Valve that does content checking of the HTTP 
body, before anything else happens (e.g. 3rd party destination servlets I have no 
control over are called). 

   However, to read the body data I 'use up' the inputStream, and can't find any way 
to put it back - the result is the final servlet gets an empty body. 

   Unfortunately, the data is actually HTTP POST data containing SOAP/XML, otherwise I 
could use the servlet request parameter methods.  Since it is SOAP/XML though, I 
really have to get the body data directly, as no parameters are set.

   I've tried mark() and reset() on both the input stream and the reader methods, but 
no luck (not implemented and no effect respectively).  And, coyote doc not 
withstanding, 'setStream()' is actually a no-op - the source code shows it is an empty 
method - so I can't reset the stream that way.

  
   I'm getting a 'you can't get there from here feeling' at this stage; does anyone 
have any clues?  I'm using tomcat 4.0.29 at the moment, but the code seems pretty 
similar in tomcat 5 as well so I don't think switching will help...

   thanks heaps in advance :-),

   - Chris

Dr Christopher Betts
Web Services Security
Computer Associates   


RE: Swing communicating with a Servlet.

2004-08-23 Thread Shakeel
No use following as it might be case sensitive

con.setRequestProperty(Content-Type, our Conent Type here);

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 3:08 PM
To: [EMAIL PROTECTED]
Subject: RE: Swing communicating with a Servlet.



I am trying to set the content type as c.setRequestProperty(content-type,
application/x-www-form-urlencoded);
Is it okay?

-Original Message-
From: Shakeel [mailto:[EMAIL PROTECTED] Sent: Monday, August 23,
2004 3:30 PM
To: Tomcat Users List
Subject: RE: Swing communicating with a Servlet.

try followings
or set content type explicitly

con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:40 PM
To: [EMAIL PROTECTED]
Subject: Swing communicating with a Servlet.



Hi,
I am trying to send data from a swing application to a Servlet.
I am having the following piece of code within the action event of a
button
URL callback = new
URL(http://localhost:8080/UMSDriver/SwingToServlet;);
URLConnection c = callback.openConnection();
c.setDoOutput(true);
c.setUseCaches(false);
System.out.println(c.getContentType());
But the value that is printed out in the console is null.
Why is it so? Where am I going wrong?
Regards,
Anunay Ashish.



Confidentiality Notice
The information contained in this electronic message and any attachments
to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
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]




Confidentiality Notice
The information contained in this electronic message and any attachments to
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

-
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: MySql driver not available in JSP.

2004-08-23 Thread anunay.ashish

Thanks. I put the jar in endorsed folder and it has started working
fine.

-Original Message-
From: James Black [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 5:08 PM
To: Tomcat Users List
Subject: Re: MySql driver not available in JSP.

[EMAIL PROTECTED] wrote:

Hi,
I have a class that uses the MySql driver for accessing the database.
If
I run this class on its own then it works fine. But if I use the same
class in a JSP, then the driver is not found.
What is the reason?
 

 You don't have the mysql jar file in the WEB-INF/lib directory,
perhaps?

--
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]


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




Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Error on Tomcat server

2004-08-23 Thread Jitesh Sinha
Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting for
monitor entry [e677d000..e677fc30]
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:111)
- waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)



Thanks,
-Jitesh


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



proformace testing/debugging

2004-08-23 Thread Didier McGillis
I have recently taken over a project that was done by a developer who is no 
longer available, who also left no documentation about what he did.  There 
seems to be slowdowns during the day, the site is not a heavy hit site so I 
was looking for some advice on what tools to use for preformance testing and 
what you have seen as far as the good and the bad in that area, as well as 
good techniques for debugging.

thanks
_
Take charge with a pop-up guard built on patented Microsoft® SmartScreen 
Technology  
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


RE: Adding a web-app which is not automaticly started on start of tomcat.

2004-08-23 Thread Shapira, Yoav

Hi,
The server either starts all webapps on startup or none of them.  See
the Host configuration reference for details.  But you can't toggle this
option for one webapp only (unless you put it on its own Host of course,
which is trivial).

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Michiel Meeuwissen [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 6:35 AM
To: Tomcat Users List
Subject: Adding a web-app which is not automaticly started on start of
tomcat.

Hello,

For a test environment (currently running tomcat 4.1) I add web-apps to
server.xml with the 'Context' tag.

Can I somehow add an option which makes it unstarted on default (but
easily
startable by the tomcat manager)?

Michiel

--
Michiel Meeuwissen
Mediacentrum 140 H'sum
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: proformace testing/debugging

2004-08-23 Thread Peter Lin
I would recommend downloading one of profiling tools like borland
OptimizeId or JProbe to profile the webapp.  Use JMeter to simulate
load and watch what happens in the profiler. if you suspect memory
leaks, look at the heap and how it grows. if you search the archives,
you'll see plenty of discussions on this topic.

peter


On Mon, 23 Aug 2004 12:42:19 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 I have recently taken over a project that was done by a developer who is no
 longer available, who also left no documentation about what he did.  There
 seems to be slowdowns during the day, the site is not a heavy hit site so I
 was looking for some advice on what tools to use for preformance testing and
 what you have seen as far as the good and the bad in that area, as well as
 good techniques for debugging.
 
 thanks
 
 _
 Take charge with a pop-up guard built on patented Microsoft® SmartScreen
 Technology
 http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
 first two months FREE*.
 
 -
 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: documentation for ant tasks

2004-08-23 Thread Shapira, Yoav

Hi,
The Manager How-To has some ant details.  It has a lot of detail on the
actual Manager tasks (the same whether invoked from Ant or from the web
browser), which is probably what you want.  The actual Ant tasks don't
have any logic, they're just convenience wrappers for invocation via
Ant.


Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jeff Ousley [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 6:18 PM
To: [EMAIL PROTECTED]
Subject: documentation for ant tasks

hello!

is there anyplace where the catalina ant functions/tasks are
documented? i've searched but obviously i'm not looking in the proper
place.

thanks!

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Error on Tomcat server

2004-08-23 Thread Shapira, Yoav

Hi,
This is not an error, it's what a thread is doing.  And it's not a
Tomcat question at that, it's DBCP, so please ask on the proper list.
Thanks,

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:07 AM
To: [EMAIL PROTECTED]
Subject: Error on Tomcat server

Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting
for
monitor entry [e677d000..e677fc30]
   at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjec
tPoo
l
.java:111)
   - waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
   at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSour
ce.j
a
va:110)
   at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
ava:
3
12)



Thanks,
-Jitesh


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: URL Rewriting on a uer by user basis

2004-08-23 Thread Shapira, Yoav

Hi,
This is not hard to do with a Filter, as long as your authentication is
done before this Filter (possibly with another one).  Your chain would
then look like:
- Authentication filter (mapped to /*, does nothing if request already
authenticated)
- Rewrite filter (mapped to /*, checks credentials, does redirect if
needed)
- Normal servlets

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: A [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 21, 2004 4:27 PM
To: Tomcat Users List
Subject: URL Rewriting on a uer by user basis

Developers,

Something ha sbeen keeping me up all day and i ve been
bogged down without any hope of finding a fix.

What i would like to do is quite simple but i have
found nothing that helps.

I have a server which has authentication.  I want to
map the url requested to a predefined URL

say i access

www.myHost.com
uName==paul  passwd==paul

i want to map this to

www.myHost.com/paul

Can anyone help me - its driving me mad.






___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat-4.1.27 not picking up jsse from j2sdk-1.4.1

2004-08-23 Thread Shapira, Yoav

Hi,
Good, I was just going to suggest jpackage.org if you go with an RPM at
all.  The alternative of a tomcat download from the jakarta site is also
good.  And either way, consider upgrading to tomcat 5.x especially if
you're just getting started and don't have legacy requirements.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rob Scala [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 21, 2004 12:02 PM
To: Tomcat Users List
Subject: Re: Tomcat-4.1.27 not picking up jsse from j2sdk-1.4.1

I discovered my problem.

The tomcat rpm for fedora core 2 was built with gcj, and it doesn't
work
with another jdk.  I'll remove it and try to install from jpackage.org
or apache.jakarta.org.

Thank you very much for your help.


On Sat, 2004-08-21 at 10:54, Rob Scala wrote:
 This is interesting.  Here's what I got:

 Standalone java.version: 1.4.1_02
 Tomcat java.version: 3.4.0

 3.4 is also the version of gcc on my machine.

 It seems like there are two versions of java, but there is only one
 executable on my machine called java (version 1.4.1_02).  I wonder
if
 the 3.4 version goes by another name?

 So I tried setting PATH and JAVA_HOME, but it gave the same result.
It
 seems that the rpm installation of tomcat hard coded some things -
there
 is no catalina.sh.


 On Sat, 2004-08-21 at 09:21, QM wrote:
  On Fri, Aug 20, 2004 at 10:36:22PM -0400, Rob Scala wrote:
  : When running a stand-alone program, it works fine, but within
tomcat
I
  : get an exception: Protocol handler not found: https.
  :
  : I note that Security.getProviders() returns different provider
lists.
  : With the stand-alone program, it gets the expected list: SUN,
SunJSSE,
  : SunRsaSign, SunJCE, and SunJGSS.  The same code in tomcat lists
only
one
  : provider: GNU.
 
  Any chance you're not using the JDK you think you are?
 
  Have a JSP print out the value of the system property
java.version
and
  see whether that matches the expected 1.4.1.
 
  Then:
  - search your system for other versions of the java binary
  - check what's the runtime $PATH of the Tomcat scripts
  - check for the $JAVA_HOME environment variable
 
  etc.
 
 
  -QM
--
Rob Scala

Scala Systems - custom software development
http://www.scalasystems.com
860-443-5702


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: How to write a Valve that can inspect the HTTP Body, without damaging the InputStream?

2004-08-23 Thread Jon Wingfield
Can't you use a java.io.PushbackInputStream?
You could write a Filter instead of a Valve. In the Filter wrap the 
ServletRequest and provide a custom ServletInputStream which uses the 
PushbackInputStream around the real ServletInputStream.
Once security checks have passed you can push back the used bytes and 
pass on your wrapped ServletRequest down the Filter chain to the 3rd 
party servlets.

HTH,
Jon
Betts, Chris wrote:
Hi Folks,
   I want to write a tomcat security Valve that does content checking of the HTTP body, before anything else happens (e.g. 3rd party destination servlets I have no control over are called). 

   However, to read the body data I 'use up' the inputStream, and can't find any way to put it back - the result is the final servlet gets an empty body. 

   Unfortunately, the data is actually HTTP POST data containing SOAP/XML, otherwise I 
could use the servlet request parameter methods.  Since it is SOAP/XML though, I 
really have to get the body data directly, as no parameters are set.
   I've tried mark() and reset() on both the input stream and the reader methods, but 
no luck (not implemented and no effect respectively).  And, coyote doc not 
withstanding, 'setStream()' is actually a no-op - the source code shows it is an empty 
method - so I can't reset the stream that way.
  
   I'm getting a 'you can't get there from here feeling' at this stage; does anyone have any clues?  I'm using tomcat 4.0.29 at the moment, but the code seems pretty similar in tomcat 5 as well so I don't think switching will help...

   thanks heaps in advance :-),
   - Chris
Dr Christopher Betts
Web Services Security
Computer Associates   


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


RE: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-23 Thread Williams, Mark L CIV NSWC-PC
Thanks, that worked. I also appreciate the reference to the XML
validator.

That said, are there any observations about the feasibility of using
Swing for building GUIs to be used via browser? I find too many
unexpected browser peculiarities when trying to do anything too
complicated (probably just me, but...) and would like to use something
more definitively controlled (or more predictable in operation). All my
users will be using MS Internet Explorer, typically v5.5. Googling gives
several old articles on needing plug-ins and the like; any more current
experiences available? If Swing is not practical, how are folks handling
this kind of issue?

TIA...
Mark

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 16:15
To: Tomcat Users List
Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5


On Fri, Aug 20, 2004 at 05:11:09PM -0400, Williams, Mark L CIV NSWC-PC
wrote:
: Here's the extract from the example. Would anyone like to tell me how
to
: fix it (if I leave it as-is, not only is there no XML tag at the top,
: but I get a XML document structures must start and end within the
same
: entity. error)? I'll learn it some day, but if I had leisure, I
: wouldn't be asking for help...
: ===extract starts here==
: web-app xmlns=http://java.sun.com/xml/ns/j2ee;
: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
: xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
: http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
: version=2.4
: web-app

Long story short: XML tags are like parentheses or curly braces in code;
they must balance.

What you have here is the equivalent of

{
{

}

aka, no closing }

Take out the second web-app tag.
If you're too short on time to learn XML, invest in a validation tool.
A free one comes with Expat, something like xmlwf.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



smime.p7s
Description: S/MIME cryptographic signature


Howto IIS6/JK2/TC5 (german)

2004-08-23 Thread Bjoern . Andersen
Hi,

i implemented a proof-of-concept for my company, resulting in a howto that
covers Tomcat5 with jk2 and iis6 (in full iis6-mode), jmx configuring of
tomcat and jk2 on webserver-side and some other side-knowledge.

There are lots of guides out there, but most win32-guides work with jk1 or
iis6 in iis5-compatibility-mode. It had to be done in german though.

http://www.syltonline.de/arbeit/pociis6tc5jk2/index.html

If anyone of you think it's good enough to spend some time on a translation,
please contact me here or on
http://www.syltonline.de/arbeit/pociis6tc5jk2/kontakt.php
Or just do it ;)

--
Björn Andersen

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



RE: Error on Tomcat server

2004-08-23 Thread Shakeel
This is not an exception message , some one has pressed (Ctrl+Break) key on
Tomcat server console. Doing this dumpts the threads information on the
console which is extremly helpful at times.

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: Jitesh Sinha [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 5:07 PM
To: [EMAIL PROTECTED]
Subject: Error on Tomcat server


Hello All,

Any ideas why the following error will come


VBJ ThreadPool Worker daemon prio=5 tid=0x00c59538 nid=0x5ae8 waiting for
monitor entry [e677d000..e677fc30]
at
org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
.java:111)
- waiting to lock 0xef1266e8 (a
org.apache.commons.dbcp.AbandonedObjectPool)
at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:110)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)



Thanks,
-Jitesh


-
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: proformace testing/debugging

2004-08-23 Thread Shakeel
Also try JProfiler that we use for tomcat related performance.
Also make sure that JVM is set to have memory larger enough, to handle
things well, and look into the Maps if any whether they are designed good or
not, use connectopn pooling etc.

S H A K E E L   A H M A D
(EE, SCJP, SCWCD  SCBCD)

Northstar Technologies, Inc.



-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 5:42 PM
To: [EMAIL PROTECTED]
Subject: proformace testing/debugging


I have recently taken over a project that was done by a developer who is no
longer available, who also left no documentation about what he did.  There
seems to be slowdowns during the day, the site is not a heavy hit site so I
was looking for some advice on what tools to use for preformance testing and
what you have seen as far as the good and the bad in that area, as well as
good techniques for debugging.


thanks

_
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=htt
p://hotmail.com/encaHL=Market_MSNIS_Taglines
  Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.


-
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: unpackWARs and autoDeploy

2004-08-23 Thread Anthony Colebourne
Hi,
From looking at the documentation further it seems that  if you have 
unpackWARs=false with autoDeploy=true then any new WARs will just 
get redeployed. See below.

However I have not found this to be true! Perhaps this is a bug?
Also if you update the context file in 
$CATALINA_HOME/conf/[enginename]/[hostname]/foo.xml the application is 
supposed to get redeployed (I have not tested this).

Is there an internal Tomcat 'memory' that remembers the last timestamp 
on the files? As my initial thoughts about it comparing the timestamps 
of the war and the expanded war seem to be incorrect.

--Doc---
Redeployment of a web application which has been deployed from a WAR 
when the WAR is updated: the expanded web application is removed, and 
the WAR is expanded again. This will not happen if the host is 
configured so that WARs are not expanded, in which case the webapp will 
be simply redeployed
---End Doc---

Thanks,
Anthony.
From: Donie Kelly
How then does it do it when you set unpackWARs=false?
It doesn't do it at all. You have to do it manually...
Donie

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


Re: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Sun House
Hi Darryl,
you wrote :Or giving the root of C: on that PC a proper share name?
What is a proper share name ?
the problem is that Tomcat removes the $ sign when it parses the XML file with context 
element
Regards 
Sun House


Darryl L. Pierce [EMAIL PROTECTED] wrote:
On Sunday 22 August 2004 02:49 pm, Caldarale, Charles R wrote:
  still i the tomcat somehow parses   docBase=\\my-computer\c$\temp ... 
  as \\my-computer\c\temp .

 Have you tried simply escaping the dollar sign, perhaps by useing $$?

Or giving the root of C: on that PC a proper share name?

-- 
Darryl L. Pierce 
Visit the Infobahn Offramp - 
Lobby, lobby, lobby, lobby, lobby, lobby, lobby, lobby...

-
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: JSP WhiteSpace

2004-08-23 Thread John Sidney-Woollett
 I've used a Filter to strip out redundant whitespace from text/html
 output. I wrapped the ServletResponse so that a custom
 ServletOutputStream filters out empty and recurring linefeeds. Works
 pretty well.
One downside to this approach is that the filter is being called for 
every request which may cause you a performance problem down the line.

A better approach would be a flag that the jasper compiler could locate 
to automatically strip redundant/duplicated C/Rs and TABs from the 
source when compiling so that statements like this:

out.write(\r\n\t\t\t\ttd );
become
out.write(td );
eg
% // NOWHITESPACE %
\t\t\t\ttd %=bgColor%width=10 valign=topinput type=checkbox 
name=id value=%=String.valueOf(ff.getEncodedRef())%/td\r
\t\t\t\ttd %=bgColor% width=18 valign=middlea 
href=%=gotoURL%%=icon%/a/td\r
% // /NOWHITESPACE %

becomes
td %=bgColor%width=10 valign=topinput type=checkbox name=id 
value=%=String.valueOf(ff.getEncodedRef())%/tdtd %=bgColor% 
width=18 valign=middlea href=%=gotoURL%%=icon%/a/td

prior to compilation.
In fact this is the approach that I'm going to take. I'm going to write 
a source file pre-processor (maybe even as part of the Ant web-app build 
process) which will remove all redundant whitespace from the source file 
prior to compilation. It will only be used on a COPY of the orginal 
source files (prior to deployment)

Note that sometimes you need the whitespace - perhaps in javascript 
sections of the JSP page which is why you need to be able to switch 
on/off the whitespace removal.

If the jasper compiler could do this automatically then that would be 
great. On average you can see a 10% reduction in file size. We also use 
mod_deflate with Apache to reduce the data transmission costs even further.

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


RE: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Caldarale, Charles R
 From: Sun House [mailto:[EMAIL PROTECTED]
 Subject: Re: docBase attribute in context element doesn't recognize c$
 
 you wrote :Or giving the root of C: on that PC a proper share name?
 What is a proper share name ?

The C$, D$, etc. names are administrative SMB shares created automatically by Windows. 
 You have to be a member of the Administrators group in order to use them.  You can 
create your own share names (without a $ in them) at any directory (folder) level by 
right-clicking on the folder or drive in Windows Explorer and selecting sharing or 
properties.  These additional share names can be given more appropriate security 
constraints.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

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



Running Tomcat 5 Headless

2004-08-23 Thread Nandish Rudra
Hello Everyone,

Can any one tell me how to make tomcat start headless and what it exactly
means, I am new to this term? I am running a webapp on redhat 9 machine
(without X11) and using awt for manipulatiing images. The browsers look for
X11 session whenever i try to access the servlets. From what I understand, a
headless tomcat can solve my problem.

Nandish Rudra
ECI Conference Call Services, LLC


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



RE: Running Tomcat 5 Headless

2004-08-23 Thread D'Alessandro, Arthur
Add this to your JAVA_OPTS
-Djava.awt.headless=true

Normally, when rendering graphics, java will try to use the graphics
engine.  If no X-windows is installed, it fails to render things that
use AWT.  This parameter tells java not to use the system graphics
engine. 

-Original Message-
From: Nandish Rudra [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 23, 2004 10:06 AM
To: Tomcat Users List (E-mail)
Subject: Running Tomcat 5 Headless

Hello Everyone,

Can any one tell me how to make tomcat start headless and what it
exactly
means, I am new to this term? I am running a webapp on redhat 9 machine
(without X11) and using awt for manipulatiing images. The browsers look
for
X11 session whenever i try to access the servlets. From what I
understand, a
headless tomcat can solve my problem.

Nandish Rudra
ECI Conference Call Services, LLC


-
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: docBase attribute in context element doesn't recognize c$

2004-08-23 Thread Sun House
Hi again Chuck, 
 
the C$ shared folder is a matter of a default situation, it is out of my scope, is is 
in the scope of a client installation and i have to ajust ot that.
 
the previoius mail written by Jon ( thanks Jon !! ) , reffered me to a bug #28219, 
which you find in http://issues.apache.org/bugzilla/show_bug.cgi?id=28219  .
 
i looked at the sources myself iand i have came to conclusion that its a problem in 
one of the two:
org.apache.crimson.jaxp.SAXParserFactoryImpl which is the parser implementation in jdk 
1.4 
or in Digester
and likely it's in Digester
 
the major question: till the bug is fixed, is the two dollar workaround is sufficient 
in context element path? 
or do i have to worry that other characters will disapear in parsed xml files?
is there is any substitute for Digester?
Regards 
Sun House


Caldarale, Charles R [EMAIL PROTECTED] wrote:
 From: Sun House [mailto:[EMAIL PROTECTED]
 Subject: Re: docBase attribute in context element doesn't recognize c$
 
 you wrote :Or giving the root of C: on that PC a proper share name?
 What is a proper share name ?

The C$, D$, etc. names are administrative SMB shares created automatically by Windows. 
You have to be a member of the Administrators group in order to use them. You can 
create your own share names (without a $ in them) at any directory (folder) level by 
right-clicking on the folder or drive in Windows Explorer and selecting sharing or 
properties. These additional share names can be given more appropriate security 
constraints.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and 
is thus for use only by the intended recipient. If you received this in error, please 
contact the sender and delete the e-mail and its attachments from all computers.

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



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Re: Your letter

2004-08-23 Thread tomcat-user
Please read the attached file.


Norton AntiVirus Deleted1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Mid-size dynamic XML (DOM) result handling in Tomcat.

2004-08-23 Thread Chris Ward

Hi all,

I'm not sure if my question should be addressed to the Tomcat or dom4j
list, so this
is going to both.

I'm running Tomcat for my company intranet and most of my Java
applications return
their results as XML so that I can style the data with XSLT.  I am using
dom4j
to dynamically build up the DOM (dom4j Document) and I pass that to a
Transformer
in a servlet.

Since I want to slice'n'dice these results with XSLT, I am keeping hold
of the Document
on the server using an HttpSession entry so it's sitting there as I
apply the different
stylesheets (specified as a servlet parameter).

I've read that dom4j in-memory representations are 8-to-10 times the
size of the XML
text - so I am very aware that my solution is not scalable (my current
project results
are about 1MB on disc).

Is there a best practice for this sort of thing?  Should I be
serializing the Document
to a DB or something and just keeping a handle to that in the
HttpSessions?   Should I be
using SAX in some clever way?

I'm sure it's a common task to handle medium-sized results from Tomcat.

Any input would be gratefully received.


Best regards
Chris

-- 

Chris Ward, Horizon Asset Limited
mailto:[EMAIL PROTECTED]
Tel +44 (20) 7367 7028, Fax 7367 7029


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



Changing session-cookie(JSESSIONID) name in tomat

2004-08-23 Thread Dineshram Villuri
Hi,

Is there a way we can change JSESSIONID name? I mean can we have a different
cookie name to store sessionid? If yes how I can configure it in tomcat.

I have two applications running on different tomcats in the same physical
box. Both applications use the same authentication mechanism (wherein when 2
users are logged in with the same username the earlier one is kicked
out/logged off). At any time there should be only one user logged in with
the same user name. Though both these use the same mechanism they are 2
independent application but for some weird reasons should run on the same
box.

Now we understand that the problem is with the cookie-name JSESSIONID. Since
both the applications are having the same cookie name(JSESSIONID) if one
user logs on into app1 and an other one is logged on to app2(diff tomcat)
with the same username the earlier one is kicked out.

We are facing this problem only when 2 tomcats are running on the same box.
When they are running on different boxes it works fine but we have to run
them on the same box for other reasons.

Can someone please point me to a different solution (if available) in case
JSESSIONID cannot be changed?

Any help is greatly appreciated.

Thanks,
Dinesh.


Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Wendy Smoak
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume they
will be the only webapp running, which is not the case here.

Can I put their changes somewhere else?

They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /

I don't really want to edit my server.xml, since I don't need to for any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.

Can someone enlighten me or point me in the right direction?  Thanks!

-- 
Wendy Smoak



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



RE: Changing session-cookie(JSESSIONID) name in tomat

2004-08-23 Thread Shapira, Yoav

Hi,
No, this name is mandated by the Servlet Specification.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Dineshram Villuri [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:27 PM
To: [EMAIL PROTECTED]
Subject: Changing session-cookie(JSESSIONID) name in tomat

Hi,

Is there a way we can change JSESSIONID name? I mean can we have a
different
cookie name to store sessionid? If yes how I can configure it in
tomcat.

I have two applications running on different tomcats in the same
physical
box. Both applications use the same authentication mechanism (wherein
when
2
users are logged in with the same username the earlier one is kicked
out/logged off). At any time there should be only one user logged in
with
the same user name. Though both these use the same mechanism they are 2
independent application but for some weird reasons should run on the
same
box.

Now we understand that the problem is with the cookie-name JSESSIONID.
Since
both the applications are having the same cookie name(JSESSIONID) if
one
user logs on into app1 and an other one is logged on to app2(diff
tomcat)
with the same username the earlier one is kicked out.

We are facing this problem only when 2 tomcats are running on the same
box.
When they are running on different boxes it works fine but we have to
run
them on the same box for other reasons.

Can someone please point me to a different solution (if available) in
case
JSESSIONID cannot be changed?

Any help is greatly appreciated.

Thanks,
Dinesh.



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Changing session-cookie(JSESSIONID) name in tomat

2004-08-23 Thread Ronald Klop
Use grep JSESSIONID * and build your own Tomcat.
Ronald.
On Mon Aug 23 18:26:55 CEST 2004 Dineshram Villuri [EMAIL PROTECTED] wrote:

Hi,
Is there a way we can change JSESSIONID name? I mean can we have a different
cookie name to store sessionid? If yes how I can configure it in tomcat.
I have two applications running on different tomcats in the same physical
box. Both applications use the same authentication mechanism (wherein when 2
users are logged in with the same username the earlier one is kicked
out/logged off). At any time there should be only one user logged in with
the same user name. Though both these use the same mechanism they are 2
independent application but for some weird reasons should run on the same
box.
Now we understand that the problem is with the cookie-name JSESSIONID. Since
both the applications are having the same cookie name(JSESSIONID) if one
user logs on into app1 and an other one is logged on to app2(diff tomcat)
with the same username the earlier one is kicked out.
We are facing this problem only when 2 tomcats are running on the same box.
When they are running on different boxes it works fine but we have to run
them on the same box for other reasons.
Can someone please point me to a different solution (if available) in case
JSESSIONID cannot be changed?
Any help is greatly appreciated.
Thanks,
Dinesh.


Buffer overflow: what could cause this?

2004-08-23 Thread Daniel Gibby
Aug 23, 2004 9:34:21 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Buffer overflow: buffer.len=8192 pos=9 data=78988
41 42 00 02 04 01 f4 34  | AB?4
Aug 23, 2004 9:34:21 AM org.apache.jk.common.MsgAjp cpBytes
SEVERE: Overflow
java.lang.Throwable
That was from my catalina.out file. I'm using tomcat 4.1.30.
How do I interpret a message like this and what can I do about it?
I've googled a bit to figure this out, but I only see posts without replies.
--
Thanks,
Daniel Gibby

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


configure manager app

2004-08-23 Thread Richard Han

Is it possible to give a user permission to stop/redeploy/start only a
specific app, using manager app? I want to give the manager role to a
user to redeploy a specific app, not all apps deployed on a server. How
would you to achieve this?
Is there a way to configure permissions to a role defined in
tomcat-users.xml for manager app?

Thank you for your help!

Richard



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



RE: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Shapira, Yoav

Hi,
If you're using Tomcat 5.x, you can put these in the context.xml file
(in the META-INF directory of your application / WAR).  They don't go in
web.xml, as they're not portable, but rather they are Tomcat-specific.
If you're using Tomcat 4.x, consider this another reason to upgrade ;)

Note however that Realm implementations need to be visible to the common
classloader.  So if the ... in your message is a custom Realm
implementation, you're SOL as far as self-containment goes.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:23 PM
To: Tomcat Users List
Subject: Where to put Listener  Realm instead of server.xml?

We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume
they
will be the only webapp running, which is not the case here.

Can I put their changes somewhere else?

They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /

I don't really want to edit my server.xml, since I don't need to for
any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or
if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.

Can someone enlighten me or point me in the right direction?  Thanks!

--
Wendy Smoak



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: configure manager app

2004-08-23 Thread Shapira, Yoav

Hi,
You would achieve this via configuration on the server-side of different
Hosts, each with only the set of webapps matched to the Realm providing
your authentication.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Han [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 1:19 PM
To: [EMAIL PROTECTED]
Subject: configure manager app


Is it possible to give a user permission to stop/redeploy/start only a
specific app, using manager app? I want to give the manager role to a
user to redeploy a specific app, not all apps deployed on a server. How
would you to achieve this?
Is there a way to configure permissions to a role defined in
tomcat-users.xml for manager app?

Thank you for your help!

Richard



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Changing session-cookie(JSESSIONID) name in tomat

2004-08-23 Thread Endre Stølsvik
On Mon, 23 Aug 2004, Dineshram Villuri wrote:

| I have two applications running on different tomcats in the same physical
| box. Both applications use the same authentication mechanism (wherein when 2
| users are logged in with the same username the earlier one is kicked
| out/logged off). At any time there should be only one user logged in with
| the same user name. Though both these use the same mechanism they are 2
| independent application but for some weird reasons should run on the same
| box.
|
| Now we understand that the problem is with the cookie-name JSESSIONID. Since
| both the applications are having the same cookie name(JSESSIONID) if one
| user logs on into app1 and an other one is logged on to app2(diff tomcat)
| with the same username the earlier one is kicked out.
|
| We are facing this problem only when 2 tomcats are running on the same box.
| When they are running on different boxes it works fine but we have to run
| them on the same box for other reasons.
|
| Can someone please point me to a different solution (if available) in case
| JSESSIONID cannot be changed?

You could use virtual hosts - tell your users that the first application
is found at one.pinksheets.com, while the other application is found at
two.pinksheets.com. Then use DNS to configure these two names to be the
same IP, either using A records, or CNAMEs.

But I also have difficulties with understanding the problem, as the cookie
should also have the pathname of the application within its data. That
is, a browser sends different cookies to http://box.name/app1 than to
http://box.name/app2. But you have a problem if you have put your
application as the ROOT webapp, since you then get http://box.name/. The
cookie from this ROOT webapp will then override all the other cookies, I
believe.. Or was it the other way, that the most specific cookie is sent
along? See, I don't remember.. But check this out..

Endre



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



=?tis-620?q?Tomcat_Clustering_=96_Firewall_Issue?=

2004-08-23 Thread cagonzalezto
Weve a web application that uses Apache (Port 80) for load distribution along 4 
Tomcats (HTTP Ports 8080, 9080, 10080 and 11080). So, when one user enters the page, 
Apache redirects it to one of the Tomcats in order (Round Robin Algorithm). Anyway, 
this redirection works well if the user is not behind a Firewall. However, if the user 
is behind a Firewall we have two cases:

1) If the user enters www.mypage.com he will get an error page because the redirection 
wont work.

2) Assume that www.mypage.com has the IP 200.93.xxx.xx if the user is behind the 
firewall and he enters 200.93.xxx.xx the redirection works well.

Any idea of why does this happens? 
How can we solve it?



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



RE: configure manager app

2004-08-23 Thread Richard Han
Thank you for your replying my question. Could you elaborate a bit more?
I might not understand you correctly but did you suggest to use
different host for each app? I only have a single host for a few apps
though.
Thank you!

Richard

On Mon, 2004-08-23 at 11:20, Shapira, Yoav wrote:
 Hi,
 You would achieve this via configuration on the server-side of different
 Hosts, each with only the set of webapps matched to the Realm providing
 your authentication.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Richard Han [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 23, 2004 1:19 PM
 To: [EMAIL PROTECTED]
 Subject: configure manager app
 
 
 Is it possible to give a user permission to stop/redeploy/start only a
 specific app, using manager app? I want to give the manager role to a
 user to redeploy a specific app, not all apps deployed on a server. How
 would you to achieve this?
 Is there a way to configure permissions to a role defined in
 tomcat-users.xml for manager app?
 
 Thank you for your help!
 
 Richard
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Jon Wingfield
If you're using 4.1.x you can place a context-name.xml file in the 
webapps (appBase) directory. It contains the Context element that would 
have gone in server.xml.
The custom Realm classes still need to be in the common classloader.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment
Shapira, Yoav wrote:
Hi,
If you're using Tomcat 5.x, you can put these in the context.xml file
(in the META-INF directory of your application / WAR).  They don't go in
web.xml, as they're not portable, but rather they are Tomcat-specific.
If you're using Tomcat 4.x, consider this another reason to upgrade ;)
Note however that Realm implementations need to be visible to the common
classloader.  So if the ... in your message is a custom Realm
implementation, you're SOL as far as self-containment goes.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:23 PM
To: Tomcat Users List
Subject: Where to put Listener  Realm instead of server.xml?
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume
they
will be the only webapp running, which is not the case here.
Can I put their changes somewhere else?
They need:
  Listener className=... descriptors=... debug=0/
and also
  Realm className=... debug=99 /
I don't really want to edit my server.xml, since I don't need to for
any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or
if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.
Can someone enlighten me or point me in the right direction?  Thanks!
--
Wendy Smoak

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


This e-mail, including any attachments, is a confidential business communication, 
and may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.
-
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]


Using catalina security manager in embedded tomcat application?

2004-08-23 Thread Bill Hughey
Our application has several catalina engines embedded in it and I am trying to 
determine if it makes sense or is even possible to use the catalina security manager 
in this setting.  Specifically, what takes the place of the '-security' switch on 
tomcat in an embedded scenario?

BH


Re: JSP WhiteSpace

2004-08-23 Thread Scott Ahten
I'm using tomcat with Apache 2 and mod_jk2. I was pleasantly surprised 
to find it was compressing pages using gzip by default.

On Aug 23, 2004, at 9:44 AM, John Sidney-Woollett wrote:
We also use mod_deflate with Apache to reduce the data transmission 
costs even further.

- - - - -
:: [EMAIL PROTECTED]
:: http://www.pixelfreak.net
- - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: configure manager app

2004-08-23 Thread Shapira, Yoav

Hi,
Yeah, I'm suggesting you split your one Host (and probably one Realm)
into multiple Hosts each with its own Realm configured for your one user
and running the webapps that users should be able to restart.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Han [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 1:37 PM
To: Tomcat Users List
Subject: RE: configure manager app

Thank you for your replying my question. Could you elaborate a bit
more?
I might not understand you correctly but did you suggest to use
different host for each app? I only have a single host for a few apps
though.
Thank you!

Richard

On Mon, 2004-08-23 at 11:20, Shapira, Yoav wrote:
 Hi,
 You would achieve this via configuration on the server-side of
different
 Hosts, each with only the set of webapps matched to the Realm
providing
 your authentication.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Han [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 23, 2004 1:19 PM
 To: [EMAIL PROTECTED]
 Subject: configure manager app
 
 
 Is it possible to give a user permission to stop/redeploy/start only
a
 specific app, using manager app? I want to give the manager role to
a
 user to redeploy a specific app, not all apps deployed on a server.
How
 would you to achieve this?
 Is there a way to configure permissions to a role defined in
 tomcat-users.xml for manager app?
 
 Thank you for your help!
 
 Richard
 
 
 

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




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


 -
 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Windows XP as webdav client hangs while accessing any non-IIS webdav server

2004-08-23 Thread Sundaram Mahesh
Dear All,

We are facing some strange problems while accessing a webdav share from windows XP as 
client. 

1) Occasionally the windows explorer window hangs while accessing one of the webdav 
shares and that window recovers once i open a new windows explorer window and access 
the same share or a different share. This behaviour is the same whle accessing the 
webdav server of tomcat as well as the webdav server that  we have written ourselves. 
So it is clearly a client problem. Was wondering whether any of webdav user also has 
faced similar problems and if there is a patch in Windows XP for this issue?

2) Sometimes access to webdav shares from windows XP client throws up this error ( see 
attached file). After sometime we are able to access the same share easily. Any clue 
on what could this be?

3) Sometimes , after error 2 happens, the selection of a different folder from the 
webdav server  simply is rejected and the focus goes back to the original folder which 
was selected at the end of point 2.

 wecerr.txt 

Any inputs on how to solve these problems is highly appreciated. 

Thanks in advance

regards
Mahesh

___

This message has been scanned for all known virus by OMNIQuad Mailwall Remote.


08/23/2004 18:07:35
HTTP 404 /_vti_bin/shtml.exe/_vti_rpc
htmlheadtitleApache Tomcat/4.1.27 - Error 
report/titleSTYLE!--H1{font-family : sans-serif,Arial,Tahoma;color : 
white;background-color : #0086b2;} H3{font-family : sans-serif,Arial,Tahoma;color : 
white;background-color : #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color : 
black;background-color : white;} B{color : white;background-color : #0086b2;} HR{color 
: #0086b2;} --/STYLE /headbodyh1HTTP Status 404 - 
/_vti_bin/shtml.exe/_vti_rpc/h1HR size=1 noshadepbtype/b Status 
report/ppbmessage/b 
u/_vti_bin/shtml.exe/_vti_rpc/u/ppbdescription/b uThe requested resource 
(/_vti_bin/shtml.exe/_vti_rpc) is not available./u/pHR size=1 
noshadeh3Apache Tomcat/4.1.27/h3/body/html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using catalina security manager in embedded tomcat application?

2004-08-23 Thread Jean-Francois Arcand

Bill Hughey a écrit :
Our application has several catalina engines embedded in it and I am trying to 
determine if it makes sense or is even possible to use the catalina security manager 
in this setting.  Specifically, what takes the place of the '-security' switch on 
tomcat in an embedded scenario?
BH
Make sence. SJSAS PE 8.0 ships with Tomcat 5 embedded and security 
turned on. You just need to call:

System.setSecurityManager() (see J2SE API docs)
somewhere in your code.
-- Jeanfrancois


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


RE: configure manager app

2004-08-23 Thread Richard Han
Can I configure a single instance of tomcat to different hosts?
Thank you!

On Mon, 2004-08-23 at 11:47, Shapira, Yoav wrote:
 Hi,
 Yeah, I'm suggesting you split your one Host (and probably one Realm)
 into multiple Hosts each with its own Realm configured for your one user
 and running the webapps that users should be able to restart.
 
 Yoav Shapira
 Millennium Research Informatics
 
 
 -Original Message-
 From: Richard Han [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 23, 2004 1:37 PM
 To: Tomcat Users List
 Subject: RE: configure manager app
 
 Thank you for your replying my question. Could you elaborate a bit
 more?
 I might not understand you correctly but did you suggest to use
 different host for each app? I only have a single host for a few apps
 though.
 Thank you!
 
 Richard
 
 On Mon, 2004-08-23 at 11:20, Shapira, Yoav wrote:
  Hi,
  You would achieve this via configuration on the server-side of
 different
  Hosts, each with only the set of webapps matched to the Realm
 providing
  your authentication.
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Richard Han [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 23, 2004 1:19 PM
  To: [EMAIL PROTECTED]
  Subject: configure manager app
  
  
  Is it possible to give a user permission to stop/redeploy/start only
 a
  specific app, using manager app? I want to give the manager role to
 a
  user to redeploy a specific app, not all apps deployed on a server.
 How
  would you to achieve this?
  Is there a way to configure permissions to a role defined in
  tomcat-users.xml for manager app?
  
  Thank you for your help!
  
  Richard
  
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended
 recipient, please immediately delete this e-mail from your computer
 system
 and notify the sender.  Thank you.
 
 
  -
  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]
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 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: Windows XP as webdav client hangs while accessing any non-IIS webdav server

2004-08-23 Thread Mark Thomas
The URL /_vti_bin/shtml.exe/_vti_rpc is what IE goes looking for if it doesn't
recognise the response from a WEBDav compliant server. I have seen similar
problems on TC5 in the past around 302 redirects from, for example,
http://localhost/webdav to http://localhost/webdav/. Using a servlet mapping of
/* rather than / seemed to fix things. I haven't seen this on TC4 but try it
and see if it helps.

My XP box that I do Tomcat dev on is fully patched and I haven't seen this for a
while. Whether those facts are related is anybody's guess ;)

Mark

 -Original Message-
 From: Sundaram Mahesh [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 23, 2004 7:22 PM
 To: [EMAIL PROTECTED]
 Subject: Windows XP as webdav client hangs while accessing 
 any non-IIS webdav server
 
 Dear All,
 
 We are facing some strange problems while accessing a webdav 
 share from windows XP as client. 
 
 1) Occasionally the windows explorer window hangs while 
 accessing one of the webdav shares and that window recovers 
 once i open a new windows explorer window and access the 
 same share or a different share. This behaviour is the same 
 whle accessing the webdav server of tomcat as well as the 
 webdav server that  we have written ourselves. So it is 
 clearly a client problem. Was wondering whether any of webdav 
 user also has faced similar problems and if there is a patch 
 in Windows XP for this issue?
 
 2) Sometimes access to webdav shares from windows XP client 
 throws up this error ( see attached file). After sometime we 
 are able to access the same share easily. Any clue on what 
 could this be?
 
 3) Sometimes , after error 2 happens, the selection of a 
 different folder from the webdav server  simply is rejected 
 and the focus goes back to the original folder which was 
 selected at the end of point 2.
 
  wecerr.txt 
 
 Any inputs on how to solve these problems is highly appreciated. 
 
 Thanks in advance
 
 regards
 Mahesh
 
 __
 _
 
 This message has been scanned for all known virus by OMNIQuad 
 Mailwall Remote.
 
 
 



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



Re: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Dennis Dai
On 8/23/2004 9:22 AM, Wendy Smoak wrote:
We're going to try out a third-party report generation tool, and the
installation instructions involve replacing server.xml.  They assume they
will be the only webapp running, which is not the case here.
Can I put their changes somewhere else?
They need:
Listener className=... descriptors=... debug=0/
and also
Realm className=... debug=99 /
I don't really want to edit my server.xml, since I don't need to for any of
my own webapps.  But I'm not sure if these tags can go in web.xml, or if
not, I seem to remember maybe putting a file in the 'webapps' directory
which will get picked up.
Can someone enlighten me or point me in the right direction?  Thanks!
I believe Listener ... / should go into web.xml (beware the order), 
Realm ... / can go into server.xml's Engine, Host or Context section, 
depending on your needs. If you decided to put it into Context, you can 
put it into conf/Catalina/localhost/context.xml, thus no need to touch 
your server.xml ...

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


RE: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Shapira, Yoav

Hi,

I believe Listener ... / should go into web.xml (beware the order),

Listener can also be a Tomcat listener which goes in server.xml, as
documented in
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: configure manager app

2004-08-23 Thread Shapira, Yoav

Hi,
Yes.  Thank you,

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Richard Han [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 2:52 PM
To: Tomcat Users List
Subject: RE: configure manager app

Can I configure a single instance of tomcat to different hosts?
Thank you!

On Mon, 2004-08-23 at 11:47, Shapira, Yoav wrote:
 Hi,
 Yeah, I'm suggesting you split your one Host (and probably one Realm)
 into multiple Hosts each with its own Realm configured for your one
user
 and running the webapps that users should be able to restart.

 Yoav Shapira
 Millennium Research Informatics


 -Original Message-
 From: Richard Han [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 23, 2004 1:37 PM
 To: Tomcat Users List
 Subject: RE: configure manager app
 
 Thank you for your replying my question. Could you elaborate a bit
 more?
 I might not understand you correctly but did you suggest to use
 different host for each app? I only have a single host for a few
apps
 though.
 Thank you!
 
 Richard
 
 On Mon, 2004-08-23 at 11:20, Shapira, Yoav wrote:
  Hi,
  You would achieve this via configuration on the server-side of
 different
  Hosts, each with only the set of webapps matched to the Realm
 providing
  your authentication.
 
  Yoav Shapira
  Millennium Research Informatics
 
 
  -Original Message-
  From: Richard Han [mailto:[EMAIL PROTECTED]
  Sent: Monday, August 23, 2004 1:19 PM
  To: [EMAIL PROTECTED]
  Subject: configure manager app
  
  
  Is it possible to give a user permission to stop/redeploy/start
only
 a
  specific app, using manager app? I want to give the manager role
to
 a
  user to redeploy a specific app, not all apps deployed on a
server.
 How
  would you to achieve this?
  Is there a way to configure permissions to a role defined in
  tomcat-users.xml for manager app?
  
  Thank you for your help!
  
  Richard
  
  
  
 

-
  To unsubscribe, e-mail:
[EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended
 recipient, please immediately delete this e-mail from your computer
 system
 and notify the sender.  Thank you.
 
 
 
-
  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]




 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


 -
 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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
Hello everyone,
I am using the following fragment in a JSP document (the XML variant of 
JSP pages):

hrefmyurl?param1=value1amp;param2=value2/href
The problem is, Tomcat sends this fragment to the browser as
hrefmyurl?param1=value1param2=value2/href
which causes an XML parsing exception on the client.
Why is the amp; character being unescaped? Since JSP documents are 
intended for outputting XML, why is the output violating the XML specs? 
I cross-checked with the gt; and lt; characters - same problem.

What can I do to prevent this?
I am using Tomcat 5.0.27.
Regards,
Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Ampersand problem in JSP document

2004-08-23 Thread Shapira, Yoav

Hi,
Does it happen if you have a proper JSP XML page, e.g.
jsp:root
 xmlns:jsp=http://java.sun.com/JSP/Page;
 version=1.2
  jsp:text![CDATA[html
body
  center
h1Hello World/h1
  /center
/body
  /html]]/jsp:text
/jsp:root

?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Schildbach
Sent: Monday, August 23, 2004 3:31 PM
To: [EMAIL PROTECTED]
Subject: Ampersand problem in JSP document

Hello everyone,

I am using the following fragment in a JSP document (the XML variant of
JSP pages):

hrefmyurl?param1=value1amp;param2=value2/href

The problem is, Tomcat sends this fragment to the browser as

hrefmyurl?param1=value1param2=value2/href

which causes an XML parsing exception on the client.

Why is the amp; character being unescaped? Since JSP documents are
intended for outputting XML, why is the output violating the XML specs?
I cross-checked with the gt; and lt; characters - same problem.

What can I do to prevent this?

I am using Tomcat 5.0.27.

Regards,

Andreas


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Ampersand problem in JSP document

2004-08-23 Thread John Villar
Try to append amp to the amp; fragment it should end like this 
amp;amp; and the output would be amp;

Andreas Schildbach escribió:
Hello everyone,
I am using the following fragment in a JSP document (the XML variant 
of JSP pages):

hrefmyurl?param1=value1amp;param2=value2/href
The problem is, Tomcat sends this fragment to the browser as
hrefmyurl?param1=value1param2=value2/href
which causes an XML parsing exception on the client.
Why is the amp; character being unescaped? Since JSP documents are 
intended for outputting XML, why is the output violating the XML 
specs? I cross-checked with the gt; and lt; characters - same problem.

What can I do to prevent this?
I am using Tomcat 5.0.27.
Regards,
Andreas
-
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: Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
Shapira, Yoav wrote:
Does it happen if you have a proper JSP XML page, e.g.
jsp:root 
 xmlns:jsp=http://java.sun.com/JSP/Page;
 version=1.2
  jsp:text![CDATA[html
body
  center
h1Hello World/h1
  /center
/body
  /html]]/jsp:text
/jsp:root
It happens with the following small jspx:
jsp:root version=2.0
xmlns:jsp=http://java.sun.com/JSP/Page;

hrefmyurl?param1=value1amp;param2=value2/href
/jsp:root
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Ampersand problem in JSP document

2004-08-23 Thread Andreas Schildbach
John Villar wrote:
Try to append amp to the amp; fragment it should end like this 
amp;amp; and the output would be amp;
It is my understanding that if an XML document is serialized to an 
output stream, characters like ,  and  are represented by their 
entities amp; gt; lt so an XML parser can parse the document again.

Otherwise I would be ending up writing amp;amp;amp;amp;amp; somewhen 
and have to count the number of transformations in advance )-:

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


Re: Ampersand problem in JSP document

2004-08-23 Thread John Villar
LOL that's true. i think yoav gave you the right solution 
try embedding your xml processor offending fragment into a 
jsp:text![CDATA[  ]]/jsp:text that should do the work

It is my understanding that if an XML document is serialized to an 
output stream, characters like ,  and  are represented by their 
entities amp; gt; lt so an XML parser can parse the document again.

Otherwise I would be ending up writing amp;amp;amp;amp;amp; somewhen 
and have to count the number of transformations in advance )-:

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


change mod_jk2.conf without restarting Apache

2004-08-23 Thread Richard Dyson
Hello:
 
 I'm working on a web application (platform details - SuSE 8.2, Apache 2.0.50, mod_jk2 
as the connector between Tomcat and Apache). 
 
 My intention is to make changes to mod_jk2.conf (add/remove LocationMatch blocks), 
and have Apache pick them up without my having to restart the server. Is it even 
possible to do that?
 
 Intense google'ing has not helped. I've tried to increment the 'ver' attribute of the 
[uri:/jkstatus/*] section in workers2.properties  but to no avail !
 
 Please, can anyone shed some light on this issue? I appreciate your help.
 
 Thanks and best regards,
Rich


-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

FOREST FOR THE TREES?

2004-08-23 Thread Williams, Mark L CIV NSWC-PC
Circumstances:

jk2, tomcat5, apache2 (almost) working for URI spec in
workers2.properties of

[uri:/*]

Browse through port 80 to host; Tomcat 5 index.jsp
(tomcat-homewebapps/ROOT/index.jsp) displays and most (all?) links in
it work. However, I have a tomcat-home/webapps/DBTest directory with
test.jsp in it. If I browse to the 8080 port, the test.jsp page displays
correctly. If I browse through port 80, I get a 404 error, requested
resource not available.

Obviously, I'd like to be able to see all subdirs to display through
apache. All files/directories have the same owner/group settings.

test.jsp uses the MySQL connector and, as indicated, works fine through
port 8080.

Any help would be greatly appreciated.

VR/
Mark


smime.p7s
Description: S/MIME cryptographic signature


setModelerType method not found - when updating attributes using JMX-console

2004-08-23 Thread Sastry Malladi
Any help/hints on this one ?
I initially posted this on jboss mailing lists, but since this is really 
a tomcat/commons-modeler issue, I'm posting
it here

Thanks,
Sastry
---BeginMessage---
I haven't heard any responses. Trying again to see if there is anyone 
who has some ideas or has
seen this behaviour before.

Basically, the MBean for the StandardServer comes up with a 
modelerType attribute, but the
StandardServer doesn't actually have a setModelerType method. Looking at 
some documentation,
I understand that tomcat5 uses a modelerType attribute by default for 
all mbeans (the
mbeans-descriptors.xml itself doesn't contain this).  How can this work 
if StandardServer doesn't have
setModelerType method ? Is this is a bug or am I missing something ?
Any insights are appreciated.

Sastry
Sastry Malladi wrote:
I'm using JBOSS 3.2.5 (latest production version). When I use the
jmx-console page and then select catalina server mbean to update any
attributes, I get the following exception. The method setModelerType
is indeed not there in the StandardServer. So the
question is, why is the catalina server mbean displaying an attirbute
called modelerType and thus always calling setModelerType() when you
click on ApplyChanges ? Any help is appreciated. Thanks.
javax.servlet.ServletException: Failed to update attributes
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(Unknown Source)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(Unknown Source)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
root cause
ReflectionException: Cannot find setter method setModelerType StandardServer[8005]
Cause: java.lang.NoSuchMethodException: 
org.apache.catalina.core.StandardServer.setModelerType(java.lang.String)
org.apache.commons.modeler.BaseModelMBean.setAttribute(BaseModelMBean.java:662)
org.jboss.mx.server.RawDynamicInvoker.setAttribute(Unknown Source)
org.jboss.mx.server.MBeanServerImpl.setAttribute(Unknown Source)
org.jboss.jmx.adaptor.control.Server.setAttributes(Unknown Source)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.updateAttributes(Unknown Source)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(Unknown Source)
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 



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

Re: Ampersand problem in JSP document

2004-08-23 Thread Robert Koberg
Hi,
(jumping in late) Have you tried:
 jsp:directive.page contentType=text/xml /
and perhaps:
 jsp:output doctype-root-element=html
   doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
   
doctype-system=http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd/

best,
-Rob

Andreas Schildbach wrote:
Shapira, Yoav wrote:
Does it happen if you have a proper JSP XML page, e.g.
jsp:root  xmlns:jsp=http://java.sun.com/JSP/Page;
 version=1.2
  jsp:text![CDATA[html
body
  center
h1Hello World/h1
  /center
/body
  /html]]/jsp:text
/jsp:root

It happens with the following small jspx:
jsp:root version=2.0
xmlns:jsp=http://java.sun.com/JSP/Page;

hrefmyurl?param1=value1amp;param2=value2/href
/jsp:root

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


Tomcat 5 JK2 IIS 5

2004-08-23 Thread William L. Thomson Jr.
Anyone here get Tomcat 5 to work with IIS 5?

I spent more than 7 hours today mainly because of the damn jk2
connector.

After all sorts of misleading docs of different working configs that did
not work for me. I have everything up an running.
However I can't get the syntax right in workers2.properties file.

IIS receives the request logs the redirect via the dll and then that's
it. No error logged in the jk log. Finally I came across a posting that
allowed me to enable logging via one of Windows system logs. Available
in the system manager.

Seems that the host is null and there are context issues.

I can post what ever you want to see, but I am almost 100% positive my
problem lies in the workers2.properties file.

Now Tomcat alone works perfectly. I have run Tomcat on Linux with Apache
for 3+ years now. Never had issues like this.

Absolutely ridiculous.

What really bothers me is I run the latest version of both Tomcat and
JK2. Why my workers2.properties file will work fine on Linux and not on
Windows. There is nothing in it to make it OS specific except for file
paths to the shm and log file. Otherwise the files should be the same.

Yet I have to modify them to get any sort of response. Otherwise it's
like jk is not there.

Either I get an error 500 from IIS or I get the page showing all java
content that is not supposed to be visible.

All documentation on Tomcat's site is wrong. It's all for JK not JK2.
Huge differences.

FYI, I have confirmed my registry settings are correct, the ISAPI dll
shows up with a green arrow.

I am doing all this for a client and do not have access to the files at
this moment. However I can get at them tomorrow and post them if needed.

In a nutshell what exactly needs to go in

jk2.properties

and

workers2.properties

on IIS. Since it's obviously different for IIS?

That or I really screwed up with configure Tomcat. Despite everything
working perfectly at port 8080.

Really at a loss and want to hate IIS but my problem is more with JK2
for IIS than IIS. Client really thinks highly of Tomcat at this point.

-- 
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com


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



Re: The value for the useBean class attribute com.company.product.thing is invalid.

2004-08-23 Thread Julie Larson
I think this is it.  Upgrading to 5.0.27 seemed to remedy it also.

Thank you for your help
-Julie


On Sat, 21 Aug 2004 08:23:23 -0500, QM [EMAIL PROTECTED] wrote:
 On Fri, Aug 20, 2004 at 09:37:49PM -0700, Julie Larson wrote:
 : I'm using all public constructors that take no arguments.
 
 Does your no-args ctor throw exceptions?
 That will cause problems.
 
 Unfortunately, I don't know the exact reason behind this.  It's probably
 a 1.2 - 2.0 JSP spec change but I haven't had the time to research it.
 
 -QM
 
 --
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 
 
 -
 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 write a Valve that can inspect the HTTP Body, without damaging the InputStream?

2004-08-23 Thread Betts, Chris
*blink* *blink*

Um, yes, that will work nicely.  

In fact, based on your suggestion I did a web search and found a similar, worked 
example - http://www-106.ibm.com/developerworks/java/library/j-tomcat/ .

Cool!  Thank you very much :-)!

  cheers,

 Chris



-Original Message-
From:   Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent:   Mon 8/23/2004 11:07 PM
To: Tomcat Users List
Cc: 
Subject:Re: How to write a Valve that can inspect the HTTP Body, without 
damaging the InputStream?
Can't you use a java.io.PushbackInputStream?
You could write a Filter instead of a Valve. In the Filter wrap the 
ServletRequest and provide a custom ServletInputStream which uses the 
PushbackInputStream around the real ServletInputStream.
Once security checks have passed you can push back the used bytes and 
pass on your wrapped ServletRequest down the Filter chain to the 3rd 
party servlets.

HTH,

Jon

Betts, Chris wrote:
 Hi Folks,
 
I want to write a tomcat security Valve that does content checking of the HTTP 
 body, before anything else happens (e.g. 3rd party destination servlets I have no 
 control over are called). 
 
However, to read the body data I 'use up' the inputStream, and can't find any way 
 to put it back - the result is the final servlet gets an empty body. 
 
Unfortunately, the data is actually HTTP POST data containing SOAP/XML, otherwise 
 I could use the servlet request parameter methods.  Since it is SOAP/XML though, I 
 really have to get the body data directly, as no parameters are set.
 
I've tried mark() and reset() on both the input stream and the reader methods, 
 but no luck (not implemented and no effect respectively).  And, coyote doc not 
 withstanding, 'setStream()' is actually a no-op - the source code shows it is an 
 empty method - so I can't reset the stream that way.
 
   
I'm getting a 'you can't get there from here feeling' at this stage; does anyone 
 have any clues?  I'm using tomcat 4.0.29 at the moment, but the code seems pretty 
 similar in tomcat 5 as well so I don't think switching will help...
 
thanks heaps in advance :-),
 
- Chris
 
 Dr Christopher Betts
 Web Services Security
 Computer Associates   
 



-
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: Where to put Listener Realm instead of server.xml?

2004-08-23 Thread Dennis Dai
On 8/23/2004 12:16 PM, Shapira, Yoav wrote:
I believe Listener ... / should go into web.xml (beware the order),
Listener can also be a Tomcat listener which goes in server.xml, as
documented in
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html.
I actually looked through the document before I did the posting, but I 
guess I didn't look hard enough. :(

Thanks for clearing that up!
--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Rick Wong
Hi,
I am using Tomcat 5.0.26.  I configured the HTTP connector to decode URI 
with setting URIEncoding=UTF-8

 Connector port=8080 address=${jboss.bind.address}
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
URIEncoding=UTF-8
connectionTimeout=2 disableUploadTimeout=true/
This works for my pages that accept HTTP GET request.  Unicode input 
parameter values that are UTF-8 encoded are properly decoded when 
calling request.getParameter().  However, if the request is HTTP POST, 
the input parameter values are mangled.  Am I missing some configuration 
settings?

I have the following simple JSP page to illustrate the problem.
%@ page contentType=text/html;charset=UTF-8 %
html
head
titleTesting UTF-8/title
meta http-equiv=Content-Type content=text/html; charset=UTF-8
/head
body
Type in UNICODE characters in input field and click the Submit button.
h1Testing UTF-8 using GET/h1
form action=%=request.getRequestURI()% method=GET
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form
h1Testing UTF-8 using POST/h1
form action=%=request.getRequestURI()% method=POST
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form
/body
/html
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Filip Hanik \(lists\)
doesn't URIEncoding suggest that the URI is encoded, 
in a POST, the parameters are passed in the body, not in the URI?



-Original Message-
From: Rick Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:08 PM
To: Tomcat Users List
Subject: How do I configure Tomcat to translate UTF-8 encoded parameters


Hi,

I am using Tomcat 5.0.26.  I configured the HTTP connector to decode URI 
with setting URIEncoding=UTF-8

  Connector port=8080 address=${jboss.bind.address}
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 URIEncoding=UTF-8
 connectionTimeout=2 disableUploadTimeout=true/

This works for my pages that accept HTTP GET request.  Unicode input 
parameter values that are UTF-8 encoded are properly decoded when 
calling request.getParameter().  However, if the request is HTTP POST, 
the input parameter values are mangled.  Am I missing some configuration 
settings?

I have the following simple JSP page to illustrate the problem.

%@ page contentType=text/html;charset=UTF-8 %
html
head
titleTesting UTF-8/title
meta http-equiv=Content-Type content=text/html; charset=UTF-8
/head
body

Type in UNICODE characters in input field and click the Submit button.

h1Testing UTF-8 using GET/h1
form action=%=request.getRequestURI()% method=GET
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form

h1Testing UTF-8 using POST/h1
form action=%=request.getRequestURI()% method=POST
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form

/body
/html


--
Rick

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004


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



Information

2004-08-23 Thread tomcat-user
--  Virus Warning Message (on uusnwa0p)  --

Found virus WORM_NETSKY.Z in file Part-2.txt   
   
   .exe (in Part-2.zip)
The uncleanable file is deleted.

-
Important!


--  Virus Warning Message (on uusnwa0p)  --

Part-2.zip is removed from here because it contains a virus.

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

How to allow access just from one remote host?

2004-08-23 Thread Eugene
Hi! I have Apache2.0.50+mod_jk2+Tomcat5.0.27 running together on Windows 2003.
Access to the applications directories mounted in Virtual Host of
Apache. I'm trying to deny access to root of every site and the
applications directory with
Directory C:/server/apache/htdocs
Order Deny,Allow
Deny from all
Allow from www.mysite.com
/Directory

But its didnt work. I can deny access to the htdocs/, but the
application directory, for example htdocs/myapp/ still accesible to all.
I've tryed to do that with LocationMatch / and Location /, then Tomcat
cannot load applet, because it tells that applet innaccesible.
I've tryed to resolve it like this:
Directory C:/server/apache/htdocs/myapp-folder
Order Deny,Allow
Deny from all
Allow from www.mysite.com
/Directory

Directory C:/server/apache/htdocs
Order Deny,Allow
Deny from all
Allow from www.mysite.com
/Directory

But its working just for root (htdocs).

I can close htdocs from Apache, but give some tips please how to close
access to apps directories and allow it just from one host.
Maybe any ideas how to do that with just Tomcat configuration?

Thank you very much for any help.


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



Re: How do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Rick Wong
Filip Hanik (lists) wrote:
doesn't URIEncoding suggest that the URI is encoded, 
in a POST, the parameters are passed in the body, not in the URI?

 

Yes it does, and hence the second part of my question.  Do you know how 
one can configure Tomcat to decode input parameters with UTF-8 encoding?

--
Rick
-Original Message-
From: Rick Wong [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 8:08 PM
To: Tomcat Users List
Subject: How do I configure Tomcat to translate UTF-8 encoded parameters
Hi,
I am using Tomcat 5.0.26.  I configured the HTTP connector to decode URI 
with setting URIEncoding=UTF-8

 Connector port=8080 address=${jboss.bind.address}
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443 acceptCount=100
URIEncoding=UTF-8
connectionTimeout=2 disableUploadTimeout=true/
This works for my pages that accept HTTP GET request.  Unicode input 
parameter values that are UTF-8 encoded are properly decoded when 
calling request.getParameter().  However, if the request is HTTP POST, 
the input parameter values are mangled.  Am I missing some configuration 
settings?

I have the following simple JSP page to illustrate the problem.
%@ page contentType=text/html;charset=UTF-8 %
html
head
titleTesting UTF-8/title
meta http-equiv=Content-Type content=text/html; charset=UTF-8
/head
body
Type in UNICODE characters in input field and click the Submit button.
h1Testing UTF-8 using GET/h1
form action=%=request.getRequestURI()% method=GET
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form
h1Testing UTF-8 using POST/h1
form action=%=request.getRequestURI()% method=POST
input type=text name=data value='%=request.getParameter(data)%'/
input type=submit name=submit value=submit/
/form
/body
/html
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.740 / Virus Database: 494 - Release Date: 8/16/2004
-
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]


Context Path Not Working when autoDeploy=true

2004-08-23 Thread Lisa Simiki
Hi everyone,

I am using Tomcat 5.0.27, straight out of the box. I
have a question...

First, I added an Context Descriptor XML file,
jsp-examples.xml, to the webapps/jsp-examples
directory. My intent was to be able to access the
jsp-examples app with this URL:

http://localhost:8080/je;

Here's the jsp-example.xml contents:
---
Context path=/je docBase=jsp-examples
 debug=0 privileged=true
/Context
---


I did this because I noticed the balancer app has a
balancer.xml.

It seems like it should work, right? But it doesn't.
The URL, http://localhost:8080/je;, gives me a 404
Not Found. Is this a bug maybe? There's nothing in the
log to indicate a problem.

Is there a way to keep the webapps/jsp-examples
structure intact yet be able to use the URL I want?

Thank you,

Lisa




___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: Context Path Not Working when autoDeploy=true

2004-08-23 Thread Jacob Kjome
It's a mistake that it was there.  Check out the conf/Catalina/localhost 
directory.  You'll see a balancer.xml file there as well, along with a few 
others.  That is the correct place for context configuration files (CCF) to 
be... at least for the localhost Host (as defined in server.xml).  Put 
your file there and it should work just fine, although you might notice the 
app being deployed twice because it will be autodeployed under the path 
/jsp-examples as well as your defined path /je.  To avoid this, you 
would want to move jsp-examples out of webapps and point to it in the 
CCF.  The other option would be to turn off autodeploy in the Host config 
in server.xml.

Jake
At 08:59 PM 8/23/2004 -0700, you wrote:
Hi everyone,
I am using Tomcat 5.0.27, straight out of the box. I
have a question...
First, I added an Context Descriptor XML file,
jsp-examples.xml, to the webapps/jsp-examples
directory. My intent was to be able to access the
jsp-examples app with this URL:
http://localhost:8080/je;
Here's the jsp-example.xml contents:
---
Context path=/je docBase=jsp-examples
 debug=0 privileged=true
/Context
---
I did this because I noticed the balancer app has a
balancer.xml.
It seems like it should work, right? But it doesn't.
The URL, http://localhost:8080/je;, gives me a 404
Not Found. Is this a bug maybe? There's nothing in the
log to indicate a problem.
Is there a way to keep the webapps/jsp-examples
structure intact yet be able to use the URL I want?
Thank you,
Lisa

___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
-
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 do I configure Tomcat to translate UTF-8 encoded parameters

2004-08-23 Thread Jacob Kjome
At 08:34 PM 8/23/2004 -0700, you wrote:
Filip Hanik (lists) wrote:
doesn't URIEncoding suggest that the URI is encoded, in a POST, the 
parameters are passed in the body, not in the URI?


Yes it does, and hence the second part of my question.  Do you know how 
one can configure Tomcat to decode input parameters with UTF-8 encoding?
form name=myform action=/someplace accept-charset=UTF-8
.
/form
And then make sure to set the request's encoding to UTF-8 as well.
Jake
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]