Réf. : Re: Réf. : Re: Very Very Slow performance of Tomcat

2004-02-19 Thread meissa . Sakho

Thank you for you answers Antonio,

Yes we have a firewall between tomcat and apache.
Does it means that there is something else to do?

___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO
01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]




Antonio Fiol Bonnín [EMAIL PROTECTED]
18/02/2004 22:08
Veuillez répondre à Tomcat Users List


Pour :  Tomcat Users List [EMAIL PROTECTED]
cc :
Objet : Re: Réf. : Re: Very Very Slow performance of Tomcat


[EMAIL PROTECTED] wrote:

Antonio,

I'm facing to the same performance problems with Tomcat.

My the maxProcessor value is equal to 75 while
the Apache's MaxClients is equals to 150.
the MaxKeepAliveRequests of apache is equal to 100

Do you understand the relationship between theses attributes ?



MaxClients is the maximum number of Apache processes you can have.

Each Apache process connects to a processor in Tomcat. Make your own
calculations ;-)

MaxKeepAliveRequests is something completely unrelated, as far as it is
not below the average number of components (images, ...) of your pages.
It's the max number of requests an Apache process will serve to you
before closing the HTTP connection. My advice: Don't play too much with
it, unless you have very high loads and really need to.  ;-)

netstat -n --tcp | grep SYN_RECV
on tomcat side while you are having the performance problems / apparent
hangs.

If there are more than 3 connections in that state, you may be suffering
from lack of processors.
Try raising maxProcessors to 150 if it is the case. (Or lowering
MaxClients to 75 if your load is very light)

Tip: Have you got a stateful inspection firewall in the middle? If so,
raising maxProcessors may not be enough. Tell me and I'll explain more.



Antonio Fiol






L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.

printStackTrace throwing java.lang.StackOverflowError

2004-02-19 Thread Unnikrishnan C








Hi,



Im using Apache Tomcat 5.0.18,
Im getting a java.lang.StackOverflowError while trying to do a printStackTrace for an Exception (java.lang.Exception). 



The code is working fine when it is running on IBM Websphere
Application Server 4.0, but fails when I put it in Tomcat.



The stack trace is attached



java.lang.StackOverflowError

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)

 at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

 at
java.lang.Throwable.printStackTrace(Throwable.java:451)



Thanks,



Unnikrishnan












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

RE: printStackTrace throwing java.lang.StackOverflowError

2004-02-19 Thread Peter Guyatt
Hi There,

It looks like an exeception to do with either a recursive method call or a
problem with inheritenance.

HTH

Pete
  -Original Message-
  From: Unnikrishnan C [mailto:[EMAIL PROTECTED]
  Sent: 19 February 2004 08:22
  To: [EMAIL PROTECTED]
  Subject: printStackTrace throwing java.lang.StackOverflowError


  Hi,



  I'm using Apache Tomcat 5.0.18, I'm getting  a 
java.lang.StackOverflowError while trying to do a printStackTrace for an
Exception (java.lang.Exception).



  The code is working fine when it is running on IBM Websphere Application
Server 4.0, but fails when I put it in Tomcat.



  The stack trace is attached



  java.lang.StackOverflowError

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)

  at
com.info.aa.exception.HipaaException.printStackTrace(HipaaException.java:77)

  at java.lang.Throwable.printStackTrace(Throwable.java:451)



  Thanks,



  Unnikrishnan








JDK Versions

2004-02-19 Thread Stephan Melchior
Wich Version JDK must be installed to run Tomcat 5.0.18.
Does Tomcat 5.0.18 run with JDK 1.3?
Greetings
 Stephan Melchior
Es wird immer weitergehen, 
	Musik als Träger von Ideen!



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


security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Mariano
Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


RE: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Juan de Bravo
The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


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



RE: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Mariano
ok, then, How can i force tomcat using hppts with some jsp pages?

Thanks

Mariano López

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:17
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


-
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: Stopping repeating requests

2004-02-19 Thread Peter Guyatt
Hi All,

Thanks for the replys.

The form is processed by my servlet and the user is directed to another page
(in this case a summary list of all of the data that they have entered).

The problem occurrs when they hit refresh on this summary page and the last
action was to add a new entry to there database, it looks like it is because
the URL still has the last request in it.

Is there any way of clearing this URL other than useing window.location.href
?

The unique token sounds like a good idea.

Thanks

Pete

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 18:14
To: Tomcat Users List
Subject: Re: Stopping repeating requests



Phil,

True. I should have not said all client side. How about client side
validation?

Point being as weather to handle it more from the client or server. All
depends on application.

Doug


 Hi!

 Parsons Technical Services wrote:
  The
  better way is to clear the form or send them to another page. That's all
  client side.

 Not necessarily. What I do in such situations is this: have a servlet
 process the form data and then send something else (e.g. an update
 successfull-page) as response via sendRedirect(). This way, the user
 _has_ to at least push the back button. If you then add headers to
 prevent the page containing the form from being cached, even that
 would give the user a plain empty form all over again.

 Phil


 -
 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: JDK Versions

2004-02-19 Thread Harry Mantheakis
It might run on 1.3, but why not go for 1.4.2?

 Wich Version JDK must be installed to run Tomcat 5.0.18.
 Does Tomcat 5.0.18 run with JDK 1.3?
 
 Greetings
 Stephan Melchior
 
 Es wird immer weitergehen,
 Musik als Träger von Ideen!
 
 
 
 -
 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: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Juan de Bravo

Try this in your WEB-INF\web.xml application file

