Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel

Hi Klaus,
Hi Franck, still tomcat moans that the keystore was tampered or 
password was incorrect.


I am not sure about the password. With all questions, I gave my own 
and allways the same. Was that correct?


Yes, use your own password. 'Changeit' is only an example which is 
principally used for tests.

Don't give up!

-- Franck

Klaus




Franck Borel schrieb:


Sorry to disturb you again, but all the entries in my server.xml do 
not seem to be the problem.


*At present, TOMCAT states, that my .keystore was tampered or my 
password was incorrect.*


But I did everything over and over again, and right!

My trouble is that there are lots of descriptions of how to produce 
keys and certificates. One describes the signing of a key, the other 
descibes how to write a keystore. But all of them do not really fit 
together. Is there any step-by-step document for the full process?


I found a script which looks like:

-- 


openssl req -new -out server.csr
openssl rsa -in privkey.pem -out server.key
openssl x509 -in server.csr -out server.crt -req -signkey server.key 
-days 365


To get the keystore, I added:
java/bin/keytool -import -keystore /root/.keystore -file server.crt 
-alias wt24ca
-- 



Do I need the keystore, or can I go with the server.ke and server.crt?




Please help, I am working around and around ...

Klaus


Ok, Klaus. I think the problem is that Tomcat don't accept your 
openssl crt.  Tomcat operates only with JKS or PKCS12 (-- OpenSSL) 
format keystores and there are some limitations on the support for 
PKCS12. So, try this:


1) keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/tomcat/bin/.keystore -- creates key
2) keytool -export -alias tomcat -file tomcat-server.crt -keystore 
/opt/tomcat/bin/.keystore -- creates certificate and signs it with 
your key
3) keytool -import -file tomcat-server.crt -keystore 
/opt/tomcat/conf/cacerts -- creates a Keystore cacerts and add your 
certificate


Now, edit your server.xml:

Connector port=443
   maxThreads=150
   minSpareThreads=25
   maxSpareThreads=75
   enableLookup=false
   acceptCount=100
   debug=0
   scheme=https
   secure=true
   clientAuth=false
   sslProtocol=TLS
   keystoreFile = conf/.keystore
   keystorePass = secret
   truststoreFile = conf/cacerts/

This should work.

-- Franck








Franck Borel schrieb:

Hi Klaus,

Hi Franck,

thank you for your hint. But I am not sure, which parameter is 
which file.


To make things clear, here my procedure:

 

 openssl req -x509 -newkey rsa:512 -keyout 
./demoCA/private/cakey.pem -out ./demoCA/cacert.pem -days 1095


 openssl genrsa -out ./key.pem 512 -days 1095

 openssl req -new -key ./key.pem -out ./req.pem -days 1095

 openssl ca -in ./req.pem -out ./cert.pem  -days 1095




 chown -R root:root ./cert
 chmod -R 700 ./cert

then I cleaned cet.pem by hand (take out text before ---BEGIN 
CERTIFICATE---


The final step:
../java/bin/keytool -import -keystore ../tomcat/conf/.keystore 
-file ./cert.pem -alias wt24ca
-- 



Setting up SSL is described in diffent documents so differenly, 
that it is hard to be sure of what to do. The above, I extraced 
from several descriptions.


Could cou please tell me, which file from the above is used in 
server.xml?


You made a mix with to different tools (openssl and Java Keytool). 
I don't now if this is working. Anyway, here is an example of the 
element Connector with your values:

Connector port=443
   maxThreads=150
   minSpareThreads=25
   maxSpareThreads=75
   enableLookup=false
   acceptCount=100
   debug=0
   scheme=https
   secure=true
   clientAuth=false
   sslProtocol=TLS/

Don't forget to edit your /webapps/web.xml:

security-constraint
   ...
   user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
   /user-data-constraint
/security-constraint
-- Franck



 



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






--

Dipl.-Hyd. Franck Borel   Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED]   EDV-Dezernat
Tel. 

Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!

But... I am running out of ideas. Regarding the password: presently, I 
am using changeit for everything (just to get in running), but I still 
have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.

Could you please have a look at it and tell me your judgement? And what 
I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts
 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was incorrect
  at 
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)

  at java.security.KeyStore.load(KeyStore.java:1150)
  at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282) 

  at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222) 

  at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141) 

  at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109) 

  at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88) 

  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292) 

  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312) 

  at 
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:150) 

  at 
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75)
  at 
org.apache.catalina.connector.Connector.start(Connector.java:1089)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
12.04.2006 19:43:55 org.apache.catalina.startup.Catalina start
SCHWERWIEGEND: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.io.IOException: Keystore was tampered with, or passwor

d was incorrect
  at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)
  at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

  at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 


  at 

tomcat and mod_jk2 error messages

2006-04-13 Thread John Cherouvim

Hello

I have apache2, mod_jk2 and tomcat 5.0.28 on linux.
Sometimes tomcat fails (the process is killed somehow) or simply apache 
cannot propagate the requests to tomcat.

When this happens I get the following stuff in the apache errorlog:
[Thu Apr 13 10:03:31 2006] [error] msgAjp.receive(): Bad signature 00
[Thu Apr 13 10:03:31 2006] [error] channelApr.receive(): Bad header
[Thu Apr 13 10:03:31 2006] [error] workerEnv.processCallbacks() Error 
reading reply
[Thu Apr 13 10:03:31 2006] [error] ajp13.service() ajpGetReply 
recoverable error 12
[Thu Apr 13 10:03:31 2006] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 1 0
[Thu Apr 13 10:03:31 2006] [error] mod_jk2.handler() Error connecting to 
tomcat 12, status 0


Could someone explain me what these 6 messages mean, or point me to some 
documentation?


In addition, I run tomcat using  -Xms128m -Xmx512m
What happens in case the max heap size exceeds?

thanks


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



Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!


Thanks.
But... I am running out of ideas. Regarding the password: presently, I 
am using changeit for everything (just to get in running), but I 
still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? And 
what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts
 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck


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

Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Yes, in testphase, I do all pw's in low-cases...




Franck Borel schrieb:

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!


Thanks.
But... I am running out of ideas. Regarding the password: presently, 
I am using changeit for everything (just to get in running), but I 
still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? And 
what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 
keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 
truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts

 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck




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



--

*Klaus-F. Kaal*
Geschäftsführer

*TIMO/logic/ GmbH*
Singener Str. 42d
D-78256 Steisslingen

phone +49 7738 97096
fax +49 7738 97094
web www.timologic.com http://www.timologic.com/
mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



*Das hat es bisher noch nicht gegeben:*

*WebTresor24* http://www.webtresor24.de
*
Das Online Backup mit dem innovativen Sorglos - Konzept

Wir sorgen dafür, dass Ihr Backup nie wieder vergessen wird!*



*
*



Performance issue with Tomcat 5.0

2006-04-13 Thread opensta

In our application , jboss app server , fiorano messaging server , Tomcat 5.0
webserver ,

first time when give load of 200 users it works fine ,
but after some time 10 min , the tomcat server remains 48% idle , when there
is no load , 

when i type top command it shows java process taking 99 % cpu , 

where is issue , how to resolve it ,

in application , applets are running at client side ? is that due to applet
, 

how i should debug
--
View this message in context: 
http://www.nabble.com/Performance-issue-with-Tomcat-5.0-t1442675.html#a3895859
Sent from the Tomcat - User forum at Nabble.com.


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



R: R: Form Authentication against JNDI Datasource Realm

2006-04-13 Thread Brambilla Alessandro
Thanks but that's not the problem.. the carriage return was inserted during
copypaste, and it's not present in the original server.xml. Anyway I
probably find the REAL problem.
If I remove the realm tag from the Context I could start tomcat
otherwise I get the:

GRAVE: Begin event threw exception

java.lang.NullPointerException

at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:769)
[..]

exception.. so it seems to me there's only some possible causes:

1) tomcat can't find org.apache.catalina.realm.JDBCRealm 
(but it can find, for sure, org.apache.catalina.realm.UserDatabaseRealm) 

2) tomcat can't find com.mysql.jdbc.Driver or org.gjt.mm.mysql.Driver 
(but mysql-connector-java-3.1.12-bin.jar is already in
$CATALINA_HOME/common/lib)

3) some other class missing but which one?

So it's seems a classpath or class reference problem.. 
but I don't know how to solve it.. 

DO I have to set Some special path in global OS CLASSPATH variable?
Do the JVM need some particular configuration to run tomcat??

S***t :-/

-Messaggio originale-
Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 aprile 2006 17.39
A: Tomcat Users List
Oggetto: RE: R: Form Authentication against JNDI Datasource Realm


I suspect from the error msg that your server.xml is non well-formed
somewhere, has a syntax error or bad class name. Try checking through it, or
comparing it to a fresh server.xml from a Tomcat distro. Frustrating, but
that's all it will be I think. Not sure if the carriage return is allowed or
not in the value here ..

parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value

-Original Message-
From: Brambilla Alessandro [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2006 16:34
To: 'Tomcat Users List'
Subject: R: R: Form Authentication against JNDI Datasource Realm

so now these are my config files:

server.xml:
?xml version=1.0 encoding=UTF-8?
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
which may contain one or more Service instances.  The Server
listens for a shutdown command on the indicated port.

Note:  A Server is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 /
Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0 /

!-- Global JNDI resources --
GlobalNamingResources
!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and
saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams


/GlobalNamingResources

!-- A Service is a collection of one or more Connectors that
share
a single Container (and therefore the web applications
visible
within that Container).  Normally, that Container is an
Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may
not
define subcomponents such as Valves or Loggers at this
level.
--

!-- Define the Tomcat Stand-Alone Service --
Service name=Catalina

!-- A Connector represents an endpoint by which requests
are received
and responses are returned.  Each Connector passes
requests on to the
associated Container (normally an Engine) for
processing.


--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port
specified
during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false
redirectPort=8443
acceptCount=100 debug=0

Re: R: R: Form Authentication against JNDI Datasource Realm

2006-04-13 Thread Franck Borel

Try this:
Remove 'source' from your Context Element:
Context docBase=PMS path=/PMS
reloadable=true
-- Franck


Thanks but that's not the problem.. the carriage return was inserted during
copypaste, and it's not present in the original server.xml. Anyway I
probably find the REAL problem.
If I remove the realm tag from the Context I could start tomcat
otherwise I get the:

GRAVE: Begin event threw exception

java.lang.NullPointerException

at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
.java:769)
[..]

