stop tomcat's logging in application's log

2005-09-21 Thread rahul

hi,

I am using Log4j in application for logging.
I have placed log4j configuration file(log4j.xml) in my 
application's WEB-INF/classes folder.

But the file in which I am taking all logs is filled with tomcat's log
along with my application's log.

Is there any way I can see only my application's log in my log file ?


 --RahulJoshi


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



Re: stop tomcat's logging in application's log

2005-09-21 Thread Anto Paul
On 9/21/05, rahul [EMAIL PROTECTED] wrote:
 
 hi,
 
 I am using Log4j in application for logging.
 I have placed log4j configuration file(log4j.xml) in my
 application's WEB-INF/classes folder.
 
 But the file in which I am taking all logs is filled with tomcat's log
 along with my application's log.
 
 Is there any way I can see only my application's log in my log file ?
 

Where is the log4j.jar ?.
Some documents are available.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

http://jakarta.apache.org/tomcat/faq/logging.html


-- 
rgds
Anto Paul

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



RE: stop tomcat's logging in application's log

2005-09-21 Thread rahul
log4j.jar is in webapps/MyApp/WEB-INF/lib


 -Original Message-
 From: Anto Paul [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 21, 2005 11:55 AM
 To: Tomcat Users List
 Subject: Re: stop tomcat's logging in application's log
 
 
 On 9/21/05, rahul [EMAIL PROTECTED] wrote:
  
  hi,
  
  I am using Log4j in application for logging.
  I have placed log4j configuration file(log4j.xml) in my
  application's WEB-INF/classes folder.
  
  But the file in which I am taking all logs is filled with tomcat's log
  along with my application's log.
  
  Is there any way I can see only my application's log in my log file ?
  
 
 Where is the log4j.jar ?.
 Some documents are available.
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
 
 http://jakarta.apache.org/tomcat/faq/logging.html
 
 
 -- 
 rgds
 Anto Paul
 
 -
 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: stop tomcat's logging in application's log

2005-09-21 Thread Anto Paul
On 9/21/05, rahul [EMAIL PROTECTED] wrote:
 log4j.jar is in webapps/MyApp/WEB-INF/lib
 

You might have log4j jar and config files somewhere else in common or
server folders. With TC 5.5.11 I have no problem with my application.
I am developing a sample application that uses log4j(from Spring
framework). If you want it I can send it to you as WAR file for
testing.

NOTE: If you use any framework like Struts,Spring etc.. it will log
into your applications log4j config.

 
  -Original Message-
  From: Anto Paul [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 21, 2005 11:55 AM
  To: Tomcat Users List
  Subject: Re: stop tomcat's logging in application's log
 
 
  On 9/21/05, rahul [EMAIL PROTECTED] wrote:
  
   hi,
  
   I am using Log4j in application for logging.
   I have placed log4j configuration file(log4j.xml) in my
   application's WEB-INF/classes folder.
  
   But the file in which I am taking all logs is filled with tomcat's log
   along with my application's log.
  
   Is there any way I can see only my application's log in my log file ?
  
 
  Where is the log4j.jar ?.
  Some documents are available.
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
 
  http://jakarta.apache.org/tomcat/faq/logging.html
 
 
  --
  rgds
  Anto Paul
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


-- 
rgds
Anto Paul

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



Re: Starting options

2005-09-21 Thread Krzysztof Graczyk

Tim Funk wrote:

I'm surprised the CATALINA_TMPDIR trick is not working. As for 
changing (server.xml and ROOT.xml)  - I think you are stuck with those 
in the situation you are describing.



Thanks for help. Maybe there is a way to change it tomcat sources ?



-Tim

Krzysztof Graczyk wrote:


Arup Vidyerthy wrote:


Sorry for being nosy but can I ask you exactly why do you want these
directories in different palces so that I can understand your problem a
little more? 


Yea, I have to change configuration scripts (server.xml and 
ROOT.xml), from external application, but it must be placed in 
somewhere where I have permission to change those files. In 
CATALINA_HOME and CATALINA_BASE I dont have privillages to write. I 
have to change this file because I want to set log dir paths and 
working paths to another destination.




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




--
BR
Krzysiek


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



AW:

2005-09-21 Thread Markus . Jakob

 Hello,
 
 we want to connect to a Global Directory Service via JNDI.
 The Problem is that the authentication-realm is defined in the context.xml
 of the application that authenticates the users. So Tomcat initiate the
 conncetion to the GDS once.
 But the directory has a timeout for this connection of 3 Minutes. 
 Now if a user needs to be authenticated but no connection is available,
 tomcat displays an error message.
 
 Then tomcat establishes the connection again and with the second try the
 user can be authenticated.
 
 Is there a possibility to avoid this problem?
 
 We use tomcat 4.1.29 with IIS 5.0 on Windows 2000 Server
 
 This is the code of the realm:
 Realm className=org.apache.catalina.realm.JNDIRealm
   connectionURL=ldaps://[internal_server_name]:636 debug=0
   roleBase=ou=xx,ou=Groups,o=xx,dc=xx,dc=xx roleName=xx
   roleSearch=(member={0})
   userBase=ou=xx,ou=Accounts,o=xx,dc=xx,dc=xx
 userSearch=(uid={0})/
 
 Thanx in advance
 
 
 Mit freundlichen Grüssen / Best Regards
 
 Markus Jakob
 
 Servicecenter Application (ISA) / Informatik
 
 ZF Friedrichshafen AG
 88038 Friedrichafen, Deutschland / Germany
 Telefon/Phone +49 75 41 77-2740, Telefax/Fax +49 75 41 77-902740
 Email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 Internet: http://www.zf.com/ http://www.zf.com/ 
 

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



HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5.9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)

Hello,

I am using Tomcat 5.5.9 and I have found out that the errorPage directive is
not working.
I always get a HTTP 500 ERROR.
I can solve the problem handling excpetion but I don't want to do it. I want
to use the errorPage.jsp
Looking into Google, I found out the following comment but I don't know
understand how to solve the problem.

 
CAUSE: 
Unlike previous versions of tomcat; the version 5 returns error code 500
when returning error page (with directive isErrorPage=true. Internet
explorer scans for returned error codes and when it seems error 500 it
checks the length of the the error message and if it is not long enough (not
sure of exact size) it replaces it with its own message (so called friendly
message about error 500).
Note that IE replaces messages only if option 'Show friendly error messages'
is selected under tools-options-Adanced-browsing.

SOLUTION: 

1. Uncheck that friendly error message option; which is not desirable since
can't control client browser:  HOW CAN I DO IT?

2. Increase size of your error page; to tell IE that there is enough
information in this error so please don't replace it. 
===

Thanks for helping
Elisabeth
 

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



ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

hi, I know the way to access Tomcat JMX support via http adaptor.
I also know how to monitor an application via JMX by registering an 
mbeanserver.

But I really confused about accessing Tomcat JMX support via RMI connector:
1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
2. after configuring RMI connector, how can I access Tomcat JMX support 
programmatically? I am not clear about the mbeanserver that tomcat mbeans 
has been registed. How can I make use of the connector, thread pool, 
servlet information that Tomcat has already monitored and controlled.
Thank you. 
:)


_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



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



RE: Starting options

2005-09-21 Thread Arup Vidyerthy
May be you should ask your IT guy to give you enough permission so that you
don't have to mess with all these things. It just sounds it's an too much
hard work to do what you want to do.  

-Original Message-
From: Krzysztof Graczyk [mailto:[EMAIL PROTECTED] 
Sent: 21 September 2005 07:53
To: Tomcat Users List
Subject: Re: Starting options

Tim Funk wrote:

 I'm surprised the CATALINA_TMPDIR trick is not working. As for 
 changing (server.xml and ROOT.xml)  - I think you are stuck with those 
 in the situation you are describing.

Thanks for help. Maybe there is a way to change it tomcat sources ?


 -Tim

 Krzysztof Graczyk wrote:

 Arup Vidyerthy wrote:

 Sorry for being nosy but can I ask you exactly why do you want these 
 directories in different palces so that I can understand your 
 problem a little more?

 Yea, I have to change configuration scripts (server.xml and 
 ROOT.xml), from external application, but it must be placed in 
 somewhere where I have permission to change those files. In 
 CATALINA_HOME and CATALINA_BASE I dont have privillages to write. I 
 have to change this file because I want to set log dir paths and 
 working paths to another destination.


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



--
BR
Krzysiek


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



___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

 --- Ursprüngliche Nachricht ---
 Von: jiang ying [EMAIL PROTECTED]
 An: tomcat-user@jakarta.apache.org
 Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
 Datum: Wed, 21 Sep 2005 16:26:00 +0800
 
 hi, I know the way to access Tomcat JMX support via http adaptor.
 I also know how to monitor an application via JMX by registering an 
 mbeanserver.
 But I really confused about accessing Tomcat JMX support via RMI
 connector:
 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
 Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
 2. after configuring RMI connector, how can I access Tomcat JMX support 
 programmatically? I am not clear about the mbeanserver that tomcat mbeans 
 has been registed. How can I make use of the connector, thread pool, 
 servlet information that Tomcat has already monitored and controlled.
 Thank you. 
 :)
 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
  Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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



tomcat restart ptoblem

2005-09-21 Thread mukesh
Hi friends,

 

I have installed Tomcat 5.5. It was working fine but my system
has got restarted and then onwards I am not able to restart the server.

 

What could be the reasons? (Sorry if this question have been
already asked)

 

Please advice.

 

Regards,

Mukesh Kumar



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5.9

2005-09-21 Thread Jason Bell
Elisabeth,
Could you post a small snippet of your code, then I will try and have a look 
at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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



Re: tomcat restart ptoblem

2005-09-21 Thread Tom Burke

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my 
system
has got restarted and then onwards I am not able to restart the 
server.




   What could be the reasons? (Sorry if this question have 
been

already asked)



   Please advice.



Regards,

Mukesh Kumar





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



RE: org.apache.catalina.valves.RemoteHostValve issue

2005-09-21 Thread Barbara.Townsend-Batten
Please take me off this reply list. Thanks

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 5:01 PM
To: Tomcat Users List
Subject: Re: org.apache.catalina.valves.RemoteHostValve issue


Tony Tomcat wrote:
 Actually.. according to the documentation the RemoteHostValve and
 RemoteAddrValve both do the same thing..
 
 They both say...
 Concrete implementation of RequestFilterValve that filters based on 
 the
 string representation of the remote client's IP address.
 
 The javadoc is exactly the same except the class name. :-P
 
The JavaDocs for RemoteHostValve are wrong. It should say ...filters 
based on the remote client's hostname. The JavaDocs for 
RemoteAddrValve are correct.

I don't see anything in the JavaDocs that suggests regular expressions 
should not be used for the allow and deny patterns.

Mark


-
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: Charset configurations for JSP pages

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list. Thanks

-Original Message-
From: T P [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 4:28 PM
To: tomcat-user@jakarta.apache.org
Subject: Charset configurations for JSP pages



Hello,

How to configure the character sets on JSP pages/HTTP replies so that
browser connecting to tomcat displays pages correctly? Currently i'm
using Tomcat-5.0.28.

I am unable to find any decent documentation on this. I have JSP pages
with character set ISO-8859-1 on disk. I reinstalled Linux operating
system. Previous installation used ISO-8859-1 character set according to
locale, new uses UTF-8. Now when browsing the site, scandinavian
characters (auml; and ouml;) are shown as ? on mozilla. As curiosity,
dynamic text coming from database is shown correctly, static text on JSP
page is not.

There are bunch of parameters and finding the right combination does not
seem to be trivial. For example there seems to be the following
parameters, for which it is hard to find extensive documentation:

On jsp page %page%-directive:
contentType
pageEncoding

On web.xml (tomcat configuration)
javaEncoding

Java system properties
file.encoding


TIA!



-
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: Error with Error Document defined (really need ideas)

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list. Thanks

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 5:33 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Error with Error Document defined (really need ideas)


Your config file suggests that you expect Tomcat to load the .html files
to a 
path on your server.  The specified files should be relevent to your web

application.  

So more than likely it will look something like:
  location/NotFound.html/location

If memory serves me Tomcat, according to your xml config, would be
looking for 
the error pages in
http://localhost:8080/srv/www/tomcat/base/errorpages/NotFound.html

I hope this helps you.

 ==
 2005-09-19 17:28:37 StandardContext[/Servlets]default:
DefaultServlet.serveResource:  Serving resource '/' headers and data
 2005-09-19 17:28:37 StandardContext[/Servlets]default:
DefaultServlet.serveResource:  Serving resource 
'/srv/www/tomcat/base/errorpages/NotFound.html' headers and data
 ==


--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
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: Endereço Cancelado / Canceled Address

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list.

Thanks

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 4:53 PM
To: tomcat-user@jakarta.apache.org
Subject: Endereço Cancelado / Canceled Address


English below
-

Desculpe, mas este endereço de email se tornou inviável devido ao SPAM.

Favor re-enviar para o endereço [EMAIL PROTECTED]

Atenciosamente,
David

---

I'm sorry, but this email address has become unusable due to SPAM.

Please re-send to [EMAIL PROTECTED]

Regards,
David

--
David J. Rotenberg
Maple Informática Ltda.
E-mail: [EMAIL PROTECTED]
--
Visite nosso site na Web
http://www.maple.com.br 



-
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: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5 .9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)
Hello,
I have modified something and it seems to work now!!! If the problem comes
back I will e-mail you again.
Thank you 
Elisabeth

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 12:38
To: tomcat-user@jakarta.apache.org
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9


Elisabeth,
Could you post a small snippet of your code, then I will try and have a look

at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

-
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: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error
occurred while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error
while exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
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]