security-constraint
web-resource-collection
web-resource-nameHTMLManger and Manager command/web-resource-name
url-pattern/*.jsp/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

You must not fill in auth-constraint and use CONFIDENTIAL in
transport-guarantee, so it should be used HTTPS
to cipher data communications.

Hope it works!!!

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:23
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


ok, then, How can i force tomcat using hppts with some jsp pages?

Thanks

Mariano López

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:17
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


-
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: no ojdbc14 in java.library.path, Help I'm stuck trying to write this servlet!

2004-02-19 Thread Harry Mantheakis
I had this problem, and got it work by having the ojdbc14.jar in the
'$CATALINA_HOME/common/lib' directory ONLY.

If I kept a copy of ojdbc14.jar in my application's 'WEB-INF/lib' directory,
the thing just did not work.

Strange. I cannot explain it!

Harry Mantheakis
London, UK

 Hey All.
 
 I've been trying to write a servlet that uses a jdbc driver to connect
 to a remote Oracle server.  I've manage to compile my own standalone app
 to connect to the DB.  I included the ojdbc14.jar in my classpath and
 everything seemed to work fine.  I can't seem to get the same code to
 work in a servlet with tomcat 5, and I'm pretty sure it's because tomcat
 does not know where ojdbc14.jar is.  I've put it in server/lib and /bin
 and common/lib, but to no avail.  Using the web tool, I've added the
 ojdbc14.jar file with multiple paths and i've still got nothing.  Any
 help would be appreciates.
 
 I'm running this on Linux with tomcat 5, Oracle 9i and apache 1.3.29.
 
 Regards,
 Jeremie


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



Tomcat 4.1.29v5.0.18 performance

2004-02-19 Thread Pete Stokes
I've just got my app load balanced between Apache 1.3  2xTomcat 4.1.29, 
JK, SunJDK1.4.2, all seperate boxes. I have set heap site (JVM settings) 
same as my Tomcat 5.0.18, and guessed minProcessors=100 and 
maxProcessors=300 for server.xml's - config different to 5.0.18.

It's appears about 3x as slow as a single 5.0.18.

I have three questions re this:

1) Has any1 experienced this and found a solution?
2) If I can't get T4.1.29 up2speed, and want to loadbalance with T5.0.18 
/ Apache 2, do people actually use this in production without any major 
issues?
3) If I go point 2, then the only way I've found to provide loadbalancer 
redundancy for those versions is LinuxVirtualServer. Is that correct?

Any comments would be appreciated.

Pete.

***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


undeploy, redeploy

2004-02-19 Thread Vano Beridze
Hello

I've got tomcat 4.1.29

Is it possible to undeploy or redeploy the application isntalled from 
the war
file without using manager application and without restarting tomcat?

I know that it is possible to hotdeploy but what about undeploy or redeploy?

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


RE: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Mariano
It doesn't work, i can acces this pages using http and i like to force
access https for this pages.

Thanks

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:41
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?



Try this in your WEB-INF\web.xml application file

security-constraint
web-resource-collection
web-resource-nameHTMLManger and Manager command/web-resource-name
url-pattern/*.jsp/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

You must not fill in auth-constraint and use CONFIDENTIAL in
transport-guarantee, so it should be used HTTPS
to cipher data communications.

Hope it works!!!

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:23
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


ok, then, How can i force tomcat using hppts with some jsp pages?

Thanks

Mariano López

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:17
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


-
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: Tomcat 4.1.29v5.0.18 performance

2004-02-19 Thread Remy Maucherat
Pete Stokes wrote:
I've just got my app load balanced between Apache 1.3  2xTomcat 4.1.29, 
JK, SunJDK1.4.2, all seperate boxes. I have set heap site (JVM settings) 
same as my Tomcat 5.0.18, and guessed minProcessors=100 and 
maxProcessors=300 for server.xml's - config different to 5.0.18.

It's appears about 3x as slow as a single 5.0.18.

I have three questions re this:

1) Has any1 experienced this and found a solution?
2) If I can't get T4.1.29 up2speed, and want to loadbalance with T5.0.18 
/ Apache 2, do people actually use this in production without any major 
issues?
3) If I go point 2, then the only way I've found to provide loadbalancer 
redundancy for those versions is LinuxVirtualServer. Is that correct?

Any comments would be appreciated.
If you're comparing with 5.0.18 with the HTTP connector, I'd like to 
point out that the HTTP connector has a higher max throughtput than 
using AJP with a native webserver (esp if TC and the native webserver 
are running on the same server).
If you want to compare the two releases, you should probably be using 
the same configurations ;)

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


A problem and some questions

2004-02-19 Thread Dale, Matt
Hi,

The problem is we need to deploy an application to 3-400 users. Currently the 
application is being used by significantly less users on a reasonably beefy machine 
but that machine is really the server for something else so we'd like to get tomcat 
off of it.

Our plan is to use several single processor machines but the question would be how the 
users would access these. So my questions are below.

Obviously clustering the tomcats would be a good option, my one question on this would 
be, do the sessions have to be fully serializable to be shared across the tomcat 
instances?

Another option would be to load balance using either the built in tomcat load balancer 
or the JK2 connector. My question here would be, is either of these stateful, ie do 
they keep track of which tomcat a particular user is using.

Also pros and cons of either of these methods would be appreciated.

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


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

Touble with context container

2004-02-19 Thread Didier Croutz

Hello,

I've
installed Tomcat 5.014 on a Windows 2K workstation into the default
directory (C:\Program Files\Tomcat 5.0). I've kept the
default settings (e.g. port 8080, admin.xml, server.xml ). I stored
my applications on a network drive (H:) into a directory
named Tomcat.

I've just
modified server.xml file a little bit (path : C:\Program Files\Tomcat
5.0\conf) adding Context
path=/Tomcat docBase=H:/Tomcat
debug=0 line (server.xml joined to this mail).

My
testing application is into H:\Tomcat directory
(departement.class and recherchDep.html files joined to this mail). I
fill the address field of my web browser (internet explorer
6.0.2800.1106) with:
htpp://localhost:8080/Tomcat/recherchDep.html. I can
reach the html page but when I tried to launch departement
script I get a 404 message into my browser saying that it can reach
departement resource.

Could you
please help me ?

Thanks,
Regards.





server.xml
Description: application/xml
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Juan de Bravo
Hi Mariano,

I 've proved this configuration in Tomcat 4.1.29 an it works.

When I try to get my URI http://localhost:8080/chart/index.jsp I get

redirect to https://localhost:8443/chart/index.jsp. I can see that in my
browser.

Have you configured your HTTP1.1 connector to redirect to HTTPS connector
(port 8443 in my configuratio) the SSL request?

Something like that:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 11:31
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


It doesn't work, i can acces this pages using http and i like to force
access https for this pages.

Thanks

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:41
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?



Try this in your WEB-INF\web.xml application file

security-constraint
web-resource-collection
web-resource-nameHTMLManger and Manager command/web-resource-name
url-pattern/*.jsp/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

You must not fill in auth-constraint and use CONFIDENTIAL in
transport-guarantee, so it should be used HTTPS
to cipher data communications.

Hope it works!!!

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:23
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


ok, then, How can i force tomcat using hppts with some jsp pages?

Thanks

Mariano López

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:17
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


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


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



RE: security-constraint not work in Tomcat 5.0.18 ?

2004-02-19 Thread Mariano
Yes, my configuration is:

Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   URIEncoding=UTF-8
   disableUploadTimeout=true /

Could it be a tomcat bug in 5.0.18 ?

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 11:40
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


Hi Mariano,

I 've proved this configuration in Tomcat 4.1.29 an it works.

When I try to get my URI http://localhost:8080/chart/index.jsp I get

redirect to https://localhost:8443/chart/index.jsp. I can see that in my
browser.

Have you configured your HTTP1.1 connector to redirect to HTTPS connector
(port 8443 in my configuratio) the SSL request?

Something like that:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 11:31
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


It doesn't work, i can acces this pages using http and i like to force
access https for this pages.

Thanks

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:41
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?



Try this in your WEB-INF\web.xml application file

security-constraint
web-resource-collection
web-resource-nameHTMLManger and Manager command/web-resource-name
url-pattern/*.jsp/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

You must not fill in auth-constraint and use CONFIDENTIAL in
transport-guarantee, so it should be used HTTPS
to cipher data communications.

Hope it works!!!

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:23
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


ok, then, How can i force tomcat using hppts with some jsp pages?

Thanks

Mariano López

-Mensaje original-
De: Juan de Bravo [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:17
Para: 'Tomcat Users List'
Asunto: RE: security-constraint not work in Tomcat 5.0.18 ?


The tag security-constraint is related with Realm authenticator, not
with SSL security.

Juan.

-Mensaje original-
De: Mariano [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 10:11
Para: [EMAIL PROTECTED]
Asunto: security-constraint not work in Tomcat 5.0.18 ?


Hi all, i am working with tomcat 5.0.18, j2sdk 1.4.2_03 and Win 2000
Professional.

I like to force tomcat work with some pages with htpps, for those tomcat
is
configurated conf/web.xml with:

Connector port=8443
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=TLS
keystoreFile=
keystorePass=--- /

When I access a jsp page manually with
https://localhost:8443/
works fine.

And my META-INF/web.xml of my application with:

security-constraint
web-resource-collection
web-resource-namesescam/web-resource-name
url-pattern/sescam/Comun/LoginUsuario.jsp/url-pattern
/web-resource-collection
user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

I think that this security constraint force tomcat to use https even if
I
acces to page with http://localhost:8080/sescam/Comun/LoginUsuario.jsp,
redirecting automatically to
https://localhost:8443/sescam/Comun/LoginUsuario.jsp, but it doesn't
work
and i can view without problems the page on non https connection.

What is wrong?

Thanks.

Mariano López


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



NT service shutdown (w2k 5.0.18)

2004-02-19 Thread Christopher Watson
Can anyone help?

I'm running 5.0.18 under w2k
If I go to the services gui and stop the 'apache tomcat' service it does
so but takes always approx 1 minute to do so.
From the command line if I do 
net stop tomcat5

it says 

The Apache Tomcat service is stopping.
The Apache Tomcat service could not be stopped.

but does stop it, again after approx 1 minute

Is there a way to force shutdown immediately.

I'd like for the batch file to wait until is has actually stopped.

Any help greatly appreciated

Thanks,

Christopher



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



Re: Tomcat 4.1.29v5.0.18 performance

2004-02-19 Thread Pete Stokes
Remy,

With just 1 user, it appears 3x as slow. I understand the max throughput 
will be better, but did not expect this performance degredation with 
just 1 user, I'd assumed slight degredation overall and a lower max users.

Don't suppose you could answer my questions 2  3 ?

Thanks,
Pete.


Remy Maucherat wrote:

Pete Stokes wrote:

I've just got my app load balanced between Apache 1.3  2xTomcat 
4.1.29, JK, SunJDK1.4.2, all seperate boxes. I have set heap site (JVM 
settings) same as my Tomcat 5.0.18, and guessed minProcessors=100 and 
maxProcessors=300 for server.xml's - config different to 5.0.18.

It's appears about 3x as slow as a single 5.0.18.

I have three questions re this:

1) Has any1 experienced this and found a solution?
2) If I can't get T4.1.29 up2speed, and want to loadbalance with 
T5.0.18 / Apache 2, do people actually use this in production without 
any major issues?
3) If I go point 2, then the only way I've found to provide apache
loadbalancer redundancy for those versions is LinuxVirtualServer. Is 
that correct?

Any comments would be appreciated.


If you're comparing with 5.0.18 with the HTTP connector, I'd like to 
point out that the HTTP connector has a higher max throughtput than 
using AJP with a native webserver (esp if TC and the native webserver 
are running on the same server).
If you want to compare the two releases, you should probably be using 
the same configurations ;)



***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


Re: Stopping repeating requests

2004-02-19 Thread Srinivas Kondapalli
Another solution is to have a hidden field in the form which uniquely 
identifies the form
submission request. When the form is submitted to the server, the server 
side code can
process the request and maintain a list of processed form request 
identifiers for this client
session. When the form is resubmitted the second time via  refresh 
button, F5 etc,  the server
side code can easily identify that it is a resubmitted request as the 
form request identifier
would be part of the processed list. It can then handle the case as it 
deems effective.

Regards,
Srini
Therefore, when the user refreshes the page,the code procss

-Original Message-
From: Peter Guyatt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 18 February 2004 10:48 PM
To: Tomcat Users List
Subject: Stopping repeating requests

Hi,

I have a problem where a user enters data into a form and then
submits this
to the server, which in turn wrights this content into a database.
The problem I have is that if the user then refreshes the page via F5
then
it adds the same data in again.
Is there any way to ensure that this does not occur.

Any help would be greatly appreciated.

Thanks

Pete

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


Filter mapping problem under Solaris 9

2004-02-19 Thread Boland, Dave
Hello All,

Apologies if this has been brought up already, but I have a slightly odd
problem with filter-mapping in Tomcat 4.1.x ( I've tried under 4.1.24 and
4.1.29 ), which works fine under Windows 2K. I am using j2se 1.4.1_03 and
have tried j2se1.4.2_03 ( with 64 bit extension ) with j2ee 1.3.1 running
under a vanilla Solaris 9 instance on a Sun Netra T1. I can replicate the
problem with a clean install of all products and the only thing that I
haven't been able to change is the OS.

The problem concerns getting parameters from the request object after a
filter has been applied. Under Win2K it is possible to specify a URL mapping
of '/main.jsp' for example so that only certain files have filters applied (
I am using the jCIFs to authenticate certain files, but I have proved the
problem with custom/dummy classes ).

The problem occurs in Solaris when a filter mapping is specified and the url
does not fit the pattern. Under these circumstaces, I am then unable to get
the information from the request object if the parameters are passed by a
form. Parameters enbedded in the URL are fine, but form params are not
available ( not sure of the state of the request object as a whole - when I
have some spare time !! I'll check ). 

Most people / examples that I have come across when googling use a
url-pattern of /* and this is fine as everything is pattern matched ok. And
as I said, under Windows, there is no problem in specifiying specific urls /
patterns for it to match, just Solaris is the problem ( I'm trying to
scrounge a Linux box to try, but that is just problem narrowing as we don't
have any Linux webservers... )

Cheers

Dave




The contents of this email and any attachments are sent for the personal attention
of the addressee(s) only and may be confidential.  If you are not the intended
addressee, any use, disclosure or copying of this email and any attachments is
unauthorised - please notify the sender by return and delete the message.  Any
representations or commitments expressed in this email are subject to contract. 
 
ntl Group Limited


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



RE: Tomcat silent freeze

2004-02-19 Thread Nicolas Orbes
Thank you Euan, we tried this solution one month ago without any
results... maybe we misunderstood the indications... let us try again
this idea and we will post back the results...

We found some code to verify what kind of threading our code is going to
use in the following page:
http://www.talkaboutprogramming.com/group/comp.programming.threads/messages/39652.html
I hope this would be helpfull for someone else...

Thank you again...
Nicolas Orbes
[EMAIL PROTECTED]

On Wed, 2004-02-18 at 18:43, Euan Guttridge wrote:
 Hi,
 
 Sounds like bug with NTPL in RH9, see this thread
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg106581.html.
 
 
 Thanks 
 Euan
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: 17 February 2004 20:01
 To: [EMAIL PROTECTED]
 Subject: Tomcat silent freeze
 
 
 Hello people, we have Tomcat 4.1.24 installed on a Red Hat 9.0 box with
 the followings charateristics:
 CPU: AMD Duron 800Mhz.
 RAM: 512Mb
 
 We have 3 WARs installed on this machine running apparently well, but after
 some time (apparently random), application server silently stops responding
 (doesn't send page to client broswer), but the tcp port (80) is still open
 in LISTEN status and owned by the tomcat system process. Tomcat continues
 running and no error messages appear in Tomcat nor system logs.
 
 The client remains waiting until browser timeout is reached.
 
 Any ideas?
 
 Plese let me know if you need further information...
 
 Thanks in advance,
 Nicolas Orbes
 [EMAIL PROTECTED]
 
 TLG - NOrbes
 (598 2) 628 84 09
 Banderas en tu corazn, yo quiero verlas! ondeando, luzca el sol o no...
 
 
 -
 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: Filter mapping problem under Solaris 9

2004-02-19 Thread Shapira, Yoav

Howdy,
Hmm, strange ;(.  Are these parameters/your form using standard encoding
or a different charset?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Boland, Dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 7:15 AM
To: '[EMAIL PROTECTED]'
Subject: Filter mapping problem under Solaris 9

Hello All,

Apologies if this has been brought up already, but I have a slightly
odd
problem with filter-mapping in Tomcat 4.1.x ( I've tried under 4.1.24
and
4.1.29 ), which works fine under Windows 2K. I am using j2se 1.4.1_03
and
have tried j2se1.4.2_03 ( with 64 bit extension ) with j2ee 1.3.1
running
under a vanilla Solaris 9 instance on a Sun Netra T1. I can replicate
the
problem with a clean install of all products and the only thing that I
haven't been able to change is the OS.

The problem concerns getting parameters from the request object after a
filter has been applied. Under Win2K it is possible to specify a URL
mapping
of '/main.jsp' for example so that only certain files have filters
applied
(
I am using the jCIFs to authenticate certain files, but I have proved
the
problem with custom/dummy classes ).

The problem occurs in Solaris when a filter mapping is specified and
the
url
does not fit the pattern. Under these circumstaces, I am then unable to
get
the information from the request object if the parameters are passed by
a
form. Parameters enbedded in the URL are fine, but form params are not
available ( not sure of the state of the request object as a whole -
when I
have some spare time !! I'll check ).

Most people / examples that I have come across when googling use a
url-pattern of /* and this is fine as everything is pattern matched ok.
And
as I said, under Windows, there is no problem in specifiying specific
urls
/
patterns for it to match, just Solaris is the problem ( I'm trying
to
scrounge a Linux box to try, but that is just problem narrowing as we
don't
have any Linux webservers... )

Cheers

Dave




The contents of this email and any attachments are sent for the
personal
attention
of the addressee(s) only and may be confidential.  If you are not the
intended
addressee, any use, disclosure or copying of this email and any
attachments
is
unauthorised - please notify the sender by return and delete the
message.
Any
representations or commitments expressed in this email are subject to
contract.

ntl Group Limited


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




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


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



startup dosent work anymore since updated on xp!

2004-02-19 Thread FRANCOIS Dufour
hi to all
sombody could help mee whit that?
i cant use the startup.bat since updated is there a way to fix that
even after reinstalling it?
ive maded myself shortcut to start it by there and to shut it down by 
shutdown.bat
dosent work anymore
is it a bug?
but the shortcut from program files still work seem strange!

thanks for your precious time

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
_
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.ca/

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


lb worker issue

2004-02-19 Thread Pete Stokes
Hi.

I've got load balancing working with Tomcat 5 (Apache 1.3x), but when I 
set the lbfactor to 100 for both Tomcat workers, I get all requests to 
the first defined worker.

If I up the lbfactor of the second box, everything goes to that box.

Whilst using the same apache with Tomcat 4, I had it distributing load, 
but it's seems to have stopped unless it will do the first x sessions to 
one box then swap to the other.

Pete.

***
This email and any files transmitted with it are confidential and intended solely for 
the use of the individual or entity to whom they are addressed. If you have received 
this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for 
the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com

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


RE: Reading war file name from servlet?

2004-02-19 Thread Shapira, Yoav

Howdy,
You can't.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Erlandsson Martin [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 1:58 AM
To: Tomcat Users List
Subject: Reading war file name from servlet?


Hi list.

I have a bunch of similar servlets for which I would like to set up
configuration directories. These paths should ideally be based on the names
of the different war files.

How can I retreive the war file name or the context path (or docBase) of a
servlet from _within_ that servlet?


Thanks,

/Martin



Á

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




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


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



RE: tomcat5.0 or 4.1

2004-02-19 Thread Shapira, Yoav

Howdy,

I am new to Tomcat and Java and I am trying to decide whether to use
4.1
or 5.0.
I have the enterprise version of Jbuilder which doesn't support 5.0
yet.
What advantages would there be for me to go with 5.0 over 4.1?

If I do 4.1 how hard would it be to migrate in 6-10 months
After Jbuilder updates?

What IDEs do you guys use?

In reverse order:
IDE: people use many different ones ;)  I still like emacs, and I
occasionally use Eclipse, but I wouldn't pay for an IDE ;)

Upgrade difficulty: depends on how compliant your app is with the
servlet specification.  This is true for all containers.  The more
compliant you are, the easier your upgrade path.  In general if you use
a version of tomcat after 4.1.18 (when the invoker servlet became
commented out), you should not have a hard time upgrading.

Advantages: 5.x is faster, more reliable, has more features, and is
being actively developed.

Yoav Shapira



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


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



RE: tomcat5.0 or 4.1

2004-02-19 Thread Jason Tesser

Hi

 Howdy,
 
 I am new to Tomcat and Java and I am trying to decide whether to use
 4.1
 or 5.0.
 I have the enterprise version of Jbuilder which doesn't support 5.0
 yet.
 What advantages would there be for me to go with 5.0 over 4.1?
 
 If I do 4.1 how hard would it be to migrate in 6-10 months
 After Jbuilder updates?
 
 What IDEs do you guys use?
 
 In reverse order:
 IDE: people use many different ones ;)  I still like emacs, and I
 occasionally use Eclipse, but I wouldn't pay for an IDE ;)

Does anyone use Jbuilder that could give me some guidance here?
I am working on mid sized enterprise stuff.  We have a small staff
So anything we can use to aid in development is huge.

 Upgrade difficulty: depends on how compliant your app is with the
 servlet specification.  This is true for all containers.  The more
 compliant you are, the easier your upgrade path.  In general if you
use
 a version of tomcat after 4.1.18 (when the invoker servlet became
 commented out), you should not have a hard time upgrading.

How many differences exist between JSP2.0 and 1.3 or 1.4 or how
About servlet 1.3 to 1.4 spec?  Will this cause me troubles 
Upgrading?
  
 Advantages: 5.x is faster, more reliable, has more features, and is
 being actively developed.
 
 Yoav Shapira


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



RE: tomcat5.0 or 4.1

2004-02-19 Thread Shapira, Yoav

Howdy,

How many differences exist between JSP2.0 and 1.3 or 1.4 or how
About servlet 1.3 to 1.4 spec?  Will this cause me troubles
Upgrading?

The JSP spec went from version 1.2 to 2.0, and has many enhancements.
It's has a new expression languages as a mandatory part of the spec, for
example.

The Servlet spec went from version 2.3 to version 2.4, and has fewer
changes.  There are a couple of new listeners, the web.xml went from a
DTD to a schema (so the order of elements in the web.xml file is not as
critical), you can have a servlet welcome file, and there have been
behavioral clarifications regarding some lifecycle and mapping events.

For the specs, as always, maximum effort is made at backwards
compatibility.

Tomcat, in going from version 4.x to 5.x, had many internal changes
aimed at better performance and reliability.  These include the HTTP
processing pipeline, the request mapping mechanism, handling of welcome
files, and many configuration differences.

For someone who never used tomcat before, there's no problem just
starting with tomcat 5.  If you used tomcat 4 and relied on TC4-specific
behavior, your upgrade path will be more difficult.  So stick to the
servlet specification and avoid common pitfalls, such as getRealPath()
and absolute links, and you'll be fine.

Yoav Shapira



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


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



Mapping URLs to directories outside of a webapp.

2004-02-19 Thread Ben Souther
Is it possible to map a URL to a directory outside of a webapps's context?

Our app has one directory that our customers use to store and display their 
own static webpages.  It would be useful to us to be able to keep that 
directory outside of the webapp's dir structure.  Sort of a 'virtual 
directory'  within a webapp.

This would allow users to upgrade our app by simply deleting the exiting war 
and redeploying with the newer version. They wouldn't have to worry about 
mobving thier pages out and then back in after the re-deploy.

We have customers running both *nix and windows so we can't rely on symlinks 
for this.

Thank you
-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: Mapping URLs to directories outside of a webapp.

2004-02-19 Thread rsequeira

If you are using Apache, you could use the Alias directive.

RS


   

  Ben Souther  

  [EMAIL PROTECTED]To:   Tomcat Users List  
 
  om   [EMAIL PROTECTED]
   
   cc: 

  02/19/2004 09:09 Subject:  Mapping URLs to directories 
outside of a webapp.  
  AM   

  Please respond to

  Tomcat Users

  List

   

   





Is it possible to map a URL to a directory outside of a webapps's context?

Our app has one directory that our customers use to store and display their

own static webpages.  It would be useful to us to be able to keep that
directory outside of the webapp's dir structure.  Sort of a 'virtual
directory'  within a webapp.

This would allow users to upgrade our app by simply deleting the exiting
war
and redeploying with the newer version. They wouldn't have to worry about
mobving thier pages out and then back in after the re-deploy.

We have customers running both *nix and windows so we can't rely on
symlinks
for this.

Thank you
--
Ben Souther
F.W. Davison  Company, Inc.



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






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



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



Re: Mapping URLs to directories outside of a webapp.

2004-02-19 Thread Ben Souther
We're using tomcat as a standalone.
Thank you though.


On Thursday 19 February 2004 10:19 am, [EMAIL PROTECTED] wrote:
 If you are using Apache, you could use the Alias directive.

 RS



   Ben Souther
   [EMAIL PROTECTED]To:   Tomcat Users
 List om   [EMAIL PROTECTED] cc:
   02/19/2004 09:09 Subject:  Mapping URLs to
 directories outside of a webapp. AM
   Please respond to
   Tomcat Users
   List






 Is it possible to map a URL to a directory outside of a webapps's context?

 Our app has one directory that our customers use to store and display their

 own static webpages.  It would be useful to us to be able to keep that
 directory outside of the webapp's dir structure.  Sort of a 'virtual
 directory'  within a webapp.

 This would allow users to upgrade our app by simply deleting the exiting
 war
 and redeploying with the newer version. They wouldn't have to worry about
 mobving thier pages out and then back in after the re-deploy.

 We have customers running both *nix and windows so we can't rely on
 symlinks
 for this.

 Thank you

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: Can I chain authenticators?

2004-02-19 Thread Ryan Rhodes
From: Nikola Milutinovic [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Can I chain authenticators?
Date: Wed, 18 Feb 2004 12:38:13 +0100
Ryan Rhodes wrote:

I have a portal project.  I need to allow users to navigate seamlessly 
from the portal to a commercial product that’s based on Tomcat 4.1 and 
uses Basic Authentication.  To get around this, I hacked 
BasicAuthenticator and added some code to get the credentials from the 
request body:

   if( hreq.getMethod().toUpperCase().equals(POST) 
   hreq.getParameter(username) != null 
   hreq.getParameter(password) != null ) {
   username = hreq.getParameter(username);
   password = hreq.getParameter(password);
   principal = 
context.getRealm().authenticate(username,password);
   if (principal != null) {
   register(request, response, principal, 
Constants.BASIC_METHOD,
username, password);
   return (true);
   }
   }
Why is this any better than Basic Authentication? If every request has to 
be acompanied by user/pass in request, it can also be done via regular HTTP 
headers. You are not gaining any additional security this way. As for 
portals, the most important thing about them is not authentication (it is 
left to the web server; be it Tomcat or Apache), but authorization and 
presentation.

Authenticationg is easy, you can choose:

 - HTTP Basic (totally unsafe, but if going over SSL it doesn't matter)
 - HTTP Digest (there were client problems in the past)
 - HTTP SPNEGO (Microsoft's implementation of GSS-API/Kerberos5 over HTTP)
Basic works with all browsers, but is unsecure, unless ran over HTTPS. 
Digest had problems on the client side in the past and I don't know which 
clients support it reliably. SPNEGO is great if you have Kerberos framework 
in place (MIT or Heimdal on UNIX or Active Directory on Win2k/2003/XP). 
Also only Mozilla 1.5/1.6 and IE6 support it on the client side. On the 
server side, you need either IIS or Apache + mod_spnego/mod_gssapi as 
front-end. Coyote connector doesn't have that feature yet.
Let me explain my situation a little more clearly.  I don't have a lot of 
control over the commercial product that I'm integrating with.  It has it's 
own access control system, and it uses Basic Auth.  Thats just what I have 
to work with.  I'm not doing this to improve security.  For one thing, this 
is just a prototype.  If it were rolled out company-wide or for internet use 
then we would probably move to a centralized SSO solution.  I just need to 
allow users to click hyperlinks from the portal that pass the user through 
to the commercial product without the Basic auth popup.  I don't want to 
augment the commercial product with my own authorization system.  I just 
want a valve to transfer the credentials from the body of a POST request to 
the HTTP headers the commercial product expects.  The commercial product is 
based on Tomcat... so I can add valves if I need to, but I can't replace 
it's internal authentication because then I would lose it's authorization.


I read in the lists somewhere that if I add a custom Authenticator it will 
disable the Basic Authenticator.  Can I separate this code out and chain 
the Authenticators together?  What level should I configure the Valve at 
for the Authenticator?
Why would you chain authenticators?

Authentication is a go/no-go module. It either succeeds or fails. There is 
no second try or auxiliary machanism. What would you do if the client 
supplies both your custom user/pass and HTTP Basic user/pass (not 
unthinkable)?

Save yourself a maintainance nightmare and think your security model 
throughly, then implement what you feel is right for you.

Nixie.
You can call it chaining if you want, or you can call it a valve that preps 
things for the real authenticator.  If the user presents credentials as a 
POST I take the post credentials.  If they present Basic Auth creds I take 
those.  Simple as that.  I'm not sure I understand the go/no-go concept for 
Authenticators.  With JAAS you can stack as many modules as you want.  Any 
one of them could be sufficient or required.

Ryan

_
Store more e-mails with MSN Hotmail Extra Storage – 4 plans to choose from! 
http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/

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


multiple patterns in ExtendedAccessLogValve

2004-02-19 Thread Albrecht Berger
Hello,

is it possible to define multiple patterns
in ExtendedAccessLogValve or JDBCAccessLogValve,
e.g. for for use pattern1 when url is matching url1,...
For example :

url index.jsp?p1=v1p2=v2
The params p1 and p2 should be logged.
url show.jsp?p5=v5p6=v6
The params p5 and p6 should be logged.
I want to log to JDBCDatasource, so that I can
run statistic queries on my table.
Thx
berger
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: multiple patterns in ExtendedAccessLogValve

2004-02-19 Thread Shapira, Yoav

Howdy,

is it possible to define multiple patterns
in ExtendedAccessLogValve or JDBCAccessLogValve,
e.g. for for use pattern1 when url is matching url1,...

Not current.  Feel free to contribute a patch.  It might be easier in
your case to enable and customize the RequestDumperValve.

Yoav Shapira



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


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



Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
QM wrote:
: Hello,
: I want a servlet to run its init() method when I start Tomcat.  I put 
: the following entry in web.xml but that doesn't do it:
: [snip]

Please, humour me: put load-on-startup after init-param. I believe
that's the order per the servlet spec.
Humour me, part 2: verify the method signature of your servlet's init().
A small typo makes the difference between overload and override...
Other than that, some details would be nice: Tomcat version, log
messages, what have you...
On an unrelated note: is there any reason you're using load-on-startup
instead of lifecycle listeners?
-QM


QM/Liem
 thanks for your response.  I place load-on-startup entry after 
init-param entry but still doesn't fire init() method of my servlet at 
startup.

I'm using Tomcat 4.0.6, and don't know anything about listeners. Below 
is my init() method and my Tomcat startup log:

public void init(ServletConfig cf) throws ServletException {
try { System.out.println(begin PgConnectionPoolServlet init());
pool = new PgConnectionPool(org.postgresql.Driver,
jdbc:postgresql://localhost/hardwoodthunder, pcampaigne, 
, 4);
} catch (Exception e)
{
throw new UnavailableException(Couldn't create connection pool);
}System.out.println(pool created);
}
}
***

Starting service Tomcat-Standalone
Apache Tomcat/4.0.6
XmlMapper: Debug level: 3
XmlMapper: Validating = true
XmlMapper: Set locator : 
[EMAIL PROTECTED]
Resolve: -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 
http://java.sun.com/dtd/web-app_2_3.dtd
  Using alternate DTD /javax/servlet/resources/web-app_2_3.dtd
XmlMapper: org.apache.catalina.core.StandardContext.setPublicId(-//Sun 
Microsystems, Inc.//DTD Web Application 2.3//EN)
XmlMapper: new org.apache.catalina.core.StandardWrapper
XmlMapper: org.apache.catalina.core.StandardWrapper.setName( default)
XmlMapper: org.apache.catalina.core.StandardWrapper.setServletClass( 
org.apache.catalina.servlets.DefaultServlet)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
debug, 0)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
listings, true)
XmlMapper: 
org.apache.catalina.core.StandardWrapper.setLoadOnStartupString( 1)
XmlMapper: Calling org.apache.catalina.core.StandardContext.addChild 
StandardWrapper[default]
XmlMapper: pop org.apache.catalina.core.StandardWrapper
XmlMapper: new org.apache.catalina.core.StandardWrapper
XmlMapper: org.apache.catalina.core.StandardWrapper.setName( invoker)
XmlMapper: org.apache.catalina.core.StandardWrapper.setServletClass( 
org.apache.catalina.servlets.InvokerServlet)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
debug, 0)
XmlMapper: 
org.apache.catalina.core.StandardWrapper.setLoadOnStartupString( 2)
XmlMapper: Calling org.apache.catalina.core.StandardContext.addChild 
StandardWrapper[invoker]
XmlMapper: pop org.apache.catalina.core.StandardWrapper
XmlMapper: new org.apache.catalina.core.StandardWrapper
XmlMapper: org.apache.catalina.core.StandardWrapper.setName( jsp)
XmlMapper: org.apache.catalina.core.StandardWrapper.setServletClass( 
org.apache.jasper.servlet.JspServlet)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
mappedfile, true)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
classdebuginfo, true)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
scratchdir, 
/home/phil/system/tomcat_ReportingSystem_d2cdd3bd/work/_scratchdir)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
keepgenerated, true)
XmlMapper: org.apache.catalina.core.StandardWrapper.addInitParameter( 
logVerbosityLevel, WARNING)
XmlMapper: 
org.apache.catalina.core.StandardWrapper.setLoadOnStartupString( 3)
XmlMapper: Calling org.apache.catalina.core.StandardContext.addChild 
StandardWrapper[jsp]
XmlMapper: pop org.apache.catalina.core.StandardWrapper
XmlMapper: org.apache.catalina.core.StandardContext.addServletMapping( 
/, default)
XmlMapper: org.apache.catalina.core.StandardContext.addServletMapping( 
/servlet/*, invoker)
XmlMapper: org.apache.catalina.core.StandardContext.addServletMapping( 
*.jsp, jsp)
XmlMapper: org.apache.catalina.core.StandardContext.setSessionTimeout( 30)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( abs, 
audio/x-mpeg)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( ai, 
application/postscript)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( aif, 
audio/x-aiff)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( 
aifc, audio/x-aiff)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( 
aiff, audio/x-aiff)
XmlMapper: org.apache.catalina.core.StandardContext.addMimeMapping( aim, 
application/x-aim)
XmlMapper: 

MIME type

2004-02-19 Thread Jaster, Bob
I would like to configure Tomcat to return a specific MIME type for all
files that end with a JNLP extension.  Could anyone tell me how to do this?

Bob Jaster 

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



Tomcat 5.x setup question

2004-02-19 Thread Ryan Daly
Hey all,

I'm trying to get Tomcat 5.x going on a Red Hat 9 system.

I noticed that there's a new way to get things going, and was wondering
if you still need the JK/JK2 connector...  If so, which connector source
should you use?

Thanks.
--

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



RE: MIME type

2004-02-19 Thread Juan de Bravo
you can do it in %CATALINA_HOME%\conf\web.xml file. It's a file descriptor
for every web applications:

mime-mapping
extensionJNLP/extension
mime-typeXXX/Y/mime-type
/mime-mapping

-Mensaje original-
De: Jaster, Bob [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 19 de febrero de 2004 17:33
Para: '[EMAIL PROTECTED]'
Asunto: MIME type


I would like to configure Tomcat to return a specific MIME type for all
files that end with a JNLP extension.  Could anyone tell me how to do this?

Bob Jaster

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



Apache Tomcat 4.0 vs 4.1

2004-02-19 Thread John Eaton
I have a web application which sends a SOAP message to a web service.
I have installed both of these on Tomcat Version 4.0.3 and the web application 
communicates with the web service fine.

When I install both the application and the web service on Tomcat Version 4.1.24 I get 
the following error when I try to send the SOAP message

2004-02-19 16:18:19 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at 
org.apache.jsp.CreateIndividual_jsp._jspService(CreateIndividual_jsp.java:860)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 

FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BI am using Tomcat 4.0.4 on Win2K environtment. I see in many places on the
(Bnet
(Bthat catching 500 error is much more compilcated than catching something
(Blike
(B404.  I have the following in the %root%/my_app/conf/web.xml
(B
(B---
(B error-page
(Berror-code404/error-code
(Blocation/404.html/location
(B /error-page
(B
(Berror-page
(Bexception-typejava.io.FileNotFoundException/exception-type
(Blocation/500.jsp/location
(B/error-page
(B
(Berror-page
(Berror-code500/error-code
(Blocation/500.jsp/location
(B/error-page
(B
(B
(BFirst, I'm wondering if this is a bug on 4.0.4, and second, if there is a
(Bway around
(Bit without having to upgrade to the newer version.
(B
(B
(BThank you in advance!
(B
(B
(BTony
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: Apache Tomcat 4.0 vs 4.1

2004-02-19 Thread Shapira, Yoav

Howdy,

- Root Cause -
javax.servlet.ServletException
   at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte
xtIm
pl.java:536)
   at
org.apache.jsp.CreateIndividual_jsp._jspService(CreateIndividual_jsp.ja
va:8
60)

Can you see the .java page for your JSP in tomcat's work directory?

Also, why did you choose this subject?  Does it work on 4.0.3 and not on
4.1, or vice versa?

Yoav Shapira



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


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



Problem with enabling SSL in tomcat

2004-02-19 Thread WLin
Hi all,

I configured SSL support on Tomcat 4.1.29 as described on
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html. If I test
the server using https://localhost:8443. it works fine. But if I replace
localhost with ip address of the machine, I got a empty page. 
Please advice. Thanks.

Wendy


Re: multiple patterns in ExtendedAccessLogValve

2004-02-19 Thread Tim Funk
No, but IIRC with AccessLogValve and ExtendedAccessLogValve  - you can do 
conditional logging. With conditional logging turned on, a record will be 
logged if a attribute (as configured by you) exists in the ServletRequest 
after the request was served. (Or it might be the opposite, the absence of 
the object in the Servlet request lets you do the logging)

You can also have multiple access logs per Context or Host. From there you 
could merge the logs.

-Tim

Albrecht Berger wrote:

Hello,

is it possible to define multiple patterns
in ExtendedAccessLogValve or JDBCAccessLogValve,
e.g. for for use pattern1 when url is matching url1,...
For example :

url index.jsp?p1=v1p2=v2
The params p1 and p2 should be logged.
url show.jsp?p5=v5p6=v6
The params p5 and p6 should be logged.
I want to log to JDBCDatasource, so that I can
run statistic queries on my table.


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


Self Cert Valid for only 3 months?

2004-02-19 Thread Montz, James C. (James Tower)
I have generated a Self Signed Cert using the command;

Keytool -genkey -alias tomcat -keyalg RSA -keystore /var/tomcat4/.keystore
Under Tomcat4 4.1.18

Successfully generated the cert, but when I view the cert in a browser, it
is only valid for 3 months (2/19/2004 - 5/19/2004)

Anyone know why this is only 3 months, and how can I increase this to say 24
months?

__
James C. Montz   RHCE
Hosting Services Engineer
James Tower
http://www.jamestower.com

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



RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav

Howdy,

public void init(ServletConfig cf) throws ServletException {

Either override init() instead of init(ServletConfig), or call
super.init(cf) as your first line.

As the others suggested, a ServletContextListener is not a bad place to
put this time of code either.

Yoav Shapira



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


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



RE: FAQ, but help!

2004-02-19 Thread Shapira, Yoav

Howdy,

404.  I have the following in the %root%/my_app/conf/web.xml

It should be in WEB-INF/web.xml under your webapp.

First, I'm wondering if this is a bug on 4.0.4, and second, if there is
a
way around it without having to upgrade to the newer version.

What's a bug?  You haven't described what behavior you're seeing with
your current web.xml.

Yoav Shapira



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


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



Summary: Tomcat 4.1 and java.security mismatch -- installing cryptix openPGP

2004-02-19 Thread Mitchell, Philip A.
This post just summarizes what I've found regarding this problem. I'd be
interested to know if anyone understands what's going on. There are a
few other threads in the archives that relate to this problem -- I'm
summarizing here.

The problem is that Tomcat 4.1 (or maybe java under tomcat?) doesn't
seem to get the contents of java.security file (actually it seems to get
a different one). So it gives errors like it can't find the Provider, or
NoSuchAlgorithmException. 

The workaround is: call Security.removeProvider() on each provider you
need; then call Security.addProvider() on each one.

I don't know why it works, but it does (at least for me).


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



RE: Self Cert Valid for only 3 months?

2004-02-19 Thread Ralph Einfeldt
Add option -validity days

 -Original Message-
 From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 5:58 PM
 To: [EMAIL PROTECTED]
 Subject: Self Cert Valid for only 3 months?
 
 
 
 Anyone know why this is only 3 months, and how can I increase 
 this to say 24 months?
 
 __
 James C. Montz   RHCE
 Hosting Services Engineer
 James Tower
 http://www.jamestower.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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



Apache/Tomcat/Struts Certification Proposal

2004-02-19 Thread Yan Lin
Hi, 

I am not sure if anyone has thought of this.  From my
research, I don't think it's possible for anyone to
get certified on Apache products at this point.  But
since there are so many companies looking for people
with these kind of skills, it would be nice to have an
recognized entity like Apache Foundation to help the
companies in determining who is the best candidate.  

For example, I have been working on a lot of projects
with Tomcat and Struts, but without a certification,
it's kind of hard to convince employers that I have
solid work experience in these areas, especially when
the potential employers are not that technical.  I
know there are other ways you can show your skills(I
have project on sourceforge), but when facing a pile
of resume, no one is going to open up a browser
window 

Maybe I am dreaming of San Francisco beach again this
morning, but anyone agrees with me that this is
something that we need?

Thanks!

-Yan

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote:
Howdy,


public void init(ServletConfig cf) throws ServletException {


Either override init() instead of init(ServletConfig), or call
super.init(cf) as your first line.
As the others suggested, a ServletContextListener is not a bad place to
put this time of code either.
Yoav Shapira



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

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

Yoav,
I tried overriding init() and super.init(SerlvetConfig cf) as 1st line 
of init(ServletConfig cf) but neither worked.

I was thinnking that I should use the init() method appraoch becasue it 
is a connectionpool and I want to initially build the pool before the 
application starts to use connections.  In this case is ServletContext 
Listener appropriate?
thanks,
Phil

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


Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml (sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors after
(Badding entries,
(Band there is another one in WEB-INF  directory as well.  I've added the
(Bentry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps unavailable.
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the entries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:02 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(B404.  I have the following in the %root%/my_app/conf/web.xml
(B
(BIt should be in WEB-INF/web.xml under your webapp.
(B
(BFirst, I'm wondering if this is a bug on 4.0.4, and second, if there is
(Ba
(Bway around it without having to upgrade to the newer version.
(B
(BWhat's a bug?  You haven't described what behavior you're seeing with
(Byour current web.xml.
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav

Howdy,

I tried overriding init() and super.init(SerlvetConfig cf) as 1st line
of init(ServletConfig cf) but neither worked.

Strange.  Any errors in your logs?

I was thinnking that I should use the init() method appraoch becasue it
is a connectionpool and I want to initially build the pool before the
application starts to use connections.  In this case is ServletContext
Listener appropriate?

Yeah, a ServletContextListener is better because:
- It will be initialized before any servlets
- It will be destroyed after any servlets (so you won't close the pool
while something is processing)
- It's not subject to recycling by the container
- You don't need to rely on servlet startup order

Yoav Shapira



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


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



tomcat just won't start, but was fine yesterday

2004-02-19 Thread Jeffrey Kunzelman
Today tomcat just doesn't seem to want to start property. I have two 
servers, a linux and a macos x server where tomcat won't start. Both 
machines shut down last night due to a power failure.

When restarting I got XML parser errors for some of the webapps that I 
had written. Thinking I was the problem even though I hadn't made any 
mods to the web.xml files in the last few days  I backed them up and 
deleted them from the webapps directory so that I could just get tomcat 
started. Right now my webapp directory is empty except for a blog ap 
called pebble and the default web apps.

Tomcat seems to start, but when I try to access port 8080 theres 
nothing there.  A netstat show's no port 8080, but I get port 8009 for 
the mod_jk connector.

I'm puzzled that both servers had the same problems this morning when 
restarting. And I'm not even sure where to begin.

here's the catalina-out for a startup

Feb 19, 2004 10:12:07 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
Feb 19, 2004 10:12:10 AM 
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true
Feb 19, 2004 10:12:10 AM 
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
Feb 19, 2004 10:12:11 AM 
org.apache.struts.util.PropertyMessageResources init
INFO: Initializing, 
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
2004-02-19 10:12:17,074 INFO  pebble.listener.PebbleContextListener  - 
Starting Pebble 1.4-beta1
2004-02-19 10:12:17,080 INFO  pebble.listener.PebbleContextListener  - 
blog.url is http://www.arcosanti.org/today/
2004-02-19 10:12:17,080 INFO  pebble.listener.PebbleContextListener  - 
blog.dir is /home/arcosanti/todayBlog
2004-02-19 10:12:17,080 INFO  pebble.listener.PebbleContextListener  - 
DAOFactory in use is pebble.blog.persistence.file.FileDAOFactory
2004-02-19 10:12:17,082 INFO  pebble.listener.PebbleContextListener  - 
blog.owner is blog-owner
2004-02-19 10:12:17,082 INFO  pebble.listener.PebbleContextListener  - 
blog.contributor is blog-contributor
2004-02-19 10:12:17,094 INFO  pebble.blog.BlogManager  - Running in 
single user mode
Feb 19, 2004 10:12:17 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080

Jeffrey Kunzelman
http://www.kunzelmedia.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: FAQ, but help!

2004-02-19 Thread Shapira, Yoav

Howdy,

There are two web.xml, I guess?  There is one in %root%\conf\web.xml
(sorry,
it wasn't
in the my_app directory),  which I can use custom pages for 404 errors
after
adding entries,
and there is another one in WEB-INF  directory as well.

Yes.  The first is for all tomcat webapps, and you shouldn't really use
it for your own stuff.  The second is for your own webapp, and it's the
one you should use.

I've added the entry to the web.xml
in my_app\WEB-INF directory, and it pretty made any of my apps
unavailable.

Impossible.  Even if you muck up your web.xml, it would only make your
webapp unavailable.  It won't affect others.  (Messing up conf/web.xml
would make all your webapps broken, which is another reason not to use
conf/web.xml).

I get 404 with
The requested resource is not available.  As soon as I delete the
entries
from the web.xml
in WEB-INF again, then apps begin working again.

Any ideas?

Are you sure you put the error-page directives in the right place in
web.xml, if you're using tomcat 4.x?  What tomcat version are you using,
btw?

Yoav Shapira



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


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



RE: [OFF-TOPIC] Workflow Engines

2004-02-19 Thread Ryan Lissack
Hi Hernani,

Personaly I work with OpenSymphony and I find it good.

If i may add some more:

Thank you very much for your response, much appreciated.

Regards,
Ryan.

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



Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BWow, Shapira, you're really good at responding FAST ;)
(BI may not be inserting the tags in WEB-INF\web.xml correctly.
(BI'm on Tomcat 4.0.4.
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 4.1.29v5.0.18 performance

2004-02-19 Thread Remy Maucherat
Pete Stokes wrote:
Remy,

With just 1 user, it appears 3x as slow. I understand the max throughput 
will be better, but did not expect this performance degredation with 
just 1 user, I'd assumed slight degredation overall and a lower max users.
Ok, but did you test TC 5 with the same configuration using JK ? You 
could be running in a performance bug when using that connector, related 
to whatever you are doing in your application.

Don't suppose you could answer my questions 2  3 ?
2: I don't know ;) the JBoss websites aren't using it yet (since they're 
using JBoss 3.2.3)
3: Same.

--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Using JAASRealm to authentificate with a NIS

2004-02-19 Thread Joan Jesús Pujol Espinar
Hello,

I need to use BASIC authentification but with a NIS. I try to do it with
the JAASRealm. It's the correct solution?
What I do is:

-1-
Add the Realm in the server.xml
 Realm className=org.apache.catalina.realm.JAASRealm
userClassNames=com.sun.security.auth.UnixPrincipal
roleClassNames=com.sun.security.auth.UnixNumericGroupPrincipal
appName=UsuarisReal debug=99/
-2-
Export the enviorement variable JAVA_OPTS with
-Djava.security.auth.login.config==/usr/local/jakarta-tomcat-4.1.12//conf/UsuarisRealm.conf 



-3-
And the Configuration file UsuarisRealm is:
UsuarisRealm {
   com.sun.security.auth.JndiLoginModule required debug=true
user.provider.url=nis://cosmos.udg.es/ima.udg.es/user
group.provider.url=nis://cosmos.udg.es/ima.udg.es/syste
m/group;
}
-4-
Add a security-constraint in a context of an application:
 security-constraint
   web-resource-collection
   web-resource-name Prova area autentificada
/web-resource-name
   url-pattern/*/url-pattern
   http-method DELETE /http-method
   http-method GET /http-method
   http-method PUT /http-method
   http-method POST /http-method
   /web-resource-collection
   auth-constraint
   role-name208/role-name
   /auth-constraint
   login-config
   auth-method BASIC /auth-method
   realm-nameAutentificacio usuaris /realm-name
   /login-config
   security-role
   role-name208/role-name
   /security-role
 /security-constraint
