How to configure Tomcat for multiple IPs

2005-09-13 Thread Barnett, Brian W.
I have one NIC with 2 external IPs bound to it on a Windows XP box. The goal
is to have Tomcat service two web sites, each web site having it's own IP
address.

www.website1.com -- xxx.xxx.xxx.xxx
www.website2.com -- yyy.yyy.yyy.yyy

I have tried defining two Service's with Connector's that have
address=xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy elements in them. The second
Service listed in server.xml never started. I would never see any log
information for it in any logs like I did for the first Service listed and
it was defined exactly the same as the first one with the exception of
address and the name elements, logfile names, etc.

I have tried one Service with multiple Connector's, one Connector for
xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two
Host elements in this scenario, but got no indication that anything was
running on yyy.yyy.yyy.yyy.

I tried configuring it as if I only had one IP, one Service, one
Connector, one Engine and one Host and did not specify the address
element. In this case, browsing to either xxx.xxx.xxx.xxx and
yyy.yyy.yyy.yyy produced the same results. They both went to website1. I'm
assuming this is because Tomcat will bind to all available IPs on the
specified port if an address is not specified.

Anyway, could someone please tell me the correct way to do this?

TIA,
Brian Barnett

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: How to configure Tomcat for multiple IPs

2005-09-13 Thread Hassan Schroeder

Barnett, Brian W. wrote:


I have tried one Service with multiple Connector's, one Connector for
xxx.xxx.xxx.xxx and one Connector for yyy.yyy.yyy.yyy. I also had two
Host elements in this scenario, but got no indication that anything was
running on yyy.yyy.yyy.yyy.


What indication were you looking for? :-)

I have a production box with one Service and four Connectors (2 IPs
using ports 80 and 443), so that should be fine. Maybe you should
post the relevant parts of your server.xml.

BTW, did you run nmap or telnet or something to check if anything
was listening on the specified IPs in that configuration?

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



RE: How to configure Tomcat for multiple IPs

2005-09-13 Thread Barnett, Brian W.
 What indication were you looking for? :-)

Tried browsing to the IP and got nothing. Also didn't see any log file
information for it.

 BTW, did you run nmap or telnet or something to check if anything was
listening on the specified IPs in that configuration?

To test listening on the specified IPs, I just pinged them both and that was
successful.

Can you send me the complete Service element of your working configuration
please? I'm running Tomcat 5.0.28.

Thanks,
Brian Barnett


-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 13, 2005 10:03 AM
To: Tomcat Users List
Subject: Re: How to configure Tomcat for multiple IPs


Barnett, Brian W. wrote:

 I have tried one Service with multiple Connector's, one 
 Connector for xxx.xxx.xxx.xxx and one Connector for 
 yyy.yyy.yyy.yyy. I also had two Host elements in this scenario, 
 but got no indication that anything was running on yyy.yyy.yyy.yyy.

What indication were you looking for? :-)

I have a production box with one Service and four Connectors (2 IPs using
ports 80 and 443), so that should be fine. Maybe you should post the
relevant parts of your server.xml.

BTW, did you run nmap or telnet or something to check if anything was
listening on the specified IPs in that configuration?

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



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

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: How to configure Tomcat for multiple IPs

2005-09-13 Thread Hassan Schroeder

Barnett, Brian W. wrote:


BTW, did you run nmap or telnet or something to check if anything was

listening on the specified IPs in that configuration?

To test listening on the specified IPs, I just pinged them both and that was
successful.


Well, yeah, that says the interface is alive, but doesn't mean
anything's listening; running `telnet xxx.xxx.xxx.xxx 80` will
tell you a lot more :-)


Can you send me the complete Service element of your working configuration
please? I'm running Tomcat 5.0.28.


I'm running 5.5.9 but it shouldn't matter; I'll send it offlist.

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread shyama

Hi All,
 
When a client asks for a jsp file and an error has been encountered by
Server while compiling the .jsp to .class then I would like to display
that on the client browser rather than it dumping to the log file
local_host ...log. 
 
Please let me know whether there is any parameter to be set...
 
 
Thanks in advance,
Shyama
 
 
 


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.

Re: How to Configure Tomcat to display the error on to Client rather than into logs

2005-08-26 Thread Brian Cook


What is it you want to display?  The stack trace?


shyama wrote:

Hi All,
 
When a client asks for a jsp file and an error has been encountered by

Server while compiling the .jsp to .class then I would like to display
that on the client browser rather than it dumping to the log file
local_host ...log. 
 
Please let me know whether there is any parameter to be set...
 
 
Thanks in advance,

Shyama
 
 
 



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.



--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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

How to configure tomcat default character encoding ?

2005-07-27 Thread Dongsheng Song
I user Tomcat 5.0.28, the browser send server UTF-8 query string like:

QueryString: id=12code=13name=%E5%90%8D%E7%A7%B0

How to configure tomcat default character encoding to UTF-8 ?

Dongsheng Song

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



Re: How to configure tomcat default character encoding ?

2005-07-27 Thread Mark Thomas

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

You should read the documentation for the URIEncoding and 
useBodyEncodingForURI options.


Mark

Dongsheng Song wrote:

I user Tomcat 5.0.28, the browser send server UTF-8 query string like:

QueryString: id=12code=13name=%E5%90%8D%E7%A7%B0

How to configure tomcat default character encoding to UTF-8 ?

Dongsheng Song

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



How to configure Tomcat and IIS to perform Basic authentication

2005-07-13 Thread Ikonne, Ike
Hi all,

 

I have been trying to configure IIS/Tomcat to perform basic
authentication and have not had any success yet,

I would appreciate it if someone could give me some pointers on how to
make this to work.

 

Thanks,

 

Ike

 



how to configure tomcat to user application

2004-02-25 Thread xavier manohar
Hello 
can  any one help me to cofigure tomcat 4.1.29  to user application path 
,during tomcat startup
regards 
mano

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and 
more.

Re: how to configure tomcat to user application

2004-02-25 Thread BAO RuiXian


xavier manohar wrote:

Hello 
   can  any one help me to cofigure tomcat 4.1.29  to user application path ,during tomcat startup
 

You can copy/modify the Context block for 'examples' to your 'user 
application' in Tomcat_Root/conf/server.conf file.

Best

Bao

regards 
mano

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
 



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


How to configure Tomcat 5.0+ behind a hardware accelerator?

2004-02-10 Thread Adrian Klingel
Can anyone supply me with a link to a document that contains information on
how to configure Tomcat 5.0+ to sit behind an SSL accelerator machine?  I've
been unable to find specifics on the internet, only the fact that people
have done it.

Thanks very much,
Adrian Klingel




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



RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Shapira, Yoav

Howdy,
Hey I just stumbled on this post which may help:
http://dotnetguy.techieswithcats.com/archives/003089.shtml

By the way, how do you simulate a PUT request for testing?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:32 AM
To: 'Tomcat Users List'
Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets?

Yes, sorry, I meant PUT, but I have already a doPut() method in my
servlet but it is never called because my calling client receives an
error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
I use the 'standard' Tomcat server.xml configuration plus entries for my
servlet but I have not configured any security constraints for my
servlet.

I have no idea what could be wrong...



 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. September 2003 15:56
 An: Tomcat Users List
 Betreff: RE: How to configure Tomcat to acceppt PUT requests
 for servlets?



 Howdy,
 Assuming you meant PUT in the message just like in your
 subject: simply add a doPut method to your servlet.  Tomcat
 won't reject this unless you have a security constraint only
 allowing certain methods and rejecting PUT.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure Tomcat to acceppt PUT requests for
 servlets?
 
 Hi,
 
 how do I configure Tomcat 4.x to accept POST requests for my
 servlet? I
 always receive HTTP error 405 Method not allowed. POST
 works without
 problems.
 
 Regards,
 Juergen
 
 
 -
 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]



RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Shapira, Yoav
Howdy,
Please ignore my earlier response, WebDAV has nothing to do with it.

I just verified PUT requests work fine in tomcat 4.1.27.  I'm attaching a WAR with a 
servlet and a test class to show this is true.  I'm also concurring with Mark Thomas 
in verifying bug 12938 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12938) is 
working.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:32 AM
To: 'Tomcat Users List'
Subject: AW: How to configure Tomcat to acceppt PUT requests for servlets?

Yes, sorry, I meant PUT, but I have already a doPut() method in my
servlet but it is never called because my calling client receives an
error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
I use the 'standard' Tomcat server.xml configuration plus entries for my
servlet but I have not configured any security constraints for my
servlet.

I have no idea what could be wrong...



 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 23. September 2003 15:56
 An: Tomcat Users List
 Betreff: RE: How to configure Tomcat to acceppt PUT requests
 for servlets?



 Howdy,
 Assuming you meant PUT in the message just like in your
 subject: simply add a doPut method to your servlet.  Tomcat
 won't reject this unless you have a security constraint only
 allowing certain methods and rejecting PUT.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure Tomcat to acceppt PUT requests for
 servlets?
 
 Hi,
 
 how do I configure Tomcat 4.x to accept POST requests for my
 servlet? I
 always receive HTTP error 405 Method not allowed. POST
 works without
 problems.
 
 Regards,
 Juergen
 
 
 -
 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]

AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-24 Thread Jürgen Schwarz
Hi,

I use a Java client to send the PUT request:

-- cut here --
connection.setDoOutput(true);
connection.setRequestMethod(PUT);
connection.setUseCaches(false);
connection.setRequestProperty(Content-Type,text/xml);
os=connection.getOutputStream()
os.write(myXmlData);
os.flush();
os.close();
-- cut here --


It works perfectly when setting the requestMethod to POST but not with
PUT.
I'm now playing around with the web.xml of my application, maybe I have
to configure something there to enable PUT.




 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Gesendet: Mittwoch, 24. September 2003 15:19
 An: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Betreff: RE: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 
 Howdy,
 Please ignore my earlier response, WebDAV has nothing to do with it.
 
 I just verified PUT requests work fine in tomcat 4.1.27.  I'm 
 attaching a WAR with a servlet and a test class to show this 
 is true.  I'm also concurring with Mark Thomas in verifying 
 bug 12938 
 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12938) is working.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 1:32 AM
 To: 'Tomcat Users List'
 Subject: AW: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 Yes, sorry, I meant PUT, but I have already a doPut() method in my
 servlet but it is never called because my calling client receives an
 error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
 I use the 'standard' Tomcat server.xml configuration plus 
 entries for my
 servlet but I have not configured any security constraints for my
 servlet.
 
 I have no idea what could be wrong...
 
 
 
  -Ursprüngliche Nachricht-
  Von: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 23. September 2003 15:56
  An: Tomcat Users List
  Betreff: RE: How to configure Tomcat to acceppt PUT requests
  for servlets?
 
 
 
  Howdy,
  Assuming you meant PUT in the message just like in your
  subject: simply add a doPut method to your servlet.  Tomcat
  won't reject this unless you have a security constraint only
  allowing certain methods and rejecting PUT.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 10:52 AM
  To: [EMAIL PROTECTED]
  Subject: How to configure Tomcat to acceppt PUT requests for
  servlets?
  
  Hi,
  
  how do I configure Tomcat 4.x to accept POST requests for my
  servlet? I
  always receive HTTP error 405 Method not allowed. POST
  works without
  problems.
  
  Regards,
  Juergen
  
  
  
 -
  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]