AW: 5.5.9 Build Script Error Help !!!

2005-09-21 Thread Markus . Jakob
Please send an email to this adress!!  ;-(

[EMAIL PROTECTED]

Markus

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. September 2005 13:29
An: tomcat-user@jakarta.apache.org
Betreff: RE: 5.5.9 Build Script Error Help !!!
Wichtigkeit: Hoch


Please remove me from this list.

Thanks

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 3:57 PM
To: Tomcat Users List
Subject: RE: 5.5.9 Build Script Error Help !!!


 
BUILD FAILED
C:\ESI\jakarta-tomcat-5.5.9-src\build.xml:49: The following error occurred
while  executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1811: The
following e rror occurred while executing this line:
C:\ESI\jakarta-tomcat-5.5.9-src\jakarta-tomcat-5\build.xml:1911: Error while
exp anding \usr\share\java\file.zip

Total time: 13 seconds
The system cannot find the batch label specified - end

C:\ESI\jakarta-tomcat-5.5.9-src

Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
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: Asking again: Need multiple virtual directories for isapi_redirector

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list. It is a mistake.

thanks

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:11 PM
To: 'Tomcat Users List'
Subject: Asking again: Need multiple virtual directories for
isapi_redirector


Hi;

I want to make sure this is correct:


If you want to run Tomcat against multiple websites, not just the
default website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters
and put it in the parent Web Sites ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a
lot.).

Now it appears to work.

??? - thanks - dave



-
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: Tomcat 5.5 and Apache 2.0

2005-09-21 Thread Barbara.Townsend-Batten


Please remove me from this list..it is a mistake.

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



RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Barbara.Townsend-Batten
Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 


 
I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work 

What else do I need to do ?


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



AW: Tomcat 5.5 and Apache 2.0

2005-09-21 Thread Markus . Jakob
Could you please please please stop mailing!!!???

Send an Email to this mailto:[EMAIL PROTECTED]
adress to unsubscribe!



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 21. September 2005 13:43
An: tomcat-user@jakarta.apache.org
Betreff: RE: Tomcat 5.5 and Apache 2.0
Wichtigkeit: Hoch