exception.. so it seems to me there's only some possible causes:

1) tomcat can't find org.apache.catalina.realm.JDBCRealm 
(but it can find, for sure, org.apache.catalina.realm.UserDatabaseRealm) 

2) tomcat can't find com.mysql.jdbc.Driver or org.gjt.mm.mysql.Driver 
(but mysql-connector-java-3.1.12-bin.jar is already in

$CATALINA_HOME/common/lib)

3) some other class missing but which one?

So it's seems a classpath or class reference problem.. 
but I don't know how to solve it.. 


DO I have to set Some special path in global OS CLASSPATH variable?
Do the JVM need some particular configuration to run tomcat??

S***t :-/

-Messaggio originale-
Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 12 aprile 2006 17.39
A: Tomcat Users List
Oggetto: RE: R: Form Authentication against JNDI Datasource Realm


I suspect from the error msg that your server.xml is non well-formed
somewhere, has a syntax error or bad class name. Try checking through it, or
comparing it to a fresh server.xml from a Tomcat distro. Frustrating, but
that's all it will be I think. Not sure if the carriage return is allowed or
not in the value here ..

parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value

-Original Message-
From: Brambilla Alessandro [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2006 16:34

To: 'Tomcat Users List'
Subject: R: R: Form Authentication against JNDI Datasource Realm

so now these are my config files:

server.xml:
?xml version=1.0 encoding=UTF-8?
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
which may contain one or more Service instances.  The Server
listens for a shutdown command on the indicated port.

Note:  A Server is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--
Server port=8005 shutdown=SHUTDOWN debug=0

Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0 /
Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0 /

!-- Global JNDI resources --
GlobalNamingResources
!-- Editable user database that can also be used by
UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
type=org.apache.catalina.UserDatabase
description=User database that can be updated and
saved
/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name
value

org.apache.catalina.users.MemoryUserDatabaseFactory
/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams


/GlobalNamingResources

!-- A Service is a collection of one or more Connectors that
share
a single Container (and therefore the web applications
visible
within that Container).  Normally, that Container is an
Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may
not
define subcomponents such as Valves or Loggers at this
level.
--

!-- Define the Tomcat Stand-Alone Service --
Service name=Catalina

!-- A Connector represents an endpoint by which requests
are received
and responses are returned.  Each Connector passes
requests on to the
associated Container (normally an Engine) for
processing.


--

!-- Define a non-SSL Coyote HTTP/1.1 Connector on the port
specified
during installation  --
Connector port=8080 maxThreads=150 minSpareThreads=25
 

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel

Next suggestion:
Did you make the key as root? And do you start Tomcat as root?

-- Franck

Yes, in testphase, I do all pw's in low-cases...




Franck Borel schrieb:

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!


Thanks.
But... I am running out of ideas. Regarding the password: presently, 
I am using changeit for everything (just to get in running), but I 
still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? And 
what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 
keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 
truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts

 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck




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






--

Dipl.-Hyd. Franck Borel   Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED]   EDV-Dezernat
Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach 1629
Fax  : +49-761 / 203-3987 79098 Freiburg   | 79016 Freiburg


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

Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Yes, Franck, I am root when I run key-creation and tomcat...

Franck Borel schrieb:

Next suggestion:
Did you make the key as root? And do you start Tomcat as root?

-- Franck

Yes, in testphase, I do all pw's in low-cases...




Franck Borel schrieb:

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!


Thanks.
But... I am running out of ideas. Regarding the password: 
presently, I am using changeit for everything (just to get in 
running), but I still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? And 
what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75

 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 
keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 
truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts

 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck


 



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



--

*Klaus-F. Kaal*
Geschäftsführer

*TIMO/logic/ GmbH*
Singener Str. 42d
D-78256 Steisslingen

phone +49 7738 97096
fax +49 7738 97094
web www.timologic.com http://www.timologic.com/
mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



*Das hat es bisher noch nicht gegeben:*

*WebTresor24* http://www.webtresor24.de
*
Das Online Backup mit dem innovativen Sorglos - Konzept

Wir sorgen dafür, dass Ihr Backup nie wieder vergessen wird!*



*
*



Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Rainer Jung
Use the tool of your choice (depending on your platform) to find out, 
which threads are using the cpu time. The do a Java Thread Dump and have 
a look at it.


For *nix use ps (or prstat on Solaris) to find out about the threads. 
Use kill -QUIT to write a thread dump to STDOUT (which you should 
redirect when starting the Java process).


In the Thread Dump each thread has a nid=0xSOME_HEX_NUMBER and at least 
on Solaris this SOME_HEX_NUMBER is the thread number in hexadecimal.


opensta wrote:

In our application , jboss app server , fiorano messaging server , Tomcat 5.0
webserver ,

first time when give load of 200 users it works fine ,
but after some time 10 min , the tomcat server remains 48% idle , when there
is no load , 

when i type top command it shows java process taking 99 % cpu , 


where is issue , how to resolve it ,

in application , applets are running at client side ? is that due to applet
, 


how i should debug
--
View this message in context: 
http://www.nabble.com/Performance-issue-with-Tomcat-5.0-t1442675.html#a3895859
Sent from the Tomcat - User forum at Nabble.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]



Post request to 'j_security_check' after tomcat restart or sessio n timeout produces error 400

2006-04-13 Thread Amol Upadhye
Hi,

I am using Tomcat 5.0.28 and Form based authentication. 
Here are steps to produce my problem,
1. Access secured page - tomcat forwards request to login page
2. Restart tomcat server or wait till session expires, keep login page as it
is, do not close browser window.
3. After tomcat restarts, with same login page try to login

In this case even if login information is correct tomcat throws error 400. 
This is because it looses the URL to which to forward to after
authentication.
What I want is to forward the request to the desired page (may be
preconfigured). 
Is there a way to configure so that control is forwarded to the configured
page in this case?
Current I have Error 400 handler in which if requested URL is
'j_security_check' then I redirect to the desired page (secured page). But
tomcat somehow doesn't keep authenticated principal and again presents login
screen.

Any help is very much appreciated.

Thanks,
Amol



Re: Performance issue with Tomcat 5.0

2006-04-13 Thread opensta

I already done that dump using that kill quit command 

but how can i identify the problem , following is the thread dump , please
help me how to look into

Full thread dump Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode,
sharing):

Thread-1500 prio=1 tid=0xac187838 nid=0x2b85 waiting on condition
[0xab4e6000..0xab4e7030]
at sun.misc.Unsafe.park(Native Method)
at 
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

Thread-1497 prio=1 tid=0xb23c9f38 nid=0x2ad9 waiting on condition
[0xad1f7000..0xad1f7eb0]
at sun.misc.Unsafe.park(Native Method)
at 
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