How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Hi,

how do I configure Tomcat 4.x to accept POST requests for my servlet? I
always receive HTTP error 405 Method not allowed. POST works without
problems.

Regards,
Juergen


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



RE: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Shapira, Yoav

Howdy,
Assuming you meant PUT in the message just like in your subject: simply add a doPut 
method to your servlet.  Tomcat won't reject this unless you have a security 
constraint only allowing certain methods and rejecting PUT.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 10:52 AM
To: [EMAIL PROTECTED]
Subject: How to configure Tomcat to acceppt PUT requests for servlets?

Hi,

how do I configure Tomcat 4.x to accept POST requests for my servlet? I
always receive HTTP error 405 Method not allowed. POST works without
problems.

Regards,
Juergen


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



AW: How to configure Tomcat to acceppt PUT requests for servlets?

2003-09-23 Thread Jürgen Schwarz
Yes, sorry, I meant PUT, but I have already a doPut() method in my
servlet but it is never called because my calling client receives an
error 405 from Tomcat 4.1.27 when setting the requestMethod to PUT.
I use the 'standard' Tomcat server.xml configuration plus entries for my
servlet but I have not configured any security constraints for my
servlet.

I have no idea what could be wrong...



 -Ursprüngliche Nachricht-
 Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 23. September 2003 15:56
 An: Tomcat Users List
 Betreff: RE: How to configure Tomcat to acceppt PUT requests 
 for servlets?
 
 
 
 Howdy,
 Assuming you meant PUT in the message just like in your 
 subject: simply add a doPut method to your servlet.  Tomcat 
 won't reject this unless you have a security constraint only 
 allowing certain methods and rejecting PUT.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Jürgen Schwarz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure Tomcat to acceppt PUT requests for 
 servlets?
 
 Hi,
 
 how do I configure Tomcat 4.x to accept POST requests for my 
 servlet? I
 always receive HTTP error 405 Method not allowed. POST 
 works without
 problems.
 
 Regards,
 Juergen
 
 
 -
 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]



How to configure TOMCAT with AWStats (logfile analyzer)

2003-07-21 Thread Zaragoza, Carles
   Hi,

 

   I would like to configure TOMCAT 4.X with AWStats (a logfile
analyzer http://awstats.sourceforge.net/ http://awstats.sourceforge.net/ )

 

   There are a HOWTO guides for Apache and IIS. Does anybody out
there has integrate with TomCat ?

 

Could somebody suggest me another Web LogFile analyzer ?
(free...)

 

Regards,Carles.

 

Carles Zaragoza Roig 
 

Compuware Spain
R Poniente, 15-2 Dcha 
28760 Tres Cantos
Madrid - SPAIN
Tel. : 91.806.49.30
Fax : 91.803.64.60
E-mail : [EMAIL PROTECTED] 

 



-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 



RE: How to configure TOMCAT with AWStats (logfile analyzer)

2003-07-21 Thread Shapira, Yoav

Howdy,
You can do one of three things.  A prerequisite to all three is to turn
on Tomcat's AccessLogValve (I like the combined pattern myself, but the
default common pattern works as well).

- Use something easier than AWStats (IMHO, YMMV): Webalizer, or
httpAnalyze for example.

- Use AWStats in a relatively easier way, by running it offline, with
tomcat's access log files.

- Use AWStats in its fancy incremental analysis mode.  I haven't
actually done this as I found AWStats to be too troublesome as it was.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Zaragoza, Carles [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 7:49 AM
To: Tomcat Users List ([EMAIL PROTECTED])
Subject: How to configure TOMCAT with AWStats (logfile analyzer)

   Hi,



   I would like to configure TOMCAT 4.X with AWStats (a logfile
analyzer http://awstats.sourceforge.net/
http://awstats.sourceforge.net/
)



   There are a HOWTO guides for Apache and IIS. Does anybody
out
there has integrate with TomCat ?



Could somebody suggest me another Web LogFile analyzer ?
(free...)



Regards,Carles.



Carles Zaragoza Roig


Compuware Spain
R Poniente, 15-2 Dcha
28760 Tres Cantos
Madrid - SPAIN
Tel. : 91.806.49.30
Fax : 91.803.64.60
E-mail : [EMAIL PROTECTED]





--
The contents of this e-mail are intended for the named addressee only.
It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or
disclose
it to anyone else. If you received it in error please notify us
immediately
and then destroy it.




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]



How to configure Tomcat to accept certificates from certain CA's?

2003-03-27 Thread Mark Liu

I am trying to do mutual SSL authentication via certificates. 

I have installed both my personal and the CA's certificates in my IE browser. 

When I visit my Web server which requires client authentication via HTTPS, IE 
certainly brings up the dialog box for me to choose a certificate, but it does not 
give me a list of my certificates to choose from!

Please click the following link to get a better picture of my problem.

http://www.geocities.com/markliu1989/

Do any of you know what this problem is please?  And how can fix this?  Thanks a lot.



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Re: How to configure Tomcat to accept certificates from certain CA's?

2003-03-27 Thread klute
I believe you need to tell Tomcat about your CA by
adding Jack's cert to
java-home/ext/lib/security/cacerts keystore. while
adding it you need to make it is trusted (there is a
switch to do it).

hope this helps,
james 

--- Mark Liu [EMAIL PROTECTED] wrote:
 
 I am trying to do mutual SSL authentication via
 certificates. 
 
 I have installed both my personal and the CA's
 certificates in my IE browser. 
 
 When I visit my Web server which requires client
 authentication via HTTPS, IE certainly brings up the
 dialog box for me to choose a certificate, but it
 does not give me a list of my certificates to choose
 from!
 
 Please click the following link to get a better
 picture of my problem.
 
 http://www.geocities.com/markliu1989/
 
 Do any of you know what this problem is please?  And
 how can fix this?  Thanks a lot.
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Correction - How to configure Tomcat to accept certificates from certain CA's?

2003-03-27 Thread klute
Correction - I realized that I gave you the wrong path
before. The cacerts keystore is located at: 

java-home/jre/lib/security

you will need to use the keytool that came with your
jdk to import the CA cert into this cacerts. while
importing you need to use a switch -storetype trusted
(i believe)

hope this helps,
james

--- Mark Liu [EMAIL PROTECTED] wrote:
 
 I am trying to do mutual SSL authentication via
 certificates. 
 
 I have installed both my personal and the CA's
 certificates in my IE browser. 
 
 When I visit my Web server which requires client
 authentication via HTTPS, IE certainly brings up the
 dialog box for me to choose a certificate, but it
 does not give me a list of my certificates to choose
 from!
 
 Please click the following link to get a better
 picture of my problem.
 
 http://www.geocities.com/markliu1989/
 
 Do any of you know what this problem is please?  And
 how can fix this?  Thanks a lot.
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: Correction - How to configure Tomcat to accept certificates from certain CA's?

2003-03-27 Thread Mark Liu

Hi, Klute,
Thank you for your reply.  But I do not quite understand this.  Does this cacert 
keystore have anything to do with my Tomcat Web server?
I followed the Tomcat SSL-How-To documentation and managed to run Tomcat in SSL mode 
successfully.  Thus the certificate Tomcat uses is in the keystore (.keystore) in my 
home directory under the Win2K system.
Please tell me if the J2SDK_HOME\jre\lib\security\cacerts have anything to do with my 
Tomcat Web server.  Thanks a lot.
Regards,
Mark
 klute [EMAIL PROTECTED] wrote:Correction - I realized that I gave you the wrong path
before. The cacerts keystore is located at: 

/jre/lib/security

you will need to use the keytool that came with your
jdk to import the CA cert into this cacerts. while
importing you need to use a switch -storetype trusted
(i believe)

hope this helps,
james

--- Mark Liu wrote:
 
 I am trying to do mutual SSL authentication via
 certificates. 
 
 I have installed both my personal and the CA's
 certificates in my IE browser. 
 
 When I visit my Web server which requires client
 authentication via HTTPS, IE certainly brings up the
 dialog box for me to choose a certificate, but it
 does not give me a list of my certificates to choose
 from!
 
 Please click the following link to get a better
 picture of my problem.
 
 http://www.geocities.com/markliu1989/
 
 Do any of you know what this problem is please? And
 how can fix this? Thanks a lot.
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

Re: Correction - How to configure Tomcat to accept certificates from certain CA's?

2003-03-27 Thread Mark Liu

Oh, man!  You are great!  It is exactly this problem.
It works now!  But still I don't quite understand how the cacerts keystore is related 
to the Tomcat server. 
Does the Tomcat server also reads this keystore?
Thank you! Klute.
 klute [EMAIL PROTECTED] wrote:Correction - I realized that I gave you the wrong path
before. The cacerts keystore is located at: 

/jre/lib/security

you will need to use the keytool that came with your
jdk to import the CA cert into this cacerts. while
importing you need to use a switch -storetype trusted
(i believe)

hope this helps,
james

--- Mark Liu wrote:
 
 I am trying to do mutual SSL authentication via
 certificates. 
 
 I have installed both my personal and the CA's
 certificates in my IE browser. 
 
 When I visit my Web server which requires client
 authentication via HTTPS, IE certainly brings up the
 dialog box for me to choose a certificate, but it
 does not give me a list of my certificates to choose
 from!
 
 Please click the following link to get a better
 picture of my problem.
 
 http://www.geocities.com/markliu1989/
 
 Do any of you know what this problem is please? And
 how can fix this? Thanks a lot.
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



-
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

How to configure Tomcat to request client Certificate?

2003-03-19 Thread Mark Liu
I am running tomcat 4.1.18 in SSL mode on a Win2K
system.

Suppose my web server wants to see client certificate
which is installed in the IE browser, how do I
configure Tomcat to request the client to send the
cert?

Thanks.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