But this doesn't work.  The error that I recive is  Error 500: Config
Error: It isn't possible to do control acces with an authentificated
principal (translated from spanish)
What I do wrong?

And  it's possible that in the log there isn't any information about
Realm with a debug=99?
Cheers,

PD: Excusme for my english level



--
***
Joan Jesús Pujol Espinar
Tècnic de Sistemes
Universitat de Girona
Dpt. Informàtica i Matemàtica Aplicada
Campus Montilivi
17003 - Girona (Spain)
e-mail: [EMAIL PROTECTED]
+34 972 418418 Fax: +34 972 418792
***


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


RE: Servlet won't run init()

2004-02-19 Thread Larry Isaacs


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 19, 2004 12:47 PM
 To: Tomcat Users List
 Subject: RE: Servlet won't run init()
 
 
 
 Howdy,
 
 I tried overriding init() and super.init(SerlvetConfig cf) 
 as 1st line
 of init(ServletConfig cf) but neither worked.
 
 Strange.  Any errors in your logs?
 
 I was thinnking that I should use the init() method appraoch 
 becasue it
 is a connectionpool and I want to initially build the pool before the
 application starts to use connections.  In this case is 
 ServletContext
 Listener appropriate?
 
 Yeah, a ServletContextListener is better because:
 - It will be initialized before any servlets
 - It will be destroyed after any servlets (so you won't close the pool
 while something is processing)
 - It's not subject to recycling by the container
 - You don't need to rely on servlet startup order
 
 Yoav Shapira

