XPowered BY

2005-09-02 Thread Jagadeesha T
HI all,
   I use JBoss 3.2.6 and and Tomcat 5.0. It displays X-PoweredBY version in
Headers file, There is in web.xml to CommonHeadersFileter, InitParams, Even 
after deleting it from web.xml, it display, Is there any way to do that in 
Tomcat 5.0 with JBoss.
 
Thanks,
Jagadeesha T
 

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

Re: How to specify Tomcat error encoding?

2005-09-02 Thread Volker Krebs
Hi there,

Hiroshi Iwatani wrote:
 Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3.
 
 My question is: how could we have Tomcat display correct Japanese error
 message when JSP java code has errors for java compiler et al?
 
 Thanks in advance.
 
We have the same problem.

IMO the encoding form
org.apache.coyote.Constants.DEFAULT_CHARACTER_ENCODING should be used.
Which we haved patched that it is UTF-8.
But it doesent work for us as well.

Can anybody else help ?

Volker


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



RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Zsolt
I have found the solution:

JkOptions +FlushPackets

Zsolt

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 1:51 PM
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

 From: Zsolt [mailto:[EMAIL PROTECTED]
 When I start a long running servlet I want to give the user
 some feedback
 about the progress, thus I just print some characters to the
 browser from
 the servlet. It works fine when I go directly tomcat but when
 I go through
 apache and tomcat connector I see the characters in the
 browser only when
 the servlet is ready (that might take 20-30 minutes).
[...]
 How can I force a flush via connector?

I don't think you can.

If the process is going to be running for that length of time, would it
make sense to delegate the processing to some other object?  Then the
page can return immediately, with some appropriate code that requests
the browser to refresh the page at an appropriate interval.  During a
refresh, you could poll the request's status and return an appropriate
message.

   - Peter

-
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: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Hildegard Bronkhorst XH (ZA/ESA)
I want to be taken off this mailing list.  Can somebody PLEASE help.

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED] 
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the addressee(s).  
 Any unauthorized review; use, disclosure, or distribution is prohibited.  If 
 you believe this message has been sent to you in error, please notify the 
 sender by replying to this transmission and delete the message without 
 disclosing it.  Thank you.  E-mail including attachments is susceptible to 
 data corruption, interruption, unauthorized amendment, tampering and viruses, 
 and we only send and receive e-mails on the basis that we are not liable for 
 any such corruption, interception, amendment, tampering or viruses or any 
 consequences thereof.
 


-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: 02 September 2005 08:43
To: 'Tomcat Users List'
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28


I have found the solution:

JkOptions +FlushPackets