http-80-Processor1464 daemon prio=1 tid=0x08536690 nid=0x2135 in
Object.wait() [0xaebaa000..0xaebab0b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fa5f0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1463 daemon prio=1 tid=0x080c1150 nid=0x2134 in
Object.wait() [0xac4dd000..0xac4de030]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcb28 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1462 daemon prio=1 tid=0x080f51c8 nid=0x2133 in
Object.wait() [0xb112e000..0xb112efb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcda8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1460 daemon prio=1 tid=0x0832e810 nid=0x2131 in
Object.wait() [0xb173a000..0xb173aeb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a701440 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1457 daemon prio=1 tid=0x08105d18 nid=0x212e in
Object.wait() [0xabf7b000..0xabf7c130]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703840 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1456 daemon prio=1 tid=0x08543a10 nid=0x212d in
Object.wait() [0xaf1b6000..0xaf1b70b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a7038d8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1453 daemon prio=1 tid=0x082e9aa0 nid=0x212a in
Object.wait() [0xae6a..0xae6a0f30]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703970 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1450 daemon prio=1 tid=0x082f9ea0 nid=0x2127 in
Object.wait() [0xabefb000..0xabefb1b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703a08 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1449 daemon prio=1 tid=0x08350280 nid=0x2126 in
Object.wait() [0xad5ff000..0xad600130]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at

Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Ronald Klop

Do 'kill -QUIT pid-of-process' and look in your logs for the stacktraces 
about what thread is doing what.

Or run 'jstack pid-of-process'.


This works on Unix/Linux. I don't know how to do this on Windows.


Ronald.



On Thu Apr 13 09:27:36 CEST 2006 Tomcat Users List users@tomcat.apache.org 
wrote:


In our application , jboss app server , fiorano messaging server , Tomcat 5.0
webserver ,

first time when give load of 200 users it works fine ,
but after some time 10 min , the tomcat server remains 48% idle , when there
is no load , 

when i type top command it shows java process taking 99 % cpu , 


where is issue , how to resolve it ,

in application , applets are running at client side ? is that due to applet
, 


how i should debug
--
View this message in context: 
http://www.nabble.com/Performance-issue-with-Tomcat-5.0-t1442675.html#a3895859
Sent from the Tomcat - User forum at Nabble.com.


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





Server attributes in Http connector

2006-04-13 Thread Wu Haibao-a15761
 
Hi,
 
I got a problem with Tomcat that it enforces charset=ISO-8859-1 to
the Content-Type header in the response. It's very much like the problem
as described in this page:
http://groups.google.com/group/microsoft.public.windows.inetexplorer.ie6
.browser/browse_thread/thread/dda4148694bf9179/6ebf14176d967e16?lnk=stq
=charset%3DISO-8859-1+%22content+type+header%22+tomcatrnum=4hl=en#6ebf
14176d967e16
http://groups.google.com/group/microsoft.public.windows.inetexplorer.ie
6.browser/browse_thread/thread/dda4148694bf9179/6ebf14176d967e16?lnk=st
q=charset%3DISO-8859-1+%22content+type+header%22+tomcatrnum=4hl=en#6eb
f14176d967e16 
And I just found there's a server attribute in Tomcat 5.5.16,
but the description is too simple to be helpful in use:

server   The Server header for the http response. Unless your paranoid,
you won't need this feature. 

Does anyone know about this attribute?  And I am not sure if
this is the way I may change to avoid the charset=ISO-8859-1 in
response.

Thanks.

Regards,

Wu Haibao  

==
[X]General Business Information 
[]Motorola Internal Use Only 
[]Motorola Confidential Proprietary 
 


Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Ronald Klop

Do this a couple of times and see which thread stays the same and which one 
changes it stack. That's probably the one which is doing things.

Ronald.


On Thu Apr 13 11:01:01 CEST 2006 Tomcat Users List users@tomcat.apache.org 
wrote:


I already done that dump using that kill quit command 


but how can i identify the problem , following is the thread dump , please
help me how to look into

Full thread dump Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode,
sharing):

Thread-1500 prio=1 tid=0xac187838 nid=0x2b85 waiting on condition
[0xab4e6000..0xab4e7030]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

Thread-1497 prio=1 tid=0xb23c9f38 nid=0x2ad9 waiting on condition
[0xad1f7000..0xad1f7eb0]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

http-80-Processor1464 daemon prio=1 tid=0x08536690 nid=0x2135 in
Object.wait() [0xaebaa000..0xaebab0b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fa5f0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1463 daemon prio=1 tid=0x080c1150 nid=0x2134 in
Object.wait() [0xac4dd000..0xac4de030]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcb28 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1462 daemon prio=1 tid=0x080f51c8 nid=0x2133 in
Object.wait() [0xb112e000..0xb112efb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcda8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1460 daemon prio=1 tid=0x0832e810 nid=0x2131 in
Object.wait() [0xb173a000..0xb173aeb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a701440 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1457 daemon prio=1 tid=0x08105d18 nid=0x212e in
Object.wait() [0xabf7b000..0xabf7c130]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703840 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1456 daemon prio=1 tid=0x08543a10 nid=0x212d in
Object.wait() [0xaf1b6000..0xaf1b70b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a7038d8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1453 daemon prio=1 tid=0x082e9aa0 nid=0x212a in
Object.wait() [0xae6a..0xae6a0f30]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703970 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1450 daemon prio=1 tid=0x082f9ea0 nid=0x2127 in
Object.wait() [0xabefb000..0xabefb1b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703a08 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1449 daemon prio=1 tid=0x08350280 nid=0x2126 in
Object.wait() [0xad5ff000..0xad600130]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703aa0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at 

Server attributes in Http connector

2006-04-13 Thread Wu Haibao-a15761
 
Hi,
 
I got a problem with Tomcat that it enforces charset=ISO-8859-1 to
the Content-Type header in the response. It's very much like the problem
as described in this page: 
http://groups.google.com/group/microsoft.public.windows.inetexplorer.ie6
.browser/browse_thread/thread/dda4148694bf9179/6ebf14176d967e16?lnk=stq
=charset%3DISO-8859-1+%22content+type+header%22+tomcatrnum=4hl=en 
And I just found there's a server attribute in Tomcat 5.5.16,
but the description is too simple to be helpful in use:

server   The Server header for the http response. Unless your paranoid,
you won't need this feature. 

Does anyone know about this attribute?  And I am not sure if
this is the way I may change to avoid the charset=ISO-8859-1 in
response.

Thanks.

Regards,

Wu Haibao  

==
[X]General Business Information 
[]Motorola Internal Use Only 
[]Motorola Confidential Proprietary 
 


Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Peter Rossbach

Use Ctrl Break at your cmd shell.
regards
Peter


Am 13.04.2006 um 11:05 schrieb Ronald Klop:

Do 'kill -QUIT pid-of-process' and look in your logs for the  
stacktraces about what thread is doing what.


Or run 'jstack pid-of-process'.


This works on Unix/Linux. I don't know how to do this on Windows.


Ronald.



On Thu Apr 13 09:27:36 CEST 2006 Tomcat Users List  
users@tomcat.apache.org wrote:
In our application , jboss app server , fiorano messaging server ,  
Tomcat 5.0

webserver ,
first time when give load of 200 users it works fine ,
but after some time 10 min , the tomcat server remains 48% idle ,  
when there
is no load , when i type top command it shows java process taking  
99 % cpu , where is issue , how to resolve it ,
in application , applets are running at client side ? is that due  
to applet

, how i should debug
--
View this message in context: http://www.nabble.com/Performance- 
issue-with-Tomcat-5.0-t1442675.html#a3895859

Sent from the Tomcat - User forum at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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



Re: Performance issue with Tomcat 5.0

2006-04-13 Thread Rainer Jung
All tomcat internal threads seem to be safe, I can see no unusual state 
for them.


There are three threads in stacks coming from the package 
com.hedgeflex.core.common.event.* and another three coming from Fiorano. 
You should have a look at these, but they are not really good ones for a 
tomcat discussion. Did you manage to find out the thread numbers using 
the CPU? Which platform are you on?


The other thing: it could be native threads too, e.g. for garbage 
collection. Once you know the thread numbers you could also dump a 
thread stack with your OS tools and have a look there. If it's Java 
threads, you need the Java Thread Dump, because the native one will not 
show the names of the Java methods. If it's native threads, you will 
need to have a look at your os thread dump facilities.


opensta wrote:
I already done that dump using that kill quit command 


but how can i identify the problem , following is the thread dump , please
help me how to look into

Full thread dump Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode,
sharing):

Thread-1500 prio=1 tid=0xac187838 nid=0x2b85 waiting on condition
[0xab4e6000..0xab4e7030]
at sun.misc.Unsafe.park(Native Method)
at 
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

Thread-1497 prio=1 tid=0xb23c9f38 nid=0x2ad9 waiting on condition
[0xad1f7000..0xad1f7eb0]
at sun.misc.Unsafe.park(Native Method)
at 
java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:146)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1808)
at
java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:396)
at
com.hedgeflex.core.common.event.EventPublisher.run(EventPublisher.java:75)

http-80-Processor1464 daemon prio=1 tid=0x08536690 nid=0x2135 in
Object.wait() [0xaebaa000..0xaebab0b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fa5f0 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1463 daemon prio=1 tid=0x080c1150 nid=0x2134 in
Object.wait() [0xac4dd000..0xac4de030]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcb28 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1462 daemon prio=1 tid=0x080f51c8 nid=0x2133 in
Object.wait() [0xb112e000..0xb112efb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a6fcda8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1460 daemon prio=1 tid=0x0832e810 nid=0x2131 in
Object.wait() [0xb173a000..0xb173aeb0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a701440 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1457 daemon prio=1 tid=0x08105d18 nid=0x212e in
Object.wait() [0xabf7b000..0xabf7c130]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a703840 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1456 daemon prio=1 tid=0x08543a10 nid=0x212d in
Object.wait() [0xaf1b6000..0xaf1b70b0]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:656)
- locked 0x8a7038d8 (a
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable)
at java.lang.Thread.run(Thread.java:595)

http-80-Processor1453 daemon prio=1 tid=0x082e9aa0 nid=0x212a in
Object.wait() [0xae6a..0xae6a0f30]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at

Looking for simple file servlet with etag, range and if-range support

2006-04-13 Thread Duncan McGregor

Hi

I need to serve content from directories other than webapps, but need  
to support resumable downloads (and hence serve ETag response headers  
and correctly respond to Range and If-Range request headers).


I've cast high and low for some code which fits the bill, but can  
find nothing. Does anyone know of a nice file servlet implementation?


Thanks in anticipation.

Duncan McGregor

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



Re: Performance issue with Tomcat 5.0

2006-04-13 Thread opensta

One more Question :: 

for Tomcat config file these are default settings ::

   maxThreads=150 
   minSpareThreads=25 
   maxSpareThreads=75
  enableLookups=false 
   redirectPort=8443 
   acceptCount=100
   connectionTimeout=2 
   disableUploadTimeout=true 

  how i should set maximum values because , many times  it happens client
get page can not be displyed message 

this hapens when there is load of 700 concurrent users ,,

is it due to concurrency ? what should be accept count ?? or those theads ?

i am using linux machines for server 

how to go for those configurations ? please suggest , 


  


--
View this message in context: 
http://www.nabble.com/Performance-issue-with-Tomcat-5.0-t1442675.html#a3897750
Sent from the Tomcat - User forum at Nabble.com.


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



Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Franck, I suspect that my way of creating the key could be the problem.

Do you have an idea where I could find a dummy key for just checking, 
my key is not the problem. It should be a key which is already working 
with tomcat.


Thanks
Klaus





Klaus-F. Kaal schrieb:

Yes, Franck, I am root when I run key-creation and tomcat...

Franck Borel schrieb:

Next suggestion:
Did you make the key as root? And do you start Tomcat as root?

-- Franck

Yes, in testphase, I do all pw's in low-cases...




Franck Borel schrieb:

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate that!


Thanks.
But... I am running out of ideas. Regarding the password: 
presently, I am using changeit for everything (just to get in 
running), but I still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? And 
what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75

 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 
keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 
truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts

 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck


 



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






--

*Klaus-F. Kaal*
Geschäftsführer

*TIMO/logic/ GmbH*
Singener Str. 42d
D-78256 Steisslingen

phone +49 7738 97096
fax +49 7738 97094
web www.timologic.com http://www.timologic.com/
mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



*Das hat es bisher noch nicht gegeben:*

*WebTresor24* http://www.webtresor24.de
*
Das Online Backup mit dem innovativen Sorglos - Konzept

Wir sorgen dafür, dass Ihr Backup nie wieder vergessen wird!*



*
*



Re: Looking for simple file servlet with etag, range and if-range support

2006-04-13 Thread Reinhard Moosauer
Hi again,

this sounds like you should use apache for that.
Are you using a specific download manager on the client side?

Note you can always configure tomcat to serve content outside of webapps. Just 
use context.xml-Configuration:
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html
--A word on Contexts

R.

Am Donnerstag, 13. April 2006 11:55 schrieb Duncan McGregor:
 Hi

 I need to serve content from directories other than webapps, but need
 to support resumable downloads (and hence serve ETag response headers
 and correctly respond to Range and If-Range request headers).

 I've cast high and low for some code which fits the bill, but can
 find nothing. Does anyone know of a nice file servlet implementation?

 Thanks in anticipation.

 Duncan McGregor

 -
 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: RE Tomcat and SSL

2006-04-13 Thread Franck Borel

Another suggestion:
Be sure that you are using only one Java version and that this version 
is  1.4.1 (there is a known bug with this version if you use it with JSSE).


Another idea is to use the -Djavax.net.debug=all flag. I never try this, 
but it should help you to get more information about what your JSSE is 
doing (which keystore and trusstore he try to use):
open the /opt/tomcat/bin/catalina.sh and add the follwing entry for 
example after the cygwin entry:

JAVA_OPTS=$JAVA_OPTS -Djavax.net.debug=all

and restart Tomcat

-- Franck



Franck, I suspect that my way of creating the key could be the problem.

Do you have an idea where I could find a dummy key for just 
checking, my key is not the problem. It should be a key which is 
already working with tomcat.


Thanks
Klaus





Klaus-F. Kaal schrieb:

Yes, Franck, I am root when I run key-creation and tomcat...

Franck Borel schrieb:

Next suggestion:
Did you make the key as root? And do you start Tomcat as root?

-- Franck

Yes, in testphase, I do all pw's in low-cases...




Franck Borel schrieb:

Hi Klaus,


Good Morning Franck,

yesterday, you did a great job, trying to help me. I appreciate 
that!



Thanks.
But... I am running out of ideas. Regarding the password: 
presently, I am using changeit for everything (just to get in 
running), but I still have no success.

Yesterday, I sent anouther eMail explaining, what I am doing.



Could you please have a look at it and tell me your judgement? 
And what I could try additionally?

You would really help a man in trouble.

Thank you very much.
Klaus

This is what I do:



CREATE KEY:
-- 



../../java/bin/keytool -genkey -alias tomcat -keyalg RSA 
-keystore /opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -export -alias tomcat -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
../../java/bin/keytool -import -file 
/opt/wt24/apache-tomcat-5.5.16/conf/tomcat-server.crt -keystore 
/opt/wt24/apache-tomcat-5.5.16/conf/cacerts


In this process, I use the same password for all
-- 



SERVER.XML looks like this:
-- 


Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75

 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystorePass=secret
 debug=0
 
keystoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/.keystore
 
truststoreFile=/opt/wt24/apache-tomcat-5.5.16/conf/cacerts

 truststorePass=password as used in key-creation
 /
- 



When I START TOMCAT, the log shows:
 


INFO: Starting Coyote HTTP/1.1 on http-80
12.04.2006 19:43:55 org.apache.coyote.http11.Http11BaseProtocol 
start

SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was 
incorrect

Ok.
First suggestion: Passwords are case sensitve. Did you consider this?

-- Franck


 



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









--

Dipl.-Hyd. Franck Borel   Universitaetsbibliothek Freiburg
EMail: [EMAIL PROTECTED]   EDV-Dezernat
Tel. : +49-761 / 203-3908 Werthmannplatz 2 | Postfach 1629
Fax  : +49-761 / 203-3987 79098 Freiburg   | 79016 Freiburg


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

Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Hi Franck,

yes, I am using Java 1.5 ONLY

I fitted in the catalina.sh the statement you suggested. In my opinion, 
it didn't change anything in the log.

This now looks like this:

---
13.04.2006 14:00:14 org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance 
in production environments was not found on the java.library.path: /opt

/wt24/jdk1.5.0_06/jre/lib/i386/client:/opt/wt24/jdk1.5.0_06/jre/lib/i386:/opt/wt24/jdk1.5.0_06/jre/../lib/i386
13.04.2006 14:00:14 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
13.04.2006 14:00:14 org.apache.coyote.http11.Http11BaseProtocol init
SCHWERWIEGEND: Error initializing endpoint
java.io.IOException: Keystore was tampered with, or password was incorrect
   at 
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)

   at java.security.KeyStore.load(KeyStore.java:1150)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222)
   at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141)
   at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
   at 
org.apache.coyote.http11.Http11BaseProtocol.init(Http11BaseProtocol.java:138)
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1016)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)

   at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
13.04.2006 14:00:14 org.apache.catalina.startup.Catalina load
SCHWERWIEGEND: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.io.IOException: Keystore was tampered with, or password was incorrect
   at 
org.apache.catalina.connector.Connector.initialize(Connector.java:1018)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:791)

   at org.apache.catalina.startup.Catalina.load(Catalina.java:503)
   at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:247)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