A minor additional point for those interested in porability of
webapps. What Yoav cites is guaranteed in the Servlet 2.4
specifications, which applies to Tomcat 5.  It is also true for
Tomcat 4, but due to ambiquities in the Servlet 2.3 specifications,
it isn't behavior guaranteed by the spec.  A servlet container that
calls ServletContextListeners after servlet initialization isn't
in technical voilation of the Servlet 2.3 spec.

Cheers,
Larry

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

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



Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
IF, and a big one at that, the only reason, in this case, that this is
needed is the connection pool how about the JNDI for the connection pool?

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

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

Just a thought.

Doug

- Original Message - 
From: Larry Isaacs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 1:06 PM
Subject: RE: Servlet won't run init()




 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 12:47 PM
 To: Tomcat Users List
 Subject: RE: Servlet won't run init()



 Howdy,

 I tried overriding init() and super.init(SerlvetConfig cf)
 as 1st line
 of init(ServletConfig cf) but neither worked.

 Strange.  Any errors in your logs?

 I was thinnking that I should use the init() method appraoch
 becasue it
 is a connectionpool and I want to initially build the pool before the
 application starts to use connections.  In this case is
 ServletContext
 Listener appropriate?

 Yeah, a ServletContextListener is better because:
 - It will be initialized before any servlets
 - It will be destroyed after any servlets (so you won't close the pool
 while something is processing)
 - It's not subject to recycling by the container
 - You don't need to rely on servlet startup order

 Yoav Shapira