Zsolt

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 1:51 PM
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

 From: Zsolt [mailto:[EMAIL PROTECTED]
 When I start a long running servlet I want to give the user
 some feedback
 about the progress, thus I just print some characters to the
 browser from
 the servlet. It works fine when I go directly tomcat but when
 I go through
 apache and tomcat connector I see the characters in the
 browser only when
 the servlet is ready (that might take 20-30 minutes).
[...]
 How can I force a flush via connector?

I don't think you can.

If the process is going to be running for that length of time, would it
make sense to delegate the processing to some other object?  Then the
page can return immediately, with some appropriate code that requests
the browser to refresh the page at an appropriate interval.  During a
refresh, you could poll the request's status and return an appropriate
message.

   - Peter

-
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: JAAS - public Credentials and ip address

2005-09-02 Thread Franck Borel

Hi Wendy,

Thanks for your answer.


I am trying to implement a JAAS-module that can authenticate a user with
username/password and his/her ip-address. To get the username and 
password

is straightforward. My problem is that I don't know how to get the
ip-address of the user. (I am newbee concerning JAAS, so please don't
laugh if I say stupid things :-). Is it possible to use the public
credentials to get the ip-address of the current user trying to
authenticate?



I believe this would be done with a n additional CallbackHandler. 
Unfortunately, the docs say that JAASRealm only recognizes

'NameCallback' and 'PasswordCallback' at present.

  
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRealm



Yes, that's what I am founding too after reading a lot of material :-).

-- Franck


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



RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread william
Hi

 I want to be taken off this mailing list.  Can somebody PLEASE help.

as i told in a previous email (that you likely did not read) there is a
message explaining how to unsuscribe from the mailing list in the footer of
*every* message sent on the list

have you tried it ?

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


Kind regards,
William


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



MAIL FAILURE

2005-09-02 Thread no-reply
*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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



redirecting erors in tomcat console to a file

2005-09-02 Thread Peddireddy Srikanth
Hi All,

Is there any simple way to redirect all errors and exception stack
traces that may appear in tomcat console during web applications
execution??

regards
Srikanth

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



RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Arup Vidyerthy
Hey dude, stop moaning and read the bottom of the email!! Come on - little
bit of proactive intuitiveness is all that required here!!


-Original Message-
From: Hildegard Bronkhorst XH (ZA/ESA)
[mailto:[EMAIL PROTECTED] 
Sent: 02 September 2005 07:50
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

I want to be taken off this mailing list.  Can somebody PLEASE help.

 Hildegard Bronkhorst
 Senior Facilities Manager
 Kagiso Integrated Services (Pty) Ltd.
 Tel: +27 11 844 2015
 Fax: +27 11 844 2130
 Mobile: +27 83 212 4303
 mailto:[EMAIL PROTECTED]
 
 E-mail disclaimer
 
 This communication is confidential and intended solely for the
addressee(s).  Any unauthorized review; use, disclosure, or distribution is
prohibited.  If you believe this message has been sent to you in error,
please notify the sender by replying to this transmission and delete the
message without disclosing it.  Thank you.  E-mail including attachments is
susceptible to data corruption, interruption, unauthorized amendment,
tampering and viruses, and we only send and receive e-mails on the basis
that we are not liable for any such corruption, interception, amendment,
tampering or viruses or any consequences thereof.
 


-Original Message-
From: Zsolt [mailto:[EMAIL PROTECTED]
Sent: 02 September 2005 08:43
To: 'Tomcat Users List'
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28


I have found the solution:

JkOptions +FlushPackets

Zsolt

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 01, 2005 1:51 PM
To: Tomcat Users List
Subject: RE: Servlet lush problems via JK-1.2.14 and TC_5.0.28

 From: Zsolt [mailto:[EMAIL PROTECTED] When I start a long 
 running servlet I want to give the user some feedback about the 
 progress, thus I just print some characters to the browser from the 
 servlet. It works fine when I go directly tomcat but when I go 
 through apache and tomcat connector I see the characters in the 
 browser only when the servlet is ready (that might take 20-30 
 minutes).
[...]
 How can I force a flush via connector?

I don't think you can.

If the process is going to be running for that length of time, would it 
make sense to delegate the processing to some other object?  Then the 
page can return immediately, with some appropriate code that requests 
the browser to refresh the page at an appropriate interval.  During a 
refresh, you could poll the request's status and return an appropriate 
message.

   - Peter

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



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



Tomcat 5.5.9 Logging Issue

2005-09-02 Thread A. Alonso Dominguez
Hi there,

I've migrated some days ago from Tomcat 4.1.27 to the lastest release:
5.5.9and I've lost all the logging mechanism of the my web
applications. The two
webapps deployed on my server use log4j as the logging mechanism. I now 
there are differences in the logging system between tomcat 4.1 and 5.5 so I 
followed the instructions at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html but it isn't 
working. 

There is the log4j.properties file that I'm using (my /var/log/tomcat folder 
points to /logs folder inside tomcat's installation):
# --
# Inicializamos el logger raíz con nivel de depuración
# --
log4j.rootLogger=DEBUG, R

# --
# Añadimos un appender por días
# --
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=/var/log/tomcat/www.interlogical.com.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p %d{dd-MM H:mm:ss} (%F:%L) - 
%m%n
log4j.appender.R.Threshold=ERROR

# --
# Enlazamos nuestro logger con el de Tomcat (5.5)
# --
log4j.logger.org.apache.catalina=DEBUG, R
log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].StandardHost[
www.interlogical.com http://www.interlogical.com]=DEBUG, R
log4j.logger.org.apache.catalina.core=DEBUG, R
log4j.logger.org.apache.catalina.session=DEBUG, R

There is not any file like: /var/log/tomcat/www.interlogical.com.log

Regards,
Alonso


set JSESSION PATH - any change to do this?

2005-09-02 Thread Steven Pannell
Hi,

Current the jsession cookie path is set at the application context like:

PATH=/myApp

Is there any chance at all to change this? to PATH=/

As to may reason it's simple: I want to use rewrite rules like:

http://domain/nicelink/page


Thus without the /MyApp context in place the cookie cannot be read and the
session is lost.


Any possible solution to this problem?

Thanks,
Steve.

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



RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
 From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] 
 I seem to remember when I was working with IIS some years 
 ago, I could map
 multiple IP addresses to one instance of IIS, i.e., IIS could service
 multiple web sites for me, each web site having it's own, 
 unique IP address.
 Is there a way to do this with Tomcat stand alone or is 
 Apache Web Server or
 IIS required?

Works fine with Tomcat.  Modify your server.xml to have multiple
Services, each with its own set of innards like Connectors and Hosts,
and each with its own appbase.  Then use

address=numeric.ip.address.required

in each of the connector attributes to force a bind to just that IP
address for that connector.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html for the
details on Connector.

- Peter

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



Re: Multiple IP addresses

2005-09-02 Thread Fadil
I do not understand very well, if we did this configuration, (with a new IP 
for tomcat and one for IIS web app on the same server) :

we don't have to specify port number for IIS or Tomcat ?

Can we fix tomcat's with by default 80 ? this configuration doesn't mess if 
we want to use ldap or ssl ?

Is this kind of installation is best than only one ip, IIS on 80, tomcat on 
8080 and isapi redirector 1.14 ?

any helps welcome.

On 9/2/05, Peter Crowther [EMAIL PROTECTED] wrote:
 
  From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
  I seem to remember when I was working with IIS some years
  ago, I could map
  multiple IP addresses to one instance of IIS, i.e., IIS could service
  multiple web sites for me, each web site having it's own,
  unique IP address.
  Is there a way to do this with Tomcat stand alone or is
  Apache Web Server or
  IIS required?
 
 Works fine with Tomcat. Modify your server.xml to have multiple
 Services, each with its own set of innards like Connectors and Hosts,
 and each with its own appbase. Then use
 
 address=numeric.ip.address.required
 
 in each of the connector attributes to force a bind to just that IP
 address for that connector.
 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html for the
 details on Connector.
 
 - Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Context in separate file doesn't work

2005-09-02 Thread Trond Hersløv
Hi tomcat fellas!
http://venus:8080 gives me the index.html in the folder /home/trond/GTG/inside, 
but only when I use the server.xml below.
When I take the Context. / and put it in a separate file, 
${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt work anymore.
Does anybody know why? Do I have to set any attributes like autoDeploy=false 
in the Host tag or what am I missing here?

Thanks in advance.

\trond


* server.xml 

Server port=8005 shutdown=SHUTDOWN

  GlobalNamingResources
!-- Used by Manager webapp --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources

  Service name=Catalina
Connector port=8080 /

!-- This is here for compatibility only, not required --
Connector port=8009 protocol=AJP/1.3 /

Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase /
  Host name=localhost appBase=/home/trond/GTG/outside /
  Host name=venus appBase=/home/trond/GTG/inside 
Context docBase=/home/trond/GTG/inside path=/ /
  /Host
/Engine

  /Service
/Server
**


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



Re: Servlet lush problems via JK-1.2.14 and TC_5.0.28

2005-09-02 Thread Mladen Turk

Arup Vidyerthy wrote:

Hey dude, stop moaning and read the bottom of the email!! Come on - little
bit of proactive intuitiveness is all that required here!!


Hildegard Bronkhorst
Senior Facilities Manager
Kagiso Integrated Services (Pty) Ltd.
Tel: +27 11 844 2015
Fax: +27 11 844 2130
Mobile: +27 83 212 4303
mailto:[EMAIL PROTECTED]



And I always wondered why my Ericsson mobile phone
halts from time to time. Now I know the reason ;)

Cheers,
Mladen.

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



Tomcat webapps directory

2005-09-02 Thread Fadil
I wonder howto change tomcat webapps directory on an another disk ?

any helps welcome

Fadom


HTTP status code 404

2005-09-02 Thread L. Mohan Arun
Tomcat 4.1
  
How can I configure Tomcat 4 to return HTTP status code 404 for a 404 Page 
Not Found error? Currently it displays a HTML page with Error type etc. 
with status code 200.

The docs say error-page element in web.xml can be configured to serve 
another page in response to a 404 error but this is not what I want (because 
it will return a 200 OK status). I want the actual error code 404 to be 
returned to the client and HTTP status code 404 (Page not found).

Mohan Arun


Re: HTTP status code 404

2005-09-02 Thread Mirek Stohr
You should use the following procedure

HttpServletResponse.setStatus(HttpServletResponse.SC_NOT_FOUND);

in cooperation with the mentioned error-page directive in web.xml.

  Mirek


L. Mohan Arun wrote:
 Tomcat 4.1
   
 How can I configure Tomcat 4 to return HTTP status code 404 for a 404 Page 
 Not Found error? Currently it displays a HTML page with Error type etc. 
 with status code 200.
 
 The docs say error-page element in web.xml can be configured to serve 
 another page in response to a 404 error but this is not what I want (because 
 it will return a 200 OK status). I want the actual error code 404 to be 
 returned to the client and HTTP status code 404 (Page not found).
 
 Mohan Arun
 

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



sharing pooled tomcat connections with hibernate

2005-09-02 Thread David Thielen
Hi;

 

If I am using hibernate for most of my jdbc access but need to perform some
directly (long story), is there anything special I need to do? All of this
is connecting to the same database using the same user/pass. Hibernate
connects via Tomcat's jndi.

 

And should I use the Tomcat's jndi method to get the pooled connection?

 

??? - thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com http://www.windwardreports.com/ 

 



Tomcat 5.5 classloader log4j vs JCL issue

2005-09-02 Thread luc_boudreau
I'm having the same issue and after trying to follow the instructions given by 
Paul Austin, I've got stuck on the part that says to add a listener. 

There's no place for a listener in web.xml according to the dtd validation 
file. Am I wrong ? (I'm using Tomcat 5.5.9 with the struts framework)

Everything else went fine. I've created a jar file with your source code. BTW, 
where am I supposed to put this jar anyways ? in common/lib/ ??

And just to double check, is this log4j.xml file valid ? :

---

?xml version=1.0 encoding=UTF-8 ?
!-- !DOCTYPE log4j:configuration SYSTEM log4j.dtd --
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
  appender name=ConsoleAppender class=org.apache.log4j.ConsoleAppender
layout class=org.apache.log4j.SimpleLayout/
  /appender
  root
priority value =debug /
appender-ref ref=ConsoleAppender/
  /root
/log4j:configuration

---

Thanks a lot 


Luc Boudreau
SID - Université du Québec
[EMAIL PROTECTED]
 


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



RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
 From: Fadil [mailto:[EMAIL PROTECTED] 
 I do not understand very well, if we did this configuration, 
 (with a new IP 
 for tomcat and one for IIS web app on the same server) :
 
 we don't have to specify port number for IIS or Tomcat ?

Each would bind to port 80, each on its own IP address on the Web
server.  Port 80 is the default port for HTTP, so none of your URLs
would need a ':8080' or similar suffix.

 Can we fix tomcat's with by default 80 ? this configuration 
 doesn't mess if we want to use ldap or ssl?

If you have a separate IP address for Tomcat from the one you are using
for IIS, then you can also bind any other ports you need for Tomcat on
that separate IP address.  So Tomcat's SSL would be on tomcat's IP
address:443, IIS's SSL on IIS's IP address:443.

 Is this kind of installation is best than only one ip, IIS on 
 80, tomcat on 8080 and isapi redirector 1.14 ?

That depends on your specific requirements, I cannot give a general
answer.

- Peter

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



Re: Multiple IP addresses

2005-09-02 Thread Fadil
Thx a lot for the answer !

Maybe I'll switch to multiple IP for same server, what do you thinks about 
my configuration :

I've Windows Server2003, with:
- an appli asp on IIS 6.0
- and an another on Tomcat 5.0.28

only tomcat need ssl and ldap.

I mean it's more simple to use multiple than isapi ? for maintenance,...
what do you think about that ?

On 9/2/05, Peter Crowther [EMAIL PROTECTED] wrote:
 
  From: Fadil [mailto:[EMAIL PROTECTED]
  I do not understand very well, if we did this configuration,
  (with a new IP
  for tomcat and one for IIS web app on the same server) :
 
  we don't have to specify port number for IIS or Tomcat ?
 
 Each would bind to port 80, each on its own IP address on the Web
 server. Port 80 is the default port for HTTP, so none of your URLs
 would need a ':8080' or similar suffix.
 
  Can we fix tomcat's with by default 80 ? this configuration
  doesn't mess if we want to use ldap or ssl?
 
 If you have a separate IP address for Tomcat from the one you are using
 for IIS, then you can also bind any other ports you need for Tomcat on
 that separate IP address. So Tomcat's SSL would be on tomcat's IP
 address:443, IIS's SSL on IIS's IP address:443.
 
  Is this kind of installation is best than only one ip, IIS on
  80, tomcat on 8080 and isapi redirector 1.14 ?
 
 That depends on your specific requirements, I cannot give a general
 answer.
 
 - Peter



MAIL FAILURE

2005-09-02 Thread no-reply
*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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



RE: Showing maintenance page while app is down

2005-09-02 Thread Jason Bell
Edmon

This is a personal suggestion of mine and not the definitive answer.  I create 
a seperate war file for maintenance times.  All it contains in an index html 
page and an image of the web site (brand is still important when a site is 
down).  I replace the temp war with the live one.  This means I can work on 
the live war and then redeploy it on top of the maintenance one.

Users are informed and you get the work done.  A win win situation.

There are probably other ways of doing this but this one works for me.

Hope this helps.
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]



How to get name of Engine a servlet is running in?

2005-09-02 Thread Joe Reger, Jr.
I'm trying to gain access to the name of the Engine that a servlet is 
running in. In most cases this will be Catalina as configured in the 
/conf/server.xml file. But when another Engine is configured, say 
CatalinaTesting, I need to get that name instead.

I've tried to navigate the methods and classes from:
request.getSession().getServletContext()
request.getSession()

but I haven't been able to find the Engine name in any of the attributes or 
properties.

Is there any way to get it? 

Actually, all I really need is a small string that's unique to each Engine 
configured on the server and stays the same after application 
deployments/restarts. What I'm currently using is code that grabs the last 
two directories in the root app path and concatenates them... something like 
webappsROOT or webappsTestingROOT. It's unique, but ugly.

Thanks,

Joe


RE: How to get name of Engine a servlet is running in?

2005-09-02 Thread Raghupathy,Gurumoorthy
What yo uare doing is a very tomcat specifi thingy ... Use JNDI variable to
do things ...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html

Regards
Guru

-Original Message-
From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
Sent: 02 September 2005 15:26
To: tomcat-user@jakarta.apache.org
Subject: How to get name of Engine a servlet is running in?


I'm trying to gain access to the name of the Engine that a servlet is 
running in. In most cases this will be Catalina as configured in the 
/conf/server.xml file. But when another Engine is configured, say 
CatalinaTesting, I need to get that name instead.

I've tried to navigate the methods and classes from:
request.getSession().getServletContext()
request.getSession()

but I haven't been able to find the Engine name in any of the attributes or 
properties.

Is there any way to get it? 

Actually, all I really need is a small string that's unique to each Engine 
configured on the server and stays the same after application 
deployments/restarts. What I'm currently using is code that grabs the last 
two directories in the root app path and concatenates them... something like

webappsROOT or webappsTestingROOT. It's unique, but ugly.

Thanks,

Joe

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



Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
Dear all,

I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
Vignette APIs (provided as JARs). Everything works, but performance is
really slow. The server that's hosting this is a quad processor (@2GHz each)
Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see
hardware as being an issue.

One thing I'm trying to do is run Tomcat in server mode. My understanding is
that this should enhance performance. However, adding -server to Tomcat's
Java Options box causes Tomcat to not start. What am I doing wrong?

Also, if anyone can provide performance tuning recommendations, please do.

Thanks all..

Karim


I didn't do it! ~ Bart Simpson

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



Re: Tomcat 5.5 classloader log4j vs JCL issue

2005-09-02 Thread Paul Austin
Luc,

The listener element is only valid in the Servlet 2.3 web.xml file, if
using a previous servlet version use the attached servlet set to load at
startup before any of the other servlets.

The jar containing my classes should be included in your WEB-INF/lib
directory in each web application.

Paul

On Fri, 2005-09-02 at 09:07 -0400, [EMAIL PROTECTED] wrote:
 I'm having the same issue and after trying to follow the instructions given 
 by Paul Austin, I've got stuck on the part that says to add a listener. 
 
 There's no place for a listener in web.xml according to the dtd validation 
 file. Am I wrong ? (I'm using Tomcat 5.5.9 with the struts framework)
 
 Everything else went fine. I've created a jar file with your source code. 
 BTW, where am I supposed to put this jar anyways ? in common/lib/ ??
 
 And just to double check, is this log4j.xml file valid ? :
 
 ---
 
 ?xml version=1.0 encoding=UTF-8 ?
 !-- !DOCTYPE log4j:configuration SYSTEM log4j.dtd --
 log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
   appender name=ConsoleAppender class=org.apache.log4j.ConsoleAppender
 layout class=org.apache.log4j.SimpleLayout/
   /appender
   root
 priority value =debug /
 appender-ref ref=ConsoleAppender/
   /root
 /log4j:configuration
 
 ---
 
 Thanks a lot 
 
 
 Luc Boudreau
 SID - Université du Québec
 [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
/*
 * Copyright 2005 Revolution Systems Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.revolsys.logging.log4j;

import java.io.InputStream;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import org.apache.log4j.Hierarchy;
import org.apache.log4j.xml.DOMConfigurator;

/**
 * The Log4jInitializationServlet class uses the
 * [EMAIL PROTECTED] ContextClassLoaderRepositorySelector} to maintain a separate Log4j
 * configuration for a servlet context and to load the logging configuration
 * from the log4j.xml file specified by the log4jXmlLocation context-param (or
 * /WEB-INF/log4j.xml if not specified).
 * 
 * @author Paul Austin
 * @version 1.0
 */
public class Log4jInitializationServlet extends HttpServlet {
/** The default location for the log4j.xml file. */
public static final String DEFAULT_LOG4J_XML_LOCATION = /WEB-INF/log4j.xml;

/**
 * Initialize the logging for context by creating a new heirarchy for the
 * current thread context class context and loading the configuration from
 * the log4jXmlLocation context-param.
 * 
 * @param config The servlet configuration.
 * @throws ServletException If there was a problem initializing the servlet.
 */
public void init(final ServletConfig config) throws ServletException {
super.init(config);
Hierarchy hierarchy = ContextClassLoaderRepositorySelector.add();
ServletContext context = config.getServletContext();
String log4jXml = context.getInitParameter(log4jXmlLocation);
if (log4jXml == null) {
log4jXml = DEFAULT_LOG4J_XML_LOCATION;
}
try {
InputStream log4JConfig = context.getResourceAsStream(log4jXml);
if (log4JConfig != null) {
DOMConfigurator conf = new DOMConfigurator();
conf.doConfigure(log4JConfig, hierarchy);
}
} catch (Exception e) {
throw new ServletException(e);
}
}

/**
 * Clean up the servlet by removing the logging configuration for the
 * current context.
 */
public void destroy() {
ContextClassLoaderRepositorySelector.remove();
}

}

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

Re: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Yassine ELassad
Dear Karim,

Please provide relevant peaces of your server.xml so we can get a chance to 
help you or have a look here
http://jakarta.apache.org/tomcat/articles/performance.pdf
you may already finde whats causing your problem there

Greetings

YEL...







 directBOX Reply ---
From: Zaki, Karim R UTCHQ ([EMAIL PROTECTED])
To: TomcatUserGroup (tomcat-user@jakarta.apache.org)
Date: 02.09.2005 16:46:44

Dear all,

I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
Vignette APIs (provided as JARs). Everything works, but performance is
really slow. The server that's hosting this is a quad processor (@2GHz each)
Windows 2000 Server with 2GB of memory and a gigabit NIC...so I don't see
hardware as being an issue.

One thing I'm trying to do is run Tomcat in server mode. My understanding is
that this should enhance performance. However, adding -server to Tomcat's
Java Options box causes Tomcat to not start. What am I doing wrong?

Also, if anyone can provide performance tuning recommendations, please do.

Thanks all..

Karim


I didn't do it! ~ Bart Simpson

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


__
Verpassen Sie keine eBay-Auktion und bieten Sie bequem
und schnell über das Telefon mit http://www.telefonbieten.de

Ihre eMails auf dem Handy lesen - ohne Zeitverlust - 24h/Tag
eMail, FAX, SMS, VoiceMail mit http://www.directbox.com



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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
Thanks Yassine,

I'll look into the PDF you provided. As for server.xml, here it is.


?xml version='1.0' encoding='utf-8'?
Server debug=2
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource auth=Container description=User database that can be
updated and saved name=UserDatabase
type=org.apache.catalina.UserDatabase/
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service debug=2 name=Catalina
Connector acceptCount=100 connectionTimeout=2 debug=2
disableUploadTimeout=true port=8080 redirectPort=8443
threadPriority=10 maxSpareThreads=75 maxThreads=150
minSpareThreads=25
/Connector
Connector port=8009 protocol=AJP/1.3
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
redirectPort=8443
/Connector
Engine debug=2 defaultHost=localhost name=Catalina
  Host appBase=webapps debug=2 name=localhost
Logger className=org.apache.catalina.logger.FileLogger debug=2
prefix=localhost_log. suffix=.txt timestamp=true verbosity=2/
  /Host
  Logger className=org.apache.catalina.logger.FileLogger debug=2
prefix=catalina_log. suffix=.txt timestamp=true verbosity=2/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=2/
/Engine
  /Service
/Server


As you can see, very little customization. Any idea why I can't set
-server?

Thanks,
Karim
-Original Message-
From: Yassine ELassad [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 11:03 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: Running Tomcat 5.0.28 in server mode

Dear Karim,

Please provide relevant peaces of your server.xml so we can get a chance to
help you or have a look here 
http://jakarta.apache.org/tomcat/articles/performance.pdf
you may already finde whats causing your problem there

Greetings

YEL... 

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



Re: Multiple IP addresses

2005-09-02 Thread Fadil
this is a good idea, and I try these multiples, I get two IP, like this :

IPA:80 = IPServer:80 (IIS server)
IPB:80 = IPServer:8443(Tomcat Server but SSL port)

So I tried to setup tomcat, by add IPB in all connector and in host.
But it doesn't work...

Can this work's ?
The real question is : IPB must point on SSL(8443) or on 8080 ?
If I want my user only to authentifiate by https and navigate with http?

any helps welcome.


On 9/2/05, Fadil [EMAIL PROTECTED] wrote:
 
 Thx a lot for the answer !
 
 Maybe I'll switch to multiple IP for same server, what do you thinks about 
 my configuration :
 
 I've Windows Server2003, with:
 - an appli asp on IIS 6.0
 - and an another on Tomcat 5.0.28
 
 only tomcat need ssl and ldap.
 
 I mean it's more simple to use multiple than isapi ? for maintenance,...
 what do you think about that ?
 
 On 9/2/05, Peter Crowther [EMAIL PROTECTED] wrote: 
  
   From: Fadil [mailto:[EMAIL PROTECTED]
   I do not understand very well, if we did this configuration,
   (with a new IP
   for tomcat and one for IIS web app on the same server) :
  
   we don't have to specify port number for IIS or Tomcat ? 
  
  Each would bind to port 80, each on its own IP address on the Web
  server. Port 80 is the default port for HTTP, so none of your URLs
  would need a ':8080' or similar suffix.
  
   Can we fix tomcat's with by default 80 ? this configuration 
   doesn't mess if we want to use ldap or ssl?
  
  If you have a separate IP address for Tomcat from the one you are using
  for IIS, then you can also bind any other ports you need for Tomcat on
  that separate IP address. So Tomcat's SSL would be on tomcat's IP 
  address:443, IIS's SSL on IIS's IP address:443.
  
   Is this kind of installation is best than only one ip, IIS on
   80, tomcat on 8080 and isapi redirector 1.14 ?
  
  That depends on your specific requirements, I cannot give a general 
  answer.
  
  - Peter
  
 



MAIL FAILURE

2005-09-02 Thread no-reply
*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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



RE: Multiple IP addresses

2005-09-02 Thread Peter Crowther
 From: Fadil [mailto:[EMAIL PROTECTED] 
 But it doesn't work...

What error are you getting, from what?

- Peter

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



RE: Context in separate file doesn't work

2005-09-02 Thread George Sexton
The context name and the file name have to match exactly.

Also, root contexts need to have a path of . 

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 4:50 AM
 To: Tomcat Users List
 Subject: Context in separate file doesn't work
 
 Hi tomcat fellas!
 http://venus:8080 gives me the index.html in the folder 
 /home/trond/GTG/inside, but only when I use the server.xml below.
 When I take the Context. / and put it in a separate 
 file, ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt 
 work anymore.
 Does anybody know why? Do I have to set any attributes like 
 autoDeploy=false in the Host tag or what am I missing here?
 
 Thanks in advance.
 
 \trond
 
 
 * server.xml 
 
 Server port=8005 shutdown=SHUTDOWN
 
   GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved

 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
   /GlobalNamingResources
 
   Service name=Catalina
 Connector port=8080 /
 
 !-- This is here for compatibility only, not required --
 Connector port=8009 protocol=AJP/1.3 /
 
 Engine name=Catalina defaultHost=localhost
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /
   Host name=localhost appBase=/home/trond/GTG/outside /
   Host name=venus appBase=/home/trond/GTG/inside 
 Context docBase=/home/trond/GTG/inside path=/ /
   /Host
 /Engine
 
   /Service
 /Server
 **
 
 
 
 **
 This email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 **
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Context in separate file doesn't work

2005-09-02 Thread George Sexton
One other thing, for a ROOT context, the file should be named ROOT.xml

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 4:50 AM
 To: Tomcat Users List
 Subject: Context in separate file doesn't work
 
 Hi tomcat fellas!
 http://venus:8080 gives me the index.html in the folder 
 /home/trond/GTG/inside, but only when I use the server.xml below.
 When I take the Context. / and put it in a separate 
 file, ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt 
 work anymore.
 Does anybody know why? Do I have to set any attributes like 
 autoDeploy=false in the Host tag or what am I missing here?
 
 Thanks in advance.
 
 \trond
 
 
 * server.xml 
 
 Server port=8005 shutdown=SHUTDOWN
 
   GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved

 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
   /GlobalNamingResources
 
   Service name=Catalina
 Connector port=8080 /
 
 !-- This is here for compatibility only, not required --
 Connector port=8009 protocol=AJP/1.3 /
 
 Engine name=Catalina defaultHost=localhost
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /
   Host name=localhost appBase=/home/trond/GTG/outside /
   Host name=venus appBase=/home/trond/GTG/inside 
 Context docBase=/home/trond/GTG/inside path=/ /
   /Host
 /Engine
 
   /Service
 /Server
 **
 
 
 
 **
 This email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 **
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread George Sexton
What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Multiple IP addresses

2005-09-02 Thread Fadil
Hum :
2 sept. 2005 18:38:43 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
2 sept. 2005 18:38:43 org.apache.catalina.core.StandardContext start
GRAVE: Erreur de dÚmarrage du contexte suite aux erreurs prÚcÚdentes
[xl4web] WARN [main] CacheManager.shutdown(373) | CacheManager already 
shutdown
2 sept. 2005 18:38:44 org.apache.coyote.http11.Http11Protocol start
INFO: DÚmarrage de Coyote HTTP/1.1 sur http-139.54.202.142-8080
2 sept. 2005 18:38:44 org.apache.coyote.tomcat5.MapperListenerregisterEngine
ATTENTION: Unknown default host: localhost
2 sept. 2005 18:38:44 org.apache.coyote.http11.Http11Protocol start
GRAVE: Erreur au dÚmarrage du point de contact
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:765)
at java.security.KeyStore.load(KeyStore.java:652)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(
JSSESocketFactory.java:278)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(
JSSESocketFactory.java:220)
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(
JSSE14SocketFactory.java:143)
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(
JSSE14SocketFactory.java:109)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(
JSSESocketFactory.java:98)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(
PoolTcpEndpoint.java:261)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(
PoolTcpEndpoint.java:281)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java
:1527)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2 sept. 2005 18:38:44 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException: Le dÚmarrage du gestionnaire de protocole a ÚchouÚ: 
java.io.IOException: Keystore was tampered with, or password was incorrect
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java
:1529)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2 sept. 2005 18:38:44 org.apache.catalina.startup.Catalina start

- I think have a lot of pb !

On 9/2/05, Peter Crowther [EMAIL PROTECTED] wrote:
 
  From: Fadil [mailto:[EMAIL PROTECTED]
  But it doesn't work...
 
 What error are you getting, from what?
 
 - Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: Multiple IP addresses

2005-09-02 Thread Fadil
this is a good idea, and I try these multiples, I get two IP, like this :

IPA:80 = IPServer:80 (IIS server)
IPB:80 = IPServer:8443(Tomcat Server but SSL port)

So I tried to setup tomcat, by add IPB in all connector and in host.

I changed config in server.xml by adding IPServer and not the IPB, it stay 
to me only (I think a keystore pb) :

GRAVE: Erreur au dÚmarrage du point de contact
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:765)
at java.security.KeyStore.load(KeyStore.java:652)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(
JSSESocketFactory.java:278)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(
JSSESocketFactory.java:220)
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(
JSSE14SocketFactory.java:143)
at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(
JSSE14SocketFactory.java:109)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(
JSSESocketFactory.java:98)
at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(
PoolTcpEndpoint.java:261)
at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(
PoolTcpEndpoint.java:281)
at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java
:1527)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2 sept. 2005 18:45:56 org.apache.catalina.startup.Catalina start
GRAVE: Catalina.start:
LifecycleException: Le dÚmarrage du gestionnaire de protocole a ÚchouÚ: 
java.io.IOException: Keystore was tampered with, or password was incorrect
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java
:1529)
at org.apache.catalina.core.StandardService.start(StandardService.java:489)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2 sept. 2005 18:45:56 org.apache.catalina.startup.Catalina start

What password expect tomcat if we don't specify it in server.xml ?


MAIL FAILURE

2005-09-02 Thread no-reply
*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
During a routine email scan at UTC, a file attached to this
message was deleted per UTC Security Policy.  UTC does not allow
emailing several file types due to their potential to transmit viruses.

An attachment named test-template.jsp was removed from this message.
The body text of the message that included the deleted attachment can be found
in the .txt file below.  It is safe to open this file. If you believe this
message is not business related simply delete it. If the message is business
related and you require the file that was deleted, please contact the 
sender/nand arrange an alternate means of receiving it.  The recommended method 
is to/nhave the sender zip the file before sending it.

Well, I don't know how to measure the number of requests per second. If you
can provide help with that, that would be great. What I'm doing is testing
with a template provided by Vignette (I don't know if I can send attachments
on this list). It takes 2 seconds to load! This really doesn't do any real
work...so when the code starts to do something useful, we go into over a
minute of load time per page.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 12:15 PM
To: 'Tomcat Users List'
Subject: RE: Running Tomcat 5.0.28 in server mode

What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread Zaki, Karim R UTCHQ
Well, I don't know how to measure the number of requests per second. If you
can provide help with that, that would be great. What I'm doing is testing
with a template provided by Vignette:



%@ page import=com.vignette.cds.client.beans.*%
%@ page import=com.vignette.cms.client.beans.*%

jsp:useBean id=cms scope=page 
class=com.vignette.cms.client.beans.CMS
/

jsp:useBean id=lc scope=page 
class=com.vignette.cds.client.beans.LocalConfig 
/

%
// you may have to modify the following string values
String cmsUser = admin;
String cmsPassword = admin;

long cfgstart = System.currentTimeMillis();
String CMSHost = lc.getConfigValue (/cms/bob/PM_HOST); // get cms
host
int CMSPort = Integer.parseInt (lc.getConfigValue
(/cms/bob/PM_PORT)); // get cms port
long cfgstop = System.currentTimeMillis();

%
got config data in %=cfgstop - cfgstart% millisecondsbr
CMS Host = %=CMSHost%br
CMS Port = %=CMSPort%br


%
long startconnect = System.currentTimeMillis();
CMSSecurity sec = new CMSSecurity();
sec.configure (application);
cms.connect (sec, CMSHost, CMSPort, cmsUser, cmsPassword);
if (cms.isConnected()) {
%connected to cms br%
cms.setCredsCookie();
}
else {
%connect to cms failed br%
}
long stopconnect = System.currentTimeMillis();
%
connected to cms in %=stopconnect-startconnect% millisecondsbr
br
Templates in System Project:br
%
long startProjectList = System.currentTimeMillis();
Project proj = cms.findProjectByPath (Base ProjectSystem);
Template[] templates = proj.getTemplates();
for (int i=1;itemplates.length;i++) {
out.println (templates[i].getName() + br);
}
long stopProjectList = System.currentTimeMillis();
cms.disconnect();
long disconnect = System.currentTimeMillis();
%
br
listed project contents in %=stopProjectList-startProjectList%
millisecondsbr
disconnected from cms in %=disconnect-stopProjectList% millisecondsbr
%
java.text.SimpleDateFormat milliDateFormat =
new java.text.SimpleDateFormat (MM/dd/ HH:mm:ss:SSS);
java.util.Date rightNow = new java.util.Date();
String now = (milliDateFormat.format (rightNow));
%
generated: %=now%br



It takes 2 seconds to load! This really doesn't do any real work...so when
the code starts to do something useful, we go into over a minute of load
time per page. I did a ping test to the database involved and the average
ping time is 300 microseconds, so I don't think it's network related.

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 12:15 PM
To: 'Tomcat Users List'
Subject: RE: Running Tomcat 5.0.28 in server mode

What does really slow mean? That's a subjective assessment, not a
quantititative value. How many requests per second?

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 8:46 AM
 To: Tomcat User Group
 Subject: Running Tomcat 5.0.28 in server mode
 
 Dear all,
 
 I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
 Vignette APIs (provided as JARs). Everything works, but performance is
 really slow. The server that's hosting this is a quad 
 processor (@2GHz each)
 Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
 I don't see
 hardware as being an issue.
 
 One thing I'm trying to do is run Tomcat in server mode. My 
 understanding is
 that this should enhance performance. However, adding 
 -server to Tomcat's
 Java Options box causes Tomcat to not start. What am I doing wrong?
 
 Also, if anyone can provide performance tuning 
 recommendations, please do.
 
 Thanks all..
 
 Karim
 
 
 I didn't do it! ~ Bart Simpson
 
 -
 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: Context in separate file doesn't work

2005-09-02 Thread Trond Hersløv
Hi George,

Thank you very much, you made my day!!
I thought I could name the .xml files whatever I like to, but that was a huge 
mistake that costed me 2 days.
Naming the file ROOT.xml solved the problem. Can't remember having read that 
anywhere in the doc's. 
Don't know if it's just a bad style, but path= and path=/ seems both to 
work well. But I'll listen to you and use an empty string.


Once again, thank you very much and have a nice weekend


-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 18:13
To: 'Tomcat Users List'
Subject: RE: Context in separate file doesn't work

One other thing, for a ROOT context, the file should be named ROOT.xml

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 02, 2005 4:50 AM
 To: Tomcat Users List
 Subject: Context in separate file doesn't work
 
 Hi tomcat fellas!
 http://venus:8080 gives me the index.html in the folder 
 /home/trond/GTG/inside, but only when I use the server.xml below.
 When I take the Context. / and put it in a separate file, 
 ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt work anymore.
 Does anybody know why? Do I have to set any attributes like 
 autoDeploy=false in the Host tag or what am I missing here?
 
 Thanks in advance.
 
 \trond
 
 
 * server.xml
 
 Server port=8005 shutdown=SHUTDOWN
 
   GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved

 factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
   /GlobalNamingResources
 
   Service name=Catalina
 Connector port=8080 /
 
 !-- This is here for compatibility only, not required --
 Connector port=8009 protocol=AJP/1.3 /
 
 Engine name=Catalina defaultHost=localhost
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /
   Host name=localhost appBase=/home/trond/GTG/outside /
   Host name=venus appBase=/home/trond/GTG/inside 
 Context docBase=/home/trond/GTG/inside path=/ /
   /Host
 /Engine
 
   /Service
 /Server
 **
 
 
 
 **
 This email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 **
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



failure to install tomcat5 service check settings and permissions

2005-09-02 Thread bachoo jahnkar
Hi,
 
I had tomcat 4.0.3 and tomcat 5.0 on the dev box. I have uninstalled the tomcat 
5.0.
 
I am trying to install tomcat 5.5.9 and i am getting the following error 
 
  USING JVM c:\jdk1.4.2_04\jre\bin\jvm.dll
   failure to install tomcat service check settings and permissions
 
I tried few solutions like changing the temp directory in evniroment variables 
etc... to no luck.
 
Please help.
 
Manu

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

Big problem with running tomcat

2005-09-02 Thread jmail
Hi. 
 
 I have downloaded and install Tomcat 5.5.11 for my desktop where I've got 
Apche Server 2.0.54.
 
 And wright now I've got redirected domain jmailssoftware.tk. and the domain is 
redirected to the jmail.kicks-ass.org which is Dynamic DNS free subdomain.
 
 So I can't give anybody the URL like jmailssoftware.tk:8080 because it's dying 
on jmail.kicks-ass.org :/
 
 and my questin is: How to configure Apache and Tomcat that Tomcat and Apche 
will use port number 80.
 
 I would like to make something like virtual hosts using apache and tomcat, but 
some virtual host should take tomcat for reply. 
 
 if you can help me i will be verry happy and glad :)
 
 thanks for any anserw.
 
 jmail
 


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



Re: failure to install tomcat5 service check setti ngs and permissions

2005-09-02 Thread jmail
Hey. 

Have you got the newest java? I had got the same problem yesterday installing 
Tomcat 5.5.11 and I have change java for the latest update from 
http://java.sun.com And now It works.

jmail

 Wiadomość Oryginalna 
Od: bachoo jahnkar [EMAIL PROTECTED]
Do: Tomcat Users List tomcat-user@jakarta.apache.org
Data: Fri, 2 Sep 2005 11:05:55 -0700 (PDT)
Temat: failure to install tomcat5 service check settings and permissions

 Hi,
  
 I had tomcat 4.0.3 and tomcat 5.0 on the dev box. I have uninstalled the 
 tomcat 5.0.
  
 I am trying to install tomcat 5.5.9 and i am getting the following error 
  
   USING JVM c:\jdk1.4.2_04\jre\bin\jvm.dll
failure to install tomcat service check settings and permissions
  
 I tried few solutions like changing the temp directory in evniroment 
 variables etc... to no luck.
  
 Please help.
  
 Manu
 
 __
 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: failure to install tomcat5 service check settings and permissions

2005-09-02 Thread bachoo jahnkar
I installed j2sdk1.4.2_08 today. I had java1.3. Is this good or do i have to 
get a newer one?
Manu

jmail [EMAIL PROTECTED] wrote:
Hey. 

Have you got the newest java? I had got the same problem yesterday installing 
Tomcat 5.5.11 and I have change java for the latest update from 
http://java.sun.com And now It works.

jmail

 Wiadomo¶æ Oryginalna 
Od: bachoo jahnkar 
Do: Tomcat Users List 
Data: Fri, 2 Sep 2005 11:05:55 -0700 (PDT)
Temat: failure to install tomcat5 service check settings and permissions

 Hi,
 
 I had tomcat 4.0.3 and tomcat 5.0 on the dev box. I have uninstalled the 
 tomcat 5.0.
 
 I am trying to install tomcat 5.5.9 and i am getting the following error 
 
 USING JVM c:\jdk1.4.2_04\jre\bin\jvm.dll
 failure to install tomcat service check settings and permissions
 
 I tried few solutions like changing the temp directory in evniroment 
 variables etc... to no luck.
 
 Please help.
 
 Manu
 
 __
 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]



-
 Start your day with Yahoo! - make it your home page 

Re: failure to install tomcat5 service check setti ngs and permissions

2005-09-02 Thread jmail
wright now on my komputer there is java j2sdk 1.5.0_04 so yours one is a little 
bit hmmm old :D

but get sdk not only re

jmail

 Wiadomość Oryginalna 
Od: bachoo jahnkar [EMAIL PROTECTED]
Do: Tomcat Users List tomcat-user@jakarta.apache.org
Data: Fri, 2 Sep 2005 11:16:05 -0700 (PDT)
Temat: Re: failure to install tomcat5 service check settings and permissions

 I installed j2sdk1.4.2_08 today. I had java1.3. Is this good or do i have to 
 get a newer one?
 Manu
 
 jmail [EMAIL PROTECTED] wrote:
 Hey. 
 
 Have you got the newest java? I had got the same problem yesterday installing 
 Tomcat 5.5.11 and I have change java for the latest update from 
 http://java.sun.com And now It works.
 
 jmail
 
  Wiadomość Oryginalna 
 Od: bachoo jahnkar 
 Do: Tomcat Users List 
 Data: Fri, 2 Sep 2005 11:05:55 -0700 (PDT)
 Temat: failure to install tomcat5 service check settings and permissions
 
  Hi,
  
  I had tomcat 4.0.3 and tomcat 5.0 on the dev box. I have uninstalled the 
  tomcat 5.0.
  
  I am trying to install tomcat 5.5.9 and i am getting the following error 
  
  USING JVM c:\jdk1.4.2_04\jre\bin\jvm.dll
  failure to install tomcat service check settings and permissions
  
  I tried few solutions like changing the temp directory in evniroment 
  variables etc... to no luck.
  
  Please help.
  
  Manu
  
  __
  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]
 
 
   
 -
  Start your day with Yahoo! - make it your home page 


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



Re: Big problem with running tomcat

2005-09-02 Thread bachoo jahnkar
Change the port in server.xml to 80. That should solve your problem.

jmail [EMAIL PROTECTED] wrote:Hi. 

I have downloaded and install Tomcat 5.5.11 for my desktop where I've got Apche 
Server 2.0.54.

And wright now I've got redirected domain jmailssoftware.tk. and the domain is 
redirected to the jmail.kicks-ass.org which is Dynamic DNS free subdomain.

So I can't give anybody the URL like jmailssoftware.tk:8080 because it's dying 
on jmail.kicks-ass.org :/

and my questin is: How to configure Apache and Tomcat that Tomcat and Apche 
will use port number 80.

I would like to make something like virtual hosts using apache and tomcat, but 
some virtual host should take tomcat for reply. 

if you can help me i will be verry happy and glad :)

thanks for any anserw.

jmail



-
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 

mass virtual hosting with rewrite

2005-09-02 Thread Oleg
I am running Apache 2 with Tomcat 5.5. Both are working fine and hosting 
about 200 domain names. The problem is that every time a new domain is added 
I have to edit server.xml file and restart tomcat. With Apache I am using 
RewriteMap files so I just edit those files and no need to restart it. I 
wanted to run it by you guys and see if anyone tried using Rewrite to avoid 
setting up virtual hosts in Tomcat server.xml file. Basically have Rewrite 
conditions in Apache say

user1.com http://user1.com rewrite to localhost/user1
user25.com http://user25.com rewrite to localhost/user25

This way Tomcat doesn't have to be setup with all those virtual domain 
names.
Any idea how to do it? Of course I would not want the URL to change in the 
browser address bar so the rewrite would have to be internal only.

What do you think?

Thanks
Oleg


Re: Big problem with running tomcat

2005-09-02 Thread jmail
yeah I have try to do this and then I can't use tomcat or apache. I still need 
to use those together. :/

jmail 

 Wiadomość Oryginalna 
Od: bachoo jahnkar [EMAIL PROTECTED]
Do: Tomcat Users List tomcat-user@jakarta.apache.org
Data: Fri, 2 Sep 2005 11:18:31 -0700 (PDT)
Temat: Re: Big problem with running tomcat

 Change the port in server.xml to 80. That should solve your problem.
 
 jmail [EMAIL PROTECTED] wrote:Hi. 
 
 I have downloaded and install Tomcat 5.5.11 for my desktop where I've got 
 Apche Server 2.0.54.
 
 And wright now I've got redirected domain jmailssoftware.tk. and the domain 
 is redirected to the jmail.kicks-ass.org which is Dynamic DNS free subdomain.
 
 So I can't give anybody the URL like jmailssoftware.tk:8080 because it's 
 dying on jmail.kicks-ass.org :/
 
 and my questin is: How to configure Apache and Tomcat that Tomcat and Apche 
 will use port number 80.
 
 I would like to make something like virtual hosts using apache and tomcat, 
 but some virtual host should take tomcat for reply. 
 
 if you can help me i will be verry happy and glad :)
 
 thanks for any anserw.
 
 jmail
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 


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