Please remove me from this list..it is a mistake.

-
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: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread andy gordon
Dirk is correct you need to check out the doc in order to understand your 
options. To add a little specificity to your challenge, you need to do at least 
the following to get going: 
 
1) set remote monitoring options when you are starting the JVM. This can be 
accomplished multiple ways. One place is in catalina.bat

1) set remote monitoring port   -Dcom.sun.management.jmxremote.port=
2) turn on remote monitoring-Dcom.sun.management.jmxremote

there are others for SSL and authentication and you have to decide if 
they are needed.

2)  create the RMI connector client in a very small bit of java code as well as 
establish as use the MBeanServerConnection class to access TOMCAT domains and 
MBeans.

 

THis is probably about a 1/2 dozen LOC to gain access and there are examples to 
be found.

 

You can use JConsole (JMX monitoring from SUN)  which is located in the JDK 1.5 
BIN directory to validate configuration tasks without any coding or installing 
any other software. 

 

hope this helps. 

 

- andy  
 

Dirk Weigenand [EMAIL PROTECTED] wrote:
Hi,

 --- Ursprüngliche Nachricht ---
 Von: jiang ying 
 An: tomcat-user@jakarta.apache.org
 Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
 Datum: Wed, 21 Sep 2005 16:26:00 +0800
 
 hi, I know the way to access Tomcat JMX support via http adaptor.
 I also know how to monitor an application via JMX by registering an 
 mbeanserver.
 But I really confused about accessing Tomcat JMX support via RMI
 connector:
 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only 
 Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
 2. after configuring RMI connector, how can I access Tomcat JMX support 
 programmatically? I am not clear about the mbeanserver that tomcat mbeans 
 has been registed. How can I make use of the connector, thread pool, 
 servlet information that Tomcat has already monitored and controlled.
 Thank you. 
 :)
 

Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
Dirk

-- 
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl

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





-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

RE: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread KEREM ERKAN
BARBARA,

FOR GOD'S SAKE, DO NOT REPLY ALL THESE MAILS AND SEND A BLANK E-MAIL TO

[EMAIL PROTECTED]

TO BE REMOVED FROM THIS REPLY LIST!

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 21, 2005 2:36 PM
 To: tomcat-user@jakarta.apache.org
 Subject: RE: Create Valve and Deploy How to Help Please 
 Importance: High
 
 Please remove me from this reply list.
 
 -Original Message-
 From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 20, 2005 11:06 PM
 To: Tomcat Users List
 Subject: RE: Create Valve and Deploy How to Help Please 
 
 
  
 I have created a new Valve in the authenticator package called
 ThreadSignOn
 
 I added a descritpion for it to the mbean description xml file.
 
 I re-built and verified that my new valve and the new 
 description is in
 catalina.jar
 
 But When I refference my new valve nothing happens it does not work 
 
 What else do I need to do ?
 
 
 -
 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]
 


smime.p7s
Description: S/MIME cryptographic signature


Re: Create Valve and Deploy How to Help Please ????

2005-09-21 Thread Parsons Technical Services
Remove thyself. Look at the bottom of the email. Spamming the list will not 
help. The list admins are not on 24/7.


Doug