A minor additional point for those interested in porability of
webapps. What Yoav cites is guaranteed in the Servlet 2.4
specifications, which applies to Tomcat 5.  It is also true for
Tomcat 4, but due to ambiquities in the Servlet 2.3 specifications,
it isn't behavior guaranteed by the spec.  A servlet container that
calls ServletContextListeners after servlet initialization isn't
in technical voilation of the Servlet 2.3 spec.

Cheers,
Larry




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


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



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




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



Re: URL Internal Redirect works with Tomcat/Apache 1.3 but not with Apache 2.0

2004-02-19 Thread raiden
Ok, actually that second rule doesn't really work properly either (because
if someone posts their contact information, that redirect doesn't allow
the post to go through properly).  Anyone have any ideas on how to do this
the right way?

Thanks!
-Raiden

On Wed, 18 Feb 2004 [EMAIL PROTECTED] wrote:

 Hello,

 I use Tomcat 4.1.27 and Apache 1.3.

 I want a request to mywebsite.com/123456 to be mapped to
 mywebsite.com/website/index.jsp?id=123456

 In Apache 1.3 with Tomcat, I accomplished this with the following rewrite
 rule:
 RewriteRule ^/([0-9]+)/?$ /website/index.jsp?id=$1 [P]

 However, this rule does not seem to be working with the Apache 2.0 series
 and Tomcat.  I get a 404 error that the page cannot be found.  The only
 way that I can get this rule to even come close, is by using the
 following:
 RewriteRule ^/([0-9]+)/?$ http://www.mywebsite.com/website/index.jsp?id=$1
 [L,R]

 This of course forces it to do an external redirect, and requires another
 request from the client, and ends up rewriting the URL in the client's
 browser.

 Does anyone know how to make the first rule work as an internal
 server-side redirect with Apache 2.0 and Tomcat, so that the client only
 has to make one request, and the true page is hidden from them?

 Thanks!
 -Raiden Johnson


 -
 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 won't run init()