How to configure Tomcat to follow symbolic links.

2003-02-17 Thread guykaisin
Hi!,

I have a problem with symlinks.

As I want to host many web applications with different host definition, I just define 
my server.xml file as follow:

!-- WWW.E-MONTAIGNE.COM --

Host name=www.e-montaigne.com appBase=webapps.montaigne

Logger className=org.apache.catalina.logger.FileLogger directory=logs 
prefix=montaigne_host_log. suffix=.txt timestamp=true/

Valve className=org.apache.catalina.valves.AccessLogValve directory=logs 
prefix=montaigne_access_log. suffix=.txt pattern=combined resolveHosts=true/

!-- MONTAIGNE2 --

Context path= docBase=montaigne2 debug=0

Resources docBase= className=org.apache.naming.resources.FileDirContext 
allowLinking=true caseSensitive=true/

Logger className=org.apache.catalina.logger.FileLogger prefix=montaigne2_log. 
suffix=.txt timestamp=true/

/Context



/Host



I Have resources (images) located in /montaigne2/img/par_img

where par_img is a symlink to /usr/.../par_img.

So, I suppose the url http://www.e-montaigne.com will work

In fact not !

but if I modify my config like this:



!-- MONTAIGNE2 --

Context path=/montaigne2 docBase=montaigne2 debug=0

Resources docBase= className=org.apache.naming.resources.FileDirContext 
allowLinking=true caseSensitive=true/

Logger className=org.apache.catalina.logger.FileLogger prefix=montaigne2_log. 
suffix=.txt timestamp=true/

/Context



If I try the http://www.e-montaigne.com/montaigne2, everything works fine. But I want 
the user to type the url as http://www.e-montaigne.com.

So, why does it work in the second form of my config, and not the first ???


HELP 

Thanks all of you ...



Guy





How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Rademacher Tobias
Hi Folks,

is it possible to configure Tomcat 4.0 to suppress the port into the url
adress (URL rewriting etc)?
If yes who and in which config file?

I need this due to Tomcat should run into a specical security zone and the
firewall maps a specific port
to my tomcat server. Therefore I would like to force Tomat not returing the
Port into the URL's.

Bye  lot's of Thx
Toby

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




AW: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Torsten Fohrer

simply patch the URL classes from catalina/tomcat-util to remove/replace the
port.

cu Fohrer

-Ursprüngliche Nachricht-
Von: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 12. Februar 2003 10:26
An: '[EMAIL PROTECTED]'
Betreff: How to configure Tomcat to suppress adding port to URL??


Hi Folks,

is it possible to configure Tomcat 4.0 to suppress the port into the url
adress (URL rewriting etc)?
If yes who and in which config file?

I need this due to Tomcat should run into a specical security zone and the
firewall maps a specific port
to my tomcat server. Therefore I would like to force Tomat not returing the
Port into the URL's.

Bye  lot's of Thx
Toby

-
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 configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Barney Hamish
Unless tomcat is running on port 80 (the default port for HTTP) the URL
_must_ include the port number otherwise the browser assumes that the
webserver is running on Port 80 (which is apparently not the case).

Try configuring tomcat to run on port 80 instead of 8080 (or whatever you've
got it set to) in the server.xml file.
Hamish

 -Original Message-
 From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 10:26 AM
 To: '[EMAIL PROTECTED]'
 Subject: How to configure Tomcat to suppress adding port to URL??
 
 
 Hi Folks,
 
 is it possible to configure Tomcat 4.0 to suppress the port 
 into the url
 adress (URL rewriting etc)?
 If yes who and in which config file?
 
 I need this due to Tomcat should run into a specical security 
 zone and the
 firewall maps a specific port
 to my tomcat server. Therefore I would like to force Tomat 
 not returing the
 Port into the URL's.
 
 Bye  lot's of Thx
 Toby
 
 -
 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 configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Rademacher Tobias
Uho! Does this mean that tomcat _must_ run as root user (on Solaris) due to
ports lower that 1024 are 
not accessible by a user without root privileges. I guess the solaris admin
would'nt be happy if a cricial
service that may be attacked runs as root. Mhm. Any advice? Can I run tomcat
without being root but using
80 or 433 ports?

Thx a lot for any comments!!!
Bye
Toby

 -Original Message-
 From: Barney Hamish [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 11:29 AM
 To: 'Tomcat Users List'
 Subject: RE: How to configure Tomcat to suppress adding port to
 URL??
 
 
 Unless tomcat is running on port 80 (the default port for 
 HTTP) the URL
 _must_ include the port number otherwise the browser assumes that the
 webserver is running on Port 80 (which is apparently not the case).
 
 Try configuring tomcat to run on port 80 instead of 8080 (or 
 whatever you've
 got it set to) in the server.xml file.
 Hamish
 
  -Original Message-
  From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 12, 2003 10:26 AM
  To: '[EMAIL PROTECTED]'
  Subject: How to configure Tomcat to suppress adding port to 
 URL??
  
  
  Hi Folks,
  
  is it possible to configure Tomcat 4.0 to suppress the port 
  into the url
  adress (URL rewriting etc)?
  If yes who and in which config file?
  
  I need this due to Tomcat should run into a specical security 
  zone and the
  firewall maps a specific port
  to my tomcat server. Therefore I would like to force Tomat 
  not returing the
  Port into the URL's.
  
  Bye  lot's of Thx
  Toby
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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




Re: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Cees van de Griend
On Wednesday 12 February 2003 12:37, Rademacher Tobias wrote:
 Uho! Does this mean that tomcat _must_ run as root user (on Solaris) due to
 ports lower that 1024 are not accessible by a user without root privileges. 

If you want to have Tomcat running on port 80 and/or 443: yes.

 I guess the solaris admin would'nt be happy if a cricial
 service that may be attacked runs as root.

True.

 Any advice? Can I run tomcat without being root but using
 80 or 433 ports?

Yes and no.

I have the following setup:
- 1 -   Tomcat standalone on port 8080 and 8443 as a 'normal' user.
- 2 - Netfilter rules - done as root - to redirect traffic from port 80 to
8080 and port 443 to port 8443.

Everybody happy.

 Thx a lot for any comments!!!
 Bye

Regards,
Cees.

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




RE: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Ralph Einfeldt
There have been several suggestions to achieve this:

- use apache
- NAT with ipchain/iptables
  (A german article for iptables: http://www.3plus4software.de/news/20020617.html)
- bindd
- authbind
  http://packages.debian.org/unstable/utils/authbind.html

  a discussion about authbind vs. bindd
  http://security-archive.merton.ox.ac.uk/security-audit-27/0168.html

- proxy (squid)

I havn't tried any of this, so can't say much more.

 -Original Message-
 From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 12:37 PM
 To: 'Tomcat Users List'
 Subject: RE: How to configure Tomcat to suppress adding port to
 URL??
 
 Can I run tomcat without being root but using 80 or 433 ports?
 

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




Re: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Bert Catsburg
Toby,

This is not really a specific Tomcat issue.
It's the HTTP protocol which defaults to port 80.
If you want HTTP protocol to talk via another port,
then you have to specifiy the port in the URL.
Same for HTTPS (which is SSL) on port 443.

There are 2 options you could implement:

1) If you use Tomcat in Standalone mode, no WebServer
   like Apache, then you could modify the server.xml
   file to use port 80.
   (Look for 8080 in the server.xml and change it to 80)

2) If you want to use a separate WebServer (Apache would be
   the logical choice) then you have to implement a connector
   (I use WebApp, but it seems that mod_jk is the one for
   the future). The connector has lines of configuration code
   in httpd.conf (Apache config file) and in server.xml (Tomcat)
   It depends on your connector what to configure.

Below I included extracts from my config files.
As you can see, I connect to port 8008 in Tomcat.
So, request enters on port 80 in Apache. Apache sees that it's
for Tomcat to handle and puts it on port 8008 to Tomcat.

=== HTTPD.CONF ===

### Section on Tomcat
# Tomcat Connection
WebAppConnection conn  warp  localhost:8008

### Section 3: Virtual Hosts
#
NameVirtualHost localhost
VirtualHost test.bert.nl
ServerAdmin [EMAIL PROTECTED]
DocumentRoot c:/bert/jsp
ServerName test.bert.nl
ErrorLog logs/test_bert.error_log
CustomLog logs/test_bert.access_log common
WebAppDeploy struts-documentation conn /struts-documentation
WebAppDeploy struts-example conn /struts-example
WebAppDeploy struts-b1 conn /struts-b1
WebAppInfo /webapp-info
/VirtualHost

=== SERVER.XML ===

  Service name=Tomcat-Apache

Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=9/


Hope this helps.

Regards,

Bert Catsburg



Rademacher Tobias wrote:

Hi Folks,

is it possible to configure Tomcat 4.0 to suppress the port into the url
adress (URL rewriting etc)?
If yes who and in which config file?

I need this due to Tomcat should run into a specical security zone and the
firewall maps a specific port
to my tomcat server. Therefore I would like to force Tomat not returing the
Port into the URL's.

Bye  lot's of Thx
Toby

-
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 configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Turner, John

Only by running Apache and using a Connector.

See my Solaris 8 HOWTO:

http://www.johnturner.com/howto