13.04.2006 14:00:14 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2386 ms
13.04.2006 14:00:15 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13.04.2006 14:00:15 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.16
13.04.2006 14:00:15 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
13.04.2006 14:00:18 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
13.04.2006 14:00:18 org.apache.coyote.http11.Http11BaseProtocol start
SCHWERWIEGEND: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was incorrect
   at 
sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)

   at java.security.KeyStore.load(KeyStore.java:1150)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:282)
   at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222)
   at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141)
   at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
   at 

Re: RE Tomcat and SSL

2006-04-13 Thread Franck Borel



Does that tell you more?


Not really. But I think you must augment the debug value to 99:

Connector 
   debug=99
/

Better?

-- Franck

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

R: R: R: Form Authentication against JNDI Datasource Realm [SOLVE D]

2006-04-13 Thread Brambilla Alessandro

And finally it WORKS!!! 
It seems that tomcat failed to connect to MySql so authentication failed
too.
so I have change my connector version from 3.1.12 to 3.0.17, register the DB
as global JNDI resource in server.xml and use only a minimal set of
parameter (just username, password, driver class and connection url). I've
added a reference in myapp web.xml,
and I've created the  mmyapp Context in server.xml. Inside that context
I've declared my DataSourceRealm pointing at my JNDI datasource and.. IT
WORKS! :-

Thank's for the useful help!

ale 