Re: mass virtual hosting with rewrite

2005-09-02 Thread jmail
Adn howy did you do that? I've got a problem. I can't use tomcat and Apache on 
the same port. :/ But I need to do this like that:

somone make a question to my host and i would like that on this qusetion my 
server shoul decide if thats for him or for Tomcat :/ How can I do this? 

thanks for any reply

jmail
 
 Wiadomość Oryginalna 
Od: Oleg [EMAIL PROTECTED]
Do: Tomcat Users List tomcat-user@jakarta.apache.org
Data: Fri, 2 Sep 2005 11:18:50 -0700
Temat: mass virtual hosting with rewrite

 I am running Apache 2 with Tomcat 5.5. Both are working fine and hosting 
 about 200 domain names. The problem is that every time a new domain is added 
 I have to edit server.xml file and restart tomcat. With Apache I am using 
 RewriteMap files so I just edit those files and no need to restart it. I 
 wanted to run it by you guys and see if anyone tried using Rewrite to avoid 
 setting up virtual hosts in Tomcat server.xml file. Basically have Rewrite 
 conditions in Apache sayquot;
 
 user1.com lt;a href=http://user1.comgt;; 
 target='_blank'http://user1.comgt;/a rewrite to localhost/user1
 user25.com lt;a href=http://user25.comgt;; 
 target='_blank'http://user25.comgt;/a rewrite to localhost/user25
 
 This way Tomcat doesn't have to be setup with all those virtual domain 
 names.
 Any idea how to do it? Of course I would not want the URL to change in the 
 browser address bar so the rewrite would have to be internal only.
 
 What do you think?
 
 Thanks
 Oleg
 


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