John


 -Original Message-
 From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 12, 2003 6:37 AM
 To: 'Tomcat Users List'
 Subject: RE: How to configure Tomcat to suppress adding port to
 URL??
 
 
 Uho! Does this mean that tomcat _must_ run as root user (on 
 Solaris) due to
 ports lower that 1024 are 
 not accessible by a user without root privileges. I guess the 
 solaris admin
 would'nt be happy if a cricial
 service that may be attacked runs as root. Mhm. Any advice? 
 Can I run tomcat
 without being root but using
 80 or 433 ports?
 
 Thx a lot for any comments!!!
 Bye
 Toby
 
  -Original Message-
  From: Barney Hamish [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 12, 2003 11:29 AM
  To: 'Tomcat Users List'
  Subject: RE: How to configure Tomcat to suppress adding port to
  URL??
  
  
  Unless tomcat is running on port 80 (the default port for 
  HTTP) the URL
  _must_ include the port number otherwise the browser 
 assumes that the
  webserver is running on Port 80 (which is apparently not the case).
  
  Try configuring tomcat to run on port 80 instead of 8080 (or 
  whatever you've
  got it set to) in the server.xml file.
  Hamish
  
   -Original Message-
   From: Rademacher Tobias [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, February 12, 2003 10:26 AM
   To: '[EMAIL PROTECTED]'
   Subject: How to configure Tomcat to suppress adding port to 
  URL??
   
   
   Hi Folks,
   
   is it possible to configure Tomcat 4.0 to suppress the port 
   into the url
   adress (URL rewriting etc)?
   If yes who and in which config file?
   
   I need this due to Tomcat should run into a specical security 
   zone and the
   firewall maps a specific port
   to my tomcat server. Therefore I would like to force Tomat 
   not returing the
   Port into the URL's.
   
   Bye  lot's of Thx
   Toby
   
   
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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




Re: How to configure Tomcat to suppress adding port to URL??????

2003-02-12 Thread Christos Karras
You could use the proxyPort attribute in your http Connector  in 
server.xml, for example:

   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8082 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0 connectionTimeout=2
  proxyPort=80 useURIValidationHack=false /

(The server will still run on port 8082 so you'll need to redirect from 
port 80 to 8082 by using a proxy or firewall rules)

Rademacher Tobias wrote:

Hi Folks,

is it possible to configure Tomcat 4.0 to suppress the port into the url
adress (URL rewriting etc)?
If yes who and in which config file?

I need this due to Tomcat should run into a specical security zone and the
firewall maps a specific port
to my tomcat server. Therefore I would like to force Tomat not returing the
Port into the URL's.
 



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




Re: How to configure Tomcat to follow symbolic links.

2003-02-11 Thread Hans Deragon
Sean Dockery wrote:

Maybe try Resource.docBase= to see what that does...  Just out of
curiousity.  :-)


That works.  Wonder why docBase must be empty.  Doesn't when I put in my 
Context docBase.  Go figure.  A bug maybe?

Sincerely,
Hans Deragon

P.S.  BTW, Thanks to Mike Johnson and John Turner.  They were helpfull too.


- Original Message -
From: Mike Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 14:56
Subject: Re: How to configure Tomcat to follow symbolic links.




Hey, now. The full path does work. Good one. :-)

Thanks,

Mike Johnson

On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:


Not sure why that would be happening.  The documentation for Resources
states that the Resources.docBase attribute is handled in the same



manner as


the Context.docBase attribute in that it is relative to the



Host.appBase.


Does using an absolute path for the Resources docBase work?  That is...

Context path=/dealernet docBase=dealernet ...
 Resources docBase=/usr/lib/tomcat/webapps/dealernet
allowLinking=true
/Context

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: Mike Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 12:26
Subject: RE: How to configure Tomcat to follow symbolic links.




Ah... Thanks for the correction. :-)

But, I'm now getting an exception during load if I set it like you
wrote:

java.lang.reflect.InvocationTargetException:
java.lang.IllegalArgumentException: Document base dealernet does not
exist or is not a readable directory
at




org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19


3)


at java.lang.reflect.Method.invoke(Native Method)
at




org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j


ava:1650)


at




org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j


ava:1545)


at




org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15


74)


at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at




org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2


59)


at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at




org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j


ava:459)


at




org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML


DocumentParser.java:221)


at




org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja


va:595)


at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo


cumentFragmentScannerImpl.java:747)


at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc


her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume


ntFragmentScannerImpl.java:329)


at




org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)


at




org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)


at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at




org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117


5)


at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Digester - -Begin event threw exception
java.lang.reflect.InvocationTargetException
Catalina.start: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at




org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)


at




org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)


at
org.apache.commons.digester.Digester.startElement(Digester.java:1240)
at




org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j


ava:459)


at




org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML


DocumentParser.java:221)


at




org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja


va:595)


at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo


cumentFragmentScannerImpl.java:747)


at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc


her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at




org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume


ntFragmentScannerImpl.java:329

Re: How to configure Tomcat to follow symbolic links.

2003-02-11 Thread Sean Dockery
I misread the part in the book where I found the information...

The docBase attribute (optional) specifies the root directory under which
the named resources are to be found in the filesystem.  It has the same
semantics and rules as the docBase attribute of a context, and is
constructed relative to the document base of the containing context if a
relative path is used.

So, Resource.docBase is relative to Context.docBase--not Host.appBase, and
you could have omitted the Resources.docBase attribute and achieved the same
result.

- Original Message -
From: Hans Deragon [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 11, 2003 14:59
Subject: Re: How to configure Tomcat to follow symbolic links.


 Sean Dockery wrote:
  Maybe try Resource.docBase= to see what that does...  Just out of
  curiousity.  :-)

 That works.  Wonder why docBase must be empty.  Doesn't when I put in my
 Context docBase.  Go figure.  A bug maybe?

 Sincerely,
 Hans Deragon

 P.S.  BTW, Thanks to Mike Johnson and John Turner.  They were helpfull
too.

 
  - Original Message -
  From: Mike Johnson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, February 09, 2003 14:56
  Subject: Re: How to configure Tomcat to follow symbolic links.
 
 
 
 Hey, now. The full path does work. Good one. :-)
 
 Thanks,
 
 Mike Johnson
 
 On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
 
 Not sure why that would be happening.  The documentation for Resources
 states that the Resources.docBase attribute is handled in the same
 
  manner as
 
 the Context.docBase attribute in that it is relative to the
 
  Host.appBase.
 
 Does using an absolute path for the Resources docBase work?  That is...
 
 Context path=/dealernet docBase=dealernet ...
   Resources docBase=/usr/lib/tomcat/webapps/dealernet
 allowLinking=true
 /Context
 
 Sean Dockery
 [EMAIL PROTECTED]
 Certified Java Web Component Developer
 Certified Delphi Programmer
 SBD Consultants
 http://www.sbdconsultants.com
 
 - Original Message -
 From: Mike Johnson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, February 09, 2003 12:26
 Subject: RE: How to configure Tomcat to follow symbolic links.
 
 
 
 Ah... Thanks for the correction. :-)
 
 But, I'm now getting an exception during load if I set it like you
 wrote:
 
 [snip]
 
 -
 where 'dealernet' is defined as:
 
 Context path=/dealernet docBase=dealernet debug=0
 reloadable=true
 Resources className=org.apache.naming.resources.FileDirContext
 caseSensitive=true
 allowLinking=true
 docBase=dealernet /
 /Context
 
 The directory is there, all lower-case...
 
 
 *sigh*
 
 It'd be wonderful if there was a place where the upgrade breakage is
 documented... Is there a RTMF I missed somewhere?
 
 The docs, for instance, mention nothing about linking:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
 
 A note that the default linking behavior changed and how to work with
 
  it




 -
 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 configure Tomcat to follow symbolic links.

2003-02-10 Thread Turner, John

It's in the release notes, and is something new for 4.1.12 and up.

John

-Original Message-
From: Mike Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, February 09, 2003 2:27 PM
To: Tomcat Users List
Subject: RE: How to configure Tomcat to follow symbolic links.

*sigh*

It'd be wonderful if there was a place where the upgrade breakage is
documented... Is there a RTMF I missed somewhere?

The docs, for instance, mention nothing about linking:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

A note that the default linking behavior changed and how to work with it
would be good...

This page is out of date, too:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html

Thanks again,

Mike Johnson



---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: How to configure Tomcat to follow symbolic links.

2003-02-10 Thread Mike Johnson
hi john,

i must have missed that, i'm looking through the readme's but i'm not
finding it anyway, i think i'd rather inquire about helping with
updating the documentation instead. i read the dismissive we don't make
slick websites section and i'm just not buying into it. besides, it
might help slow the deluge of easily answered config questions. :-)

thanks,

mike johnson

On Mon, 2003-02-10 at 02:12, Turner, John wrote:
 It's in the release notes, and is something new for 4.1.12 and up.
 
 John
 
 -Original Message-
 From: Mike Johnson [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, February 09, 2003 2:27 PM
 To: Tomcat Users List
 Subject: RE: How to configure Tomcat to follow symbolic links.
 
 *sigh*
 
 It'd be wonderful if there was a place where the upgrade breakage is
 documented... Is there a RTMF I missed somewhere?
 
 The docs, for instance, mention nothing about linking:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
 
 A note that the default linking behavior changed and how to work with it
 would be good...
 
 This page is out of date, too:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html
 
 Thanks again,
 
 Mike Johnson
 
 
 
 ---
 
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson [EMAIL PROTECTED]


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




RE: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Turner, John

That won't work.  You need something like this within your Context:

Resources className=org.apache.naming.resources.FileDirContext
   caseSensitive=true
   allowLinking=true
   docBase=myApp / 

John

-Original Message-
From: Mike Johnson [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 08, 2003 11:02 AM
To: Tomcat Users List
Subject: Re: How to configure Tomcat to follow symbolic links.


hi,

just add allowLinks=true to your context config, like:

Context path=/dealernet docBase=dealernet debug=0 reloadable=true
allowLinking=true /


On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
 Greetings.
 
 
Simple question:  How to configure Tomcat to follow symbolic links?  
 I have
 Tomcat 4.1.18.
 
 
 Sincerely,
 Hans Deragon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson [EMAIL PROTECTED]


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Turner, John

Tomcat does not follow symlinks as a rule, by default, for security reasons.

Creating a filesystem symlink with recent versions (4.1.12+, I believe) of
Tomcat will have no effect, you need to declare an additional Resource in
server.xml with the correct attributes if you want Tomcat to follow
symlinks.

John


-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, February 08, 2003 10:31 AM
To: Tomcat Users List
Subject: Re: How to configure Tomcat to follow symbolic links.


I am not sure what you mean, but under Unix, I created a symbolic link 
for a directory and it works just like a real directory.  I haven't test 
with symbolic link for file.


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003
 

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




RE: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Mike Johnson
 behavior changed and how to work with it
would be good...

This page is out of date, too:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/resources.html

Thanks again,

Mike Johnson


On Sun, 2003-02-09 at 07:00, Turner, John wrote:
 That won't work.  You need something like this within your Context:
 
 Resources className=org.apache.naming.resources.FileDirContext
caseSensitive=true
allowLinking=true
docBase=myApp / 
 
 John
 
 -Original Message-
 From: Mike Johnson [mailto:[EMAIL PROTECTED]] 
 Sent: Saturday, February 08, 2003 11:02 AM
 To: Tomcat Users List
 Subject: Re: How to configure Tomcat to follow symbolic links.
 
 
 hi,
 
 just add allowLinks=true to your context config, like:
 
 Context path=/dealernet docBase=dealernet debug=0 reloadable=true
 allowLinking=true /
 
 
 On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
  Greetings.
  
  
 Simple question:  How to configure Tomcat to follow symbolic links?  
  I have
  Tomcat 4.1.18.
  
  
  Sincerely,
  Hans Deragon
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson [EMAIL PROTECTED]




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




Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Sean Dockery
Not sure why that would be happening.  The documentation for Resources
states that the Resources.docBase attribute is handled in the same manner as
the Context.docBase attribute in that it is relative to the Host.appBase.

Does using an absolute path for the Resources docBase work?  That is...

Context path=/dealernet docBase=dealernet ...
  Resources docBase=/usr/lib/tomcat/webapps/dealernet
allowLinking=true
/Context

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

- Original Message -
From: Mike Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 12:26
Subject: RE: How to configure Tomcat to follow symbolic links.


 Ah... Thanks for the correction. :-)

 But, I'm now getting an exception during load if I set it like you
 wrote:

 java.lang.reflect.InvocationTargetException:
 java.lang.IllegalArgumentException: Document base dealernet does not
 exist or is not a readable directory
 at

org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
3)
 at java.lang.reflect.Method.invoke(Native Method)
 at