-Messaggio originale-
Da: Franck Borel [mailto:[EMAIL PROTECTED]
Inviato: giovedì 13 aprile 2006 10.34
A: Tomcat Users List
Oggetto: Re: R: R: Form Authentication against JNDI Datasource Realm


Try this:
Remove 'source' from your Context Element:
Context docBase=PMS path=/PMS
 reloadable=true
-- Franck

 Thanks but that's not the problem.. the carriage return was inserted
during
 copypaste, and it's not present in the original server.xml. Anyway I
 probably find the REAL problem.
 If I remove the realm tag from the Context I could start tomcat
 otherwise I get the:

 GRAVE: Begin event threw exception

 java.lang.NullPointerException

   at

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader
 .java:769)
 [..]

 exception.. so it seems to me there's only some possible causes:

 1) tomcat can't find org.apache.catalina.realm.JDBCRealm 
 (but it can find, for sure, org.apache.catalina.realm.UserDatabaseRealm) 

 2) tomcat can't find com.mysql.jdbc.Driver or org.gjt.mm.mysql.Driver 
 (but mysql-connector-java-3.1.12-bin.jar is already in
 $CATALINA_HOME/common/lib)

 3) some other class missing but which one?

 So it's seems a classpath or class reference problem.. 
 but I don't know how to solve it.. 

 DO I have to set Some special path in global OS CLASSPATH variable?
 Do the JVM need some particular configuration to run tomcat??

 S***t :-/

 -Messaggio originale-
 Da: Allistair Crossley [mailto:[EMAIL PROTECTED]
 Inviato: mercoledì 12 aprile 2006 17.39
 A: Tomcat Users List
 Oggetto: RE: R: Form Authentication against JNDI Datasource Realm


 I suspect from the error msg that your server.xml is non well-formed
 somewhere, has a syntax error or bad class name. Try checking through it,
or
 comparing it to a fresh server.xml from a Tomcat distro. Frustrating, but
 that's all it will be I think. Not sure if the carriage return is allowed
or
 not in the value here ..

 parameter
 namefactory/name
 value
   
 org.apache.catalina.users.MemoryUserDatabaseFactory
 /value

 -Original Message-
 From: Brambilla Alessandro [mailto:[EMAIL PROTECTED] 
 Sent: 12 April 2006 16:34
 To: 'Tomcat Users List'
 Subject: R: R: Form Authentication against JNDI Datasource Realm

 so now these are my config files:

 server.xml:
 ?xml version=1.0 encoding=UTF-8?
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
   parent-child relationships with each other --
 !-- A Server is a singleton element that represents the entire JVM,
   which may contain one or more Service instances.  The Server
   listens for a shutdown command on the indicated port.
   
   Note:  A Server is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
 --
 Server port=8005 shutdown=SHUTDOWN debug=0

   Listener
   
 className=org.apache.catalina.mbeans.ServerLifecycleListener
   debug=0 /
   Listener
   
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
   debug=0 /

   !-- Global JNDI resources --
   GlobalNamingResources
   !-- Editable user database that can also be used by
   UserDatabaseRealm to authenticate users --
   Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and
 saved
   /Resource
   ResourceParams name=UserDatabase
   parameter
   namefactory/name
   value
   
 org.apache.catalina.users.MemoryUserDatabaseFactory
   /value
   /parameter
   parameter
   namepathname/name
   valueconf/tomcat-users.xml/value
   /parameter
   /ResourceParams

   
   /GlobalNamingResources

   !-- A Service is a collection of one or more Connectors that
 share
   a single Container (and therefore the web applications
 visible
   within that Container).  Normally, that Container is an
 Engine,
   but this is not required.
   
   Note:  A 

Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
Hello,

Users will be entering a file URL with file extension into browser. How
must you configure Tomcat to serve up a file for browser download rather
than a web page?

Thanks in advance,



Information contained in this e-mail and any attachments are intended for the 
use of the addressee only, and may contain confidential information of Ubiquity 
Software Corporation.  All unauthorized use, disclosure or distribution is 
strictly prohibited.  If you are not the addressee, please notify the sender 
immediately and destroy all copies of this email.  Unless otherwise expressly 
agreed in writing signed by an officer of Ubiquity Software Corporation, 
nothing in this communication shall be deemed to be legally binding.  Thank you.



Datasource for Tomcat 5.5 and sybase jconnect5

2006-04-13 Thread Médérick Thebault
After spending sometime to set-up such things, I finally got an answer 
from Sybase forum. But as this list was the first I looked at, I feel it 
will be usefull to post the solution.


After copying the jconn2.jar file into $CATALINA_HOME/common/lib, add

Resource name=jdbc/mybase type=javax.sql.DataSource
driverClassName=com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource 
maxIdle=2

maxWait=5000
username=bla  url=jdbc:sybase:Tds:myadress:myport
maxActive=4/

to your server.xml conf file, add the ResourceLink to your web-app 
context.xml file and that's it. I had some difficulties to find that 
driverClassName.


HTH,

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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread John Powers
If the file is in the web folder then you can just path to it
http://localhost:8080/somedir/somefile.ext


But if it isn't, then a servlet can read in from a file stream and read
out to the servlet's out stream...




-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 8:35 AM
To: users@tomcat.apache.org
Subject: Serve a file instead of a page using Tomcat.

Hello,

Users will be entering a file URL with file extension into browser. How
must you configure Tomcat to serve up a file for browser download rather
than a web page?

Thanks in advance,



Information contained in this e-mail and any attachments are intended
for the use of the addressee only, and may contain confidential
information of Ubiquity Software Corporation.  All unauthorized use,
disclosure or distribution is strictly prohibited.  If you are not the
addressee, please notify the sender immediately and destroy all copies
of this email.  Unless otherwise expressly agreed in writing signed by
an officer of Ubiquity Software Corporation, nothing in this
communication shall be deemed to be legally binding.  Thank you.


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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
Thanks for your response,

I don't see a web folder for Tomcat, only under webapps. Will I need
to deploy a WAR file to do this?

Thanks...

-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 10:17 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

If the file is in the web folder then you can just path to it
http://localhost:8080/somedir/somefile.ext


But if it isn't, then a servlet can read in from a file stream and read
out to the servlet's out stream...




-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 8:35 AM
To: users@tomcat.apache.org
Subject: Serve a file instead of a page using Tomcat.

Hello,

Users will be entering a file URL with file extension into browser. How
must you configure Tomcat to serve up a file for browser download rather
than a web page?

Thanks in advance,



Information contained in this e-mail and any attachments are intended
for the use of the addressee only, and may contain confidential
information of Ubiquity Software Corporation.  All unauthorized use,
disclosure or distribution is strictly prohibited.  If you are not the
addressee, please notify the sender immediately and destroy all copies
of this email.  Unless otherwise expressly agreed in writing signed by
an officer of Ubiquity Software Corporation, nothing in this
communication shall be deemed to be legally binding.  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: Tomcat on AIX, IBM's JVM. Was Re: [OT] AIX filtering Explorer?

2006-04-13 Thread tschaeffer
[EMAIL PROTECTED] wrote on 04/07/2006 01:28:42 PM:

 Tremal Naik [EMAIL PROTECTED] wrote on 04/07/2006 09:48:53 AM:
 
  2006/4/4, Tremal Naik [EMAIL PROTECTED]:
   I have no problem with Firefox, while IE looks as if it get lost. 
The
   secure request does not arrive on the tomcat server. Where did it 
go?
  
  from the Tomcat SSL howto:
  
  http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
  
  sslProtocol - It is reported that IBM's 1.4.1 implementation of the
  TLS protocol is not compatible with some popular browsers. In this
  case, use the value SSL.
  
  Now it works. Alternatively, you can leave the default settings but
  enable the TLS protocol in IE using Tools - Internet Options -
  Security
 
 Hi,
 
 I'm glad you brought this up.  We are using Tomcat on AIX with IBM's 
JVM. 
 We have setup the Connector in the server.xml file, changing the 
algorithm 
 and sslProtocol as the SSL How-to instructed. At first it worked, but 
now 
 it doesn't.  We have not changed the configuration of Tomcat, nor have 
we 
 changed the JDK.  When we connect, we get a notice about the 
certificate, 
 but it does not display the pages: IE tells us that it can't find any 
 pages, and Firefox just shows us blank pages. Here is the Connector 
 configuration:
 
 Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8443 
maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
enableLookups=false disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https secure=true
clientAuth=false sslProtocol=SSL
algorithm=IbmX509/
 
 We don't need a secure connection now, but we will when we install the 
 system for the client. I was hoping to avoid the installation of Apache 
on 
 our clients' systems.  Does anyone know how this could happen?
 
 Thanks,
 
 Tim S

FWIW,

I thought I had solved this problem yesterday, because I could connect on 
8080 and 8443, all hunky-dory.  When I started today, however, things were 
still hunky on 8080, but nothing dorey on 8443.  At that point I thought 
it had as much to do with the phases of the moon as anyting else, but with 
debug=99, catalina.out showed this:

WARNING: Error registering contexts
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java(Compiled 
Code))
at java.util.HashMap$EntryIterator.next(HashMap.java(Compiled 
Code))
at java.util.HashMap.putAllForCreate(HashMap.java(Compiled Code))
at java.util.HashMap.clone(HashMap.java:811)
at 
mx4j.server.DefaultMBeanRepository.clone(DefaultMBeanRepository.java(Inlined 
Compiled Code))
at 
mx4j.server.MBeanServerImpl.findMBeansByPattern(MBeanServerImpl.java(Compiled 
Code))
at 
mx4j.server.MBeanServerImpl.queryObjectNames(MBeanServerImpl.java:1568)
at 
mx4j.server.MBeanServerImpl.queryMBeans(MBeanServerImpl.java:1512)
at 
org.apache.coyote.tomcat5.MapperListener.init(MapperListener.java:115)
at 
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1537)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled
 
Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

I had two connectors: were these conflicting? Commenting out the connector 
on 8080 relieved the conflict, and I can now connect on 8443---dory, but 
no hunky.  For now.

Is this a known problem?  I had a redirect on the 8080 port too but 
eliminating that didn't help; only disabling one enables the other.

Tim S.

__
This email has been scanned by the MessageLabs Email Security System.
Our company accepts no liability for the content of this email, or for the 
consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing.
Any views or opinions presented in this email are solely those of the 
author and do not necessarily represent those of the company.
WARNING: Computer viruses can be transmitted via email.
The recipient should check this email and any attachments for the 
presence of viruses. The company accepts no liability for any damage 
caused by any virus transmitted by this 

Re: RE Tomcat and SSL

2006-04-13 Thread Klaus-F. Kaal

Hi Franck,

coming back to my issue: How can I make sure that my certificate is 
right for tomcat? Could I attach it at one of these eMails? Or are 
attachments not allowed?  Could you test it?


Would be great.

Thanks
Klaus


Klaus-F. Kaal schrieb:

Franck,

I changed that and restartet Tomcat. No different reading in the logs

Klaus



Franck Borel schrieb:



Does that tell you more?


Not really. But I think you must augment the debug value to 99:

Connector 
   debug=99
/

Better?

-- Franck



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






--

*Klaus-F. Kaal*
Geschäftsführer

*TIMO/logic/ GmbH*
Singener Str. 42d
D-78256 Steisslingen

phone +49 7738 97096
fax +49 7738 97094
web www.timologic.com http://www.timologic.com/
mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]



*Das hat es bisher noch nicht gegeben:*

*WebTresor24* http://www.webtresor24.de
*
Das Online Backup mit dem innovativen Sorglos - Konzept

Wir sorgen dafür, dass Ihr Backup nie wieder vergessen wird!*



*
*



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread John Powers
Whatever file you defined as a host in your server.xml will work..  (or
any subdirectory of course).

So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

And in there you have a folder called \123\

With a file blah.ext

You can just serve out with 

http://Hostname:port/123/blah.ext


-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 9:26 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

Thanks for your response,

I don't see a web folder for Tomcat, only under webapps. Will I need
to deploy a WAR file to do this?

Thanks...

-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 10:17 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

If the file is in the web folder then you can just path to it
http://localhost:8080/somedir/somefile.ext


But if it isn't, then a servlet can read in from a file stream and read
out to the servlet's out stream...




-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 8:35 AM
To: users@tomcat.apache.org
Subject: Serve a file instead of a page using Tomcat.

Hello,

Users will be entering a file URL with file extension into browser. How
must you configure Tomcat to serve up a file for browser download rather
than a web page?

Thanks in advance,



Information contained in this e-mail and any attachments are intended
for the use of the addressee only, and may contain confidential
information of Ubiquity Software Corporation.  All unauthorized use,
disclosure or distribution is strictly prohibited.  If you are not the
addressee, please notify the sender immediately and destroy all copies
of this email.  Unless otherwise expressly agreed in writing signed by
an officer of Ubiquity Software Corporation, nothing in this
communication shall be deemed to be legally binding.  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: Looking for simple file servlet with etag, range and if-range support

2006-04-13 Thread Duncan McGregor

Reinhard, thanks for replying to both of these.

I'd like to deploy only Tomcat - its for a standalone app. Whilst I  
can serve from outside of the webapps directory, the content is still  
part of the webapp.


We are uploading content by FTP and fetching with HTTPClient. If I  
write the content into my webapp directory it will be overwritten  
when the app is upgraded. But if I write the content into anywhere  
else the DefaultServlet won't serve it. (It won't surprise you to  
learn that my DefaultServlet bug report is connected:-)


Hence my interest in a version of DefaultServlet which I can point at  
another root in the filesystem.


Duncan

On 13 Apr 2006, at 12:28, Reinhard Moosauer wrote:


Hi again,

this sounds like you should use apache for that.
Are you using a specific download manager on the client side?

Note you can always configure tomcat to serve content outside of  
webapps. Just

use context.xml-Configuration:
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html
--A word on Contexts

R.

Am Donnerstag, 13. April 2006 11:55 schrieb Duncan McGregor:

Hi

I need to serve content from directories other than webapps, but need
to support resumable downloads (and hence serve ETag response headers
and correctly respond to Range and If-Range request headers).

I've cast high and low for some code which fits the bill, but can
find nothing. Does anyone know of a nice file servlet implementation?