Waste of our bandwidth

2005-09-02 Thread pacea
Don't we have a list administrator that can remove this guy? 

Received: from mail.apache.org ([209.237.227.199])
  by rwcrmxc23.comcast.net (rwcrmxc23) with SMTP
  id 20050902131952r2300r7evje; Fri, 2 Sep 2005 13:19:52 +
X-Originating-IP: [209.237.227.199]
Received: (qmail 28987 invoked by uid 500); 2 Sep 2005 13:19:31 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:tomcat-user@jakarta.apache.org
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
Delivered-To: mailing list tomcat-user@jakarta.apache.org
Received: (qmail 28949 invoked by uid 99); 2 Sep 2005 13:19:31 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:31 -0700
X-ASF-Spam-Status: No, hits=1.1 required=10.0
tests=BIZ_TLD,NO_REAL_NAME,SUBJ_ALL_CAPS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [216.71.84.209] (HELO westhost36.westhost.net) (216.71.84.209)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:45 -0700
Received: (from [EMAIL PROTECTED])
by westhost36.westhost.net (8.11.6/8.11.6) id j82DJTs19968;
Fri, 2 Sep 2005 08:19:29 -0500
Date: Fri, 2 Sep 2005 08:19:29 -0500
Message-Id: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
References: [EMAIL PROTECTED] [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
X-Loop: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: MAIL FAILURE
X-Virus-Checked: Checked by ClamAV on apache.org

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.

  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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

Installing JavaServer Faces

2005-09-02 Thread Michael Thomsen
Hi, could someone tell me if there is any difference between
installing any of the implementaitons of JavaServer Faces in Tomcat
and doing it in Sun's Application Server? I remember reading somewhere
that their server is based on Tomcat, so I was unsure. Any help would
be appreciated.

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



Tomcat5.5 and Logging

2005-09-02 Thread Trond Hersløv
Hi,
what happend with the Logging component form TC5.0?
I used to include a Logger 
className=org.apache.catalina.logger.FileLogger.. inside Host to get 
my logging going.
How do I do this under TC5.5

Regards Trond


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



Re: Waste of our bandwidth

2005-09-02 Thread Brian Cook


I do not know if it is an admin but the contact for the Tomcat list is :

[EMAIL PROTECTED]


[EMAIL PROTECTED] wrote:
Don't we have a list administrator that can remove this guy? 


Received: from mail.apache.org ([209.237.227.199])
  by rwcrmxc23.comcast.net (rwcrmxc23) with SMTP
  id 20050902131952r2300r7evje; Fri, 2 Sep 2005 13:19:52 +
X-Originating-IP: [209.237.227.199]
Received: (qmail 28987 invoked by uid 500); 2 Sep 2005 13:19:31 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:tomcat-user@jakarta.apache.org
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
Delivered-To: mailing list tomcat-user@jakarta.apache.org
Received: (qmail 28949 invoked by uid 99); 2 Sep 2005 13:19:31 -
Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:31 -0700
X-ASF-Spam-Status: No, hits=1.1 required=10.0
tests=BIZ_TLD,NO_REAL_NAME,SUBJ_ALL_CAPS
X-Spam-Check-By: apache.org
Received-SPF: pass (asf.osuosl.org: local policy)
Received: from [216.71.84.209] (HELO westhost36.westhost.net) (216.71.84.209)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:45 -0700
Received: (from [EMAIL PROTECTED])
by westhost36.westhost.net (8.11.6/8.11.6) id j82DJTs19968;
Fri, 2 Sep 2005 08:19:29 -0500
Date: Fri, 2 Sep 2005 08:19:29 -0500
Message-Id: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
References: [EMAIL PROTECTED] [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
X-Loop: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: MAIL FAILURE
X-Virus-Checked: Checked by ClamAV on apache.org

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

The email you sent was not delivered to the desired recipient because
it was blocked/filtered for a specific reason, which may include:

  - reply to [EMAIL PROTECTED]
  - mail undeliverable because mailbox is not existant (or removed)
  - unsolicited email

If you  wish to contact Aaron Ardiri ([EMAIL PROTECTED]),  you may use 
the following service to send an instant message direct to his mobile
where you can put  a request for contact and an  attempt will be made 
to return your contact.


  http://www.contactme.biz/

Thankyou.

*
   THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO
*

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



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

RE: Tomcat5.5 and Logging

2005-09-02 Thread GB Developer
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 2:06 PM
 To: Tomcat Users List
 Subject: Tomcat5.5 and Logging
 
 
 Hi,
 what happend with the Logging component form TC5.0?
 I used to include a Logger 
 className=org.apache.catalina.logger.FileLogger.. 
 inside Host to get my logging going. How do I do this under TC5.5
 
 Regards Trond
 


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



RE: Tomcat5.5 and Logging

2005-09-02 Thread Trond Hersløv
Ouch, sorry!
Should have done my homework better.

Thanks
Trond
 

-Original Message-
From: GB Developer [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 21:24
To: 'Tomcat Users List'
Subject: RE: Tomcat5.5 and Logging

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 02, 2005 2:06 PM
 To: Tomcat Users List
 Subject: Tomcat5.5 and Logging
 
 
 Hi,
 what happend with the Logging component form TC5.0?
 I used to include a Logger
 className=org.apache.catalina.logger.FileLogger..
 inside Host to get my logging going. How do I do this under TC5.5
 
 Regards Trond
 


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


**
This email message has been swept by
MIMEsweeper for the presence of computer viruses.
**


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



RE: Running Tomcat 5.0.28 in server mode

2005-09-02 Thread George Sexton
A good tool for load testing is JMeter

http://jakarta.apache.org/jmeter/index.html


Here's a link to some testing we did with it for our product:

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm

Basically, we go something like 1400 requests per minute on a uni-processor
P4.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 11:02 AM
 To: Tomcat Users List
 Subject: RE: Running Tomcat 5.0.28 in server mode
 
 Well, I don't know how to measure the number of requests per 
 second. If you
 can provide help with that, that would be great. What I'm 
 doing is testing
 with a template provided by Vignette (I don't know if I can 
 send attachments
 on this list). It takes 2 seconds to load! This really 
 doesn't do any real
 work...so when the code starts to do something useful, we go 
 into over a
 minute of load time per page.
 
 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 12:15 PM
 To: 'Tomcat Users List'
 Subject: RE: Running Tomcat 5.0.28 in server mode
 
 What does really slow mean? That's a subjective assessment, not a
 quantititative value. How many requests per second?
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
   
 
  -Original Message-
  From: Zaki, Karim R UTCHQ [mailto:[EMAIL PROTECTED] 
  Sent: Friday, September 02, 2005 8:46 AM
  To: Tomcat User Group
  Subject: Running Tomcat 5.0.28 in server mode
  
  Dear all,
  
  I'm running Tomcat 5.0.28 in conjunction with Vignette. JSPs use the
  Vignette APIs (provided as JARs). Everything works, but 
 performance is
  really slow. The server that's hosting this is a quad 
  processor (@2GHz each)
  Windows 2000 Server with 2GB of memory and a gigabit NIC...so 
  I don't see
  hardware as being an issue.
  
  One thing I'm trying to do is run Tomcat in server mode. My 
  understanding is
  that this should enhance performance. However, adding 
  -server to Tomcat's
  Java Options box causes Tomcat to not start. What am I 
 doing wrong?
  
  Also, if anyone can provide performance tuning 
  recommendations, please do.
  
  Thanks all..
  
  Karim
  
  
  I didn't do it! ~ Bart Simpson
  
  
 -
  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: Context in separate file doesn't work

2005-09-02 Thread George Sexton
I'd like to claim superior knowledge and intellect, but really I just did
this one myself a few weeks ago.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 12:02 PM
 To: Tomcat Users List
 Subject: RE: Context in separate file doesn't work
 
 Hi George,
 
 Thank you very much, you made my day!!
 I thought I could name the .xml files whatever I like to, but 
 that was a huge mistake that costed me 2 days.
 Naming the file ROOT.xml solved the problem. Can't remember 
 having read that anywhere in the doc's. 
 Don't know if it's just a bad style, but path= and path=/ 
 seems both to work well. But I'll listen to you and use an 
 empty string.
 
 
 Once again, thank you very much and have a nice weekend
 
 
 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 18:13
 To: 'Tomcat Users List'
 Subject: RE: Context in separate file doesn't work
 
 One other thing, for a ROOT context, the file should be named ROOT.xml
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
   
 
  -Original Message-
  From: Trond Hersløv [mailto:[EMAIL PROTECTED]
  Sent: Friday, September 02, 2005 4:50 AM
  To: Tomcat Users List
  Subject: Context in separate file doesn't work
  
  Hi tomcat fellas!
  http://venus:8080 gives me the index.html in the folder 
  /home/trond/GTG/inside, but only when I use the server.xml below.
  When I take the Context. / and put it in a separate file, 
  ${CATALINA_HOME}/conf/Catalina/venus/test.xml it doesnt 
 work anymore.
  Does anybody know why? Do I have to set any attributes like 
  autoDeploy=false in the Host tag or what am I missing here?
  
  Thanks in advance.
  
  \trond
  
  
  * server.xml
  
  Server port=8005 shutdown=SHUTDOWN
  
GlobalNamingResources
  !-- Used by Manager webapp --
  Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
 description=User database that can be updated and saved
 
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml /
/GlobalNamingResources
  
Service name=Catalina
  Connector port=8080 /
  
  !-- This is here for compatibility only, not required --
  Connector port=8009 protocol=AJP/1.3 /
  
  Engine name=Catalina defaultHost=localhost
Realm className=org.apache.catalina.realm.UserDatabaseRealm
   resourceName=UserDatabase /
Host name=localhost appBase=/home/trond/GTG/outside /
Host name=venus appBase=/home/trond/GTG/inside 
  Context docBase=/home/trond/GTG/inside path=/ /
/Host
  /Engine
  
/Service
  /Server
  **
  
  
  
  
 **
  This email message has been swept by
  MIMEsweeper for the presence of computer viruses.
  
 **
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 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: Waste of our bandwidth

2005-09-02 Thread Mark Thomas

Brian Cook wrote:


I do not know if it is an admin but the contact for the Tomcat list is :

[EMAIL PROTECTED]


No, it isn't.
The correct addresses are tomcat-user-owner@ or tomcat-dev-owner@

Mark



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



JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)

I tried to upgrade our JK modules from 1.2.12 to 1.2.14.1 and now every
Apache process crashes while processing a request with:

[Fri Sep 02 14:23:54 2005] [notice] child pid 11079 exit signal Bus
error (10)

For every request in the logs.

The config works fine with JK 1.2.12 (I can swap it in and things work)
and looks like:

==
httpd.conf:
==
JkShmSize 60
JkShmFile logs/jk1.shm
JkWorkersFile conf/workers.properties
JkMountFile conf/uriworkermap.properties
JkLogFile logs/mod_jk_log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V:%p%U%q %s %T

Location /jkstatus/
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.
/Location

==
workers.properties:
==
ps=/
worker.list=jkstatus,CAMCentral_lb
worker.jkstatus.type=status
worker.CAMCentral_lb.type=lb
worker.CAMCentral_lb.balance_workers=ap1lnx60,ap1lnx61

worker.ap1lnx60.type=ajp13
worker.ap1lnx60.host=3.130.232.239
worker.ap1lnx60.port=15753

worker.ap1lnx61.type=ajp13
worker.ap1lnx61.host=3.130.233.24
worker.ap1lnx61.port=15753

==
uriworkermap.properties
==
/CAMCentral/*=CAMCentral_lb
/CAMCentral=CAMCentral_lb

Apache version:

Server version: Apache/2.0.52
Server built:   Oct 28 2004 12:24:42
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with
 -D APACHE_MPM_DIR=server/mpm/worker
 -D APR_HAS_MMAP
 -D APR_USE_FCNTL_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT=/usr/local/apache2
 -D SUEXEC_BIN=/usr/local/apache2/bin/suexec
 -D DEFAULT_SCOREBOARD=logs/apache_runtime_status
 -D DEFAULT_ERRORLOG=logs/error_log
 -D AP_TYPES_CONFIG_FILE=conf/mime.types
 -D SERVER_CONFIG_FILE=conf/httpd.conf

What am I missing?  I built jk with configure
--with-apxs=/usr/local/apache2/bin/apxs;make

I've had no problems building/running in the past with mod_jk 1.2.12.  I
thought it must have been something in my config, but apparently not?

Byron




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



RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)
Some addition information- I trussed httpd -X to get this trace:

...
11438:  lwp_cond_wait(0xFEE434E8, 0xFEE434F8, 0xFEE3CD80) (sleeping...)
11438:  accept(3, 0x001EAAF4, 0x001EAB04, 1)= 14
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  lwp_sema_post(0xFE909E60)   = 0
11438:  lwp_mutex_lock(0xFEE434F8)  = 0
11438:  lwp_mutex_wakeup(0xFEE434F8)= 0
11438:  lwp_sema_post(0xFE909E60)   = 0
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  lwp_mutex_lock(0xFEE434F8)  = 0
11438:  lwp_mutex_wakeup(0xFEE434F8)= 0
11438:  fcntl(14, F_GETFL, 0x)  = 2
11438:  fstat64(14, 0xFE909630) = 0
11438:  getsockopt(14, 65535, 8192, 0xFE909730, 0xFE909728, 44) = 0
11438:  fstat64(14, 0xFE909630) = 0
11438:  getsockopt(14, 65535, 8192, 0xFE909730, 0xFE90972C, 44) = 0
11438:  setsockopt(14, 65535, 8192, 0xFE909730, 4, 44)  = 0
11438:  fcntl(14, F_SETFL, 0x0082)  = 0
11438:  read(14,  G E T   / C A M C e n t.., 8000)= 114
11438:  time()  = 1125691419
11438:  time()  = 1125691419
11438:  brk(0x001FC478) = 0
11438:  brk(0x001FE478) = 0
11438:  brk(0x001FE478) = 0
11438:  brk(0x00200478) = 0
11438:  brk(0x00200478) = 0
11438:  brk(0x00202478) = 0
11438:  brk(0x00202478) = 0
11438:  brk(0x00204478) = 0
11438:  so_socket(2, 2, 0, , 1)   = 15
11438:  setsockopt(15, 6, 1, 0xFE908574, 4, 1)  = 0
11438:  setsockopt(15, 65535, 128, 0xFE908578, 8, 1)= 0
11438:  connect(15, 0x000F6CB0, 16, 1)  = 0
11438:  fcntl(15, F_GETFL, 0x)  = 2
11438:  fstat64(15, 0xFE908290) = 0
11438:  getsockopt(15, 65535, 8192, 0xFE908390, 0xFE908388, 0) = 0
11438:  fstat64(15, 0xFE908290) = 0
11438:  getsockopt(15, 65535, 8192, 0xFE908390, 0xFE90838C, 0) = 0
11438:  setsockopt(15, 65535, 8192, 0xFE908390, 4, 0)   = 0
11438:  fcntl(15, F_SETFL, 0x0002)  = 0
11438:  write(15, 12 4\0AD0202\0\b H T T P.., 177)= 177
11438:  read(15,  A B\0A4, 4) = 4
11438:  read(15, 04\0C8\0\0\0\003\0\n S e.., 164) = 164
11438:  read(15,  A B\0D7, 4) = 4
11438:  read(15, 03\0D3\r\n\r\n\r\n  h t.., 215) = 215
11438:  brk(0x00204478) = 0
11438:  brk(0x00206478) = 0
11438:  read(15,  A B\002, 4) = 4
11438:  read(15, 0501, 2) = 2
11438:  brk(0x00206478) = 0
11438:  brk(0x00208478) = 0
11438:  brk(0x00208478) = 0
11438:  brk(0x0020A478) = 0
11438:  writev(14, 0xFE907E38, 2)   = 583
11438:  Incurred fault #5, FLTACCESS  %pc = 0xFDFC4208
11438:siginfo: SIGBUS BUS_ADRALN addr=0xFE0E0234
11438:  Received signal #10, SIGBUS [default]
11438:siginfo: SIGBUS BUS_ADRALN addr=0xFE0E0234
11438:  *** process killed ***
 
I hope I don't have to build a debug version of apache/mod_jk and gdb it
to find this issue. 

Help?

Byron

-Original Message-
From: Guernsey, Byron (GE Consumer  Industrial) 
Sent: Friday, September 02, 2005 4:00 PM
To: Tomcat Users List
Subject: JK 1.2.14.1 SIG BUS Error on Solaris 9


I tried to upgrade our JK modules from 1.2.12 to 1.2.14.1 and now every
Apache process crashes while processing a request with:

[Fri Sep 02 14:23:54 2005] [notice] child pid 11079 exit signal Bus
error (10)

For every request in the logs.

The config works fine with JK 1.2.12 (I can swap it in and things work)
and looks like:

==
httpd.conf:
==
JkShmSize 60
JkShmFile logs/jk1.shm
JkWorkersFile conf/workers.properties
JkMountFile conf/uriworkermap.properties
JkLogFile logs/mod_jk_log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V:%p%U%q %s %T

Location /jkstatus/
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.
/Location

==
workers.properties:
==
ps=/
worker.list=jkstatus,CAMCentral_lb
worker.jkstatus.type=status
worker.CAMCentral_lb.type=lb
worker.CAMCentral_lb.balance_workers=ap1lnx60,ap1lnx61

worker.ap1lnx60.type=ajp13

Configuring Apache tomcat

2005-09-02 Thread Raul Garcia
Hi all,
I'm new at the list, my name is Raul.

I need help to configure jakarta-tomcat to send a high volume of packet sockets 
trhought a servlet application.

The server is dual processor Intel 3.4Ghz 4 Gb RAM.

It should send aprox 5000 sockets in a short time (About 15 minutes max)

Can someone recommend me a configuration of maxThreads etc, at the web.xml file.

Thanks on advance
Raúl.

Memory leak in simple spring webapp

2005-09-02 Thread [EMAIL PROTECTED]
I'm deploying and then undeploying a very simple spring-based test app
to my tomcat container. However, my WebappClassLoader never gets
garbage collected, because tomcat objects (loaded by the
StandardClassLoader) have hard references to the classes of my app.

I've figured out / fixed a couple of these problems. For example if
you have the xerces lib in your app, and not in tomcat's server/lib,
the container will create instances of your app's xml parser.

At the moment I'm looking at this nasty link of references:

StandardClassLoader -
org.apache.tomcat.util.IntrospectionUtils.objectMethods -
Hashtable [30].key -
org.springframework.beans.factory.BeanDefinitionStoreException.

Unlike the beans introspector, the tomcat IntrospectionUtils has no
'flushCache' method. Any suggestions for how I get around this without
making changes in IntrospectionUtils?  From my basic understanding of
these things, IntrospectionUtils should be using weak references in
its class/method cache.  Should I file this as a bug in
IntrospectionUtils?

-Magnus

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



RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

2005-09-02 Thread Guernsey, Byron \(GE Consumer Industrial\)
I apoligize for adding to this, but I'm hoping to jar someones memory.
I gdb'ed the process now and the BUS error occurs in:

Starting program: /usr/local/apache2/bin/httpd -X -f
/opt/GEinet/webconfigs/ap_i1/conf/httpd.conf -DMOD_JK -DCGI
[New LWP2]
[New LWP3]
[New LWP4]
[New LWP5]
[New LWP6]
[New LWP7]

Program received signal SIGBUS, Bus error.
[Switching to LWP3]

Program received signal SIGBUS, Bus error.
0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
is_error=0xfe500840) at jk_lb_worker.c:605
jk_lb_worker.c:605: No such file or directory.
(gdb) bt
#0  0xfdfb4208 in service (e=0xf7c90, s=0xfe501848, l=0x118b40,
is_error=0xfe500840) at jk_lb_worker.c:605
#1  0xfdfa9a7c in jk_handler (r=0x1feac0) at mod_jk.c:1889
#2  0x33f8c in ap_run_handler (r=0x1feac0) at config.c:151
#3  0x34588 in ap_invoke_handler (r=0x1feac0) at config.c:363
#4  0x2f82c in ap_process_request (r=0x1feac0) at http_request.c:246
#5  0x2aab4 in ap_process_http_connection (c=0x1f2b60) at
http_core.c:250
#6  0x3e660 in ap_run_process_connection (c=0x1f2b60) at connection.c:42
#7  0x3e95c in ap_process_connection (c=0x1f2b60, csd=0x1f2a90) at
connection.c:175
#8  0x30a5c in process_socket (p=0x1f2a58, sock=0x1f2a90,
my_child_num=0, my_thread_num=4, bucket_alloc=0x1fca80) at worker.c:520
#9  0x310f4 in worker_thread (thd=0x120c10, dummy=0x1f2a58) at
worker.c:834
#10 0xff1144c4 in dummy_worker (opaque=0x74000) at thread.c:88

And jk_lb_worker.c:605 looks like:

if (rec  rec != prec) {
int is_service_error = JK_HTTP_OK;
int service_stat = JK_FALSE;
jk_endpoint_t *end = NULL;

s-jvm_route = rec-r;
rc = rec-w-get_endpoint(rec-w, end, l);

if (JK_IS_DEBUG_LEVEL(l))
jk_log(l, JK_LOG_DEBUG,
   service worker=%s jvm_route=%s,
   rec-s-name, s-jvm_route);
rec-s-elected++;
if (rc  end) {
/* Reset endpoint read and write sizes for
 * this request.
 */
end-rd = end-wr = 0;
/* Increment the number of workers serving request
*/
p-worker-s-busy++;
if (p-worker-s-busy  p-worker-s-max_busy)
p-worker-s-max_busy = p-worker-s-busy;
rec-s-busy++;
if (rec-s-busy  rec-s-max_busy)
rec-s-max_busy = rec-s-busy;
service_stat = end-service(end, s, l,
is_service_error);
/* Update partial reads and writes if any */
605:rec-s-readed += end-rd;
rec-s-transferred += end-wr;
end-done(end, l);

From the debugger:

 (gdb) print *end
$6 = {rd = 393, wr = 177, endpoint_private = 0x14e990, service =
0xfdfc1c34 ajp_service, done = 0xfdfc309c ajp_done}

(gdb) print *rec-s
$5 = {id = 2, busy = 1, max_busy = 1, name = ap1lnx60, '\000' repeats
55 times, domain = '\000' repeats 63 times, 
  redirect = '\000' repeats 63 times, is_disabled = 0, is_stopped = 0,
is_busy = 0, lb_factor = 1, lb_value = 0, 
  in_error_state = 0, in_recovering = 0, sticky_session = 0,
sticky_session_force = 0, recover_wait_time = 0, retries = 0, 
  error_time = 0, readed = 0, transferred = 0, elected = 1, errors = 0}

(gdb) print *s
$7 = {ws_private = 0xfe5018e8, pool = 0xfe5018e8, method = 0x1ff838
GET, protocol = 0x1ff888 HTTP/1.0, 
  req_uri = 0x1ff870 /CMSCentral/Dispatcher, remote_addr = 0x1f2ee0
64.37.211.156, remote_host = 0x0, remote_user = 0x0, 
  auth_type = 0x0, query_string = 0x0, server_name = 0xf5030 hostname,
server_port = 80, 
  server_software = 0x118cf8 Apache/2.0.52 (Unix) mod_jk/1.2.14 DAV/2,
content_length = 0, is_chunked = 0, no_more_chunks = 0, 
  content_read = 0, is_ssl = 0, ssl_cert = 0x0, ssl_cert_len = 0,
ssl_cipher = 0x0, ssl_session = 0x0, ssl_key_size = -1, 
  headers_names = 0x200248, headers_values = 0x200258, num_headers = 4,
attributes_names = 0x0, attributes_values = 0x0, 
  num_attributes = 0, jvm_route = 0xfe0d0140 ap1lnx60, secret = 0x0,
reco_buf = 0xfe500848, reco_status = 1, retries = 3, 
  flush_packets = 0, uw_map = 0x14a818, start_response = 0xfdfa754c
ws_start_response, read = 0xfdfa76e4 ws_read, 
  write = 0xfdfa77ac ws_write, flush = 0xfdfa777c ws_flush}

Byron

-Original Message-
From: Guernsey, Byron (GE Consumer  Industrial) 
Sent: Friday, September 02, 2005 4:15 PM
To: Tomcat Users List
Subject: RE: JK 1.2.14.1 SIG BUS Error on Solaris 9

Some addition information- I trussed httpd -X to get this trace:

...
11438:  lwp_cond_wait(0xFEE434E8, 0xFEE434F8, 0xFEE3CD80) (sleeping...)
11438:  accept(3, 0x001EAAF4, 0x001EAB04, 1)= 14
11438:  lwp_sema_wait(0xFE909E60)   = 0
11438:  

RE: custom valve help ???

2005-09-02 Thread Bovy, Stephen J
 
Are there any good tutorials or how-to documents for using and writing a
custom valve for tomcat ???


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]



Re: Installing JavaServer Faces

2005-09-02 Thread Wendy Smoak

From: Michael Thomsen [EMAIL PROTECTED]


Hi, could someone tell me if there is any difference between
installing any of the implementaitons of JavaServer Faces in Tomcat
and doing it in Sun's Application Server? I remember reading somewhere
that their server is based on Tomcat, so I was unsure. Any help would
be appreciated.


What do you mean by installing?  I typically just include the relevant 
.jar and config files as part of the webapp (.war file) that will use them.


Does Sun's server make the JSF implementation available to all webapps?  If 
so, then I believe the equivalent would be placing the JSF api and 
implementation .jar files in 'shared/lib' as discussed here:


  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

Having never done it, I'm not certain that's the right answer... I prefer my 
webapps to be self-contained.


--
Wendy Smoak 



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



RE: Installing JavaServer Faces

2005-09-02 Thread Bovy, Stephen J
Is there a JSF implementation included in certain levels or version of
the JDK ???

If so which ones ???



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]
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 2:30 PM
To: Tomcat Users List
Subject: Re: Installing JavaServer Faces

From: Michael Thomsen [EMAIL PROTECTED]

 Hi, could someone tell me if there is any difference between 
 installing any of the implementaitons of JavaServer Faces in Tomcat 
 and doing it in Sun's Application Server? I remember reading somewhere

 that their server is based on Tomcat, so I was unsure. Any help would 
 be appreciated.

What do you mean by installing?  I typically just include the relevant
.jar and config files as part of the webapp (.war file) that will use
them.

Does Sun's server make the JSF implementation available to all webapps?
If so, then I believe the equivalent would be placing the JSF api and
implementation .jar files in 'shared/lib' as discussed here:

 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

Having never done it, I'm not certain that's the right answer... I
prefer my webapps to be self-contained.

--
Wendy Smoak 


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



Configuring maxThread help

2005-09-02 Thread Raul Garcia
Hi all again, I repeat the question becouse the Subject wasn't correct

I need help to configure jakarta-tomcat to send a high volume of packet sockets 
trhought a servlet application.

The server is dual processor Intel 3.4Ghz 4 Gb RAM.

It should send aprox from 2000 or 5000 sockets in a short time (About 15 
minutes max)

Can someone recommend me a configuration of maxThreads etc, at the web.xml file.

Thanks on advance
Raúl.

Re: Big problem with running tomcat

2005-09-02 Thread David Rees
On 9/2/05, jmail [EMAIL PROTECTED] wrote:
 
  I would like to make something like virtual hosts using apache and tomcat, 
 but some 
 virtual host should take tomcat for reply.

You need to use mod_jk.  Look at the docs for it and the solution will
become clear.

-Dave

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



[ANN] Servlet and JSP APIs have moved to subversion

2005-09-02 Thread Mark Thomas

The following CVS modules have been migrated to subversion

jakarta-servletapi
jakarta-servletapi-4
jakarta-servletapi-5

These modules are now read only in CVS.

The new SVN locations are:
http://svn.apache.org/repos/asf/tomcat/servletapi/branches/servlet2.2-jsp1.1-tc3.x/
http://svn.apache.org/repos/asf/tomcat/servletapi/branches/servlet2.3-jsp1.2-tc4.x/
http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/

NB Committers wishing to make changes to these modules will need to 
use https as per http://www.apache.org/dev/version-control.html#https-svn


TC34 will move next (phase 4), followed by TC5, Connectors and 
Jasper2 (phase 5). A more detailed schedule, particularly for phase 5 
since this is the focus of development, will be posted on the 
tomcat-dev list nearer the time.


Mark


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



Shared object between Tomcat and external program?

2005-09-02 Thread wolverine my
I'm running Tomcat 5.5.
I want to create a servlet to accept a HTTP request. The servlet
creates an object based on the request parameters and forward the
object (using Queue) to another standalone Java process started from
the command line, a background process.

In this case, the same Queue object should be accessible both in the
servlet and in the standalone Java process:
- the servlet adds object into the Queue and,
- the standalone Java process retrieve the object from the same Queue

How can we do this?

Is there a way the servlet to lookup an Queue object created by the
standalone Java program or vise versa?

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



Re: custom valve help ???

2005-09-02 Thread Len Popp
If you consider source code to be a tutorial, you can look at the
classes in org.apache.catalina.valves. RemoteAddrValve and
RequestDumperValve are quite simple and easy to understand.
-- 
Len

On 9/2/05, Bovy, Stephen J [EMAIL PROTECTED] wrote:
 
 Are there any good tutorials or how-to documents for using and writing a
 custom valve for tomcat ???
 
 
 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]



Page timeout displaying database rows

2005-09-02 Thread Dave Kennedy
Env:
Linux: 
Apache 1.3.33
Tomcat 4.1.30
MySql  4.1.10

There is a page member_list.jsp which displays a grid of members.
After 20/75 members are displayed, html is displayed:
a class=CobaltDataLink
href=MemberMaint.jsp?fMemberID=83s_fStatusName=Activetype=notLoggedr
et_link=%2FtmJ%2Fme

This page was working!
- it seems to be an Apache/Tomcat config issue
Any tips on where to look?
Setting connectionTimeout=0 removes the message from Catalina.out, but
the page still does not display correctly.

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=2
   useURIValidationHack=false
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/


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



Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16dev1.mycompany.com  
GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open
and eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

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



Exexting threads in Tomcat

2005-09-02 Thread IndianAtTech
Hi All,

I am using JSF framework for my project. I don't know if Tomcat is restcting 
me or JSF framework is restricting me.

But I am unable to create and execute threads either in my JSF pages or my 
managed beans.

I have created and exected threads successfully in this 
http://www.mystudentapartments.com There I have used normal JSPs

But I am facing problem on this in my current project.

Please help

Thanks
Sudhakar


Executing threads in Tomcat

2005-09-02 Thread IndianAtTech
Hi All,

I am using JSF framework for my project. I don't know if Tomcat is restcting 
me or JSF framework is restricting me.

But I am unable to create and execute threads either in my JSF pages or my 
managed beans.

I have created and exected threads successfully in this 
http://www.mystudentapartments.com There I have used normal JSPs

But I am facing problem on this in my current project.

Please help

Thanks
Sudhakar


RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread Bovy, Stephen J
MaxThreads 


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]
-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 5:21 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5 Running out of Threads

Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16
dev1.mycompany.com  GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open and
eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