- Original Message - 
From: [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 7:36 AM
Subject: RE: Create Valve and Deploy How to Help Please 


Please remove me from this reply list.

-Original Message-
From: Bovy, Stephen J [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 20, 2005 11:06 PM
To: Tomcat Users List
Subject: RE: Create Valve and Deploy How to Help Please 



I have created a new Valve in the authenticator package called
ThreadSignOn

I added a descritpion for it to the mbean description xml file.

I re-built and verified that my new valve and the new description is in
catalina.jar

But When I refference my new valve nothing happens it does not work

What else do I need to do ?


-
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: need final / in url

2005-09-21 Thread Joost de Heer
Mladen Turk said:
 David Thielen wrote:

 The url www.windward.net/forums fails while www.windward.net/forums/
 succeeds.

 My uriworkermap has:

 /forums/*=ajp13w


 try:
 /forums|/*=ajp13w

 This will actually create two maps:
 /forums=ajp13w
 /forums/*=ajp13w

 Regards,
 Mladen.

More likely: Misconfigured Apache, ServerName isn't set properly, URLs
pointing to directories without a trailing slash result in a redirection
URL based on the ServerName in Apache.

Joost


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



RE: HTTP 500 Error occurs whith errorPage directive in Tomcat 5.5 .9

2005-09-21 Thread Bachler, Elisabeth (Elisabeth)
Hello again,
I managed to make it work but I am having another problem. I normally
prevent the user from going backward using the following line:
script language=JavaScript
javascript:window.history.forward(1);
/script

Now, it works perfectly with the other page but not with errorPage=true.
Is it Tomcat? or another problem?

Elisabeth


throwError.jsp
=
html
head
titleThrow Exception/title
script language=JavaScript
javascript:window.history.forward(1);
/script
/head
[EMAIL PROTECTED] errorPage=errorPage0.jsp %
[EMAIL PROTECTED] language=java %
body
Throwing exception
%
// throw ArithmeticException
int badInt = 12/0;
%
/body
/html

errorPage0.jsp

html
head
titlePaacute;gina de Error/title
script language=JavaScript
javascript:window.history.forward(1);
/script
/head
%@ page language=java isErrorPage=true %
centerH1 DETALLES DEL ERROR OCURRIDO: /H1/center

%
if (exception != null)
{
%
pre% exception.printStackTrace(new java.io.PrintWriter(out)); %/pre
%
}
%
/body
/html


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 13:31
To: 'Tomcat Users List'
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5 .9


Hello,
I have modified something and it seems to work now!!! If the problem comes
back I will e-mail you again.
Thank you 
Elisabeth

-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]
Sent: miércoles, 21 de septiembre de 2005 12:38
To: tomcat-user@jakarta.apache.org
Subject: RE: HTTP 500 Error occurs whith errorPage directive in Tomcat
5.5.9


Elisabeth,
Could you post a small snippet of your code, then I will try and have a look

at what is going on.

Regards
Jason

--
Jason Bell
Lead Architect, SpikeSource Europe
e: [EMAIL PROTECTED]
w: http://www.spikesource.com
b: http://jasonbell.blog-city.com
m: +44 (0)787 529 2693

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



Automatically Quit from Tomcat if Exception found (Out of Memory Exception)

2005-09-21 Thread NoKideen
Hi, 

I just worried that my tomcat hangs,

 if my Probelm Out of Memory occurs, then there will no ways I can stop Tom 
cat else than use 

#kill -9 pid_tomcat

in my Linux,

what can I do in TOmcat so if those out of memory problem occurs, tomcat will 
quit by it self, 

then I can prepate in my /etc/init.d/tomcat script will re-run again tomcat.

Thanks in Advance,
 --
From Indonesia :D, the home of Java :-p






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



How show CLIENT-CERT Realm

2005-09-21 Thread Antony GUILLOTEAU
I'm able to show the login window of a basic realm with following code :
   response.setHeader(WWW-Authenticate, BASIC realm=\myName\);
   response.sendError(HttpServletResponse.SC_UNAUTHORIZED);

Now I wish to show the window like CLIENT-CERT : when all realm parameters are 
set in the web.xml that 's work fine. But I want to do the same thing 
programmaticly with response.sendError(HttpServletResponse.SC_UNAUTHORIZED).

I think it is done in the tomcat code ... but where ?

Thanks


Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Mbah Tenjoh-Okwen
hello

Im using tomcat 5.5.9 and when i create a
folder(mine)under 
webbaps (tomcat/webapps/mine)i cant even get to its
index.html file by typing http://localhost:8080/mine;
in my browser.The container says The requested
resource (/kopie/) is not available (ie i get a 404
http error report).

on the other hand  accessing the index.html file and
servlet examples in the  servlets-examples folder does
not pose a problem. i could even duplicate this
folder, reanme it and access its index.html file
without anyproblem but as soon as i modify  the DD
(deployment descriptor) i cant view the index.html
file, let alone  access the servlets.

thanks 





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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



Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Viorel Dragomir

Tomcat is not exactly httpd.

So, try to READ some FREE docs on the website.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html





Viorel Dragomir

.
..
---



- Original Message - 
From: Mbah Tenjoh-Okwen 
To: Tomcat Users List ; [EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 14:19
Subject: Tomcat cant see my application folder HELP!!!


hello

Im using tomcat 5.5.9 and when i create a
folder(mine)under 
webbaps (tomcat/webapps/mine)i cant even get to its
index.html file by typing http://localhost:8080/mine;
in my browser.The container says The requested
resource (/kopie/) is not available (ie i get a 404
http error report).

on the other hand  accessing the index.html file and
servlet examples in the  servlets-examples folder does
not pose a problem. i could even duplicate this
folder, reanme it and access its index.html file
without anyproblem but as soon as i modify  the DD
(deployment descriptor) i cant view the index.html
file, let alone  access the servlets.

thanks 





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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

Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Leon Rosenberg
you need a WEB-INF directory in your webapp if you want the webapp to be loaded.

On 9/21/05, Mbah Tenjoh-Okwen [EMAIL PROTECTED] wrote:
 hello

 Im using tomcat 5.5.9 and when i create a
 folder(mine)under
 webbaps (tomcat/webapps/mine)i cant even get to its
 index.html file by typing http://localhost:8080/mine;
 in my browser.The container says The requested
 resource (/kopie/) is not available (ie i get a 404
 http error report).

 on the other hand  accessing the index.html file and
 servlet examples in the  servlets-examples folder does
 not pose a problem. i could even duplicate this
 folder, reanme it and access its index.html file
 without anyproblem but as soon as i modify  the DD
 (deployment descriptor) i cant view the index.html
 file, let alone  access the servlets.

 thanks





 ___
 Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with 
 voicemail http://uk.messenger.yahoo.com

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



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



Re: Tomcat cant see my application folder HELP!!!

2005-09-21 Thread Mbah Tenjoh-Okwen

I have read those steps and done what they ask of me
but somehow i still get the same behaviour.
Got any other ideas?
 thanks



--- Viorel Dragomir [EMAIL PROTECTED] wrote:

 
 Tomcat is not exactly httpd.
 
 So, try to READ some FREE docs on the website.

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html
 
 
 
 
 
 Viorel Dragomir
 
 .
 ..

---
 
 
 
 - Original Message - 
 From: Mbah Tenjoh-Okwen 
 To: Tomcat Users List ; [EMAIL PROTECTED] 
 Sent: Wednesday, September 21, 2005 14:19
 Subject: Tomcat cant see my application folder
 HELP!!!
 
 
 hello
 
 Im using tomcat 5.5.9 and when i create a
 folder(mine)under 
 webbaps (tomcat/webapps/mine)i cant even get to its
 index.html file by typing
 http://localhost:8080/mine;
 in my browser.The container says The requested
 resource (/kopie/) is not available (ie i get a 404
 http error report).
 
 on the other hand  accessing the index.html file and
 servlet examples in the  servlets-examples folder
 does
 not pose a problem. i could even duplicate this
 folder, reanme it and access its index.html file
 without anyproblem but as soon as i modify  the DD
 (deployment descriptor) i cant view the index.html
 file, let alone  access the servlets.
 
 thanks 
 
 
 
 
 

___
 
 Yahoo! Messenger - NEW crystal clear PC to PC
 calling worldwide with voicemail
 http://uk.messenger.yahoo.com
 

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




___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



RE: tomcat restart ptoblem

2005-09-21 Thread mukesh
Hi Tom,

Its WindowsServer 2003 Standard Edition.

Regards,
Mukesh

-Original Message-
From: Tom Burke [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 21, 2005 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat restart ptoblem

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem


 Hi friends,



I have installed Tomcat 5.5. It was working fine but my 
 system
 has got restarted and then onwards I am not able to restart the 
 server.



What could be the reasons? (Sorry if this question have 
 been
 already asked)



Please advice.



 Regards,

 Mukesh Kumar

 


-
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: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

Thank you.

Before posting my question, I have studied 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It 
explains the way to activate HTTP adaptor. I have also browsed the mx4j 
website and found little information.
MC4j(http://mc4j.org/confluence/display/MC4J/Home?) that you suggest really 
do me a lot.

Finally I am able to monitor the tomcat via RMI connector.

Thanks a lot.

cylinder



From: Dirk Weigenand [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 11:49:58 +0200 (MEST)

Hi,

 --- Urspr�ngliche Nachricht ---
 Von: jiang ying [EMAIL PROTECTED]
 An: tomcat-user@jakarta.apache.org
 Betreff: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
 Datum: Wed, 21 Sep 2005 16:26:00 +0800

 hi, I know the way to access Tomcat JMX support via http adaptor.
 I also know how to monitor an application via JMX by registering an
 mbeanserver.
 But I really confused about accessing Tomcat JMX support via RMI
 connector:
 1. how to configure Mx4j RMI connector with Tomcat 5.5, since only
 Activating JMX MX4J Http Adaptor could be found in the Tomcat website.
 2. after configuring RMI connector, how can I access Tomcat JMX support
 programmatically? I am not clear about the mbeanserver that tomcat 

mbeans

 has been registed. How can I make use of the connector, thread pool,
 servlet information that Tomcat has already monitored and controlled.
 Thank you.
 :)


Have a look at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html.

You can then use e.g. MC4J (http://mc4j.org/confluence/display/MC4J/Home?)
for monitoring Tomcat.

Regards
  Dirk

--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: 

http://www.gmx.net/de/go/dsl


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



_
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  



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



Re: jdbc driver

2005-09-21 Thread Kito Holliday
Thanks

Specifically, I have a web.xml having:

**
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
!-- end tomcat addition --
***

and a server.xml having

*Sorry for the long server.xml**

Server port=8005 shutdown=SHUTDOWN debug=0
 Service name=Tomcat-Standalone
   Connector className=org.apache.catalina.connector.http.HttpConnector
  port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443 acceptCount=10
  debug=0 connectionTimeout=6 /
   Engine name=Standalone defaultHost=localhost debug=0
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=standaloneEngine_log. suffix=.txt
   timestamp=true/
   Realm className=org.apache.catalina.realm.MemoryRealm /
   Host name=localhost debug=0 appBase=webapps unpackWARs=true
 Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs prefix=localhost_access_log. suffix=.txt
pattern=common /
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=standaloneHost_log. suffix=.txt
 timestamp=true /
   Context path= docBase=ROOT debug=0 /
   Context path=/manager docBase=manager debug=0
privileged=true
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=standalone_manager_log. suffix=.txt
 timestamp=true /
   /Context
   Context path=/examples docBase=examples debug=0
reloadable=true crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=standalone_examples_log. suffix=.txt
 timestamp=true /
 Environment name=maxExemptions type=java.lang.Integer
  value=15 /
 Parameter name=context.param.name value=context.param.value
override=false /
 Resource name=mail/Session auth=Container
   type=javax.mail.Session /
 ResourceParams name=mail/Session
   parameternamemail.smtp.host/name
  valuelocalhost/value
   /parameter
 /ResourceParams
   /Context
   Context path=/DBTest docBase=DBTest debug=5
reloadable=true
crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=standalone_DBTest_log. suffix=.txt
 timestamp=true /
 Resource name=jdbc/TestDB auth=Container
   type=javax.sql.DataSource
   driverClassName=com.mysql.jdbc.Driver /
   ResourceParams name=jdbc/TestDB
 parameter
   namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
   namefactory/name
   valuecom.mysql.jdbc.jdbc2.optional.
  MysqlConnectionPoolDataSource/value
 /parameter
 parameter
   namemaxActive/name
   value100/value
 /parameter
 parameter
   namemaxIdle/name
   value30/value
 /parameter
 parameter
   namemaxWait/name
   value1/value
 /parameter
 parameter
   nameusername/name
   valuejavauser/value
 /parameter
 parameter
   namepassword/name
   valuejavadude/value
 /parameter
 parameter
   namedriverClassName/name
   valuecom.mysql.jdbc.Driver/value
 /parameter
 parameter
   nameurl/name
   valuejdbc:mysql://localhost:3306
  /javatest?autoReconnect=true/value
 /parameter
   parameter
   nameremoveAbandoned/name
   valuetrue/value
 /parameter
 parameter
   nameremoveAbandonedTimeout/name
   value60/value
 /parameter
 parameter
   namelogAbandoned/name
   valuetrue/value
 /parameter
   /ResourceParams
   /Context
 /Host
   /Engine
 /Service
 Service name=Tomcat-Apache
Logger className=org.apache.catalina.logger.FileLogger
prefix=tomcat_apache_service. suffix=.txt
timestamp=true/
Connector
className=org.apache.catalina.connector.warp.WarpConnector
   port=8008 minProcessors=5 maxProcessors=75
   enableLookups=true 

Re: tomcat restart ptoblem

2005-09-21 Thread Tom Burke
Is it installed as a Windows Service? Is the Service set to start 
automatically? If it isn't, you know what to do!


If it is but it isn't starting successfully, try the following:-

a) try to Start the service manually;
b) if it fails, examine the Windows Event log, as well as the various 
Tomcat logs.


Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 1:57 PM
Subject: RE: tomcat restart ptoblem



Hi Tom,

Its WindowsServer 2003 Standard Edition.

Regards,
Mukesh

-Original Message-
From: Tom Burke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat restart ptoblem

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my
system
has got restarted and then onwards I am not able to restart the
server.



   What could be the reasons? (Sorry if this question have
been
already asked)



   Please advice.



Regards,

Mukesh Kumar





-
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: Can the Tomcat authentication module use an ASP.NET security token?

2005-09-21 Thread Peter Crowther
 From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
 Subject: Can the Tomcat authentication module use an ASP.NET 
 security token?
 
 I have a Tomcat app (MM Flex app) that is called from an asp.net
 application which is secured by forms (cookie-based) authentication.
 (NOT NTLM / Windows Integrated)
 
 I don't want the user to have to log in again.
 
 I have a programmatic solution in mind, but it is going to be
 comparitively ugly.  
 
 Any ideas?

You're going to have to use that programmatic solution.  Forms
authentication (by default) sets a session-id cookie, and the asp.net
worker process maintains state information such as login details
internally.  You can't even get to it via classic ASP on the same IIS.

- Peter

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



Problem Parsing Request Parameters

2005-09-21 Thread Jeremy Nix
Certain users of my website are having issues with respect to submitting
a form on a page.  Not all users are experiencing this problem, and I've
yet to replicate it myself so it makes the situation even more complex.
I have an icking suspicion that its related to the user's browser, but
I've tested on the same browser version/subversion without a glitch.
Here's the scenario:
1) User goes to page.
2) User fills out form.
3) User clicks submit.
4) JSP page then performs sanity checks against submitted data.  In the
event of a failure on the sanity checks, page is redirected back to
previous page.

Simple enough.  Well, users are filling out the form and clicking submit
with valid infromation, yet when I parse the parameters out of the
request, I'm finding none of the form values from the previous page.  I
then decided to investigate further and log out all request information
in the event that these sanity checks fail.  The following is what I
logged out:

-
Attributes:
  javax.servlet.request.cipher_suite = [SSL_RSA_WITH_RC4_128_MD5]
  javax.servlet.request.key_size = [128]
  javax.servlet.request.ssl_session =
[433162398579970fee9289baa9ac832b8558dcc409382f62cb67a3499b80]
Parameters:
Cookies:
 JSESSIONID = [FCB31837FFBD2C0D9F986C42B698BADE]
 contact_value = [ABC]
 duplicate_type = [None]
 duplicate_time = []
 mortgage = []
 lender_id_label = []
 title_alternative = []
 can_place_orders = [Y]
 flood_default = [126]
 can_cancel_lol = [N]
 contact_label = []
 lender_id_value = [ABC]
 census = []
 loan_no_label = []
 delivery_method = [Online]
 apprasail = []
 delivery_address = []
 title = []
Headers:
  accept = [image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/msword,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*]
  referer =
[https://WEBSITE_URL/CreateOrder.jsp?applicant2HomePhone=streetName=Ma
in+Stapplicant2WorkPhone=applicantOtherPhone=ownerEstimate=applicant
2WorkPhone2=revisionOf=applicantWorkPhoneExtension=unitType=preFixDi
r=Eapplicant2OtherPhoneAreaCode=applicantOtherPhone2=applicantMname=L
skipstep=nonezip4=applicant2HomePhoneAreaCode=applicant2OtherPhone=
applicantLname=DoestreetNum=applicantHomePhoneAreaCode=zip=40845pass
code=HomeorderHeaderGeneralNotes=applicantHomePhone2=propertyLoanNumb
er=productTitle=applicantFname=Johnapplicant2WorkPhoneExtension=appl
icant2WorkPhoneAreaCode=applicant2Mname=JunitNumber=applicantWorkPhon
eAreaCode=postFixDir=productAppraisal=propertyParcelNumber=applicant
WorkPhone2=applicantOtherPhoneAreaCode=city=HulenapplicantHomePhone=
applicantWorkPhone=applicant2Lname=Janeapplicant2OtherPhone2=applican
t2HomePhone2=streetType=state=KYcontactId=10productMortgagePrep=pro
ductFlood=Yesapplicant2Fname=Doe]
  accept-language = [en-us]
  content-type = [application/x-www-form-urlencoded]
  accept-encoding = [gzip, deflate]
  user-agent = [Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
.NET CLR 1.1.4322)]
  host = [WEBSITE_DOMAIN]
  connection = [Keep-Alive]
  cache-control = [no-cache]
  cookie = [JSESSIONID=FCB31837FFBD2C0D9F986C42B698BADE;
contact_value=ABC; duplicate_type=None; duplicate_time=; mortgage=;
lender_id_label=; title_alternative=; can_place_orders=Y;
flood_default=126; can_cancel_lol=N; contact_label=;
lender_id_value=ABC; census=; can_view_insurance_tracking=N;
loan_no_label=; delivery_method=Online; apprasail=; delivery_address=;
title=]
  content-length = [0]

-
There are many interesting things about this request.  First, the
content-length is 0.  Not sure how this could happen...error in
browser??  Second, and the most intriguing...Notice the referer entry.
The referer entry actually contains all relevant information that I
needed in order to process this request, yet if you look at what
parameters I was actually able to parse off this request you will
see...NONE.

I'm stumped.  Anybody else seen this before?

Environment:
JDK 1.4.2_08
Tomcat 5.5.9

___
Jeremy Nix
Senior Application Developer
Southwest Financial Services, LTD.
(513) 621-6699 x1158
www.sfsltd.com




How to start Tomcat with JDK 1.4 compatibility pack on JDK 5.0?

2005-09-21 Thread Stagger Lee
Hello everyone,

We have a shared installation of Tomcat, r/o catalina home dir + each user 
has its own catalina base dir. Tomcat was installed with the JDK 1.4 
compatibility pack, so that it can run on JDK 1.4.  The compatibility pack, 
however, causes problems when running on JDK 5.0 and using XML APIs.

Is there a way how to start Tomcat correctly on JDK 5.0 w/o removing the 
compatibility jars? (i.e. the same catalina home dir can be used for running 
Tomcat on both JDK 1.4 and 5.0 at the same time)

Would the following work-around work?
1. remove ${catalina.home}/common/endorsed/*.jar from the common classloader 
from the catalina.properties 
2. tweak the setclasspath.sh script, so that  
JAVA_ENDORSED_DIRS=$BASEDIR/common/endorsed is set only when running on JDK 
1.4 


Thanks,

Stag

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

 
 Before posting my question, I have studied 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It 
 explains the way to activate HTTP adaptor.

Well it explains how to activate jmx remote monitoring right at the start of
the page. Did you follow the link to SUNs web site? There you'll find a
thorough explanation what all the possible properties and their meaning are.

I mean the properties in those boxes in the 'Enabling remote JMX' section,
i.e.: 
set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=%my.jmx.port% \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false

Regards
   Dirk

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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



tomcat and JMS

2005-09-21 Thread Stas Ostapenko
Hi !

I'm trying to embedd openJMS into Tomcat 5.0.30. I found few articles
how to use openJMS as standalone, but no one about embedding. As i
understand openJMS can be embedded -
http://openjms.sourceforge.net/usersguide/embedded.html. But how ?

Please help.

Regards, Stas

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



Tomcat would not start...

2005-09-21 Thread Lenandlar Singh


 

Hi All,

 

I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04.

It just would not start when i do http://127.0.0.1:8080/

 

Help1


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

Re: Tomcat would not start...

2005-09-21 Thread Ritchie Gillam
Did you check to see under Administration Tools--Services if the status for 
Tomcat is showing as Started???

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 09/21/05 12:19 pm 


 

Hi All,

 

I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04.

It just would not start when i do http://127.0.0.1:8080/ 

 

Help1


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


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



RE: Tomcat would not start...

2005-09-21 Thread Arup Vidyerthy
Actually that's how it works. You have to send encrypted messages to it over
an encrypted network using 2.6987Ghz frequency. Only then does it run.
Surprised its not in the manual.

-Original Message-
From: Lenandlar Singh [mailto:[EMAIL PROTECTED] 
Sent: 21 September 2005 16:19
To: Tomcat Users List
Subject: Tomcat would not start...

Hi All,

I've just installed tomcat 5.5 on my windows XP machine with jdk 1.5.0_04.
It just would not start when i do http://127.0.0.1:8080/

Help1





___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying
I did follow the link to SUNs web site and did the exercise. I know how to 
use JMX, but I don't know how to get the mbeanserver that the tomcat JMX 
support registed. And I've been searching the material about mx4j at all 
times :(. 


From: Dirk Weigenand [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 16:57:20 +0200 (MEST)

Hi,


 Before posting my question, I have studied
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/monitoring.html. It
 explains the way to activate HTTP adaptor.

Well it explains how to activate jmx remote monitoring right at the start 

of

the page. Did you follow the link to SUNs web site? There you'll find a
thorough explanation what all the possible properties and their meaning 

are.


I mean the properties in those boxes in the 'Enabling remote JMX' section,
i.e.:
set CATALINA_OPTS=-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=%my.jmx.port% \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false

Regards
   Dirk

--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen f�r GMX Partner: http://www.gmx.net/de/go/partner

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



_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn  



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



Re: AW: Tomcat 5.5 and Apache 2.0

2005-09-21 Thread Stephen Carville
[EMAIL PROTECTED] wrote:
 Could you please please please stop mailing!!!???
 
 Send an Email to this mailto:[EMAIL PROTECTED]
 adress to unsubscribe!

I'm not trying to unsubscribe, I'm trying to get tomcat 5 to serve up
something besides error 404's and empty pages.

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



conf/tomcat-users.xml syntax and semantics

2005-09-21 Thread Paul Singleton

What is the correct syntax (for 5.5.9 and later) of
conf/tomcat-users.xml, and what do the entries mean?
(I've read the docs, but still don't really get it)

Should I put
user name=paul ...
or
user username=paul ...

Are these entries

  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/

purely illustrative and can they be deleted? (I prefer to keep
documentation elsewhere)

Is 'standard' a built-in role, and if so what is it for?

Finally (for now) I don't understand why my tomcat-users.xml
gets touched (at least) at each restart, and has its permissions
reset (from -rw--- to -rw-rw-r--)

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/Sep/2005


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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread Dirk Weigenand
Hi,

 --- Ursprüngliche Nachricht ---
 Von: jiang ying [EMAIL PROTECTED]
 An: tomcat-user@jakarta.apache.org
 Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
 Datum: Wed, 21 Sep 2005 23:38:36 +0800
 
 I did follow the link to SUNs web site and did the exercise. I know how to
 use JMX, but I don't know how to get the mbeanserver that the tomcat JMX 
 support registed. And I've been searching the material about mx4j at all 
 times :(. 

Mmh, using SUNs reference implementation:

MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer(
null ).get( 0 );

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

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



Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR

2005-09-21 Thread jiang ying

well,
after studied MC4j, I've already solved the problem with the code
String urlForJMX = service:jmx:rmi:///jndi/rmi://localhost:9004/jmxrmi; 

MBeanServerConnection jmxServerConnection = 
JMXConnectorFactory.connect( new JMXServiceURL( urlForJMX ), 
null).getMBeanServerConnection();

A little different from yours, but it works. :)
I've been wasting time finding the solution about mx4j and finally solved 
it by using mc4j.

Thank you. :)



From: Dirk Weigenand [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI CONNECTOR
Date: Wed, 21 Sep 2005 17:58:33 +0200 (MEST)

Hi,

 --- Urspr�ngliche Nachricht ---
 Von: jiang ying [EMAIL PROTECTED]
 An: tomcat-user@jakarta.apache.org
 Betreff: Re: ACCESSING TOMCAT JMX SUPPORT REMORTELY VIA THE RMI 

CONNECTOR

 Datum: Wed, 21 Sep 2005 23:38:36 +0800

 I did follow the link to SUNs web site and did the exercise. I know how 

to
 use JMX, but I don't know how to get the mbeanserver that the tomcat 

JMX
 support registed. And I've been searching the material about mx4j at 

all

 times :(.

Mmh, using SUNs reference implementation:

MBeanServer mbeanServer = (MBeanServer)MBeanServerFactory.findMBeanServer(
null ).get( 0 );

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

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



_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



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



Re: conf/tomcat-users.xml syntax and semantics

2005-09-21 Thread Sonja Löhr


Hi, Paul!

I have username attributes and it works fine.
the example roles can be deleted - may be they are used in some example
webapps(?)


Am Mittwoch, den 21.09.2005, 16:40 +0100 schrieb Paul Singleton:
 What is the correct syntax (for 5.5.9 and later) of
 conf/tomcat-users.xml, and what do the entries mean?
 (I've read the docs, but still don't really get it)
 
 Should I put
  user name=paul ...
 or
  user username=paul ...
 
 Are these entries
 
user username=both password=tomcat roles=tomcat,role1/
user username=role1 password=tomcat roles=role1/
 
 purely illustrative and can they be deleted? (I prefer to keep
 documentation elsewhere)
 
 Is 'standard' a built-in role, and if so what is it for?
 
 Finally (for now) I don't understand why my tomcat-users.xml
 gets touched (at least) at each restart, and has its permissions
 reset (from -rw--- to -rw-rw-r--)
 
 Paul Singleton
 
 
-- 
Sonja Löhr [EMAIL PROTECTED]


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



Configure multiple number of aliases / sub-domains

2005-09-21 Thread Assaf
Hi,
 
I am trying to have a host configured to pickup all
alias/ sub-domains such as 
 
xxx.domain.com
yyy.domain.com
xxt.domain.com 
 
etc. etc. etc.

The number of subdomains / aliases is very large and
can be changed frequently (therefore cannot be
configured in the server.xml file). I was hoping to
map something like:
 
*.domain.com
 
but this does not seem to be working. Is there any
way
of doing so? I am using tomcat 5.0.28 on JDK 1.5
running on linux Fedora.
 
Thanks,
 
Assaf


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

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



Trying to start Tomcat from Apple's launchd

2005-09-21 Thread Tommy Knowlton
[[ I've already posted a similar question to Apple's unix-porting
list, in case this should be something peculiar to launchd. ]]

I'm trying to get Tomcat to start as an on-demand service using
Apple's launchd. I've got to the point where I can see some
indications Tomcat is trying to start, but then it immediately exits
with a ClassNotFoundException. Here's what I've tried:

sudo -u www 
/System/Library/Frameworks/JavaVM.framework/Versions/1.4/Home/bin/java
-Djava.io.tmpdir=/opt/local/share/java/tomcat5/temp
-Dcatalina.home=/opt/local/share/java/tomcat5
-Djava.endorsed.dirs=/opt/local/share/java/tomcat5/common/endorsed
-jar /opt/local/share/java/tomcat5/bin/bootstrap.jar

Running that command Tomcat to startup listening and responding on
port 8080. It works that way. But when the same command (sans 'sudo -u
www' part, instead using another method of specifying the owning user)
is exec()ed from launchd, it produces the following output:

Created MBeanServer with ID:
3e96cf:10674a37f8b:-8000:tommy-knowltons-powerbook-g4-17.local:1

stderr:

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
   at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:198)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:386)

(and at this point, the tomcat is dead not listening).

Any ideas why Tomcat would get to the point of creating the mbean
server, and then crap out with ClassNotFound of Catalina.class?

Looking at the tomcat5 sources, it seems lke the 'catalina'
classloader can't find the Catalina class - though I can't see how
that can happen. I'm running from the bootstrap.jar, which has
catalina.properties that point the server classloader to the
${catalina.home}/server/lib/*.jar, in which catalina.jar is present.
Besides, it works when I manually sudo it.

My first thought was to setup jdwp debugging, but that craps out with

JDWP unable to initialize: Error 111 from JNI GetEnv
Error occurred during initialization of VM
-Xrun library failed to init: jdwp

So, my investigative tools appear to be somewhat limited in launchd's
environment.

Maybe my next step will be to configure a logger with debug enabled.
Does anyone know how I can do that, externally to tomcat? I really
don't want to have to rebuild from source to track down what's going
on...

Thanks,
--
Tk!

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



Re: How show CLIENT-CERT Realm

2005-09-21 Thread Mark Thomas

Antony GUILLOTEAU wrote:

I'm able to show the login window of a basic realm with following code :
   response.setHeader(WWW-Authenticate, BASIC realm=\myName\);
   response.sendError(HttpServletResponse.SC_UNAUTHORIZED);

Now I wish to show the window like CLIENT-CERT : when all realm parameters are 
set in the web.xml that 's work fine. But I want to do the same thing 
programmaticly with response.sendError(HttpServletResponse.SC_UNAUTHORIZED).

I think it is done in the tomcat code ... but where ?

Thanks


It is done in o.a.c.authenticator.AuthenticatorBase and the process is 
basically issue a redirect to SSL. You will need to set the clientAuth 
attribute on the connector to true to require all connections to 
present a client certificate. If you want to validate the clienbt 
certificate, have a look at o.a.c.authenticator.SSLAuthenticator


Mark



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



Re: conf/tomcat-users.xml syntax and semantics

2005-09-21 Thread andy gordon

A realm, in this case the UserDatabase realm is simply a collection of users, 
passwords, and roles. You could also think of a role as a group. It identifies 
valid users of a web application (or set of web applications), plus an 
enumeration of the list of roles associated with each valid user.

 

You should be able to assign user names and passwords ok. Then you assign users 
to responsibilities i.e. roles such as manager. 

 

Realms may be defined at the Engine, Host, or Context level. The UserDataBase 
realm is at the engine level i..e the top level. Host and context are 
subordinate levels and their scope is limited to the host or web application 
(context) level and are defined there (with the web app or host). 

 

listed below is an example: 

 

tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=singleton password=paul roles=admin,manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=admin roles=admin,manager/
/tomcat-users 

 

 

notice that userid singleton has a password of paul and has the role of admin 
and manager meaning that singleton can access applications that require admin 
or manager privileges in order to be used.

 

hope this helps.

 

- andy


Paul Singleton [EMAIL PROTECTED] wrote:
What is the correct syntax (for 5.5.9 and later) of
conf/tomcat-users.xml, and what do the entries mean?
(I've read the docs, but still don't really get it)

Should I put
or

Are these entries




purely illustrative and can they be deleted? (I prefer to keep
documentation elsewhere)

Is 'standard' a built-in role, and if so what is it for?

Finally (for now) I don't understand why my tomcat-users.xml
gets touched (at least) at each restart, and has its permissions
reset (from -rw--- to -rw-rw-r--)

Paul Singleton


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.3/107 - Release Date: 20/Sep/2005


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



-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

RES: Problems with gzip compression with Apache/Tomcat cluster and Firefox

2005-09-21 Thread Acácio Furtado Costa
Hi

We're having problems to configure gzip using TC559/Apache Cluster...

We moved the compression=on and others gzip declarations from connector 80 
to 8009 in all Tomcat Servers but it seems that Apache isn't serving 
gzipped html...

Do we also need to make any gzip configurations (mod_gzip?) in the Apache 
Server itself? 

Thanks in advance!

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
((0xx31) 3368-1349
*  [EMAIL PROTECTED]


-Mensagem original-
De: B.J. Guillot [mailto:[EMAIL PROTECTED] 
Enviada em: sexta-feira, 20 de maio de 2005 13:15
Para: tomcat-user@jakarta.apache.org
Assunto: Problems with gzip compression with Apache/Tomcat cluster and Firefox

We have recently been experimenting with enabling gzip/deflate compression via 
our Apache/Tomcat cluster, but have encountered some problems with the way the 
compression works with the Firebox browser.

 

When Firefox brings up a compressed page for the first time, it looks fine.
If they reload a static html page, bizarre things start to happen.  In some 
cases, garbage just gets displayed on screen (looks like the actual gzip 
encoded stream), and other times Firefox displays a dialog box asking if you 
want to download the html files.  When IE is used, it works fine.

 

Some background: Running two-node Tomcat 5.5.4 cluster using JK2 2.0.4 protocol 
to communicate back to Apache2 2.0.52 for load balancing.  Browsers tried were 
Firefox 1.0.3 and Internet Explorer 6.0.

 

If I use Tomcat's gzip compression alone with Firefox, it works fine.  It's 
only when we through in Apache and JK2 into the mix with the cluster that 
Firefox displays charged.  It seems to be an issue related to the way that 
compressed pages get cached.

 

I'm not sure if the problem lies with Tomcat, Apache, JK2, or Firefox itself.  
Can anyone provide some pointers?  Thanks.

 

Regards,

B.J. Guillot

 


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



Tomcat Session Replication Question

2005-09-21 Thread Ryan McDonald
Can somebody tell me if there is a way to determine when session 
replication is complete after a new tomcat instance joins the cluster?  
When updating our cluster we usually restart one tomcat instance at a 
time. What we noticed is if we restart the second one too quickly after 
the first rejoins the cluster some sessions are lost because we did not 
provide enough time for all the sessions to replicate.


Thanks,
Ryan


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



Re: Configure multiple number of aliases / sub-domains

2005-09-21 Thread Kyle
You'll have to programmatically update your 'hosts' file to add in each 
and every new sub-domain(i.e. virtualhost name) as they signup and make 
sure your machine is set to check 'hosts' for dns before going anywhere 
else.


That should do the trick.

Disclaimer: I've done this on Windows, but haven't tried it on linux.

Kyle

Assaf wrote:


Hi,

I am trying to have a host configured to pickup all
alias/ sub-domains such as 


xxx.domain.com
yyy.domain.com
xxt.domain.com 


etc. etc. etc.

The number of subdomains / aliases is very large and
can be changed frequently (therefore cannot be
configured in the server.xml file). I was hoping to
map something like:

*.domain.com

 




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



tomcat and firefox ssl problem - no common encryption algorithms

2005-09-21 Thread Lyndon Tiu
Hello,


I am using on server:
 - Tomcat 5.5.9 downloaded from Apache Tomcat website.
 - Tried both Java 1.4.2_09(using tomcat compat packages) and Java 1.5.0_03
 - RH ES3

on client:
 - Firefox 1.0.6
 - RH WS3

I have done ssl on Tomcat 4.x and 5.0.x a few times before with no problems and 
I am surprised to find this issue today.

No error messages in Tomcat logs but Firefox complains about:

Firefox and server host name cannot cummunicate securely because they have 
no common encryption algorithms.

I have researched Google but there doesn't seem to be any straight answer.

Any ideas?

Thank you.

--
Lyndon Tiu

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



admin applicatin does not start

2005-09-21 Thread Ambarish Chitnis

Hi All,

I am trying to start my admin application in Tomcat 5.0.28. However, the 
manager application is reporting that it could not start the admin 
application. I have defined a filter which works for my manager app. I 
have applied the same filter and filter ampping to my admin app as well.


Any ideas would be very appreaciated. How can i enable verbose server 
logging and where can i see manager application logs?


Thanks,
Ambarish

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



Unable to login Tomcat Manager?

2005-09-21 Thread 梁炳場
I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
Then I am not able to login Tomcat Manager.
When I click Tomcat Manager,
I input the username and password in tomcat-users.xml,
it keeps on prompting me username and password.
I wonder if the old password is not encrypted by MD5.
Then I encrypt the password by MD5 and put into tomcat-users.xml.

user username=admin password=MD5 encrypted roles=admin,manager /

Still the same?

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



Re: Unable to login Tomcat Manager?

2005-09-21 Thread andy gordon
if you enable the jdbc realm then authentication and authorizaiton comes from a 
jdbc datasource not the tomcat.uses.xml file. This is why tomcat keeps asking 
you for a user name and password. I suggest you read the realm how to on the 
tomcat website so you can correct your problem.
 
- andy

±ç¬±³õ [EMAIL PROTECTED] wrote:
I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
Then I am not able to login Tomcat Manager.
When I click Tomcat Manager,
I input the username and password in tomcat-users.xml,
it keeps on prompting me username and password.
I wonder if the old password is not encrypted by MD5.
Then I encrypt the password by MD5 and put into tomcat-users.xml.



Still the same?

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


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

session tracking in a context that contains JSP and servlets

2005-09-21 Thread Mark
I want to create a webapp that will contain both servlets and JSP.  I
will be using a login page to authenticate users.  I will probably use
one of the Tomcat supported authentication modules.

I am wondering if it is possible for tomcat to properly manage session
information when going between servlet and JSP pages.

Thank you.

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



RE: need final / in url

2005-09-21 Thread David Thielen
That was it - thanks - dave


-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 11:42 PM
To: Tomcat Users List
Subject: Re: need final / in url

David Thielen wrote:
 
 The url www.windward.net/forums fails while www.windward.net/forums/
 succeeds.
 
 My uriworkermap has:
 
 /forums/*=ajp13w


try:
/forums|/*=ajp13w

This will actually create two maps:
/forums=ajp13w
/forums/*=ajp13w

Regards,
Mladen.

-
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: session tracking in a context that contains JSP and servlets

2005-09-21 Thread David Wall

Mark wrote:


I want to create a webapp that will contain both servlets and JSP.  I
will be using a login page to authenticate users.  I will probably use
one of the Tomcat supported authentication modules.

I am wondering if it is possible for tomcat to properly manage session
information when going between servlet and JSP pages.
 

Of course.  After all, every JSP is compiled into a servlet.  Naturally, 
if the browser supports session cookies, all is very easy, but if they 
block such cookies, then you'll need to use URL rewriting for every 
reference to an URL within your web app so that the session id can be 
transmitted back.  Use response.encodeURL() and 
response.encodeRedirectURL() as necessary.


David

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



Re: Unable to login Tomcat Manager?

2005-09-21 Thread 梁炳場
However I go into http://localhost:8080/erp
It is ok.

I have added record to user_profile, user_role

Table: user_role
usernm role_name
admin   Administrator
admin   Manager
admin   admin

The error message becomes
Access to the requested resource has been denied

Why?


2005/9/22, 梁炳場 [EMAIL PROTECTED]:
 However I go into http://localhost:8080/erp
 It is ok.

 I have added record to user_profile, user_role

 Table: user_role
 usernm role_name
 admin   Administrator
 admin   Manager
 admin   admin

 The error message becomes
 Access to the requested resource has been denied

 Why?


 2005/9/22, andy gordon [EMAIL PROTECTED]:
  if you enable the jdbc realm then authentication and authorizaiton comes
  from a jdbc datasource not the tomcat.uses.xml file. This is why tomcat
  keeps asking you for a user name and password. I suggest you read the realm
  how to on the tomcat website so you can correct your problem.
 
  - andy
 
  ±ç¬±³õ [EMAIL PROTECTED] wrote:
  I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
  Then I am not able to login Tomcat Manager.
  When I click Tomcat Manager,
  I input the username and password in tomcat-users.xml,
  it keeps on prompting me username and password.
  I wonder if the old password is not encrypted by MD5.
  Then I encrypt the password by MD5 and put into tomcat-users.xml.
 
 
 
  Still the same?
 
  -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com



Re: session tracking in a context that contains JSP and servlets

2005-09-21 Thread Mark
I would think that this is possible.  I have been writing servlets for
over a year, but have not written a single line of JSP.

On 9/21/05, David Wall [EMAIL PROTECTED] wrote:
 Mark wrote:

 I want to create a webapp that will contain both servlets and JSP.  I
 will be using a login page to authenticate users.  I will probably use
 one of the Tomcat supported authentication modules.
 
 I am wondering if it is possible for tomcat to properly manage session
 information when going between servlet and JSP pages.
 
 
 Of course.  After all, every JSP is compiled into a servlet.  Naturally,
 if the browser supports session cookies, all is very easy, but if they
 block such cookies, then you'll need to use URL rewriting for every
 reference to an URL within your web app so that the session id can be
 transmitted back.  Use response.encodeURL() and
 response.encodeRedirectURL() as necessary.

 David

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



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



Re: Unable to login Tomcat Manager?

2005-09-21 Thread andy gordon
I suggest you read the JDBC realm documentation and be exact about what it 
says. 
Do you have a table called USERS?  Make sure its populated correctly. 
do you have a table called USER_ ROLES? Make sure it is populated correctly. 
You should be able to understand the relationships between the two tables 
Username to Username/Role
 
I think you are close but off just a bit.
 
again follow the quick start guide in the documentation and you should have it.
 
good luck, 
 
Andy Gordon

±ç¬±³õ [EMAIL PROTECTED] wrote:
However I go into http://localhost:8080/erp
It is ok.

I have added record to user_profile, user_role

Table: user_role
usernm role_name
admin Administrator
admin Manager
admin admin

The error message becomes
Access to the requested resource has been denied

Why?


2005/9/22, æ¢ç‚³å ´ 
:
 However I go into http://localhost:8080/erp
 It is ok.

 I have added record to user_profile, user_role

 Table: user_role
 usernm role_name
 admin Administrator
 admin Manager
 admin admin

 The error message becomes
 Access to the requested resource has been denied

 Why?


 2005/9/22, andy gordon :
  if you enable the jdbc realm then authentication and authorizaiton comes
  from a jdbc datasource not the tomcat.uses.xml file. This is why tomcat
  keeps asking you for a user name and password. I suggest you read the realm
  how to on the tomcat website so you can correct your problem.
 
  - andy
 
  ±ç¬±³õ 
wrote:
  I have enabled JDBCRealm with MD5 in server.xml Tomcat 5.5.
  Then I am not able to login Tomcat Manager.
  When I click Tomcat Manager,
  I input the username and password in tomcat-users.xml,
  it keeps on prompting me username and password.
  I wonder if the old password is not encrypted by MD5.
  Then I encrypt the password by MD5 and put into tomcat-users.xml.
 
 
 
  Still the same?
 
  -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com


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