org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1650)
 at

org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1545)
 at

org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
74)
 at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
 at

org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
59)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1237)
 at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
 at

org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
 at

org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
 at org.apache.commons.digester.Digester.parse(Digester.java:1495)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 [ERROR] Digester - -Begin event threw exception
 java.lang.reflect.InvocationTargetException
 Catalina.start: java.lang.reflect.InvocationTargetException
 java.lang.reflect.InvocationTargetException
 at

org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
 at

org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
 at
 org.apache.commons.digester.Digester.startElement(Digester.java:1240)
 at

org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
ava:459)
 at

org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
DocumentParser.java:221)
 at

org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
va:595)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
cumentFragmentScannerImpl.java:747)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at

org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at

org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
 at org.apache.commons.digester.Digester.parse(Digester.java:1495)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


 -
 where 'dealernet' is defined as:

 Context path=/dealernet

Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Mike Johnson
Hey, now. The full path does work. Good one. :-)

Thanks,

Mike Johnson

On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
 Not sure why that would be happening.  The documentation for Resources
 states that the Resources.docBase attribute is handled in the same manner as
 the Context.docBase attribute in that it is relative to the Host.appBase.
 
 Does using an absolute path for the Resources docBase work?  That is...
 
 Context path=/dealernet docBase=dealernet ...
   Resources docBase=/usr/lib/tomcat/webapps/dealernet
 allowLinking=true
 /Context
 
 Sean Dockery
 [EMAIL PROTECTED]
 Certified Java Web Component Developer
 Certified Delphi Programmer
 SBD Consultants
 http://www.sbdconsultants.com
 
 - Original Message -
 From: Mike Johnson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, February 09, 2003 12:26
 Subject: RE: How to configure Tomcat to follow symbolic links.
 
 
  Ah... Thanks for the correction. :-)
 
  But, I'm now getting an exception during load if I set it like you
  wrote:
 
  java.lang.reflect.InvocationTargetException:
  java.lang.IllegalArgumentException: Document base dealernet does not
  exist or is not a readable directory
  at
 
 org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
 3)
  at java.lang.reflect.Method.invoke(Native Method)
  at
 
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
 ava:1650)
  at
 
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
 ava:1545)
  at
 
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
 74)
  at
  org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
  at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
  at
 
 org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
 59)
  at
  org.apache.commons.digester.Digester.startElement(Digester.java:1237)
  at
 
 org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
 ava:459)
  at
 
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
 DocumentParser.java:221)
  at
 
 org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
 va:595)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
 cumentFragmentScannerImpl.java:747)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
 ntFragmentScannerImpl.java:329)
  at
 
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
  at
 
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
  at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
  at
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
 5)
  at org.apache.commons.digester.Digester.parse(Digester.java:1495)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
  [ERROR] Digester - -Begin event threw exception
  java.lang.reflect.InvocationTargetException
  Catalina.start: java.lang.reflect.InvocationTargetException
  java.lang.reflect.InvocationTargetException
  at
 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
  at
 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
  at
  org.apache.commons.digester.Digester.startElement(Digester.java:1240)
  at
 
 org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
 ava:459)
  at
 
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
 DocumentParser.java:221)
  at
 
 org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
 va:595)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
 cumentFragmentScannerImpl.java:747)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
 ntFragmentScannerImpl.java:329)
  at
 
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
  at
 
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
  at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
  at
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
 5)
  at org.apache.commons.digester.Digester.parse(Digester.java:1495)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400

Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Sean Dockery
Maybe try Resource.docBase= to see what that does...  Just out of
curiousity.  :-)

- Original Message -
From: Mike Johnson [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, February 09, 2003 14:56
Subject: Re: How to configure Tomcat to follow symbolic links.


 Hey, now. The full path does work. Good one. :-)

 Thanks,

 Mike Johnson

 On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
  Not sure why that would be happening.  The documentation for Resources
  states that the Resources.docBase attribute is handled in the same
manner as
  the Context.docBase attribute in that it is relative to the
Host.appBase.
 
  Does using an absolute path for the Resources docBase work?  That is...
 
  Context path=/dealernet docBase=dealernet ...
Resources docBase=/usr/lib/tomcat/webapps/dealernet
  allowLinking=true
  /Context
 
  Sean Dockery
  [EMAIL PROTECTED]
  Certified Java Web Component Developer
  Certified Delphi Programmer
  SBD Consultants
  http://www.sbdconsultants.com
 
  - Original Message -
  From: Mike Johnson [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Sunday, February 09, 2003 12:26
  Subject: RE: How to configure Tomcat to follow symbolic links.
 
 
   Ah... Thanks for the correction. :-)
  
   But, I'm now getting an exception during load if I set it like you
   wrote:
  
   java.lang.reflect.InvocationTargetException:
   java.lang.IllegalArgumentException: Document base dealernet does not
   exist or is not a readable directory
   at
  
 
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
  3)
   at java.lang.reflect.Method.invoke(Native Method)
   at
  
 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
  ava:1650)
   at
  
 
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
  ava:1545)
   at
  
 
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
  74)
   at
   org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
   at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
   at
  
 
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
  59)
   at
   org.apache.commons.digester.Digester.startElement(Digester.java:1237)
   at
  
 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
  ava:459)
   at
  
 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
  DocumentParser.java:221)
   at
  
 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
  va:595)
   at
  
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
  cumentFragmentScannerImpl.java:747)
   at
  
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
  her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
  ntFragmentScannerImpl.java:329)
   at
  
 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
   at
  
 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
   at
  
 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
  5)
   at org.apache.commons.digester.Digester.parse(Digester.java:1495)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
   [ERROR] Digester - -Begin event threw exception
   java.lang.reflect.InvocationTargetException
   Catalina.start: java.lang.reflect.InvocationTargetException
   java.lang.reflect.InvocationTargetException
   at
  
 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
   at
  
 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
   at
   org.apache.commons.digester.Digester.startElement(Digester.java:1240)
   at
  
 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
  ava:459)
   at
  
 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
  DocumentParser.java:221)
   at
  
 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
  va:595)
   at
  
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
  cumentFragmentScannerImpl.java:747)
   at
  
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
  her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
  ntFragmentScannerImpl.java:329)
   at
  
 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525

Re: How to configure Tomcat to follow symbolic links.

2003-02-09 Thread Mike Johnson
That's odd, started right up no complaints. It's even following
links, too. :-)

I should have mentioned this before: Blackdown SDK 1.3.1 (b), Debian
unstable/PPC.

Thanks again,

Mike Johnson


On Sun, 2003-02-09 at 14:16, Sean Dockery wrote:
 Maybe try Resource.docBase= to see what that does...  Just out of
 curiousity.  :-)
 
 - Original Message -
 From: Mike Johnson [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, February 09, 2003 14:56
 Subject: Re: How to configure Tomcat to follow symbolic links.
 
 
  Hey, now. The full path does work. Good one. :-)
 
  Thanks,
 
  Mike Johnson
 
  On Sun, 2003-02-09 at 13:47, Sean Dockery wrote:
   Not sure why that would be happening.  The documentation for Resources
   states that the Resources.docBase attribute is handled in the same
 manner as
   the Context.docBase attribute in that it is relative to the
 Host.appBase.
  
   Does using an absolute path for the Resources docBase work?  That is...
  
   Context path=/dealernet docBase=dealernet ...
 Resources docBase=/usr/lib/tomcat/webapps/dealernet
   allowLinking=true
   /Context
  
   Sean Dockery
   [EMAIL PROTECTED]
   Certified Java Web Component Developer
   Certified Delphi Programmer
   SBD Consultants
   http://www.sbdconsultants.com
  
   - Original Message -
   From: Mike Johnson [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Sunday, February 09, 2003 12:26
   Subject: RE: How to configure Tomcat to follow symbolic links.
  
  
Ah... Thanks for the correction. :-)
   
But, I'm now getting an exception during load if I set it like you
wrote:
   
java.lang.reflect.InvocationTargetException:
java.lang.IllegalArgumentException: Document base dealernet does not
exist or is not a readable directory
at
   
  
 org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:19
   3)
at java.lang.reflect.Method.invoke(Native Method)
at
   
  
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
   ava:1650)
at
   
  
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
   ava:1545)
at
   
  
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:15
   74)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:919)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
at
   
  
 org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.java:2
   59)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at
   
  
 org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
   ava:459)
at
   
  
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
   DocumentParser.java:221)
at
   
  
 org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
   va:595)
at
   
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDo
   cumentFragmentScannerImpl.java:747)
at
   
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
   her.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
   ntFragmentScannerImpl.java:329)
at
   
  
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
at
   
  
 org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
   
  
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
   5)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Digester - -Begin event threw exception
java.lang.reflect.InvocationTargetException
Catalina.start: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at
   
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
at
   
  
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1240)
at
   
  
 org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.j
   ava:459)
at
   
  
 org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXML
   DocumentParser.java:221)
at
   
  
 org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.ja
   va:595)
at
   
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement

Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Vy Ho
I am not sure what you mean, but under Unix, I created a symbolic link 
for a directory and it works just like a real directory.  I haven't test 
with symbolic link for file.


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



Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Mike Johnson
hi,

just add allowLinks=true to your context config, like:

Context path=/dealernet docBase=dealernet debug=0
reloadable=true allowLinking=true /


On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
 Greetings.
 
 
Simple question:  How to configure Tomcat to follow symbolic links?  I have 
 Tomcat 4.1.18.
 
 
 Sincerely,
 Hans Deragon
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Mike Johnson [EMAIL PROTECTED]


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




Re: How to configure Tomcat to follow symbolic links.

2003-02-08 Thread Hans Deragon
Mike Johnson wrote:

hi,

just add allowLinks=true to your context config, like:

Context path=/dealernet docBase=dealernet debug=0
reloadable=true allowLinking=true /


Tried, but does not work.  I have the following:

lrwxrwxrwx1 root root9 Feb  8 10:33 aaa - graphics/
drwxr-xr-x5 root root 4096 Feb  8 09:30 graphics/

Yet, http://localhost:8080/graphics/ works, but http://localhost:8080/aaa/ 
does not (404 error, resource unavailable).  The context used is:

Context path= docBase=deragon debug=0 allowLinking=true/

Where deragon contains both the aaa link and graphics directory.  Tomcat 
4.1.18 being used.


Sincerely,
Hans Deragon



On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:


Greetings.


  Simple question:  How to configure Tomcat to follow symbolic links?  I have 
Tomcat 4.1.18.


Sincerely,
Hans Deragon


-
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 configure Tomcat to follow symbolic links.

2003-02-08 Thread Sean Dockery
I believe that there is more to this than that.

allowLinking is a property of org.apache.naming.resources.FileDirContext,
not org.apache.catalina.core.StandardContext.  FileDirContext is the default
class for a Resources declaration--of which Context must be the parent.

So, you would start with this...

Context path=/dealernet docBase=dealernet ... 

  Resources className=org.apache.naming.resources.FileDirContext
caseSensitive=true
allowLinking=true
docBase=dealernet/ !-- if declared like this, does it allow
symlinking everywhere? --

/Context

and from there... I'm not sure.  (I've never done this before--I'm just
trying to figure it out based on what I've read and materials that can be
found on the Jakarta web site.)

--
Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

Hans Deragon [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Mike Johnson wrote:
  hi,
 
  just add allowLinks=true to your context config, like:
 
  Context path=/dealernet docBase=dealernet debug=0
  reloadable=true allowLinking=true /

 Tried, but does not work.  I have the following:

 lrwxrwxrwx1 root root9 Feb  8 10:33 aaa - graphics/
 drwxr-xr-x5 root root 4096 Feb  8 09:30 graphics/

 Yet, http://localhost:8080/graphics/ works, but http://localhost:8080/aaa/
 does not (404 error, resource unavailable).  The context used is:

 Context path= docBase=deragon debug=0 allowLinking=true/

 Where deragon contains both the aaa link and graphics directory.  Tomcat
 4.1.18 being used.


 Sincerely,
 Hans Deragon

 
 
  On Sat, 2003-02-08 at 06:58, Hans Deragon wrote:
 
 Greetings.
 
 
Simple question:  How to configure Tomcat to follow symbolic links?
I have
 Tomcat 4.1.18.
 
 
 Sincerely,
 Hans Deragon
 
 
 -
 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]




How to configure TOMCAT standalone server for servlet

2002-11-19 Thread kosiol
Hi,

I am running the Tomcat standalone server 4.0.4.
Where do I have to place my servlet and what do I have to configure in 
the *.xml files. Another important question is: How can I contact the 
servlet from an Applet? The Applet is also startet by the Tomcat. But it 
should also be possible to contact the servlet on another Tomcat server.

thx 4 your help

koz


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



RE: How to configure tomcat to forbid indexing of a directory

2002-11-19 Thread Turner, John

RTFM, search the archives.

For example, this was answered just yesterday.

http://marc.theaimsgroup.com/?l=tomcat-userm=103760273117748w=2