-
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: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

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]



Re: JSF Please Help with a simple question thanks ???

2005-09-02 Thread David Haynes

Bovy, Stephen J wrote:



Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

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]


 


Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun 
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache 
(http://www.myfaces.org/)



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



RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
I have maxThreads set at 250. When a high percentage of that 250 are
eaten up servicing essentially dead connections is when the server gets
unresponsive. 

What I am interested in is how tomct can know that a thread is no
longer viable -say if it has been in service mode for more than 5
minutes and hasn't sent anything. 




--- Bovy, Stephen J [EMAIL PROTECTED] wrote:

 MaxThreads 
 
 
 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]
 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 5:21 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5.5 Running out of Threads
 
 Using the manager app (/manager/status) I am seeing multiple threads
 in
 the 'Service' mode with times of well over 60 minutes! Here is an
 example: 
 
 Stage TimeB Sent  B Recv  Client  VHost   Request
 S 5192947 ms  0 KB0 KB67.152.68.16
 dev1.mycompany.comGET / HTTP/1.1
 
 I know that these connections came in during a period of particularly
 heavy load and the server couldn't respond to them right away. No
 response was ever sent back to the browser but the threads stay open
 and
 eat up a resource until the app server has to be restarted. 
 
 Is there any setting that will cause such orphaned connections to be
 terminated and returned to the pool? 
 
 -
 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: JSF Please Help with a simple question thanks ???