Thanks in anticipation.

Duncan McGregor



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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
I understand what you are saying... 

My appbase is the default webapps directory. Under webapps I created a
video\3gp folder and in it is a file video.3gp. I added the following
Mime mapping to the web.xml 

mime-mapping
extension3gp/extension
mime-typevideo/3gpp/mime-type
/mime-mapping

I stopped and then started tomcat and entered the URL in the browser

http://localhost:8080/video/3gp/video.3gp 

however I receive 404 The requested resource is not available...



-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 11:13 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

Whatever file you defined as a host in your server.xml will work..  (or
any subdirectory of course).

So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

And in there you have a folder called \123\

With a file blah.ext

You can just serve out with 

http://Hostname:port/123/blah.ext


-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 9:26 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

Thanks for your response,

I don't see a web folder for Tomcat, only under webapps. Will I need
to deploy a WAR file to do this?

Thanks...

-Original Message-
From: John Powers [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 10:17 AM
To: Tomcat Users List
Subject: RE: Serve a file instead of a page using Tomcat.

If the file is in the web folder then you can just path to it
http://localhost:8080/somedir/somefile.ext


But if it isn't, then a servlet can read in from a file stream and read
out to the servlet's out stream...




-Original Message-
From: Rob Elliott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 8:35 AM
To: users@tomcat.apache.org
Subject: Serve a file instead of a page using Tomcat.

Hello,

Users will be entering a file URL with file extension into browser. How
must you configure Tomcat to serve up a file for browser download rather
than a web page?

Thanks in advance,



Information contained in this e-mail and any attachments are intended
for the use of the addressee only, and may contain confidential
information of Ubiquity Software Corporation.  All unauthorized use,
disclosure or distribution is strictly prohibited.  If you are not the
addressee, please notify the sender immediately and destroy all copies
of this email.  Unless otherwise expressly agreed in writing signed by
an officer of Ubiquity Software Corporation, nothing in this
communication shall be deemed to be legally binding.  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]



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



Embedded Tomcat stops deploying WARs when using custom ClassLoader

2006-04-13 Thread Andrew McDowall
Hi,

I am currently working on a fairly complex system which provides a means
to incorporate 'pluggable' functionality using an embedded Tomcat -
essentially it allows WARs to be dropped into a specific directory, the
embedded Tomcat then unpacks and deploys the WAR.

This has been working without any problems up until a few days ago when
I started incorporating our own proprietary ClassLoader into the system.
The rationale behind the ClassLoader is that I need to provide a degree
of separation between certain sub-components of the system while still
providing common shared libraries for all components - much like the
ClassLoading solution provided by Catalina.  My own ClassLoader now
allows me to navigate a tree of child ClassLoaders in an order different
to that of the standard Java delegation model ie: in my solution I wish
to perform a depth-first search rather than simply being limited to one
branch. 

The solution implemented is working (give or take a few minor flaws)
except for now the embedded Tomcat no longer deploys WARs.  At first I
believed this to be an issue with the ContextClassLoader for the Thread
in which the embedded Tomcat runs, but after investigation I am not so
sure.  It should be noted that the embedded Tomcat itself does not
produce any errors so I am at a loss to understand exactly why it has
stopped working, it's as if it is failing silently.  None of the
configuration for Tomcat has changed between the versions using the
System ClassLoader and the new version using the new custom ClassLoader.

I would be very grateful for any help with this problem, thanks in
advance.

 

Andy McDowall



--- Disclaimer ---

Unless otherwise agreed expressly in writing by a Director of Edina Software, 
this communication is to be treated as confidential and the information in it 
may not be used or disclosed except for the purpose for which it has been sent. 
If you have reason to believe that you are not the intended recipient of this 
communication, please contact the sender immediately. 

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

Re: Serve a file instead of a page using Tomcat.

2006-04-13 Thread P Y
The default webapp is in ROOT/, so, create the directory ROOT/video
to be reached through  http://localhost:8080/video/
...

On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 I understand what you are saying...

 My appbase is the default webapps directory. Under webapps I created a
 video\3gp folder and in it is a file video.3gp. I added the following
 Mime mapping to the web.xml

 mime-mapping
 extension3gp/extension
 mime-typevideo/3gpp/mime-type
 /mime-mapping

 I stopped and then started tomcat and entered the URL in the browser

 http://localhost:8080/video/3gp/video.3gp

 however I receive 404 The requested resource is not available...



 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 11:13 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Whatever file you defined as a host in your server.xml will work..  (or
 any subdirectory of course).

 So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

 And in there you have a folder called \123\

 With a file blah.ext

 You can just serve out with

 http://Hostname:port/123/blah.ext


 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 9:26 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Thanks for your response,

 I don't see a web folder for Tomcat, only under webapps. Will I need
 to deploy a WAR file to do this?

 Thanks...

 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 10:17 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 If the file is in the web folder then you can just path to it
 http://localhost:8080/somedir/somefile.ext


 But if it isn't, then a servlet can read in from a file stream and read
 out to the servlet's out stream...




 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 8:35 AM
 To: users@tomcat.apache.org
 Subject: Serve a file instead of a page using Tomcat.

 Hello,

 Users will be entering a file URL with file extension into browser. How
 must you configure Tomcat to serve up a file for browser download rather
 than a web page?

 Thanks in advance,



 Information contained in this e-mail and any attachments are intended
 for the use of the addressee only, and may contain confidential
 information of Ubiquity Software Corporation.  All unauthorized use,
 disclosure or distribution is strictly prohibited.  If you are not the
 addressee, please notify the sender immediately and destroy all copies
 of this email.  Unless otherwise expressly agreed in writing signed by
 an officer of Ubiquity Software Corporation, nothing in this
 communication shall be deemed to be legally binding.  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]



 -
 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: Serve a file instead of a page using Tomcat.

2006-04-13 Thread John Powers
Ya, I would avoid using webapps as a host.. set the appbase to
webapps/ROOT

Or whatever folder you want..   if you use webapps and put in other
appbases in there, then they get loaded twice...no need for that.

-Original Message-
From: P Y [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 11:07 AM
To: Tomcat Users List
Subject: Re: Serve a file instead of a page using Tomcat.

The default webapp is in ROOT/, so, create the directory ROOT/video
to be reached through  http://localhost:8080/video/
...

On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 I understand what you are saying...

 My appbase is the default webapps directory. Under webapps I created
a
 video\3gp folder and in it is a file video.3gp. I added the following
 Mime mapping to the web.xml

 mime-mapping
 extension3gp/extension
 mime-typevideo/3gpp/mime-type
 /mime-mapping

 I stopped and then started tomcat and entered the URL in the browser

 http://localhost:8080/video/3gp/video.3gp

 however I receive 404 The requested resource is not available...



 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 11:13 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Whatever file you defined as a host in your server.xml will work..
(or
 any subdirectory of course).

 So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

 And in there you have a folder called \123\

 With a file blah.ext

 You can just serve out with

 http://Hostname:port/123/blah.ext


 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 9:26 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Thanks for your response,

 I don't see a web folder for Tomcat, only under webapps. Will I need
 to deploy a WAR file to do this?

 Thanks...

 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 10:17 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 If the file is in the web folder then you can just path to it
 http://localhost:8080/somedir/somefile.ext


 But if it isn't, then a servlet can read in from a file stream and
read
 out to the servlet's out stream...




 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 8:35 AM
 To: users@tomcat.apache.org
 Subject: Serve a file instead of a page using Tomcat.

 Hello,

 Users will be entering a file URL with file extension into browser.
How
 must you configure Tomcat to serve up a file for browser download
rather
 than a web page?

 Thanks in advance,



 Information contained in this e-mail and any attachments are intended
 for the use of the addressee only, and may contain confidential
 information of Ubiquity Software Corporation.  All unauthorized use,
 disclosure or distribution is strictly prohibited.  If you are not the
 addressee, please notify the sender immediately and destroy all copies
 of this email.  Unless otherwise expressly agreed in writing signed by
 an officer of Ubiquity Software Corporation, nothing in this
 communication shall be deemed to be legally binding.  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]



 -
 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: Performance issue with Tomcat 5.0

2006-04-13 Thread Filip Hanik - Dev lists

you wanna support 700 concurrent connections on 150 threads?
maxThreads==max number of concurrent connections

but in your case, put in a profiler, and that will tell you very quickly 
what is causing the CPU spikes.


Filip


opensta wrote:
One more Question :: 


for Tomcat config file these are default settings ::

   maxThreads=150 
	   minSpareThreads=25 
	   maxSpareThreads=75
  enableLookups=false 
	   redirectPort=8443 
   acceptCount=100
   connectionTimeout=2 
	   disableUploadTimeout=true 


  how i should set maximum values because , many times  it happens client
get page can not be displyed message 


this hapens when there is load of 700 concurrent users ,,

is it due to concurrency ? what should be accept count ?? or those theads ?

i am using linux machines for server 

how to go for those configurations ? please suggest , 



  



--
View this message in context: 
http://www.nabble.com/Performance-issue-with-Tomcat-5.0-t1442675.html#a3897750
Sent from the Tomcat - User forum at Nabble.com.


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


  



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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
Thanks for your response.

I placed it under ROOT and I get the message HTTP Status 404 -
video/3gp/video.3gp.

What's interesting is that if I enter http://localhost:8080/ I get the
admin page and then if I append video I see directory listing containing
the 3gp directory, append 3gp and see video.3gp etc. I can get to the
file this way but I want to specify the entire URL at once...