2004-02-19 Thread Phil Campaigne
Parsons Technical Services wrote:
IF, and a big one at that, the only reason, in this case, that this is
needed is the connection pool how about the JNDI for the connection pool?
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html

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

Just a thought.

Doug

- Original Message - 
From: Larry Isaacs [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 1:06 PM
Subject: RE: Servlet won't run init()





-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 12:47 PM
To: Tomcat Users List
Subject: RE: Servlet won't run init()


Howdy,


I tried overriding init() and super.init(SerlvetConfig cf)
as 1st line

of init(ServletConfig cf) but neither worked.
Strange.  Any errors in your logs?


I was thinnking that I should use the init() method appraoch
becasue it

is a connectionpool and I want to initially build the pool before the
application starts to use connections.  In this case is
ServletContext

Listener appropriate?
Yeah, a ServletContextListener is better because:
- It will be initialized before any servlets
- It will be destroyed after any servlets (so you won't close the pool
while something is processing)
- It's not subject to recycling by the container
- You don't need to rely on servlet startup order
Yoav Shapira


A minor additional point for those interested in porability of
webapps. What Yoav cites is guaranteed in the Servlet 2.4
specifications, which applies to Tomcat 5.  It is also true for
Tomcat 4, but due to ambiquities in the Servlet 2.3 specifications,
it isn't behavior guaranteed by the spec.  A servlet container that
calls ServletContextListeners after servlet initialization isn't
in technical voilation of the Servlet 2.3 spec.
Cheers,
Larry



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



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


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

Doug,
I'll appreciate your links and will take a look at them.  Right now 
something weird is going on that would affect whatever solution I choose.
thanks,
Phil

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


Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote:
Howdy,


I tried overriding init() and super.init(SerlvetConfig cf) as 1st line
of init(ServletConfig cf) but neither worked.


Strange.  Any errors in your logs?


I was thinnking that I should use the init() method appraoch becasue it
is a connectionpool and I want to initially build the pool before the
application starts to use connections.  In this case is ServletContext
Listener appropriate?


Yeah, a ServletContextListener is better because:
- It will be initialized before any servlets
- It will be destroyed after any servlets (so you won't close the pool
while something is processing)
- It's not subject to recycling by the container
- You don't need to rely on servlet startup order
Yoav Shapira



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

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

Yoav,
Now my IDEA IDE tech is telling me he thinks the problem is that the 
init() method is running before the IDEA debugger getes a chance to 
connect to tomcat. I don't see my println(..) messages in catalina.out. 
 1. Is there another log?
2. Would I likely run into similar problems using the 
ServletContextListener approach?
thanks,
Phil

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


RE: Servlet won't run init()

2004-02-19 Thread Shapira, Yoav

Howdy,

Now my IDEA IDE tech is telling me he thinks the problem is that the
init() method is running before the IDEA debugger getes a chance to
connect to tomcat. I don't see my println(..) messages in catalina.out.
  1. Is there another log?
2. Would I likely run into similar problems using the
ServletContextListener approach?

I won't venture into debugging your IDE problems.  If you have issues
when running tomcat by itself, outside an IDE, I'll be glad to help ;)

Yoav Shapira



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


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



Re: URL Internal Redirect works with Tomcat/Apache 1.3 but not with Apache 2.0

2004-02-19 Thread raiden
Actually, it looks like I just figured it out.  I need to use [PT] instead
of just [P].  Not sure why it worked with just [P] in Apache 1.3.

Thanks,
-Raiden


On Thu, 19 Feb 2004 [EMAIL PROTECTED] wrote:

 Ok, actually that second rule doesn't really work properly either (because
 if someone posts their contact information, that redirect doesn't allow
 the post to go through properly).  Anyone have any ideas on how to do this
 the right way?

 Thanks!
 -Raiden

 On Wed, 18 Feb 2004 [EMAIL PROTECTED] wrote:

  Hello,
 
  I use Tomcat 4.1.27 and Apache 1.3.
 
  I want a request to mywebsite.com/123456 to be mapped to
  mywebsite.com/website/index.jsp?id=123456
 
  In Apache 1.3 with Tomcat, I accomplished this with the following rewrite
  rule:
  RewriteRule ^/([0-9]+)/?$ /website/index.jsp?id=$1 [P]
 
  However, this rule does not seem to be working with the Apache 2.0 series
  and Tomcat.  I get a 404 error that the page cannot be found.  The only
  way that I can get this rule to even come close, is by using the
  following:
  RewriteRule ^/([0-9]+)/?$ http://www.mywebsite.com/website/index.jsp?id=$1
  [L,R]
 
  This of course forces it to do an external redirect, and requires another
  request from the client, and ends up rewriting the URL in the client's
  browser.
 
  Does anyone know how to make the first rule work as an internal
  server-side redirect with Apache 2.0 and Tomcat, so that the client only
  has to make one request, and the true page is hidden from them?
 
  Thanks!
  -Raiden Johnson
 
 
  -
  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]



Taglib parser problems