2005-09-02 Thread Bovy, Stephen J
Thank you for the clarification ...

So is Tomcat 5.x using the appache MYFACES  

Which version of jsf is included/supported by tomcat 5.x ??? 

Is there any difference between the Sun version and the appache version
???

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]
-Original Message-
From: David Haynes [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 6:48 PM
To: Tomcat Users List
Subject: Re: JSF Please Help with a simple question thanks ???

Bovy, Stephen J wrote:

 
Does Tomcat 5.x have a JSF implementation 

Does JSF have to be installed separately 

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]


  

Tomcat 5.x supports JSF.
JSF is a separate download (jar file) from either Sun
(http://java.sun.com/j2ee/javaserverfaces/download.html) or Apache
(http://www.myfaces.org/)


-
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 imbedded open source componets ??

2005-09-02 Thread Bovy, Stephen J
 
Our company has a strictly controlled policy for using open source.  We
must get approval
for each and every component on a version by version basis.

Can someone give me a list or point me to a link where the list is
located of 
all imbedded open source sub components that are used by tomcat 5.x 

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]



Re: mass virtual hosting with rewrite

2005-09-02 Thread Oleg
I am not running Tomcat and Apache ont he same port, I have never tried 
doing that. I suggest you start a separate post, maybe someone will be able 
to help you.

Thanks,
Oleg

On 9/2/05, jmail [EMAIL PROTECTED] wrote:
 
 Adn howy did you do that? I've got a problem. I can't use tomcat and 
 Apache on the same port. :/ But I need to do this like that:
 
 somone make a question to my host and i would like that on this qusetion 
 my server shoul decide if thats for him or for Tomcat :/ How can I do this?
 
 thanks for any reply
 
 jmail
 
  Wiadomość Oryginalna 
 Od: Oleg [EMAIL PROTECTED]
 Do: Tomcat Users List tomcat-user@jakarta.apache.org
 Data: Fri, 2 Sep 2005 11:18:50 -0700
 Temat: mass virtual hosting with rewrite
 
  I am running Apache 2 with Tomcat 5.5. Both are working fine and hosting
  about 200 domain names. The problem is that every time a new domain is 
 added
  I have to edit server.xml file and restart tomcat. With Apache I am 
 using
  RewriteMap files so I just edit those files and no need to restart it. I
  wanted to run it by you guys and see if anyone tried using Rewrite to 
 avoid
  setting up virtual hosts in Tomcat server.xml file. Basically have 
 Rewrite
  conditions in Apache sayquot;
 
  user1.com http://user1.com lt;a href=http://user1.comgt;; 
 target='_blank'http://user1.comgt;/a rewrite to localhost/user1
  user25.com http://user25.com lt;a href=http://user25.comgt;; 
 target='_blank'http://user25.comgt;/a rewrite to localhost/user25
 
  This way Tomcat doesn't have to be setup with all those virtual domain
  names.
  Any idea how to do it? Of course I would not want the URL to change in 
 the
  browser address bar so the rewrite would have to be internal only.
 
  What do you think?
 
  Thanks
  Oleg
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



After 1st installation of JDBCRealm?

2005-09-02 Thread 梁炳場
I just install JDBCRealm of Tomcat 5.5
It works. Very simple to configure.

But I have a few questions to ask.

1. How can users change password?
And if password is encrypted, how to manage password?
eg, how to create the 1st user name and password?
2. Can the Struts Action class get the value of request.isUserInRole()?
3. Can JDBCRealm support policy like JAASRealm?
4. Roles are defined in web.xml and database's tables. 
Is it double work? If there is a difference of roles in web.xml
and tables for the same username, which prevail?


Can anyone give me hints?

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