-Original Message-
From: P Y [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 12:07 PM
To: Tomcat Users List
Subject: Re: Serve a file instead of a page using Tomcat.

The default webapp is in ROOT/, so, create the directory ROOT/video
to be reached through  http://localhost:8080/video/
...

On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 I understand what you are saying...

 My appbase is the default webapps directory. Under webapps I created
a
 video\3gp folder and in it is a file video.3gp. I added the following
 Mime mapping to the web.xml

 mime-mapping
 extension3gp/extension
 mime-typevideo/3gpp/mime-type
 /mime-mapping

 I stopped and then started tomcat and entered the URL in the browser

 http://localhost:8080/video/3gp/video.3gp

 however I receive 404 The requested resource is not available...



 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 11:13 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Whatever file you defined as a host in your server.xml will work..
(or
 any subdirectory of course).

 So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

 And in there you have a folder called \123\

 With a file blah.ext

 You can just serve out with

 http://Hostname:port/123/blah.ext


 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 9:26 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Thanks for your response,

 I don't see a web folder for Tomcat, only under webapps. Will I need
 to deploy a WAR file to do this?

 Thanks...

 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 10:17 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 If the file is in the web folder then you can just path to it
 http://localhost:8080/somedir/somefile.ext


 But if it isn't, then a servlet can read in from a file stream and
read
 out to the servlet's out stream...




 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 8:35 AM
 To: users@tomcat.apache.org
 Subject: Serve a file instead of a page using Tomcat.

 Hello,

 Users will be entering a file URL with file extension into browser.
How
 must you configure Tomcat to serve up a file for browser download
rather
 than a web page?

 Thanks in advance,



 Information contained in this e-mail and any attachments are intended
 for the use of the addressee only, and may contain confidential
 information of Ubiquity Software Corporation.  All unauthorized use,
 disclosure or distribution is strictly prohibited.  If you are not the
 addressee, please notify the sender immediately and destroy all copies
 of this email.  Unless otherwise expressly agreed in writing signed by
 an officer of Ubiquity Software Corporation, nothing in this
 communication shall be deemed to be legally binding.  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]



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



Tomcat 5.5 SSL Configuration problem, can't connect!

2006-04-13 Thread Jana Nguyen
Hi there,

I am running Tomcat 5.5 on RH Linux as user 'tomcat', I'm trying to
get tomcat to run on a secure port 8443 instead of 8080.  I
uncommented the SSL HTTP/1.1 Connector entry in
$CATALINA_HOME/conf/server.xml and generated a host certificate as
user 'tomcat'.  The .keystore file got generated in the tomcat home
dir.  After I restarted the tomcat container I launch my browser to:

https://hostname:8443

I get error unable to connect to server

In the CATALINA logs, I get the following error:
INFO: Pausing Coyote HTTP/1.1 on http-8443
Apr 12, 2006 9:04:15 PM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:677)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)

Any help would be appreciated!

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



multiple context with one Tomcat5.x instance

2006-04-13 Thread Tom Miller
Is there a how to for linux on how to get more than 
one context to work under Tomcat 5.x?

I am not using ../webapps/ROOT  as a default context. 
I am trying to get three context under ../webapps/ 
../webapps/production/
../webapps/qa/
../webapps/sandbox/

to work with one tomcat instance and with multiple 
Virtual host and jkworker.

Thanks,

Tom


 Original message 
Date: Thu, 13 Apr 2006 13:33:12 -0400
From: Rob Elliott [EMAIL PROTECTED]  
Subject: RE: Serve a file instead of a page using Tomcat.  
To: Tomcat Users List users@tomcat.apache.org

Thanks for your response.

I placed it under ROOT and I get the message HTTP Status 
404 -
video/3gp/video.3gp.

What's interesting is that if I enter http://localhost:8080/ 
I get the
admin page and then if I append video I see directory 
listing containing
the 3gp directory, append 3gp and see video.3gp etc. I can 
get to the
file this way but I want to specify the entire URL at once...