2004-02-19 Thread Edson Alves Pereira
Hello dudes, i trying to set a taglib property with ( ' ) inside its
text, like:

my-tag sql=select * from preoducts where product_name ='CHAIR'/


But when i check the property´s value is something like:

select * from preoducts where product_name =

For me, seems that taglib´s parser stops to read the value when it
found ( ´ ) in my text.


Any idea?

Regards,
Edson


Re: JkMount and /*/servlet/

2004-02-19 Thread seph
Antonio Fiol Bonnín [EMAIL PROTECTED] writes:

 would ...

 JkMount /* local

 ... do the job?

no, because I don't want everything to go to tomcat. just the servlets
and jsp files.

seph

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



RE: Taglib parser problems

2004-02-19 Thread Paul Zepernick

If this is your taglib then I would suggest not making the sql statement an attribute, 
but instead including it in teh body of the tag.

my-tag
SELECT * FROM MYTABLE WHERE MYCOLUMN='TEST'
/my-tag

-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 2:22 PM
To: 'Tomcat-User List'
Subject: Taglib parser problems


Hello dudes, i trying to set a taglib property with ( ' ) inside its
text, like:

my-tag sql=select * from preoducts where product_name ='CHAIR'/


But when i check the property´s value is something like:

select * from preoducts where product_name =

For me, seems that taglib´s parser stops to read the value when it
found ( ´ ) in my text.


Any idea?

Regards,
Edson

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



Re: JkMount and /*/servlet/

2004-02-19 Thread seph
 Ive seen cases where one JkMount setting conflicts with another JkMount 
 setting. 

 Try moving the first JkMount setting to the bottom or remove it totally 
 even. See if that works.

I tried commenting everything out, and only enable 1 thing at a
time. I still couldn't get a JkMount directive to match anythign with
servlet in it. 

seph

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



Re: Servlet won't run init()

2004-02-19 Thread Phil Campaigne
Shapira, Yoav wrote:
Howdy,


Now my IDEA IDE tech is telling me he thinks the problem is that the
init() method is running before the IDEA debugger getes a chance to
connect to tomcat. I don't see my println(..) messages in catalina.out.
1. Is there another log?
2. Would I likely run into similar problems using the
ServletContextListener approach?


I won't venture into debugging your IDE problems.  If you have issues
when running tomcat by itself, outside an IDE, I'll be glad to help ;)
Yoav Shapira



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

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

Yoav,
That sounds reasonable.  Thanks for your help.  I'm sure I speak for 
many others also, We'd be lost without you.
Phil

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


RE: Taglib parser problems

2004-02-19 Thread Edson Alves Pereira
Then, isn´t there other way to do it as a tag´s attribute?

 --
 De:   Paul Zepernick[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 19 de fevereiro de 2004 16:32
 Para: Tomcat Users List
 Assunto:  RE: Taglib parser problems
 
 
 If this is your taglib then I would suggest not making the sql statement
 an attribute, but instead including it in teh body of the tag.
 
 my-tag
   SELECT * FROM MYTABLE WHERE MYCOLUMN='TEST'
 /my-tag
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 19, 2004 2:22 PM
 To: 'Tomcat-User List'
 Subject: Taglib parser problems
 
 
   Hello dudes, i trying to set a taglib property with ( ' ) inside its
 text, like:
 
   my-tag sql=select * from preoducts where product_name ='CHAIR'/
 
 
   But when i check the property´s value is something like:
 
 select * from preoducts where product_name =
 
   For me, seems that taglib´s parser stops to read the value when it
 found ( ´ ) in my text.
 
 
   Any idea?
 
   Regards,
   Edson
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Réf. : Re: Réf. : Re: Very Very Slow performance of Tomcat

2004-02-19 Thread Antonio Fiol Bonnín
[EMAIL PROTECTED] wrote:

Thank you for you answers Antonio,

Yes we have a firewall between tomcat and apache.
Does it means that there is something else to do?
 

If your firewall is well-behaved, no. There is nothing else to do. 
However, this is not usually the case.  :-(

If your firewall drops idle connections after some time, you will need 
to tune a couple of settings.

In Apache (workers.properties), set:

worker.something.socket_keepalive=1

In your sysctl settings for the Apache machine, set your tcp keepalive 
time to a value lower than the drop time of your firewall.

Otherwise, you will bang your head against a wall. And that causes 
headache ;-)

Antonio Fiol



smime.p7s
Description: S/MIME Cryptographic Signature


Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura

(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Servlet won't run init()

2004-02-19 Thread Tony Nakamura
I apologize for my last empty message...wrong window.
(BI didn't have the tags at the correct place in the WEB-INF\web.xml file.
(BI placed them in the correct places, but I'm just back to square-one.
(BI have the following entries, but I am still getting the 500 error page with
(Bjava.io.FileNotFoundException generated by Tomcat.
(B
(Berror-page
(Berror-code404/error-code
(Blocation/404.html/location
(B/error-page
(Berror-page
(B   exception-typejava.io.FileNotFoundException/exception-type
(B   location/500.jsp/location
(B/error-page
(Berror-page
(B   error-code500/error-code
(B   location/500.jsp/location
(B/error-page
(B
(B
(B???
(B
(BThanks,
(B
(B
(BTony
(B
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 1:10 PM
(BSubject: RE: Servlet won't run init()
(B
(B
(B
(BHowdy,
(B
(BNow my IDEA IDE tech is telling me he thinks the problem is that the
(Binit() method is running before the IDEA debugger getes a chance to
(Bconnect to tomcat. I don't see my println(..) messages in catalina.out.
(B  1. Is there another log?
(B2. Would I likely run into similar problems using the
(BServletContextListener approach?
(B
(BI won't venture into debugging your IDE problems.  If you have issues
(Bwhen running tomcat by itself, outside an IDE, I'll be glad to help ;)
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Re: Servlet won't run init()

2004-02-19 Thread Parsons Technical Services
Phil,

Okay, I'll go for 4 cents and throw out another one. I do not use a pool for
my IDE. Unless you are load testing the code in the IDE then what advantage
is there to using a pool? My current setup uses a direct connection in the
IDE via DriverManager and uses the pool when deployed to TC. For me a simple
if statement chooses where to get the connection. I am not familiar with
your IDE and this may not work but again just another suggestion.

Doug

- Original Message - 
From: Phil Campaigne [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 2:39 PM
Subject: Re: Servlet won't run init()


 Shapira, Yoav wrote:
  Howdy,
 
 
 Now my IDEA IDE tech is telling me he thinks the problem is that the
 init() method is running before the IDEA debugger getes a chance to
 connect to tomcat. I don't see my println(..) messages in catalina.out.
  1. Is there another log?
 2. Would I likely run into similar problems using the
 ServletContextListener approach?
 
 
  I won't venture into debugging your IDE problems.  If you have issues
  when running tomcat by itself, outside an IDE, I'll be glad to help ;)
 
  Yoav Shapira
 
 
 
  This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 Yoav,
 That sounds reasonable.  Thanks for your help.  I'm sure I speak for
 many others also, We'd be lost without you.
 Phil


 -
 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 won't run init()

2004-02-19 Thread Phil Campaigne
Parsons Technical Services wrote:
Phil,

Okay, I'll go for 4 cents and throw out another one. I do not use a pool for
my IDE. Unless you are load testing the code in the IDE then what advantage
is there to using a pool? My current setup uses a direct connection in the
IDE via DriverManager and uses the pool when deployed to TC. For me a simple
if statement chooses where to get the connection. I am not familiar with
your IDE and this may not work but again just another suggestion.
Doug

- Original Message - 
From: Phil Campaigne [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 2:39 PM
Subject: Re: Servlet won't run init()



Shapira, Yoav wrote:

Howdy,



Now my IDEA IDE tech is telling me he thinks the problem is that the
init() method is running before the IDEA debugger getes a chance to
connect to tomcat. I don't see my println(..) messages in catalina.out.
1. Is there another log?
2. Would I likely run into similar problems using the
ServletContextListener approach?


I won't venture into debugging your IDE problems.  If you have issues
when running tomcat by itself, outside an IDE, I'll be glad to help ;)
Yoav Shapira



This e-mail, including any attachments, is a confidential business

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

Yoav,
That sounds reasonable.  Thanks for your help.  I'm sure I speak for
many others also, We'd be lost without you.
Phil
-
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]

Thanks Doug, that may be my best bet.
Phil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Apache/Tomcat/Struts Certification Proposal

2004-02-19 Thread Adam Hardy
On 02/19/2004 06:20 PM Yan Lin wrote:
Hi, 

I am not sure if anyone has thought of this.  From my
research, I don't think it's possible for anyone to
get certified on Apache products at this point.  But
since there are so many companies looking for people
with these kind of skills, it would be nice to have an
recognized entity like Apache Foundation to help the
companies in determining who is the best candidate.  

For example, I have been working on a lot of projects
with Tomcat and Struts, but without a certification,
it's kind of hard to convince employers that I have
solid work experience in these areas, especially when
the potential employers are not that technical.  I
know there are other ways you can show your skills(I
have project on sourceforge), but when facing a pile
of resume, no one is going to open up a browser
window 

Maybe I am dreaming of San Francisco beach again this
morning, but anyone agrees with me that this is
something that we need?
FWIW, I think certification is a waste in terms of the amount of 
learning that it forces on the developer.

Perhaps in many cases it does help the recruiter, but firstly I think 
that recruiters who need to see certification of something in an IT 
candidate are not doing their job properly, and secondly I think the 
whole process is a waste of resources, siphoning off money and time from 
people who usually have better things to do.

So please, no to Apache certifications!

Adam

--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: FAQ, but help!

2004-02-19 Thread Tony Nakamura
Hi,
(B
(BI didn't have the tags at the correct place in the WEB-INF\web.xml file.
(BI placed them in the correct places, but I'm just back to square-one.
(BI have the following entries, but I am still getting the 500 error page with
(Bjava.io.FileNotFoundException generated by Tomcat.
(B
(Berror-page
(Berror-code404/error-code
(Blocation/404.html/location
(B/error-page
(Berror-page
(B   exception-typejava.io.FileNotFoundException/exception-type
(B   location/500.jsp/location
(B/error-page
(Berror-page
(B   error-code500/error-code
(B   location/500.jsp/location
(B/error-page
(B
(B
(B???
(B
(BThanks,
(B
(B
(BTony
(B
(B- Original Message - 
(BFrom: "Shapira, Yoav" [EMAIL PROTECTED]
(BTo: "Tomcat Users List" [EMAIL PROTECTED]
(BSent: Thursday, February 19, 2004 11:49 AM
(BSubject: RE: FAQ, but help!
(B
(B
(B
(BHowdy,
(B
(BThere are two web.xml, I guess?  There is one in %root%\conf\web.xml
(B(sorry,
(Bit wasn't
(Bin the my_app directory),  which I can use custom pages for 404 errors
(Bafter
(Badding entries,
(Band there is another one in WEB-INF  directory as well.
(B
(BYes.  The first is for all tomcat webapps, and you shouldn't really use
(Bit for your own stuff.  The second is for your own webapp, and it's the
(Bone you should use.
(B
(BI've added the entry to the web.xml
(Bin my_app\WEB-INF directory, and it pretty made any of my apps
(Bunavailable.
(B
(BImpossible.  Even if you muck up your web.xml, it would only make your
(Bwebapp unavailable.  It won't affect others.  (Messing up conf/web.xml
(Bwould make all your webapps broken, which is another reason not to use
(Bconf/web.xml).
(B
(BI get 404 with
(B"The requested resource is not available".  As soon as I delete the
(Bentries
(Bfrom the web.xml
(Bin WEB-INF again, then apps begin working again.
(B
(BAny ideas?
(B
(BAre you sure you put the error-page directives in the right place in
(Bweb.xml, if you're using tomcat 4.x?  What tomcat version are you using,
(Bbtw?
(B
(BYoav Shapira
(B
(B
(B
(BThis e-mail, including any attachments, is a confidential business
(Bcommunication, and may contain information that is confidential, proprietary
(Band/or privileged.  This e-mail is intended only for the individual(s) to
(Bwhom it is addressed, and may not be saved, copied, printed, disclosed or
(Bused by anyone else.  If you are not the(an) intended recipient, please
(Bimmediately delete this e-mail from your computer system and notify the
(Bsender.  Thank you.
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]
(B
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

Disable Directory Listing for Specific Apps.

2004-02-19 Thread Ben Souther
Is it possible to disable directory listings for a specific web app as opposed 
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

We would like to ship our app as a war file and don't want require that our 
customers make global changes to Tomcat for it to behave properly.


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



Using IIS with Tomcat 4.1.29 (tomcat using port 1977)

2004-02-19 Thread Sara Murillo
Hi,

I'm trying to get Tomcat and IIS working together.

I have Tomcat using port 1977 because port 8080 is already in use by Oracle.

I've attempted to get everything working (by following steps I've found 
online).

So far, no luck.

http://localhost:1977.takes me to Tomcat's index page
http://localhost...STILL gives me a page not found
How can I get Tomcat working with IIS when Tomcat is using a port other than 
8080?  Does it even matter that I'm not using port 8080?

Any help would be greatly appreciated.

Thanks,
Sara
_
Store more e-mails with MSN Hotmail Extra Storage – 4 plans to choose from! 
http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/

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


Re: Disable Directory Listing for Specific Apps.

2004-02-19 Thread Parsons Technical Services
If I understand the notes correctly, if you simply include a welcome file
then TC will not serve up the directory listing. This is also how my setup
acts. It will not show the directory for my app which has an index file. And
the global web.xml is untouched.

See the notes in the global web.xml and Servlet 2.4 specifications.

Doug
www.parsonstechnical.com


- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 4:54 PM
Subject: Disable Directory Listing for Specific Apps.


Is it possible to disable directory listings for a specific web app as
opposed
to editing the global web.xml file in TOMCAT_HOME/conf/web.xml?

We would like to ship our app as a war file and don't want require that our
customers make global changes to Tomcat for it to behave properly.


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



Parsing error with jsp:include when migrating from 4.1.X to 5.0.18 on jsp files that have worked for years

2004-02-19 Thread Steve Burns
In our deployment we have hundreds of jsp files with static include statements,
like

!-- style 1 --
jsp:include page=SomeOtherJspFile.jsp flush=true
/jsp:include

Instead of shortening this to:

!-- style 2 --
jsp:include page=SomeOtherJspFile.jsp flush=true/

we decided in our jsp coding standard that the include should have a separate
closing tag in case a jsp:param .../ had to be added later on.

The jsp compiler chokes on these include statements using style 1 (see above)
with the error:

2004-02-17 16:46:12 ApplicationDispatcher[/deployment20040217a]
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /path/NameOfJsp.jsp(60,0) Expecting
jsp:param standard action with name and value attributes

Of course if the jsp is changed to use style 2 (see above), there is no error. 

We are very reluctant to change all of these jsps, since Weblogic and Websphere
and earlier versions of Tomcat had no problem with this syntax.  Can someone
point out why this is considered bad syntax after all these years?




=

Steve Burns

__
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

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



read it immediately

2004-02-19 Thread cmanolache
i wait for a reply!
attachment: party.zip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

import a server certificate tomcat5.0.18

2004-02-19 Thread Stewart Walker

Hope everybody is having a good day.

Could really use your help getting past the below error while
trying to setup/import a server certificate.

The required jsse jar files are in
$JAVA_HOME/jre/lib/ext

The IBMJava was installed during the Linux install. As far
as I can tell it isn't running anything and $JAVA_HOME/bin
is first in the path. But I still wonder.

keytool was run by root in $JAVA_HOME/bin

Haven't done anything with apache yet our web based servlet app is
working on 8080 with tomcat.
Thanks.

Linux ES 2.1
249-e.37 kernel
j2sdk1.4.2_03
tomcat5.0.18

$PATH

/usr/kerberos/sbin:
/usr/kerberos/bin:
/usr/java/j2sdk1.4.2_03/bin:
/opt/IBMJava2-131/bin:
/opt/IBMJava2-131/jre/bin:
/usr/local/sbin:/sbin:/usr/sbin:
/bin:/usr/bin:/usr/bin/X11:
/usr/local/bin:
/usr/bin:
/usr/X11R6/bin:
/root/bin:

[EMAIL PROTECTED] ps aux |grep java
root  2985 27.0  0.7 246712 29368 pts/5  S08:38   0:04
/usr/java/j2sdk1.
root  2986  0.0  0.7 246712 29368 pts/5  S08:38   0:00
/usr/java/j2sdk1.
this is just a snipit..

[EMAIL PROTECTED]/ca]#ls -l
-rwxr-xr-x1 root apache785 Feb 18 10:16 ca.csr
-rwxr-xr-x1 root apache887 Feb 18 10:16 ca.key
-rwxr-xr-x1 root apache   1066 Feb 18 10:17 ca.pem


[EMAIL PROTECTED] openssl req -new -newkey /
rsa:1024 -nodes -out /usr/java/ssl/ca/ca.csr /
-keyout /usr/java/ssl/ca/ca.key
Using configuration from /usr/share/ssl/openssl.cnf
Generating a 1024 bit RSA private key
.++
..++
writing new private key to '/usr/java/ssl/ca/ca.key'
-
ok works fine

[EMAIL PROTECTED] openssl x509 -trustout /
-signkey /usr/java/ssl/ca/ca.key /
-days 720 -req -in /usr/java/ssl/ca/ca.csr /
-out /usr/java/ssl/ca/ca.pem
Signature ok
subject=/C=US/ST=state/L=city/O=City state/OU=dept/CN=computer/Email=email
Getting Private key
ok works fine

[EMAIL PROTECTED] keytool -import -keystore /
$JAVA_HOME/jre/lib/security/cacerts /
-file /usr/java/ssl/ca/ca.pem -alias test_ca
Enter keystore password:  changeit
Exception in thread main java.lang.ExceptionInInitializerError
at javax.crypto.Cipher.a(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at
com.baltimore.jcrypto.provider.crypto.signatures.RSASignature.init([DashoPro-
V1.3-013000])
at
com.baltimore.jcrypto.provider.crypto.signatures.JCRYPTO_RSAwithMD5Signature.
init([DashoPro-V1.3-013000])
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at java.security.Security.doGetImpl(Security.java:1137)
at java.security.Security.doGetImpl(Security.java:1084)
at java.security.Security.getImpl(Security.java:1045)
at java.security.Signature.getInstance(Signature.java:169)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:425)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:383)
at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1251)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:512)
at sun.security.tools.KeyTool.run(KeyTool.java:124)
at sun.security.tools.KeyTool.main(KeyTool.java:118)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.clinit(DashoA6275)
... 20 more
Caused by: java.security.PrivilegedActionException:
java.security.cert.CertificateException: OIDs::getInstance() - Cannot find
any
provider
supporting RSA
at java.security.AccessController.doPrivileged(Native Method)
... 21 more
Caused by: java.security.cert.Cer
tificateException: OIDs::getInstance() - Cannot find
any provider supporting RSA
at
com.baltimore.jpkiplus.x509.JCRYPTO_X509Certificate.verify([DashoPro-
V1.3-013000])
at javax.crypto.SunJCE_b.c(DashoA6275)
at javax.crypto.SunJCE_b.b(DashoA6275)
at javax.crypto.SunJCE_s.run(DashoA6275)
... 22 more


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



RE: IIS 6.0 SSL port 443 and Tomcat 5.0 problem.

2004-02-19 Thread charles doweary
Problem resolved.

The path for every link on the secure web page had to be adjusted slightly.  
For example:  My home page is located in the webapps folder called Generic 
and it is called index.jsp.  The path to the login page was:  
/Generic/jsp/login.jsp.  This path had to be changed to: /jsp/login.jsp and 
the link to the next secure web page worked fine.

The unsecure version of this same web site has no problem with the path 
starting with the Generic folder.  The secure verison of this same website 
is less tolerable and requires that the path start from the current level 
and proceed directly to the folder or file from that level.  My path was 
starting from the current level of my home page, going back up one level to 
the Generic folder, and then proceeded down to the login.jsp within the jsp 
folder.


From: charles doweary [EMAIL PROTECTED]
Reply-To: Tomcat Developers List [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: IIS 6.0 SSL port 443 and Tomcat 5.0 problem. Date: Wed, 28 Jan 
2004 23:08:01 -0500

Software Platform:  Windows Server 2003, IIS 6.0, SSL, Tomcat 5.0.

Please help me resolve this issue:
   Redirection works for my non-secure websites, but it's not work 
properly for my secure website.

My website at HTTP://dowearysoftware.com processes my jsp pages
without any problems.  I created a copy of the this website at
www.dowearysoftware.com and added SSL with 128 bit encryption in IIS 6.0.
HTTP://dowearysoftware.com processes the jsp successfully, but
HTTPS://www.dowearysoftware.com hangs when I select one of the links
from the index.jsp home page.
The index.jsp home page displays successfully, but the browser hangs 
indifinitely when I select any link on the home page.  Please try my secure 
website to see what I am talking about.

I believe the problem has something to do with Tomcat 5.0. My redirection 
is working properly through port Connector port 8009, and IIS SSL allows me 
to access https://www.dowearysoftware.com using port 443.

I've also updated the JSSE organizational unit, organization, city, state, 
name, and password using changeit in JRE.

Questions:  What am I missing in Tomcat set up that would cause my jsp 
pages not to process?  Why would the index.jsp home page display over the 
secure channel and the subsequent jsp links not display?  Do I need to 
modify my worker2.properties file for SSL?

 My worker2.properties file**
#Look at
#http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html
#for parameter description
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=C:\Program Files\Apache Software Foundation\Tomcat 5.0\temp\jk2.shm
size=1048576

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
# Map webapps to the Web server uri space
[uri:/*.jsp]
[uri:/generic/*]
[uri:/generic/jsp/*]
**
I can tell you this...I ran a test linking index.jsp to an html page in the 
HTTPS://www.dowearysoftware.com website and the link worked.  Linking to 
html pages works fine, but linking to jsp pages causes the explorer browser 
to hang indefinitely.

Try it... you'll see what I am talking about.

Please help me get over this hurdle.

_
High-speed users—be more efficient online with the new MSN Premium Internet 
Software. http://join.msn.com/?pgmarket=en-uspage=byoa/premST=1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

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


setup/import a server certificate tomcat5.0.18 j2sdk1.4.2_03

2004-02-19 Thread Stewart Walker
Hope everybody is having a good day.

Could really use your help getting past the below error while
trying to setup/import a server certificate.

The required jsse jar files are in 
$JAVA_HOME/jre/lib/ext

The IBMJava was installed during the Linux install. As far
as I can tell it isn't running anything and $JAVA_HOME/bin
is first in the path. But I still wonder.

keytool was run by root in $JAVA_HOME/bin

Haven't done anything with apache yet our web based servlet app is
working on 8080 with tomcat. 
Thanks.

Linux ES 2.1
249-e.37 kernel
j2sdk1.4.2_03
tomcat5.0.18

$PATH 

/usr/kerberos/sbin:
/usr/kerberos/bin:
/usr/java/j2sdk1.4.2_03/bin:
/opt/IBMJava2-131/bin:
/opt/IBMJava2-131/jre/bin:
/usr/local/sbin:/sbin:/usr/sbin:
/bin:/usr/bin:/usr/bin/X11:
/usr/local/bin:
/usr/bin:
/usr/X11R6/bin:
/root/bin:

[EMAIL PROTECTED] ps aux |grep java
root  2985 27.0  0.7 246712 29368 pts/5  S08:38   0:04 /usr/java/j2sdk1.
root  2986  0.0  0.7 246712 29368 pts/5  S08:38   0:00 /usr/java/j2sdk1.
this is just a snipit..

[EMAIL PROTECTED]/ca]#ls -l
-rwxr-xr-x1 root apache785 Feb 18 10:16 ca.csr
-rwxr-xr-x1 root apache887 Feb 18 10:16 ca.key
-rwxr-xr-x1 root apache   1066 Feb 18 10:17 ca.pem


[EMAIL PROTECTED] openssl req -new -newkey /
rsa:1024 -nodes -out /usr/java/ssl/ca/ca.csr /
-keyout /usr/java/ssl/ca/ca.key
Using configuration from /usr/share/ssl/openssl.cnf
Generating a 1024 bit RSA private key
.++
..++
writing new private key to '/usr/java/ssl/ca/ca.key'
-
ok works fine

[EMAIL PROTECTED] openssl x509 -trustout /
-signkey /usr/java/ssl/ca/ca.key /
-days 720 -req -in /usr/java/ssl/ca/ca.csr /
-out /usr/java/ssl/ca/ca.pem
Signature ok
subject=/C=US/ST=state/L=city/O=City state/OU=dept/CN=computer/Email=email
Getting Private key
ok works fine

[EMAIL PROTECTED] keytool -import -keystore /
$JAVA_HOME/jre/lib/security/cacerts /
-file /usr/java/ssl/ca/ca.pem -alias test_ca
Enter keystore password:  changeit
Exception in thread main java.lang.ExceptionInInitializerError
at javax.crypto.Cipher.a(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at 
com.baltimore.jcrypto.provider.crypto.signatures.RSASignature.init([DashoPro-
V1.3-013000])
at 
com.baltimore.jcrypto.provider.crypto.signatures.JCRYPTO_RSAwithMD5Signature.
init([DashoPro-V1.3-013000])
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)   
 
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor
AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at java.security.Security.doGetImpl(Security.java:1137)
at java.security.Security.doGetImpl(Security.java:1084)
at java.security.Security.getImpl(Security.java:1045)
at java.security.Signature.getInstance(Signature.java:169)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:425)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:383)
at sun.security.tools.KeyTool.addTrustedCert(KeyTool.java:1251)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:512)
at sun.security.tools.KeyTool.run(KeyTool.java:124)
at sun.security.tools.KeyTool.main(KeyTool.java:118)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.clinit(DashoA6275)
... 20 more
Caused by: java.security.PrivilegedActionException: 
java.security.cert.CertificateException: OIDs::getInstance() - Cannot find any 
provider 
supporting RSA
at java.security.AccessController.doPrivileged(Native Method)
... 21 more
Caused by: java.security.cert.CertificateException: OIDs::getInstance() - Cannot find 
any provider supporting RSA
at com.baltimore.jpkiplus.x509.JCRYPTO_X509Certificate.verify([DashoPro-
V1.3-013000])
at javax.crypto.SunJCE_b.c(DashoA6275)
at javax.crypto.SunJCE_b.b(DashoA6275)
at javax.crypto.SunJCE_s.run(DashoA6275)
... 22 more
[EMAIL PROTECTED]





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



RE: Tomcat 5.x setup question

2004-02-19 Thread Filip Hanik \(lists\)
the JK/JK2 are only if you are running tomcat with apache.
furthermore, you might have to set 

export LD_ASSUME_KERNEL=2.4 

if you are having problems with sockets

Filip

-Original Message-
From: Ryan Daly [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 8:35 AM
To: Tomcat Users List
Subject: Tomcat 5.x setup question


Hey all,

I'm trying to get Tomcat 5.x going on a Red Hat 9 system.

I noticed that there's a new way to get things going, and was wondering
if you still need the JK/JK2 connector...  If so, which connector source
should you use?

Thanks.
--

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

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.585 / Virus Database: 370 - Release Date: 2/11/2004


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



Run my code at tomcat start up

2004-02-19 Thread pabhatia





Hi,

Can i run a code that listens to a socket and reply to those echo requests.
My Problem is that i want to start this when the tomcat starts.

regards
Pankaj




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