John

 -Original Message-
 From: John Z Yang [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 2:57 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure tomcat to forbid indexing of a directory
 
 
 Dear all:
 I am puzzled that in Apache
 the httpd.conf has a directive Options Indexes to turn 
 directory mapping on and off, but for tomcat there seems no 
 way to block the user from viewing the directory structure 
 unless you create an index.jsp file.
 
 Can anyone give me a pointer to the Options equivalent in 
 tomcat configuration?
 
 Many thanks.
 
 John
 

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




RE: How to configure TOMCAT standalone server for servlet

2002-11-19 Thread Turner, John

Please read the documentation, specifically the Application Developer's
Guide.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

John


 -Original Message-
 From: kosiol [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, November 19, 2002 8:37 AM
 To: [EMAIL PROTECTED]
 Subject: How to configure TOMCAT standalone server for servlet
 
 
 Hi,
 
 I am running the Tomcat standalone server 4.0.4.
 Where do I have to place my servlet and what do I have to 
 configure in 
 the *.xml files. Another important question is: How can I contact the 
 servlet from an Applet? The Applet is also startet by the 
 Tomcat. But it 
 should also be possible to contact the servlet on another 
 Tomcat server.
 
 thx 4 your help
 
 koz
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




How to configure tomcat to forbid indexing of a directory

2002-11-18 Thread John Z Yang
Dear all:
I am puzzled that in Apache
the httpd.conf has a directive Options Indexes to turn directory mapping on and off, 
but for tomcat there seems no way to block the user from viewing the directory 
structure unless you create an index.jsp file.

Can anyone give me a pointer to the Options equivalent in tomcat configuration?

Many thanks.

John



How to configure tomcat-4.12 to follow (allow) symbolic links?

2002-10-19 Thread Zsolt Koppany
Hi,

in tomcat -4.0.4 I use symbol links for the class files, thus after 
compilation I don't have to copy them. I understand that tc-4.12 doesn't 
allow symbol links as default, but how can I configure it to allow them?

Zsolt

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan


Hi, I want to make tomcat to forward request for certain file type etc
.xml to a servlet. May i know how to do it?


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




How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan


Hi, I want to make tomcat to forward request for certain file type etc
.xml to a servlet. May i know how to do it?


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




RE: How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Barney Hamish

In the web.xml you can define a url pattern for servlets, eg:

servlet
servlet-namemyServlet/servlet-name
url-pattern/directory/*.xml/url-pattern
servlet-classclass.MyServlet/servlet-class
/servlet

See the servlet spec from sun for more information about the settings in
your web.xml

 -Original Message-
 From: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 9:56 AM
 To: 'Tomcat Users List'
 Subject: How to configure tomcat to forward files to diff servlet
 
 
 
 Hi, I want to make tomcat to forward request for certain file type etc
 .xml to a servlet. May i know how to do it?
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: How to configure tomcat to forward files to diff servlet

2002-09-26 Thread Aaron Chan

Thanks!

-Original Message-
From: Barney Hamish [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 26, 2002 4:00 PM
To: 'Tomcat Users List'
Subject: RE: How to configure tomcat to forward files to diff servlet

In the web.xml you can define a url pattern for servlets, eg:

servlet
servlet-namemyServlet/servlet-name
url-pattern/directory/*.xml/url-pattern
servlet-classclass.MyServlet/servlet-class
/servlet

See the servlet spec from sun for more information about the settings in
your web.xml

 -Original Message-
 From: Aaron Chan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 26, 2002 9:56 AM
 To: 'Tomcat Users List'
 Subject: How to configure tomcat to forward files to diff servlet
 
 
 
 Hi, I want to make tomcat to forward request for certain file type etc
 .xml to a servlet. May i know how to do it?
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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


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




Re: HELP HELP HELP HELP HOW to Configure Tomcat on IIS and deploy our own web Application.

2002-02-25 Thread Vishal Mukherjee

Any one to help me on this 



- Original Message -
From: Vishal Mukherjee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 25, 2002 10:27 AM
Subject: HOW to Configure Tomcat on IIS and deploy our own web Application.


 Hi all,

 I an a NewBie to Tomcat. Having installed TC 3.2.3 on IIS 4 with the help
of
 your guidance from the link suggested below.
 http://www.verysimple.com/scripts/support_tc_iis.html

 All works fine. I have a web application which i have to deply to our
 intranet server, mearly copying the files in a directory and adding the
 context does not work. Can anyone help to delpoy our application where i
can
 get step-by-step methods to configure the application for JSP, Servlets
and
 beans directories  and deploy it.

 Thanks  Regards
 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
 Vishal Mukherjee
 IRSSL  Vashi
 91.022.7896004.155 (voice)  022.7896020(fax)
 Don't take life too serious. You'll never escape it alive anyway.
 - Ebert Hubbard
 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


 Visit Our Cement Site at http://www.indorama.co.in
   Our Software Site at http://www.irssl.com



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


Visit Our Cement Site at http://www.indorama.co.in
  Our Software Site at http://www.irssl.com 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: HOW to Configure Tomcat on IIS and deploy our own web Application .

2002-02-25 Thread Randy Layman

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
epically the section labeled Adding additional Contexts.

Aren't manuals really useful?

Randy


 -Original Message-
 From: Vishal Mukherjee [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 24, 2002 11:57 PM
 To: Tomcat Users List
 Subject: HOW to Configure Tomcat on IIS and deploy our own web
 Application .
 Importance: High
 
 
 Hi all,
 
 I an a NewBie to Tomcat. Having installed TC 3.2.3 on IIS 4 
 with the help of
 your guidance from the link suggested below.
 http://www.verysimple.com/scripts/support_tc_iis.html
 
 All works fine. I have a web application which i have to deply to our
 intranet server, mearly copying the files in a directory and 
 adding the
 context does not work. Can anyone help to delpoy our 
 application where i can
 get step-by-step methods to configure the application for 
 JSP, Servlets and
 beans directories  and deploy it.
 
 Thanks  Regards
 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
 Vishal Mukherjee
 IRSSL  Vashi
 91.022.7896004.155 (voice)  022.7896020(fax)
 Don't take life too serious. You'll never escape it alive anyway.
 - Ebert Hubbard
 ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
 
 
 Visit Our Cement Site at http://www.indorama.co.in
   Our Software Site at http://www.irssl.com 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




HOW to Configure Tomcat on IIS and deploy our own web Application.

2002-02-24 Thread Vishal Mukherjee

Hi all,

I an a NewBie to Tomcat. Having installed TC 3.2.3 on IIS 4 with the help of
your guidance from the link suggested below.
http://www.verysimple.com/scripts/support_tc_iis.html

All works fine. I have a web application which i have to deply to our
intranet server, mearly copying the files in a directory and adding the
context does not work. Can anyone help to delpoy our application where i can
get step-by-step methods to configure the application for JSP, Servlets and
beans directories  and deploy it.

Thanks  Regards
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Vishal Mukherjee
IRSSL  Vashi
91.022.7896004.155 (voice)  022.7896020(fax)
Don't take life too serious. You'll never escape it alive anyway.
- Ebert Hubbard
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


Visit Our Cement Site at http://www.indorama.co.in
  Our Software Site at http://www.irssl.com 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to configure tomcat?

2002-02-07 Thread Uma Maheswar

Hi,
I have a web site www.globalleafs.com . I have downlaoded Tomcat4.0 . I have hosted my 
site with Indiaaccess,India. They are using Apache Tomcat 4.0. I wanted to configure 
my tomcat in such a way that, I can see the System.out.println statements? i.e to 
see the console of Apache Tomcat 4.0 of Indiaaccess,Mumbai in my Home PC. Is this 
possible? If so please hlep me.

Uma



How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Dong Wenyu


I have been confused for weeks about Tomcat 4.01 +
Apache http server 1.3.19. 

1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?




Thank you very much in advance.


sincerely,
Dong Wenyu



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Loïc Lefèvre

1. Yes, Tomcat is a servlet container and thus supports
servlet (spec. 2.3). No, it is not necessary to install
JServ but JServ and Tomcat can work together
(no problem with the mod_webapp connector).

2. Yes it makes sense since Apache can distribute static
files faster than Tomcat. Apache has also modules that
can help you (mod_rewrite, mod_php...). But tomcat 4.01
can work *alone* as an HTTP server (port 80, see server.xml).

3. For windows, check the archive:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/win32
/webapp-module-1.0-tc40-windows.zip
Inside, there is a file 'INSTALL.TXT' which explains how to connect
the mod_webapp connector under Linux and windows.
For Linux, check for the following archive:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/linux
/i386/webapp-module-1.0-tc40-linux-glibc2.2.tar.gz

Good luck
Loïc Lefèvre

-Message d'origine-
De : Dong Wenyu [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 4 février 2002 16:05
À : [EMAIL PROTECTED]
Objet : How to configure Tomcat 4.01 + Apache http server 1.3.19 work?



I have been confused for weeks about Tomcat 4.01 +
Apache http server 1.3.19.

1, Does Tomact 4.01 alone support servlet already?
Does it necessary to install JServ in addition as the
case with Tomcat 3.x?

2, Many books recommend the configuration of Tomcat +
pache http server. Does it make any sense? Couldn't
Tomcat 4.01 alone serve as a http server?

3, Anyone would give me instructions to connect Tomcat
4.01 + Apache http server 1.3.19 ?  Or is there
webpages to find them?




Thank you very much in advance.


sincerely,
Dong Wenyu



__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: How to configure Tomcat 4.01 + Apache http server 1.3.19 work?

2002-02-04 Thread Ralph Einfeldt


- Tomcat is a servlet and jsp engine.
  So you don't need JServ to do servlets 
  (it wasn't necessary for tomcat 3.* either)
- mod_jserv/mod_jk/mod_webapp are different
  generations of connectors that connect a webserver
  with tomcat.
- There are several reasons to use apache (or IIS)
  together with tomcat. 
  (this reasons you can find in the archives)
  If this reasons don't apply to you, you can use tomcat
  standalone.
- How to connect tomcat 4.0 with mod_jk and mod_webapp
  has been dscussed in this list several times.


 -Ursprüngliche Nachricht-
 Von: Dong Wenyu [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 4. Februar 2002 16:05
 An: [EMAIL PROTECTED]
 Betreff: How to configure Tomcat 4.01 + Apache http server 
 1.3.19 work?
 
 
 
 I have been confused for weeks about Tomcat 4.01 +
 Apache http server 1.3.19. 
 
 1, Does Tomact 4.01 alone support servlet already?
 Does it necessary to install JServ in addition as the
 case with Tomcat 3.x?
 
 2, Many books recommend the configuration of Tomcat +
 pache http server. Does it make any sense? Couldn't
 Tomcat 4.01 alone serve as a http server?
 
 3, Anyone would give me instructions to connect Tomcat
 4.01 + Apache http server 1.3.19 ?  Or is there
 webpages to find them?
 
 
 
 
 Thank you very much in advance.
 
 
 sincerely,
 Dong Wenyu
 
 
 
 __
 Do You Yahoo!?
 Great stuff seeking new owners in Yahoo! Auctions! 
 http://auctions.yahoo.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




how to configure tomcat to run with IIS in Win 2000

2001-08-26 Thread anand


Hi,

I need some help in configuring tomcat with IIS on Win2000. I am running
tomcat
with WinNT (used the tomcat-IIS how to). Is the procedure for
configuring with Win2000 also the same. 

Pls let me know,

Regards,
Anand.




How to configure Tomcat to respond to arbitrary DNS name?

2001-05-12 Thread Alex Greysukh

Could somebody help to find an explicit answer on the following:


How to configure Tomcat as a stand-alone server to respond not to only
http://localhost:8080/ but to any DNS name (http://www.foo.com:8080)?
Unfortunately all the examples in the doc reduced to the localhost case...

Alex Greysukh




Re: How to configure Tomcat to respond to arbitrary DNS name?

2001-05-12 Thread Bip Thelin

On Sat, 12 May 2001, Alex Greysukh wrote:

 Could somebody help to find an explicit answer on the following:
 
 
 How to configure Tomcat as a stand-alone server to respond not to only
 http://localhost:8080/ but to any DNS name (http://www.foo.com:8080)?
 Unfortunately all the examples in the doc reduced to the localhost case...

Look at the xml entities Engine and Host in the server.xml, that's
where you specify it.

..bip





Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread Sergaziev, E.S. - ALAPQ




**
This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified that 
no part of the e-mail or any attachment may be disclosed, copied or distributed, and 
that any other action related to this e-mail or attachment is strictly prohibited, and 
may be unlawful. If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke Luchtvaart 
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for 
the incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.
**



Re: Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread skolski

Hello to Holland,

perhaps it would be a good idea to specifie the problem a little bit

sascha





RE: Does anybody know how to configure Tomcat on Win95?

2001-04-16 Thread Sergaziev, E.S. - ALAPQ

I have downloaded Tomcat's zip file.
Unzipped it on to a directory and tried to run Jasper.bat.

It responded with error: "Can't find jpappend.bat", while it is in the same
directory as jasper.bat. I have set JASPER_HOME to refer to Tomcat
directory, but it does not work.

How can I make this work?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 16 April 2001 16:00
To: [EMAIL PROTECTED]
Subject: Re: Does anybody know how to configure Tomcat on Win95?


Hello to Holland,

perhaps it would be a good idea to specifie the problem a little bit

sascha



**
This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified that 
no part of the e-mail or any attachment may be disclosed, copied or distributed, and 
that any other action related to this e-mail or attachment is strictly prohibited, and 
may be unlawful. If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke Luchtvaart 
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for 
the incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.
**



RE: How to configure tomcat to us xalan and xerces

2001-03-12 Thread tnist

Scott,

Thanks, the problem was that I still had the crimison.jar file on my system,
a document FAQ with xalan/xerces and JDK 1.3.  It just was not is a spot
that I thought would have caused a problem.  I removed, as per the FAQ  and
all is working.

Again thanks for the reply.

Regard,
Todd G. Nist


-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 2:43 PM
To: [EMAIL PROTECTED]
Subject: Re: How to configure tomcat to us xalan and xerces


I just deleted the jaxp.jar and the parser.jar from
the tomcat\lib directory and replaced with the
xerces/xalan jars and it worked like a champ,

scott.
--- [EMAIL PROTECTED] wrote:
 Which files to I have to replace to get tomcat to
 work with xalan 2.0.   Is
 it simply a matter of removing jaxp.jar and
 parser.jar and replacing them
 with xalan and xerces or do I need to do something
 else?
 
 Regards,
 
 Todd
 
 
 The information in this electronic mail ("e-mail")
 message may
 be confidential and for use of only the named
 recipient.  The
 information may be protected by privilege, work
 product immunity
 or other applicable law.  If you are not the
 intended recipient
 the retention, dissemination, distribution or
 copying of this
 e-mail message is strictly prohibited.  If you
 receive this e-mail
 message in error please notify us immediately by
 telephone
 at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 
 
 
 

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


=
~~~
Scott
May the Force be with you!

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 



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




Re: How to configure tomcat to us xalan and xerces

2001-03-12 Thread Craig R. McClanahan



On Mon, 12 Mar 2001, Christopher Farley wrote:

 Scott Walter ([EMAIL PROTECTED]) wrote:
 
  I just deleted the jaxp.jar and the parser.jar from
  the tomcat\lib directory and replaced with the
  xerces/xalan jars and it worked like a champ,
 
 Is this *really* the desired solution? Doesn't this completely break the
 portability of .war servlet applications? The promise of .war was
 supposed to be that you could just drop the file in your servlet engine
 and have it work. 
 
 As it turns out, if you use XML and need Xalan or Xerces, you need to
 alter Tomcat's configuration. 
 
 Shouldn't the servlet's /WEB-INF/lib directory take precedence over the
 server's libs?
 

This is a notoriously tricky area to get right.  Current nightly builds of
Tomcat 4.0 act the way you are suggesting, so that you can (for
example) install Xerces in WEB-INF/lib and ignore the fact that Tomcat
itself might be using Crimson.  (4.0-b1 suffers from a "package sealing
violation" problem in this regard, because the Crimson JAR files are
sealed -- fixed in recent nightly builds).

However, the 2.2 spec is silent about this, so Tomcat 3.2 is within its
rights to follow the standard Java delegation model and ignore classes
under WEB-INF/lib if the same class is found on the system class
path.  The fact that Tomcat 3.2 exposes the parser it is using to web apps
at all is a design flaw that has been addressed in subsequent major revs.

 -- 
 Christopher Farley
 www.northernbrewer.com
 

Craig McClanahan


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




How to configure tomcat to us xalan and xerces

2001-03-09 Thread tnist

Which files to I have to replace to get tomcat to work with xalan 2.0.   Is
it simply a matter of removing jaxp.jar and parser.jar and replacing them
with xalan and xerces or do I need to do something else?

Regards,

Todd


The information in this electronic mail ("e-mail") message may
be confidential and for use of only the named recipient.  The
information may be protected by privilege, work product immunity
or other applicable law.  If you are not the intended recipient
the retention, dissemination, distribution or copying of this
e-mail message is strictly prohibited.  If you receive this e-mail
message in error please notify us immediately by telephone
at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 



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




Re: How to configure tomcat to us xalan and xerces

2001-03-09 Thread Scott Walter

I just deleted the jaxp.jar and the parser.jar from
the tomcat\lib directory and replaced with the
xerces/xalan jars and it worked like a champ,

scott.
--- [EMAIL PROTECTED] wrote:
 Which files to I have to replace to get tomcat to
 work with xalan 2.0.   Is
 it simply a matter of removing jaxp.jar and
 parser.jar and replacing them
 with xalan and xerces or do I need to do something
 else?
 
 Regards,
 
 Todd
 
 
 The information in this electronic mail ("e-mail")
 message may
 be confidential and for use of only the named
 recipient.  The
 information may be protected by privilege, work
 product immunity
 or other applicable law.  If you are not the
 intended recipient
 the retention, dissemination, distribution or
 copying of this
 e-mail message is strictly prohibited.  If you
 receive this e-mail
 message in error please notify us immediately by
 telephone
 at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 
 
 
 

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


=
~~~
Scott
May the Force be with you!

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




RE: How to configure tomcat to us xalan and xerces

2001-03-09 Thread Todd VanderVeen

That's why I love standards-based development :)

-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 12:43 PM
To: Todd VanderVeen
Subject: Re: How to configure tomcat to us xalan and xerces


I just deleted the jaxp.jar and the parser.jar from
the tomcat\lib directory and replaced with the
xerces/xalan jars and it worked like a champ,

scott.
--- [EMAIL PROTECTED] wrote:
 Which files to I have to replace to get tomcat to
 work with xalan 2.0.   Is
 it simply a matter of removing jaxp.jar and
 parser.jar and replacing them
 with xalan and xerces or do I need to do something
 else?
 
 Regards,
 
 Todd
 
 
 The information in this electronic mail ("e-mail")
 message may
 be confidential and for use of only the named
 recipient.  The
 information may be protected by privilege, work
 product immunity
 or other applicable law.  If you are not the
 intended recipient
 the retention, dissemination, distribution or
 copying of this
 e-mail message is strictly prohibited.  If you
 receive this e-mail
 message in error please notify us immediately by
 telephone
 at 770-723-1011 or [EMAIL PROTECTED]  Thank you. 
 
 
 

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


=
~~~
Scott
May the Force be with you!

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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

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




How to configure Tomcat+Apahce+VirtualHost

2001-03-05 Thread Chris Chan


My server have installed the Apache 1.3.17, Solaris 8 and the Tomcat-3.3-m1
(Bin).

Anyone can tell me how to configure Tomcat to work with Apache + Virtual
host. or tell me some online documents that i can learn this. Thanks in
advance.



  Chris


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




How to configure Tomcat/4.0-m5 for Cocoon

2000-12-16 Thread Christian Parpart

Hi

My Tomcat/4.0-m5 is running on Win2k in standalone mode. I've installed
virtual hosts and have tried to install cocoon as shown on its install site.
But - maybe it's for Tomcat/3.2 - it doesn't work.

It is said to add simply the lines below:

Context path="/cocoon" docBase="webapps/cocoon" debug="0" reloadable="true"

/Context

and to copy the cocoon.jar and xerces.jar to the Tomcat's lib directory.
This works fine unless I am using another URL then
http://[host]/cocoon/[path/to].xml.

So, what can I do to add Cocoon support for all hosts including it's root
directory
and deeper???

Regards,
Christian Parpart mailto:[EMAIL PROTECTED]
SurakWare
http://www.surakware.com




Re: How to configure Tomcat-Apache connection

2000-12-13 Thread Mike La Budde

Please read the mod_jk-howto.html file in your tomcat/doc directory.

NOTES:
1) You should be using Tomcat 3.2 (or, perhaps 4.0)
2) You should use mod_jk (and not the older mod_jserv)
3) Make sure you included the autogenerated mod_jk.conf-auto file into 
Apache's httpd.conf file.
4) Are you really using port 8080 on your Apache server??

good luck, post again if you're unable to get it working (and be more 
specific about your environment, OS vendor/version, tomcat version, jdk 
vendor/version, etc) 

Mike


At 12/13/2000 07:10 PM +0100, you wrote:
I have configured apache and tomcat so they communicate:
apache - http://testlinux.softgroup.net.pl:8080/examples/jsp
 - apache communicating with tomcat
tomcat - http://testlinux.softgroup.net.pl:8085/examples/jsp/index.html
 - tomcat own port
- both are working - but if you will try to run any .jsp example through

apache
it won't run - tomcat runs .jsp ok

Do someone know what to do so that apache support jsp?

TIA
Wojtek

/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */
  Michael H. La Buddeemail:  [EMAIL PROTECTED]
  Prosoft, Inc.  phone:  414-860-6509
  [EMAIL PROTECTED]   fax:414-860-7014
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - */




Re: How to configure Tomcat-Apache connection

2000-12-13 Thread Wojciech Wasowicz

Mike La Budde wrote:

 Please read the mod_jk-howto.html file in your tomcat/doc directory.

 NOTES:
 1) You should be using Tomcat 3.2 (or, perhaps 4.0)

I use 3.2


 2) You should use mod_jk (and not the older mod_jserv)