-Original Message-
From: P Y [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 12:07 PM
To: Tomcat Users List
Subject: Re: Serve a file instead of a page using Tomcat.

The default webapp is in ROOT/, so, create the directory 
ROOT/video
to be reached through  http://localhost:8080/video/
...

On 4/13/06, Rob Elliott [EMAIL PROTECTED] 
wrote:
 I understand what you are saying...

 My appbase is the default webapps directory. Under 
webapps I created
a
 video\3gp folder and in it is a file video.3gp. I added 
the following
 Mime mapping to the web.xml

 mime-mapping
 extension3gp/extension
 mime-typevideo/3gpp/mime-type
 /mime-mapping

 I stopped and then started tomcat and entered the URL in 
the browser

 http://localhost:8080/video/3gp/video.3gp

 however I receive 404 The requested resource is not 
available...



 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 11:13 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Whatever file you defined as a host in your server.xml 
will work..
(or
 any subdirectory of course).

 So if your appbase is c:\someDirOnMachine\stuff\abc\xyz\

 And in there you have a folder called \123\

 With a file blah.ext

 You can just serve out with

 http://Hostname:port/123/blah.ext


 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 9:26 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 Thanks for your response,

 I don't see a web folder for Tomcat, only under webapps. 
Will I need
 to deploy a WAR file to do this?

 Thanks...

 -Original Message-
 From: John Powers [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 10:17 AM
 To: Tomcat Users List
 Subject: RE: Serve a file instead of a page using Tomcat.

 If the file is in the web folder then you can just path to 
it
 http://localhost:8080/somedir/somefile.ext


 But if it isn't, then a servlet can read in from a file 
stream and
read
 out to the servlet's out stream...




 -Original Message-
 From: Rob Elliott [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 8:35 AM
 To: users@tomcat.apache.org
 Subject: Serve a file instead of a page using Tomcat.

 Hello,

 Users will be entering a file URL with file extension into 
browser.
How
 must you configure Tomcat to serve up a file for browser 
download
rather
 than a web page?

 Thanks in advance,



 Information contained in this e-mail and any attachments 
are intended
 for the use of the addressee only, and may contain 
confidential
 information of Ubiquity Software Corporation.  All 
unauthorized use,
 disclosure or distribution is strictly prohibited.  If you 
are not the
 addressee, please notify the sender immediately and 
destroy all copies
 of this email.  Unless otherwise expressly agreed in 
writing signed by
 an officer of Ubiquity Software Corporation, nothing in 
this
 communication shall be deemed to be legally binding.  
Thank you.


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



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


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



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



-

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



-

To 

tomcat build for PDA (arm processor) ipaq or sharp

2006-04-13 Thread Tom Miller
Greetings,

Do we have a binary version of Tomcat build for PDA (ipaq or 
sharp zaurus) arm processor?  If not can some one help?

Thanks,

Tom

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



Full GC vs regular GC?

2006-04-13 Thread David Kerber
Can somebody tell me what the difference is between a full GC and a 
regular GC?  Here's an excerpt from my jakarta-service log, when I 
have the verbose gc option set.  You can see that the total memory used 
drops hugely.  I was intentionally letting my app continue to run to see 
what would happen when I got close to my max memory setting, and all 
that happened is that I got that Full GC.  Up until then, I thought I 
had a slow (a few bytes per request) memory leak, but could not find 
it.  Now I can see that maybe I don't have one after all?


[2006-04-13 13:03:33] [info] [GC
[2006-04-13 13:03:34] [info] 126790K-120408K(130112K)
[2006-04-13 13:03:34] [info] , 0.3863446 secs]
[2006-04-13 13:05:30] [info] [GC
[2006-04-13 13:05:30] [info] 128536K-122004K(130240K)
[2006-04-13 13:05:31] [info] , 0.2881931 secs]
[2006-04-13 13:05:31] [info] [Full GC
[2006-04-13 13:05:31] [info] 122004K-22246K(130240K)
[2006-04-13 13:05:32] [info] , 0.8706296 secs]
[2006-04-13 13:08:05] [info] [GC
[2006-04-13 13:08:05] [info] 30438K-22346K(130176K)
[2006-04-13 13:08:05] [info] , 0.3083372 secs]
[2006-04-13 13:11:30] [info] [GC
[2006-04-13 13:11:30] [info] 30538K-22385K(130176K)
[2006-04-13 13:11:30] [info] , 0.3139466 secs]


Dave



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



RE: Full GC vs regular GC?

2006-04-13 Thread John Powers
I'm not certain about the full terminology, but a minor gc will sweep
the new generation in the heap.  These are common.   Major gc's harvest
free objects in the tenured generation.  There are different methods to
mark an object as good or bad in either GC..copy works well in the
new since we assume most are dead upon creation anyway.   Where as
tenured objects tend to hang around longer so we don't want to copy over
all the good ones.. so mark-sweep or some other method is used.
Anyway, long story short, the complete GC is usually a bigger effort and
not as common. There are 6 I think different gc's you can use now..


-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 12:54 PM
To: Tomcat Users List
Subject: Full GC vs regular GC?

Can somebody tell me what the difference is between a full GC and a 
regular GC?  Here's an excerpt from my jakarta-service log, when I 
have the verbose gc option set.  You can see that the total memory used 
drops hugely.  I was intentionally letting my app continue to run to see

what would happen when I got close to my max memory setting, and all 
that happened is that I got that Full GC.  Up until then, I thought I 
had a slow (a few bytes per request) memory leak, but could not find 
it.  Now I can see that maybe I don't have one after all?

[2006-04-13 13:03:33] [info] [GC
[2006-04-13 13:03:34] [info] 126790K-120408K(130112K)
[2006-04-13 13:03:34] [info] , 0.3863446 secs]
[2006-04-13 13:05:30] [info] [GC
[2006-04-13 13:05:30] [info] 128536K-122004K(130240K)
[2006-04-13 13:05:31] [info] , 0.2881931 secs]
[2006-04-13 13:05:31] [info] [Full GC
[2006-04-13 13:05:31] [info] 122004K-22246K(130240K)
[2006-04-13 13:05:32] [info] , 0.8706296 secs]
[2006-04-13 13:08:05] [info] [GC
[2006-04-13 13:08:05] [info] 30438K-22346K(130176K)
[2006-04-13 13:08:05] [info] , 0.3083372 secs]
[2006-04-13 13:11:30] [info] [GC
[2006-04-13 13:11:30] [info] 30538K-22385K(130176K)
[2006-04-13 13:11:30] [info] , 0.3139466 secs]


Dave



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


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



Re: 5.5.16, Too many open files on startup

2006-04-13 Thread Filip Hanik - Dev lists
the question is if you're ulimit really is unlimited. there are a few 
settings, linux has 1024 for open files.


[EMAIL PROTECTED] tomcat]$ ulimit
unlimited

[EMAIL PROTECTED] tomcat]$ ulimit -a
core file size(blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size   (kbytes, -m) unlimited
open files(-n) 1024
pipe size  (512 bytes, -p) 8
stack size(kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes(-u) 7168
virtual memory(kbytes, -v) unlimited

Filip

Corey Kaiser wrote:

Hi,

I have a server.xml with 37 virtual hosts defined, each with 1 root context
also defined in the same file (yes, not recommended, but not explicitly
disallowed either, right?).

Tomcat starts up fine and is solid with this config on 5.5.15, but not on
5.5.16.

After 14 loaded contexts on 5.5.16, I get Too many open files errors, and
exceptions like:
Apr 10, 2006 5:56:23 PM org.apache.catalina.startup.ContextConfig
processContextConfig
SEVERE: Missing default web.xml, using application web.xml only
conf/context.xml /usr/local/tomcat/conf/context.xml
java.io.FileNotFoundException: /usr/local/tomcat/conf/context.xml (Too many
open files)

That context.xml is in place and contains default values.

I did notice that a change was made between 5.5.15 and 5.5.16 that may have
something to do with this (from the ChangeLog):
Deploy folders which don't have a WEB-INF, and return an error when a
context file does not contain a Context element (remm)

Not sure why folders without a WEB-INF are being deployed now, as I have
many folders that contain static content that I certainly don't want
deployed as webapps.

Also, I'm on Linux, and my ulimit is set to unlimited.

Any help greatly appreciated.
-corey






-
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: Serve a file instead of a page using Tomcat.

2006-04-13 Thread P Y
On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 Thanks for your response.

 I placed it under ROOT and I get the message HTTP Status 404 -
 video/3gp/video.3gp.

 What's interesting is that if I enter http://localhost:8080/ I get the
 admin page and then if I append video I see directory listing containing
 the 3gp directory, append 3gp and see video.3gp etc. I can get to the
 file this way but I want to specify the entire URL at once...

I would bet it's a problem with your browser's cache.
You may want to try with another file  videooo.3gp ?
Also check the tomcat logs to make sure there's an actual request.

2.



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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
Yes I suspected that too and started deleting all offline content before
each attempt.. no luck.

I've become more adventurous and have now specified a video directory
(same level as webapps folder) and created a ROOT under it and then a
3gp\video.3gp under that. I set the localhost appbase to video I
stopped and then started Tomcat. I hit
http://localhost:8080/3gp/video.3gp  in the browser and I get The page
cannot be found I'm missing something. I found a doc stating that I
should set my Context path but I don't have that entry in my
server.xml. Not sure if this would have any effect or not...

Thanks..

-Original Message-
From: P Y [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 2:56 PM
To: Tomcat Users List
Subject: Re: Serve a file instead of a page using Tomcat.

On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 Thanks for your response.

 I placed it under ROOT and I get the message HTTP Status 404 -
 video/3gp/video.3gp.

 What's interesting is that if I enter http://localhost:8080/ I get the
 admin page and then if I append video I see directory listing
containing
 the 3gp directory, append 3gp and see video.3gp etc. I can get to the
 file this way but I want to specify the entire URL at once...

I would bet it's a problem with your browser's cache.
You may want to try with another file  videooo.3gp ?
Also check the tomcat logs to make sure there's an actual request.

2.



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




Information contained in this e-mail and any attachments are intended for the 
use of the addressee only, and may contain confidential information of Ubiquity 
Software Corporation.  All unauthorized use, disclosure or distribution is 
strictly prohibited.  If you are not the addressee, please notify the sender 
immediately and destroy all copies of this email.  Unless otherwise expressly 
agreed in writing signed by an officer of Ubiquity Software Corporation, 
nothing in this communication shall be deemed to be legally binding.  Thank you.


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



RE: Serve a file instead of a page using Tomcat.

2006-04-13 Thread Rob Elliott
BTW I do not see any request in the logs...

-Original Message-
From: Rob Elliott 
Sent: Thursday, April 13, 2006 3:12 PM
To: 'Tomcat Users List'
Subject: RE: Serve a file instead of a page using Tomcat.

Yes I suspected that too and started deleting all offline content before
each attempt.. no luck.

I've become more adventurous and have now specified a video directory
(same level as webapps folder) and created a ROOT under it and then a
3gp\video.3gp under that. I set the localhost appbase to video I
stopped and then started Tomcat. I hit
http://localhost:8080/3gp/video.3gp  in the browser and I get The page
cannot be found I'm missing something. I found a doc stating that I
should set my Context path but I don't have that entry in my
server.xml. Not sure if this would have any effect or not...

Thanks..

-Original Message-
From: P Y [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 2:56 PM
To: Tomcat Users List
Subject: Re: Serve a file instead of a page using Tomcat.

On 4/13/06, Rob Elliott [EMAIL PROTECTED] wrote:
 Thanks for your response.

 I placed it under ROOT and I get the message HTTP Status 404 -
 video/3gp/video.3gp.

 What's interesting is that if I enter http://localhost:8080/ I get the
 admin page and then if I append video I see directory listing
containing
 the 3gp directory, append 3gp and see video.3gp etc. I can get to the
 file this way but I want to specify the entire URL at once...

I would bet it's a problem with your browser's cache.
You may want to try with another file  videooo.3gp ?
Also check the tomcat logs to make sure there's an actual request.

2.



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




Information contained in this e-mail and any attachments are intended for the 
use of the addressee only, and may contain confidential information of Ubiquity 
Software Corporation.  All unauthorized use, disclosure or distribution is 
strictly prohibited.  If you are not the addressee, please notify the sender 
immediately and destroy all copies of this email.  Unless otherwise expressly 
agreed in writing signed by an officer of Ubiquity Software Corporation, 
nothing in this communication shall be deemed to be legally binding.  Thank you.


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



Where to download mod_jk?

2006-04-13 Thread Jana Nguyen
Hi there,

I want to download the mod_jk for linux or unix platform.  Where can I
find the tarball for this?  I went to the following link and nothings
there:

http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.html

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



RE: Where to download mod_jk?

2006-04-13 Thread Derrick Koes
 http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/

-Original Message-
From: Jana Nguyen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 4:11 PM
To: users@tomcat.apache.org
Subject: Where to download mod_jk?

Hi there,

I want to download the mod_jk for linux or unix platform.  Where can I
find the tarball for this?  I went to the following link and nothings
there:

http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.htm
l

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



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



Re: Where to download mod_jk?

2006-04-13 Thread Vamsidhar
http://tomcat.apache.org/connectors-doc/

thanks,
Vamsi.

On 4/13/06, Jana Nguyen [EMAIL PROTECTED] wrote:

 Hi there,

 I want to download the mod_jk for linux or unix platform.  Where can I
 find the tarball for this?  I went to the following link and nothings
 there:

 http://jakarta.apache.org/site/downloads/downloads_tomcat-connectors.html

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




JNDI DB Connection Pooling with SSL

2006-04-13 Thread Eric Roberts

PROBLEM:

I am having a problem setting up DB connection pooling with  
Postgresql through JNDI in Tomcat 5.5.15.  I have a portlet  
application that is hosted in the GridSphere portlet container that,  
upon initialization, gets a database connection from JNDI.  The  
database that I am connecting to REQUIRES an SSL connection so my  
question is mostly about passing the usessl argument in the JNDI  
config but I have included my setup to make sure I'm doing everything  
correctly.


ENVIRONMENT
Linux
Java 1.4.2
Tomcat 5.5.15

Assuming my webapp name is account-portlet Here's my setup:

I have a context file in $CATALINA_HOME/conf/Catalina/localhost/ 
account-portlet.xml and the contents look like the following:


!-- The contents of this file will be loaded for each web  
application --
Context path=/tg-account-portlets docBase=tg-account-portlets  
debug=1


!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource

Resource name=jdbc/jndihandle
  auth=Container
  type=javax.sql.DataSource
   
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory

  driverClassName=org.postgresql.Driver
  username=account_user
  password=secret
  url=jdbc:postgresql://pgsql.server.org:5432/mydb
  connectionProperties=useSSL=force
  /

	.other Resource elements where I'm trying other combinations of  
properties


/Context

I also have the following in my web.xml:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;

web-app


resource-ref
  descriptionDataSource/description
  res-ref-namejdbc/jndidatasource/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref

/web-app

I am getting a JNDI context as follows:

public void init() throws PortletException {
try {
Context initContext = new InitialContext();
Context envContext = (Context) initContext.lookup(java:/ 
comp/env);


//if (context == null) {
//throw new Exception (Uh oh -- no context!);
//}

DataSource ds = (DataSource) envContext.lookup(jdbc/ 
jndihandle);


if (ds == null) {
throw new Exception(Data source not found!);
}

conn = ds.getConnection();
}catch(NamingException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}

When I run my application I get the following error in catalina.out:

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create  
PoolableConnectionFactory (Connection rejected: FATAL:  No  
pg_hba.conf entry for host hidden, user account_user, database mydb


this tells me that the JNDI stuff is working but the SSL property is  
not being set.  I've tried appending?useSSL=force to the url  
attribute, I've tried appending ;useSSL=force to the url attribute.   
I still get the  same error message.  I have been unable to find any  
examples of people passing the useSSL property in the JNDI config.   
Any Ideas?


Many Thanks,

Eric




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



Setting up to use 443

2006-04-13 Thread David Shaw
I have troubled setting up server.xml to use port 443 - always report that 
The page cannot be displayed in IE.  8080 and 8443 works fine though.  
Using the same setting in server.xml and just changing the port to use 8443 
instead of 443, I can access using https://localhost:8443.  Any idea what I 
need to set in order to get 443 working?


Thanks,

David

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Re: Setting up to use 443

2006-04-13 Thread Mike Sabroff

run as root else nothing less than 1024

David Shaw wrote:
I have troubled setting up server.xml to use port 443 - always report 
that The page cannot be displayed in IE.  8080 and 8443 works fine 
though.  Using the same setting in server.xml and just changing the 
port to use 8443 instead of 443, I can access using 
https://localhost:8443.  Any idea what I need to set in order to get 
443 working?


Thanks,

David

_
Don�t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



--
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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