I use it - I compiletd it from sources and


 3) Make sure you included the autogenerated mod_jk.conf-auto file into
 Apache's httpd.conf file.

I've included it (exactly that file)


 4) Are you really using port 8080 on your Apache server??


Yes - because we have many instances of Apache, and this one I've set to port
8080.


 good luck, post again if you're unable to get it working (and be more
 specific about your environment, OS vendor/version, tomcat version, jdk
 vendor/version, etc) 


RedHat Linux
jdk 1.2.2

If you will look at links I.ve included - it runs:

http://testlinux.softgroup.net.pl:8085/examples/
- here is directory content with apache footing

I just can't accomplish jsp programs through apache.

 Mike

 At 12/13/2000 07:10 PM +0100, you wrote:
 I have configured apache and tomcat so they communicate:
 apache - http://testlinux.softgroup.net.pl:8080/examples/jsp
  - apache communicating with tomcat
 tomcat - http://testlinux.softgroup.net.pl:8085/examples/jsp/index.html
  - tomcat own port
 - both are working - but if you will try to run any .jsp example through
 
 apache
 it won't run - tomcat runs .jsp ok
 
 Do someone know what to do so that apache support jsp?
 
 TIA
 Wojtek


Wojtek




RE: How to configure Tomcat-Apache connection

2000-12-13 Thread Dave Newton

 I just can't accomplish jsp programs through apache.

But what _happens_ when you try?

Dave




Re: How to configure Tomcat-Apache connection

2000-12-13 Thread Wojciech Wasowicz

Dave Newton wrote:

  I just can't accomplish jsp programs through apache.

 But what _happens_ when you try?

 Dave

If I open .jsp file through tomcat - it runs
If I open .jsp file through apache - tomcat communication - it displays
text of
file

You can see it in links I've sent earlier

regards
Wojtek





RE: How to configure Tomcat-Apache connection

2000-12-13 Thread Dave Newton

   I just can't accomplish jsp programs through apache.
 
  But what _happens_ when you try?
 
  Dave
 
 If I open .jsp file through tomcat - it runs
 If I open .jsp file through apache - tomcat communication - it displays
 text of file

I think w/o seeing actual files it'll be tough to help. If you're including
the conf-auto file and have all your ports etc. set up correctly there's
nothing in what you've said that would lead me to think there's a problem.

Dave





Re: How to configure Tomcat-Apache connection (long)

2000-12-13 Thread Wojciech Wasowicz

Dave Newton wrote:

  If I open .jsp file through tomcat - it runs
  If I open .jsp file through apache - tomcat communication - it displays
  text of file

 I think w/o seeing actual files it'll be tough to help. If you're including
 the conf-auto file and have all your ports etc. set up correctly there's
 nothing in what you've said that would lead me to think there's a problem.

 Dave

Ok - here is my conf-auto file.

Wojtek

###
# Auto generated configuration. Dated: Wed Dec 13 09:54:55 CET 2000
###

#changes to apache conf so it run jsp pages



#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /home/ww/tomcat/conf/workers.properties
JkLogFile /home/ww/tomcat/logs/mod_jk.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

###
# SSL configuration   #
#
# By default mod_jk is configured to collect SSL information from
# the apache environment and send it to the Tomcat workers. The
# problem is that there are many SSL solutions for Apache and as
# a result the environment variable names may change.
#
# The following (commented out) JK related SSL configureation
# can be used to customize mod_jk's SSL behaviour.
#
# Should mod_jk send SSL information to Tomact (default is On)
# JkExtractSSL Off
#
# What is the indicator for SSL (default is HTTPS)
# JkHTTPSIndicator HTTPS
#
# What is the indicator for SSL session (default is SSL_SESSION_ID)
# JkSESSIONIndicator SSL_SESSION_ID
#
# What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
# JkCIPHERIndicator SSL_CIPHER
#
# What is the indicator for the client SSL certificated (default is
SSL_CLIENT_CERT)
# JkCERTSIndicator SSL_CLIENT_CERT
#
# #
###

#
# Root context mounts for Tomcat
#
JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

#
# Auto configuration for the /examples context starts.
#

#
# The following line makes apache aware of the location of the /examples
context
#
Alias /examples "/home/ww/tomcat/webapps/examples"
Directory "/home/ww/tomcat/webapps/examples"
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp12
JkMount /examples/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/examples/WEB-INF/"
AllowOverride None
deny from all
/Location

#
# The following line prohibits users from directly accessing META-INF
#
Location "/examples/META-INF/"
AllowOverride None
deny from all
/Location

###
# Auto configuration for the /examples context ends.
###

#
# Auto configuration for the /admin context starts.
#

#
# The following line makes apache aware of the location of the /admin context
#
Alias /admin "/home/ww/tomcat/webapps/admin"
Directory "/home/ww/tomcat/webapps/admin"
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /admin/servlet/* ajp12
JkMount /admin/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/admin/WEB-INF/"
AllowOverride None
deny from all
/Location

#
# The following line prohibits users from directly accessing META-INF
#
Location "/admin/META-INF/"
AllowOverride None
deny from all
/Location

###
# Auto configuration for the /admin context ends.
###

#
# Auto configuration for the /test context starts.
#

#
# The following line makes apache aware of the location of the /test context
#
Alias /test "/home/ww/tomcat/webapps/test"
Directory "/home/ww/tomcat/webapps/test"
Options Indexes FollowSymLinks
/Directory

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /test/servlet/* ajp12
JkMount /test/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#
Location "/test/WEB-INF/"
AllowOverride None
deny from all
/Location

#
# The following line prohibits users from directly accessing META-INF
#
Location "/test/META-INF/"
AllowOverride None
deny from all
/Location


How to configure Tomcat to handle .html pages as .jsp pages?

2000-11-27 Thread Hu, Geoff

Hi, all,

Is it possible to configure Tomcat to handle .html files whic contains JSP
codes as .jsp files?
I'm using Apache 1.3.12 and Tomcat 3.1

Thanks for any help.

Geoff Hu