dedicating client ports

2005-04-27 Thread Kristian Rink
Hi all;

now after I got tomcat to serve SOAP to our testbed client (thanks to all
around here who pointed me out how to get SOAP to work with tomcat),
I am stuck with a more practical detail of handling SOAP connections
within tomcat context.

Situation: The client that shall connect to our server in the future is 
about to create two SOAP connections, one for session control and
one for accessing business logic. For that, the clients initially
connects to the session control logic and expects to in return
get a port number (and eventually a host name, if on a different
server) where to connect to the business logic server.

Question: Is there an easy way to, within axis/tomcat, create a
SOAP service listening on a different port than the tomcat server
itself? Basically, I like the idea of having session control and business
logic communication on different logical connections, but I'm not
completely sure yet how to get such a setup done with tomcat.


TIA and bye,
Kris


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

TC v5.5.9 Won't Server *.htm Files

2005-04-27 Thread Bob Bronson
Hello all,
I'm sure this must be a configuration issue. I am running TC 5.5.9 as a
stand-alone server (not w/Apache). The problem I'm seeing is that when
I point my browser to an index.htm file, Tomcat gives me a 404,
telling me it cannot find index.jsp.
Please notice I said, index.htm and not index.html.
Here's a peek at the HTTP headers as captured by Firefox. I'm only
showing the relevant headers.
GET /fred/bob/index.htm HTTP/1.1
Host: xxx.test1.com
HTTP/1.x 404 /fred/bob/index.jsp
Server: Apache-Coyote/1.1
Is that crazy? I'm asking for index.htm and it  *DOES* exist. If I
rename it to index.html everything works fine.
I know what you're thinking -- probably I do not have the welcome
files set right in my default web.xml. Well, here it is:
   welcome-file-list
   welcome-fileindex.html/welcome-file
   welcome-fileindex.htm/welcome-file
   welcome-fileindex.jsp/welcome-file
   /welcome-file-list
And I am *NOT* overriding these in the web app's web.xml.
Can someone running TC 5.5.9 as a standalone server please see if you
can serve an index.htm file?
Thanks much,
Bob

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


AW: Jk and IIS 6 slow (resent)

2005-04-27 Thread Michael Südkamp
Hello Mladen,

Checking again revealed that the IIS default website itself has become slow.
We hadn't noticed this before because we don't use the IIS for anything else
than for the Tomcat redirect. We have no idea what has happened to the
default web site. If we add a new one, it's fast again.

So sorry for blaming JK.

Michael

 -Ursprüngliche Nachricht-
 Von: Mladen Turk [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 26. April 2005 13:44
 An: Tomcat Users List
 Betreff: Re: Jk and IIS 6 slow (resent)


 Michael Südkamp wrote:
 
  The strange thing is that other W2003 webservers we set up
 the same way have
  not this problem. We are even sure that the problem
 webservers had not had
  this problem some weeks ago.
 

 How about your dns? I wold suggest that you use IP addresses for
 your host names.
 Do you think that might be a problem?
 Also do you have some AV software installed on that box?

 Anyhow, some basic config is preferred if you wish to get any help.
 With your post we can only guess ;)

 Regards,
 Mladen



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



SEVERE: Error unregistering mbean

2005-04-27 Thread Francois JEANMOUGIN
I have this error, a lot of time, on an application. Anyone knows where it
can come from?

Apr 27, 2005 7:02:37 AM org.apache.commons.modeler.Registry
unregisterComponent
SEVERE: Error unregistering mbean
javax.management.RuntimeOperationsException: Object name cannot be null
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBe
anServerInterceptor.java:545)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)
at
org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:706)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:683)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Object name cannot be null
... 7 more

Thanks for any help,

François.

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



RE: dedicating client ports

2005-04-27 Thread Peter Crowther
 From: Kristian Rink [mailto:[EMAIL PROTECTED] 
 Question: Is there an easy way to, within axis/tomcat, create a
 SOAP service listening on a different port than the tomcat server
 itself?

Yes, I think (beware: I have not tried this).  Create two Services in
your server.xml; each has its own set of Connectors and Hosts.  This
gives you two separate sets of webapps to play with, each on its own set
of connectors and hence ports.

- Peter

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



wil Tomcat stop request thread after a timeout?

2005-04-27 Thread Michael Südkamp
Hello,

I wonder if Tomcat will stop a servlet execution thread after a certain
timeout (adjustable?)?

Michael


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



RE: Problems declaring same servlet-class with diff names

2005-04-27 Thread Raghupathy,Gurumoorthy
This is to with struts not tomcat ... 

The below link can help  ( for struts )

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Regards
Guru


-Original Message-
From: Meghana Joglekar [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2005 00:54
To: tomcat
Subject: Problems declaring same servlet-class with diff names


Hi,

We are trying to integrate 2 products, both running on tomcat. They
both use same servlet class but refer to using different
servlet-name. here is a snippet from web.xml

--
servlet
servlet-namecontrol/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value
/WEB-INF/struts/struts-config_guide.xml
/param-value
/init-param
load-on-startup300/load-on-startup
/servlet
servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.collage.xml/param-value
/init-param
init-param
param-namedetail/param-name
param-value2/param-value
/init-param
 load-on-startup20/load-on-startup
/servlet


and there are mappings called '/control/*' and '/action/*' for both of
them respectively. But the reference loaded at later point of time
does not servlet instance for that class and all requests result in
'Invalid path requested' errors. e.g In above case 'control' servlet
is to be loaded after 'action' and all '/control/*' requests fail.
Is the configuration correct? If it is is this known bug and is there
any fix/workaround?
Any suggestion, advice is appreciated.

Thanks in advance,
Meghana.

-
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: apache + tomcat + JK connector configuration

2005-04-27 Thread Raghupathy,Gurumoorthy
http://www.one0.com/html/downloads.php

Download the pdf ( nice ) / doc version Nice :o)

Guru 

-Original Message-
From: anshul shrivastava [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2005 18:08
To: Tomcat Users List
Subject: Re: apache + tomcat + JK connector configuration
Importance: High



Hi all,

This is my first post to group. I've already asked this problem in popular
forums, but can't resolve. Hope, someone of you'll help. Thank you, in
advance, very much.

I'm using Tomcat Apache Tomcat/5.0.16 on jdk 1.5.0 ( port 8080 ). I've
installed Apache2 ( port 80 ) using MSI installer on Windows 200
Professional. I want to use mod_jserv and connect Tomcat, Apache and
database MySQL.

I read, it is better not to process .html requests by Tomcat, instead by
Apache. Also, I want to run .jsp files from ~/wwwroot ( Apache is already
working PHP files in ~/wwwroot ). Someone of you, said to forward, .jsp to
Apache using .htaccess. Also, it can be done by Apache Module, how ? Please
also tell me, where ( exact url ) can I download jk_connecter or mod_jserv ?
( I've already downloaded something! ).

Please help.
anshul shrivastava
( I'm very new to Java; swithcing to Java! from PHP )

What is the username/password for http://localhost:8080/admin/

What is catalina, by the way ? ( h'ven't seen it in previous versions ).




- Original Message - 
From: Delphine Lê [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Monday, April 18, 2005 6:26 PM
Subject: RE: apache + tomcat + JK connector configuration

Bob,
Thank you but Apache doesn't start if I add this line.
The Apache config I have is:

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
JkMount /examples worker1

It seems to works fine (see the logs in my very first message).
And also, I can see that it automatically creates a mod_jk.conf file in
$TOMCAT_HOME\conf\auto
Regards

-Original Message-
From: Robert Harrison [mailto:[EMAIL PROTECTED] 
Sent: vendredi 15 avril 2005 19:52
To: Tomcat Users List
Subject: Re: apache + tomcat + JK connector configuration
Delphine,
Have you added JkSet config.file ... to your apache config file?
Bob

On 4/14/05, Delphine Lê [EMAIL PROTECTED] wrote:
 I tried this, but it didn't help unfortunately
 Thank you
 
  Are you using load balance in your app?  If not, you probably don't
need
  this line:
 
  worker.worker1.lbfactor=50
 
  Try to use this configuration in the server.xml
 
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
  port=6969 minProcessors=5 maxProcessors=75
  enableLookups=false acceptCount=10 debug=0/
 
  Hope this helps...
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 6:41 PM
  To: tomcat-user@jakarta.apache.org
  Subject: RE: apache + tomcat + JK connector configuration
 
  thank you, but it's got them:
 
  # Define 1 real worker using ajp13
  worker.list=worker1
  # Set properties for worker1 (ajp13)
  worker.worker1.type=ajp13
  worker.worker1.host=localhost
  worker.worker1.port=6969
  worker.worker1.lbfactor=50
  worker.worker1.cachesize=10
  worker.worker1.cache_timeout=600
  worker.worker1.socket_keepalive=1
  worker.worker1.reclycle_timeout=300
 
  Post the workers.properties file.  You probably need to include
these
  lines in that file:
 
  worker.list=worker1
  worker.worker1.port=6969
 
  -Original Message-
  From: Delphine Lê [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 13, 2005 2:01 PM
  To: tomcat-user@jakarta.apache.org
  Subject: apache + tomcat + JK connector configuration
 
 
  Hello,
 
  Has anyone had any success in configuring Apache (2.0.53) with
Tomcat
  (4.1.29) in Windows XP, using a recent JK connector ?
 
  We have a server running with the JK2 connector and I'm trying to
  replace it with the latest JK connector (JK-1.2.10), the reason
being
  that JK2 is officially unsupported as of 15 Nov 2004 and we're
  experiencing a problem with truncated requests due to this
connector.
 
  In Apache, I configured a worker called worker1 and I send
everything
  from context /examples to this worker following
  http://jakarta.apache.org/tomcat/connectors-doc/howto/quick.html.
 
  The configuration looks fine, since I can see in the following
lines in
  mod_jk.log:
 
  [Wed Apr 13 18:49:13 2005] [debug]
  uri_worker_map_add::jk_uri_worker_map.c (269): exact rule
  /examples=worker1 was added
 
  [Wed Apr 13 18:49:13 2005] [debug] build_worker_map::jk_worker.c
(219):
  creating worker worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(125):
  about to create instance worker1 of ajp13
 
  [Wed Apr 13 18:49:13 2005] [debug] wc_create_worker::jk_worker.c
(138):
  about to validate and init worker1
 
  [Wed Apr 13 18:49:13 2005] [debug] ajp_validate::jk_ajp_common.c
(1781):
  worker worker1 contact is 'localhost:6969'
 
  However, if I send a 

Tomcat SSL Client Authentication

2005-04-27 Thread lercoli
Hello

I've configured Tomcat SSL Client Authentication with these settings :



web.xml

...
security-constraint

web-resource-collection

web-resource-nameEntire Application/web-resource-name

url-pattern/*/url-pattern

http-methodGET/http-method

http-methodPOST/http-method

/web-resource-collection

user-data-constraint

transport-guaranteeCONFIDENTIAL/transport-guarantee

/user-data-constraint

/security-constraint


login-config

auth-methodCLIENT-CERT/auth-method

/login-config 

.



server.xml

.

Connector port=8443 maxHttpHeaderSize=8192

maxThreads=150 minSpareThreads=25 maxSpareThreads=75

enableLookups=false disableUploadTimeout=true

acceptCount=100 scheme=https secure=true

clientAuth=false sslProtocol=TLS 

keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks keystorePass=changeit

truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks /



...



Client certificate (client.cer) is installed in my IE Browser (version 6.0.28).

When I invoke htpps://localhost:8443/myweapp appears a window that asks me to 
accept the server certificate.

I accept and my webapp index page appears.

So why I don't see a window for client authentication ?

And why I 've the same behaviour also when I remove the client.cer from my 
Browser ?

It seems that client-certification doesn't work.



Any help would be greatly appreciated.



Thank You



Luca Ercoli


Parse error in web.xml

2005-04-27 Thread nikhilesh goel
Hello,

I am facing an error in getting tomcat to display even
my index page. When invoking the url i get an HTTP
Status 404 error The requested resource (/) is not
available. The log gives the following error:

2005-04-21 10:59:15 ContextConfig[/manager] Parse
error in default web.xml
org.xml.sax.SAXParseException: Premature end of file.
at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24


---
I have tried copied the web.xml files from another
running server lest there be some problem with
unclosed tags etc but the problem continues to
persist.
I would be obliged if anyone could throw some light on
this problem

Regards
Nikhilesh


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



RE: All threads (250) are currently busy

2005-04-27 Thread Dale, Matt

You can use the tomcat manager application to find out which threads are busy. 
And secondly send a SIGHUP to the JVM and it will do a thread dump allowing you 
to work out what your threads are doing.

You possibly have some kind of thread leak causing you to run out.

Ta
Matt

-Original Message-
From: Paul Grimwood [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 21:27
To: Tomcat Users List
Subject: Re: All threads (250) are currently busy


This post has gone quiet, yet this is still a major problem for us in out 
live environment. Does anyone know the reason/solution (please see 
original post)? If so, please be more expansive than saying 'if you set it 
up right, it will work'.

cheers

Paul






Patty O'Reilly [EMAIL PROTECTED]
21/04/2005 11:50
Please respond to Tomcat Users List

 
To: Tomcat Users List tomcat-user@jakarta.apache.org
cc: 
Subject:Re: AW: All threads (250) are currently busy


Can you share your apache connector config?

On Wed, 20 Apr 2005, Zsolt Koppany wrote:

 Date: Wed, 20 Apr 2005 11:08:33 +0200
 From: Zsolt Koppany [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Subject: AW: All threads (250) are currently busy

 We had the same problem, but after configuring the apache connector
 correctly the problem disappeared.

 Zsolt

  -Ursprüngliche Nachricht-
  Von: Paul Grimwood [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 20. April 2005 06:07
  An: tomcat-user@jakarta.apache.org
  Betreff: All threads (250) are currently busy
 
  Tomcat hangs intermittently (1 to 10 days) with the following message 
in
  catalina.out
 
  20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull
  SEVERE: All threads (250) are currently busy, waiting. Increase 
maxThreads
  (250) or check the servlet status
 
 
  We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora 
Core
  2 against an Oracle9 DB.
 
  I have seen various posts to this with suggestions including setting 
Linux
  threads with LD_ASSUME_KERNEL (tried but problem still exists) and 
setting
  connection timeout in server.xml from 0 to 6 (but ours is set at 
2
  already). And we have already upgraded to latest Tomcat and JRE to no
  avail. Despite reviewing the mailing list over the past 18 to 24 
months, i
  am none the wiser.
 
  The problem started around the time we deployed the code onto a new 
server
  running a later Linux version but this could be a red herring and I
  suspect it is a database connection issue. Has anyone got any ideas?
 
  -
  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: TC v5.5.9 Won't Server *.htm Files

2005-04-27 Thread Remy Maucherat
On 4/27/05, Bob Bronson [EMAIL PROTECTED] wrote:
 Hello all,
 
 I'm sure this must be a configuration issue. I am running TC 5.5.9 as a
 stand-alone server (not w/Apache). The problem I'm seeing is that when
 I point my browser to an index.htm file, Tomcat gives me a 404,
 telling me it cannot find index.jsp.
 
 Please notice I said, index.htm and not index.html.
 
 Here's a peek at the HTTP headers as captured by Firefox. I'm only
 showing the relevant headers.
 
 GET /fred/bob/index.htm HTTP/1.1
 Host: xxx.test1.com
 
 HTTP/1.x 404 /fred/bob/index.jsp
 Server: Apache-Coyote/1.1
 
 Is that crazy? I'm asking for index.htm and it  *DOES* exist. If I
 rename it to index.html everything works fine.
 
 I know what you're thinking -- probably I do not have the welcome
 files set right in my default web.xml. Well, here it is:
 
 welcome-file-list
 welcome-fileindex.html/welcome-file
 welcome-fileindex.htm/welcome-file
 welcome-fileindex.jsp/welcome-file
 /welcome-file-list
 
 And I am *NOT* overriding these in the web app's web.xml.
 
 Can someone running TC 5.5.9 as a standalone server please see if you
 can serve an index.htm file?

As it did sound funky enough to be verifiable, I tried it. Renamed
index.html - index.htm in servlet-examples, but it worked fine
(/servlet-examples/ returns the file, as does
/servlet-examples/index.htm, but /servlet-examples/index.html returns
a 404).

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Hello,
 
 I am facing an error in getting tomcat to display even
 my index page. When invoking the url i get an HTTP
 Status 404 error The requested resource (/) is not
 available. The log gives the following error:
 
 2005-04-21 10:59:15 ContextConfig[/manager] Parse
 error in default web.xml
 org.xml.sax.SAXParseException: Premature end of file.
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
 
 
 ---
 I have tried copied the web.xml files from another
 running server lest there be some problem with
 unclosed tags etc but the problem continues to
 persist.
 I would be obliged if anyone could throw some light on
 this problem
 
 Regards
 Nikhilesh
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Take a look at CATALINA_HOME\conf\web.xml. If another one is available
replace with that one.
-- 
Anto Paul

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



Delivery by mail

2005-04-27 Thread Craigmcc
--  Virus Warning Message (on the network)

Found virus WORM_BAGLE.AZ in file siupd02.cpl
The file siupd02.cpl is moved to /var/quarantine/virus/virLQD1IBf6P.

This is a machine-generated message, please do not reply via e-mail. If you 
have questions, please contact the Lucent Help Desk at +1 888 300 0770.

-

--  Virus Warning Message (on the network)

siupd02.cpl is removed from here because it contains a virus.

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

Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread reynir
hi,

do you have the connector on port 8009 in your tomcat ?
do you have the /jakarta virtual folder in IIS ?

hope it helps
-reynir


Tony Nakamura wrote:

Hi Reynir,

Yes, the tomcat is on localhost, and I'm trying to access directly from the
server right now.
I can access the site with: http://localhost:8080/test/login.jsp but not
without specifying 8080 port.
404 is from IIS log, and it seems to have changed from 404:03 to 404:02.

Just for kicks, I also tried to replace localhost with an ip address, but it
was the same result.


Thanks,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 11:48 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


  

Hi,

Looks like the isapi_redirector is forwarding the request to the
localhost host of your tomcat setup. is it there ?
Check the access logs on the tomcat application. See if it's receiving
the request.

your error message, the 404, is it from tomcat (the blue one) or is it
from IIS ?

hope it helps,
- reynir

Tony Nakamura wrote:



Hi,

I uninstalled the exe version of isapi_redirect and decided to manually
configure them.
As a result, I got the green arrow, and I'm able to see output in the log
file given isapi_redirect runs
in debug mode.  The log looks like the following.  This log from when I'm
trying to run the IIS in 5.0 isolation mode.
There is no output in the log file when I set the log level to error,
  

but
  

I still get 404 File Not Found error when I try to access
http://localhost/test/login.jsp


Thanks!


Tony


==
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1040): Using registry.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1044): Using log level 1.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1047): Using worker mount file
C:\tomcat5.0.28\conf\uriworkermap.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] init_jk::jk_isapi_plugin.c
(1049): Using uri select 0.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
/*jsp=main was added
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

build_worker_map::jk_worker.c
  

(196): creating worker main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

wc_create_worker::jk_worker.c
  

(120): about to create instance main of ajp13
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

wc_create_worker::jk_worker.c
  

(133): about to validate and init main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

ajp_validate::jk_ajp_common.c
  

(1721): worker main contact is localhost:8009
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1767): setting socket keepalive to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1806): setting socket timeout to -1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1810): setting connection recycle timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1814): setting cache timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1818): setting connect timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1822): setting reply timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1826): setting prepost timeout to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1830): setting recovery opts to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1834): setting number of retries to 3
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1854): setting connection cache size to 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

build_worker_map::jk_worker.c
  

(208): removing old main worker
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (636): Detected IIS = 5.0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (687): Filter started
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
HttpFilterProc::jk_isapi_plugin.c (753): Virtual Host redirection of
/localhost/test/login.jsp
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]

Re: Parse error in web.xml

2005-04-27 Thread nikhilesh goel
Dear Anto,

thanks for the tip but my Tomcat refuses to budge. I
am still getting the same error.

Regards
Nikhilesh

--- Anto Paul [EMAIL PROTECTED] wrote:
 On 4/27/05, nikhilesh goel
 [EMAIL PROTECTED] wrote:
  Hello,
  
  I am facing an error in getting tomcat to display
 even
  my index page. When invoking the url i get an HTTP
  Status 404 error The requested resource (/) is
 not
  available. The log gives the following error:
 
 
  2005-04-21 10:59:15 ContextConfig[/manager] Parse
  error in default web.xml
  org.xml.sax.SAXParseException: Premature end of
 file.
  at
 

org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
  Source)
  at
 

org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at
 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
  at
 

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
  at
 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
  
  
 
 ---
  I have tried copied the web.xml files from another
  running server lest there be some problem with
  unclosed tags etc but the problem continues to
  persist.
  I would be obliged if anyone could throw some
 light on
  this problem
  
  Regards
  Nikhilesh
  
 


  Yahoo! India Matrimony: Find your life partner
 online
  Go to: http://yahoo.shaadi.com/india-matrimony
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 Take a look at CATALINA_HOME\conf\web.xml. If
 another one is available
 replace with that one.
 -- 
 Anto Paul
 

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


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Dear Anto,
 
 thanks for the tip but my Tomcat refuses to budge. I
 am still getting the same error.
 
 Regards
 Nikhilesh
 
 --- Anto Paul [EMAIL PROTECTED] wrote:
  On 4/27/05, nikhilesh goel
  [EMAIL PROTECTED] wrote:
   Hello,
  
   I am facing an error in getting tomcat to display
  even
   my index page. When invoking the url i get an HTTP
   Status 404 error The requested resource (/) is
  not
   available. The log gives the following error:
  
  
   2005-04-21 10:59:15 ContextConfig[/manager] Parse
   error in default web.xml
   org.xml.sax.SAXParseException: Premature end of
  file.
   at
  
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
   Source)
   at
  
 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at
  
 
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
   at
  
 
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
   at
  
 
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
   
   
  
  ---
   I have tried copied the web.xml files from another
   running server lest there be some problem with
   unclosed tags etc but the problem continues to
   persist.
   I would be obliged if anyone could throw some
  light on
   this problem
  
   Regards
   Nikhilesh
  
  
 
 
   Yahoo! India Matrimony: Find your life partner
  online
   Go to: http://yahoo.shaadi.com/india-matrimony
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
  Take a look at CATALINA_HOME\conf\web.xml. If
  another one is available
  replace with that one.
  --
  Anto Paul
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 

What OS you are using ?.
-- 
Anto Paul

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



Re: Parse error in web.xml

2005-04-27 Thread nikhilesh goel
Hi,

OS is Sun Solaris 2.9 while the application server is
Tomcat 4.1.30. Also, I would like to mention that this
problem was not there from the start. The server was
working perfectly till some seemingly harmless jsp
changes triggered a sudden collapse.

Regards

--- Anto Paul [EMAIL PROTECTED] wrote:
 On 4/27/05, nikhilesh goel
 [EMAIL PROTECTED] wrote:
  Dear Anto,
  
  thanks for the tip but my Tomcat refuses to budge.
 I
  am still getting the same error.
  
  Regards
  Nikhilesh
  
  --- Anto Paul [EMAIL PROTECTED] wrote:
   On 4/27/05, nikhilesh goel
   [EMAIL PROTECTED] wrote:
Hello,
   
I am facing an error in getting tomcat to
 display
   even
my index page. When invoking the url i get an
 HTTP
Status 404 error The requested resource (/)
 is
   not
available. The log gives the following error:
   
  
 
2005-04-21 10:59:15 ContextConfig[/manager]
 Parse
error in default web.xml
org.xml.sax.SAXParseException: Premature end
 of
   file.
at
   
  
 

org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
   
  
 

org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
   
  
 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
at
   
  
 

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
at
   
  
 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24


   
  
 ---
I have tried copied the web.xml files from
 another
running server lest there be some problem with
unclosed tags etc but the problem continues to
persist.
I would be obliged if anyone could throw some
   light on
this problem
   
Regards
Nikhilesh
   
   
  
 


Yahoo! India Matrimony: Find your life partner
   online
Go to: http://yahoo.shaadi.com/india-matrimony
   
   
  
 

-
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
   Take a look at CATALINA_HOME\conf\web.xml. If
   another one is available
   replace with that one.
   --
   Anto Paul
  
  
 

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


  Yahoo! India Matrimony: Find your life partner
 online
  Go to: http://yahoo.shaadi.com/india-matrimony
  
 
 What OS you are using ?.
 -- 
 Anto Paul
 

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


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Hi,
 
 OS is Sun Solaris 2.9 while the application server is
 Tomcat 4.1.30. Also, I would like to mention that this
 problem was not there from the start. The server was
 working perfectly till some seemingly harmless jsp
 changes triggered a sudden collapse.
 
 Regards
 
 --- Anto Paul [EMAIL PROTECTED] wrote:
  On 4/27/05, nikhilesh goel
  [EMAIL PROTECTED] wrote:
   Dear Anto,
  
   thanks for the tip but my Tomcat refuses to budge.
  I
   am still getting the same error.
  
   Regards
   Nikhilesh
  
   --- Anto Paul [EMAIL PROTECTED] wrote:
On 4/27/05, nikhilesh goel
[EMAIL PROTECTED] wrote:
 Hello,

 I am facing an error in getting tomcat to
  display
even
 my index page. When invoking the url i get an
  HTTP
 Status 404 error The requested resource (/)
  is
not
 available. The log gives the following error:

   
  
 2005-04-21 10:59:15 ContextConfig[/manager]
  Parse
 error in default web.xml
 org.xml.sax.SAXParseException: Premature end
  of
file.
 at

   
  
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at

   
  
 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
 
 

   
  ---
 I have tried copied the web.xml files from
  another
 running server lest there be some problem with
 unclosed tags etc but the problem continues to
 persist.
 I would be obliged if anyone could throw some
light on
 this problem

 Regards
 Nikhilesh


   
  
 
 
 Yahoo! India Matrimony: Find your life partner
online
 Go to: http://yahoo.shaadi.com/india-matrimony


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


   
Take a look at CATALINA_HOME\conf\web.xml. If
another one is available
replace with that one.
--
Anto Paul
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
  
 
 
   Yahoo! India Matrimony: Find your life partner
  online
   Go to: http://yahoo.shaadi.com/india-matrimony
  
 
  What OS you are using ?.
  --
  Anto Paul
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 

Any other application in same server is working ?. 
Does the manager application exists there ?. If yes remove it by
moving manager.xml out of webapps directory and try.
If still the problem persists the error may be with server.xml. 

-- 
Anto Paul

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



Re: Tomcat SSL Client Authentication

2005-04-27 Thread ohaya
Hi,

I believe that the clientAuth needs to be set to true in the
server.xml.

Jim



lercoli wrote:
 
 Hello
 
 I've configured Tomcat SSL Client Authentication with these settings :
 
 web.xml
 
 ...
 security-constraint
 
 web-resource-collection
 
 web-resource-nameEntire Application/web-resource-name
 
 url-pattern/*/url-pattern
 
 http-methodGET/http-method
 
 http-methodPOST/http-method
 
 /web-resource-collection
 
 user-data-constraint
 
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 
 /user-data-constraint
 
 /security-constraint
 
 login-config
 
 auth-methodCLIENT-CERT/auth-method
 
 /login-config
 
 .
 
 server.xml
 
 .
 
 Connector port=8443 maxHttpHeaderSize=8192
 
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 
 enableLookups=false disableUploadTimeout=true
 
 acceptCount=100 scheme=https secure=true
 
 clientAuth=false sslProtocol=TLS
 
 keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks keystorePass=changeit
 
 truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks /
 
 ...
 
 Client certificate (client.cer) is installed in my IE Browser (version 
 6.0.28).
 
 When I invoke htpps://localhost:8443/myweapp appears a window that asks me to 
 accept the server certificate.
 
 I accept and my webapp index page appears.
 
 So why I don't see a window for client authentication ?
 
 And why I 've the same behaviour also when I remove the client.cer from my 
 Browser ?
 
 It seems that client-certification doesn't work.
 
 Any help would be greatly appreciated.
 
 Thank You
 
 Luca Ercoli

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



Re: Tomcat SSL Client Authentication

2005-04-27 Thread lercoli
Hi Jim

I've tried with clientAuth = true but server certificate window doesn't
appear and I get page not found error.

- Original Message - 
From: ohaya [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 12:49 PM
Subject: Re: Tomcat SSL Client Authentication


 Hi,

 I believe that the clientAuth needs to be set to true in the
 server.xml.

 Jim



 lercoli wrote:
 
  Hello
 
  I've configured Tomcat SSL Client Authentication with these settings :
 
  web.xml
 
  ...
  security-constraint
 
  web-resource-collection
 
  web-resource-nameEntire Application/web-resource-name
 
  url-pattern/*/url-pattern
 
  http-methodGET/http-method
 
  http-methodPOST/http-method
 
  /web-resource-collection
 
  user-data-constraint
 
  transport-guaranteeCONFIDENTIAL/transport-guarantee
 
  /user-data-constraint
 
  /security-constraint
 
  login-config
 
  auth-methodCLIENT-CERT/auth-method
 
  /login-config
 
  .
 
  server.xml
 
  .
 
  Connector port=8443 maxHttpHeaderSize=8192
 
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 
  enableLookups=false disableUploadTimeout=true
 
  acceptCount=100 scheme=https secure=true
 
  clientAuth=false sslProtocol=TLS
 
  keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks keystorePass=changeit
 
  truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks /
 
  ...
 
  Client certificate (client.cer) is installed in my IE Browser (version
6.0.28).
 
  When I invoke htpps://localhost:8443/myweapp appears a window that asks
me to accept the server certificate.
 
  I accept and my webapp index page appears.
 
  So why I don't see a window for client authentication ?
 
  And why I 've the same behaviour also when I remove the client.cer from
my Browser ?
 
  It seems that client-certification doesn't work.
 
  Any help would be greatly appreciated.
 
  Thank You
 
  Luca Ercoli

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



Non-serializable attribute error after migrating from TC5.0.28 to TC.5.5.9

2005-04-27 Thread Paulo Alvim
Hi,

We had to use a few workarounds in order to get JSTL (fmt) and Struts el
tags working together and ok for our I18n features, and one of the tricks
was to use something like that (for every new session - default to
Portuguese language):


(...)
Locale locale = new Locale(pt,BR);
java.util.ResourceBundle bundle=

java.util.ResourceBundle.getBundle(ApplicationResources,locale);

   javax.servlet.jsp.jstl.fmt.LocalizationContext lc =
new javax.servlet.jsp.jstl.fmt.LocalizationContext(bundle);

   javax.servlet.jsp.jstl.core.Config.set(session,

javax.servlet.jsp.jstl.core.Config.FMT_LOCALIZATION_CONTEXT,lc);

(...)

This was working ok in Tomcat 5.0.28 but Tomcat 5.5.9 throws
java.lang.IllegalArgumentException: setAttribute: Non-serializable
attribute.




1. We know that it isn't best practices to put non-serializable objects in
the Session...but is this now required?

2. If so: we also have that FormFile fields in a few Struts (session
scoped) Forms for upload logic. Since they are also not serializable...what
would be the approach for this case?

 form-property name=arquivoAnexadoPlc
type=org.apache.struts.upload.FormFile/

Thanks in advance!

Paulo Alvim
Powerlogic
Brazil



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



Unsubscribe Me

2005-04-27 Thread McClure, Timothy J\(GE Infrastructure\)
Mark,

They changed my e-mail address.  It used to be-

[EMAIL PROTECTED]

Thanks,
Tim

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 26, 2005 3:44 PM
To: Tomcat Users List
Subject: Re: Tutorial


Gene:

Try http://cymulacrum.net/writings/tomcat5/book1.html

I found it to be excellent.

Venki

On Tue, 26 Apr 2005 07:32:23 -0400
  Eugene Poole [EMAIL PROTECTED] wrote:
 I'm looking for a Tomcat tutorial that works!  I want to 
teach myself, if possible.  Where can I find a tutorial 
that covers Apache, Tomcat, Java2 1.4.x, and a database 
(hopefully Oracle) running on Fedora Core 3?
 
 Gene
 [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: 
[EMAIL PROTECTED]
For additional commands, e-mail: 
[EMAIL PROTECTED]
 


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


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



Re: Tomcat SSL Client Authentication

2005-04-27 Thread ohaya
Hi,

Sorry if that didn't help. 

Here's what I have in server.xml (I don't remember if I had to change
anything outside of server.xml to enable client authentication):

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
Connector port=8443
className=org.apache.coyote.tomcat5.CoyoteConnector
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=true sslProtocol=TLS
  
keystoreFile=e:\tomcat\jakart~1.27\ssl\servercertificate.keystore
   keystoreType=PKCS12
truststoreFile=C:\Documents and
Settings\Administrator\.keystore
truststorePass=XXX
truststoreType=JKS
/

Jim

P.S.  When I was doing this (which was awhile ago), I didn't find any
way to get Tomcat to check for client cert revocations (i.e., CRL
checking).  I don't know if that has changed at all since then.


lercoli wrote:
 
 Hi Jim
 
 I've tried with clientAuth = true but server certificate window doesn't
 appear and I get page not found error.
 
 - Original Message -
 From: ohaya [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, April 27, 2005 12:49 PM
 Subject: Re: Tomcat SSL Client Authentication
 
  Hi,
 
  I believe that the clientAuth needs to be set to true in the
  server.xml.
 
  Jim
 
 
 
  lercoli wrote:
  
   Hello
  
   I've configured Tomcat SSL Client Authentication with these settings :
  
   web.xml
  
   ...
   security-constraint
  
   web-resource-collection
  
   web-resource-nameEntire Application/web-resource-name
  
   url-pattern/*/url-pattern
  
   http-methodGET/http-method
  
   http-methodPOST/http-method
  
   /web-resource-collection
  
   user-data-constraint
  
   transport-guaranteeCONFIDENTIAL/transport-guarantee
  
   /user-data-constraint
  
   /security-constraint
  
   login-config
  
   auth-methodCLIENT-CERT/auth-method
  
   /login-config
  
   .
  
   server.xml
  
   .
  
   Connector port=8443 maxHttpHeaderSize=8192
  
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  
   enableLookups=false disableUploadTimeout=true
  
   acceptCount=100 scheme=https secure=true
  
   clientAuth=false sslProtocol=TLS
  
   keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks keystorePass=changeit
  
   truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks /
  
   ...
  
   Client certificate (client.cer) is installed in my IE Browser (version
 6.0.28).
  
   When I invoke htpps://localhost:8443/myweapp appears a window that asks
 me to accept the server certificate.
  
   I accept and my webapp index page appears.
  
   So why I don't see a window for client authentication ?
  
   And why I 've the same behaviour also when I remove the client.cer from
 my Browser ?
  
   It seems that client-certification doesn't work.
  
   Any help would be greatly appreciated.
  
   Thank You
  
   Luca Ercoli
 
  -
  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: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread Tony Nakamura
Hi Reynir,

I checked the server.xml, and it does have 8009 setting for listner ports
uncommented.
I have /jakarta virtual folder in IIS.

I'm really confused as to what could be wrong...

Thank you,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 4:47 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 hi,

 do you have the connector on port 8009 in your tomcat ?
 do you have the /jakarta virtual folder in IIS ?

 hope it helps
 -reynir


 Tony Nakamura wrote:

 Hi Reynir,
 
 Yes, the tomcat is on localhost, and I'm trying to access directly from
the
 server right now.
 I can access the site with: http://localhost:8080/test/login.jsp but not
 without specifying 8080 port.
 404 is from IIS log, and it seems to have changed from 404:03 to 404:02.
 
 Just for kicks, I also tried to replace localhost with an ip address, but
it
 was the same result.
 
 
 Thanks,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, April 26, 2005 11:48 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 Hi,
 
 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.
 
 your error message, the 404, is it from tomcat (the blue one) or is it
 from IIS ?
 
 hope it helps,
 - reynir
 
 Tony Nakamura wrote:
 
 
 
 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the
log
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when
I'm
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to error,
 
 
 but
 
 
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
init_jk::jk_isapi_plugin.c
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 build_worker_map::jk_worker.c
 
 
 (196): creating worker main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 wc_create_worker::jk_worker.c
 
 
 (120): about to create instance main of ajp13
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 wc_create_worker::jk_worker.c
 
 
 (133): about to validate and init main
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 ajp_validate::jk_ajp_common.c
 
 
 (1721): worker main contact is localhost:8009
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1767): setting socket keepalive to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1806): setting socket timeout to -1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1810): setting connection recycle timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1814): setting cache timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1818): setting connect timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1822): setting reply timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1826): setting prepost timeout to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1830): setting recovery opts to 0
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1834): setting number of retries to 3
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
 (1854): setting connection cache size to 1
 [Tue Apr 26 10:27:20 2005] 

Howto configure tomcat to compile JSPs with Sun JDK 1.5

2005-04-27 Thread Stefan Parnet
Hello,
I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since 
Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot compile 
my JSPs.
So I want the tomcat to compile the JSP's with the Sun JDK 1.5 compiler. 
I searched the web, but I did not find any instructions how to configure 
the tomcat to do so.

Can anyone help me?
Thanks
Stefan


This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited.
E-mail messages are not necessarily secure.  Renesas does not accept
responsibility for any changes made to this message after it was sent.
Please note that this email message has been swept by Renesas for
the presence of computer viruses.

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


Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
Long ago a multi-client, multi-Oracle application was written using 
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  I 
found one client implementation that used prepared statements but the 
primary key was being used e.g. update mytable set a= ?, b=? where 
pri_key =  + pkey +  ' ; ...whoa! I said, called the developer and we 
had a talk.

Then, I also found that where we use a HashMap object it is not 
synchronized.  I suspect that was the data problem, i.e. two records 
saved by two different people, and the data was the same for the 
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests but 
I'm also nervous now where I use Strings in the session e.g. a 
clientname, username, etc. My concern started when I read the posts 
about the non-serializable objects in the session.  Do all java objects 
placed in the session have to be serializable? 

Thanks,
David L. Whitehurst
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Nervous about Sessions ...

2005-04-27 Thread Viorel Dragomir
Yes.
But you can set some attributes of the objects as [ transient ] to not be 
serialized. 
So you don't have to make all objects in the package serializable.




Viorel Dragomir

.
..
---



- Original Message - 
From: David Whitehurst 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...


Long ago a multi-client, multi-Oracle application was written using 
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  I 
found one client implementation that used prepared statements but the 
primary key was being used e.g. update mytable set a= ?, b=? where 
pri_key =  + pkey +  ' ; ...whoa! I said, called the developer and we 
had a talk.

Then, I also found that where we use a HashMap object it is not 
synchronized.  I suspect that was the data problem, i.e. two records 
saved by two different people, and the data was the same for the 
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests but 
I'm also nervous now where I use Strings in the session e.g. a 
clientname, username, etc. My concern started when I read the posts 
about the non-serializable objects in the session.  Do all java objects 
placed in the session have to be serializable? 

Thanks,

David L. Whitehurst

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


client authentication dont work

2005-04-27 Thread Markus Linnemann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi,

I try to authentificate to a web App by Client.Cert.
I get these error message:
HTTP Status 401 - Cannot authenticate with the provided credentials

Here are my settings:

web.xml:
security-constraint
web-resource-collection
web-resource-namecertLogin.jsp/web-resource-name
url-pattern/idp/certLogin.jsp/url-pattern
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameSourceIDuser/role-name
/auth-constraint   
/security-constraint

login-config
auth-methodCLIENT-CERT/auth-method
realm-nameSourceID/realm-name
/login-config

security-role
description![CDATA[SourceID Authenticated User]]/description
role-nameSourceIDuser/role-name
/security-role

tomcat.users:

tomcat-users
   role rolename=SourceIDuser/
   user
username=[EMAIL PROTECTED]   
password=null roles=SourceIDuser/

  user username=markus password=test roles=SourceIDuser/
 
/tomcat-users

It works fine with Basic authentication!
And it works fine with only set clientAuth=true.

But I only want to secure a part of my WebApp,
so clientAuth=true is not helpful.

Any help would be greatly appreciated.
Markus


- --
Markus Linnemann
ifis - Institut fr Internet-Sicherheit, FH Gelsenkirchen
Tel.: 0209 9596 797
www.internet-sicherheit.de
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCb5VohyPbXYfivmMRAurbAJ9SQAqlK+3SXqsYaIx9NsSBjcR6xACcCs+L
rg0SJ+M1jyRtex9YDP9DBIM=
=5CuL
-END PGP SIGNATURE-


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



Precompiling JSPs fails

2005-04-27 Thread Bud Bach
Hi, I’m using Tomcat 5.5.9 and JDK 1.5.0_02.  I’m trying to precompile the
Liferay Pro Portal 3.2 JSPs using the ant build script found on the apache
web site:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Web%20Appl
ication%20Compilation

modified to add jars placed in common/lib/ext.  JAVA_HOME is set to
/usr/java/jdk1.5.0_02.

When I run the ant script, I get a NullPointerException.  Below is the
script I am using and the output from the ant command.  Any idea what I
might be doing wrong?

Thanks.  -- Bud


project name=Webapp Precompilation default=all basedir=.

 target name=jspc

   taskdef classname=org.apache.jasper.JspC name=jasper2 
     classpath id=jspc.classpath
       pathelement location=${java.home}/../lib/tools.jar/
       fileset dir=${tomcat.home}/bin
         include name=*.jar/
       /fileset
       fileset dir=${tomcat.home}/server/lib
         include name=*.jar/
       /fileset
       fileset dir=${tomcat.home}/common/lib
         include name=*.jar/
       /fileset
       fileset dir=${tomcat.home}/common/lib/ext
         include name=*.jar/
       /fileset
     /classpath
   /taskdef

   jasper2
            validateXml=false
            uriroot=${webapp.path}
            webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml
            outputDir=${webapp.path}/WEB-INF/src /

 /target

 target name=compile

   mkdir dir=${webapp.path}/WEB-INF/classes/
   mkdir dir=${webapp.path}/WEB-INF/lib/

   javac destdir=${webapp.path}/WEB-INF/classes
          optimize=off
          debug=on failonerror=false
          srcdir=${webapp.path}/WEB-INF/src
          excludes=**/*.smap
     classpath
       pathelement location=${webapp.path}/WEB-INF/classes/
       fileset dir=${webapp.path}/WEB-INF/lib
         include name=*.jar/
       /fileset
       pathelement location=${tomcat.home}/common/classes/
       fileset dir=${tomcat.home}/common/lib
         include name=*.jar/
       /fileset
   fileset dir=${tomcat.home}/common/lib/ext
 include name=*.jar/
   /fileset
       pathelement location=${tomcat.home}/shared/classes/
       fileset dir=${tomcat.home}/shared/lib
         include name=*.jar/
       /fileset
       fileset dir=${tomcat.home}/bin
         include name=*.jar/
       /fileset
     /classpath
     include name=** /
     exclude name=tags/** /
   /javac

 /target

 target name=all depends=jspc,compile
 /target

/project

---

#ant -v -Dtomcat.home=/usr/local/tomcat/jakarta-tomcat-5.5.9
-Dwebapp.path=/usr/local/tomcat/jakarta-tomcat-5.5.9/webapps/liferay
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml
Detected Java version: 1.5 in: /usr/java/jdk1.5.0_02/jre
Detected OS: Linux
parsing buildfile /usr/local/tomcat/jakarta-tomcat-5.5.9/bin/build.xml with
URI = file:///usr/local/tomcat/jakarta-tomcat-5.5.9/bin/build.xml
Project base dir set to: /usr/local/tomcat/jakarta-tomcat-5.5.9/bin
Build sequence for target `all' is [jspc, compile, all]
Complete build sequence is [jspc, compile, all, ]

jspc:
 [jasper2] java.lang.NullPointerException
 [jasper2] at
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext
.java:220)
 [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:849)
 [jasper2] at org.apache.jasper.JspC.execute(JspC.java:991)
 [jasper2] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [jasper2] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 [jasper2] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 [jasper2] at java.lang.reflect.Method.invoke(Method.java:585)
 [jasper2] at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
 [jasper2] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [jasper2] at org.apache.tools.ant.Task.perform(Task.java:364)
 [jasper2] at org.apache.tools.ant.Target.execute(Target.java:341)
 [jasper2] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [jasper2] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [jasper2] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:673)
 [jasper2] at org.apache.tools.ant.Main.startAnt(Main.java:188)
 [jasper2] at
org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 [jasper2] at
org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 [jasper2] Error in class org.apache.jasper.JspC

BUILD FAILED
/usr/local/tomcat/jakarta-tomcat-5.5.9/bin/build.xml:27:
org.apache.jasper.JasperException
   at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131)
   at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.tools.ant.Target.execute(Target.java:341)
   at 

Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread reynir
well,
the fact that you are getting 404 error from IIS really means that IIS
is receiving the request, and forwarding it to
/jakarta/isapi_redirect.dll, that is a virtual folder mapped on to the
folder that the DLL is positioned in. If the 404 is coming from IIS (as
it seems) it's obviously not finding this path. you should be able to
see it by viewing the accesslog of IIS it should show this path
/jakarta/isapi_redirect.dll and the error code 404 if it's not found
but 200 or something else if it's there.
check again if this part of the setup is correct, sometimes the
difference is the name of the dll, some name it isapi_redirector.dll
but not isapi_redirect.dll and since the registry entry specifies the
full name of the dll this must be correct.

again, hope it helps.
-reynir



Tony Nakamura wrote:

Hi Reynir,

I checked the server.xml, and it does have 8009 setting for listner ports
uncommented.
I have /jakarta virtual folder in IIS.

I'm really confused as to what could be wrong...

Thank you,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 4:47 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


  

hi,

do you have the connector on port 8009 in your tomcat ?
do you have the /jakarta virtual folder in IIS ?

hope it helps
-reynir


Tony Nakamura wrote:



Hi Reynir,

Yes, the tomcat is on localhost, and I'm trying to access directly from
  

the
  

server right now.
I can access the site with: http://localhost:8080/test/login.jsp but not
without specifying 8080 port.
404 is from IIS log, and it seems to have changed from 404:03 to 404:02.

Just for kicks, I also tried to replace localhost with an ip address, but
  

it
  

was the same result.


Thanks,


Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, April 26, 2005 11:48 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT




  

Hi,

Looks like the isapi_redirector is forwarding the request to the
localhost host of your tomcat setup. is it there ?
Check the access logs on the tomcat application. See if it's receiving
the request.

your error message, the 404, is it from tomcat (the blue one) or is it


from IIS ?
  

hope it helps,
- reynir

Tony Nakamura wrote:





Hi,

I uninstalled the exe version of isapi_redirect and decided to manually
configure them.
As a result, I got the green arrow, and I'm able to see output in the
  

log
  

file given isapi_redirect runs
in debug mode.  The log looks like the following.  This log from when
  

I'm
  

trying to run the IIS in 5.0 isolation mode.
There is no output in the log file when I set the log level to error,


  

but


  

I still get 404 File Not Found error when I try to access
http://localhost/test/login.jsp


Thanks!


Tony


==
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1040): Using registry.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1044): Using log level 1.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1045): Using extension uri /jakarta/isapi_redirect.dll.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1047): Using worker mount file
C:\tomcat5.0.28\conf\uriworkermap.properties.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
  

init_jk::jk_isapi_plugin.c
  

(1049): Using uri select 0.
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
/*jsp=main was added
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]
uri_worker_map_open::jk_uri_worker_map.c (478): there are 1 rules
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]


  

build_worker_map::jk_worker.c


  

(196): creating worker main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]


  

wc_create_worker::jk_worker.c


  

(120): about to create instance main of ajp13
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]


  

wc_create_worker::jk_worker.c


  

(133): about to validate and init main
[Tue Apr 26 10:27:20 2005] [3616:816] [debug]


  

ajp_validate::jk_ajp_common.c


  

(1721): worker main contact is localhost:8009
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] ajp_init::jk_ajp_common.c
(1767): setting socket keepalive to 0
[Tue Apr 26 10:27:20 2005] [3616:816] [debug] 

Re: Tomcat SSL Client Authentication

2005-04-27 Thread Darryl Wilburn
What version of TC?  I've read something about
configuring the HTTPS connector to perform SSL client
certificate authorization.  I'm agree with Jim, in
server.xml, the clientAuth should be set to true. 
That is the correct setting, if you get a page not
found, that doesn't mean the cert didn't work... 
Also, the name on the client cert must be exactly the
same as the one in the user database.  I've also read
that you don't need and security-constraints to use
the CLIENT-CERT unless you're also using a separeat
Realm.

DW

--- lercoli [EMAIL PROTECTED] wrote:
 Hi Jim
 
 I've tried with clientAuth = true but server
 certificate window doesn't
 appear and I get page not found error.
 
 - Original Message - 
 From: ohaya [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Wednesday, April 27, 2005 12:49 PM
 Subject: Re: Tomcat SSL Client Authentication
 
 
  Hi,
 
  I believe that the clientAuth needs to be set to
 true in the
  server.xml.
 
  Jim
 
 
 
  lercoli wrote:
  
   Hello
  
   I've configured Tomcat SSL Client Authentication
 with these settings :
  
   web.xml
  
   ...
   security-constraint
  
   web-resource-collection
  
   web-resource-nameEntire
 Application/web-resource-name
  
   url-pattern/*/url-pattern
  
   http-methodGET/http-method
  
   http-methodPOST/http-method
  
   /web-resource-collection
  
   user-data-constraint
  
  

transport-guaranteeCONFIDENTIAL/transport-guarantee
  
   /user-data-constraint
  
   /security-constraint
  
   login-config
  
   auth-methodCLIENT-CERT/auth-method
  
   /login-config
  
   .
  
   server.xml
  
   .
  
   Connector port=8443 maxHttpHeaderSize=8192
  
   maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
  
   enableLookups=false
 disableUploadTimeout=true
  
   acceptCount=100 scheme=https secure=true
  
   clientAuth=false sslProtocol=TLS
  
   keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks
 keystorePass=changeit
  
   truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks
 /
  
   ...
  
   Client certificate (client.cer) is installed in
 my IE Browser (version
 6.0.28).
  
   When I invoke htpps://localhost:8443/myweapp
 appears a window that asks
 me to accept the server certificate.
  
   I accept and my webapp index page appears.
  
   So why I don't see a window for client
 authentication ?
  
   And why I 've the same behaviour also when I
 remove the client.cer from
 my Browser ?
  
   It seems that client-certification doesn't work.
  
   Any help would be greatly appreciated.
  
   Thank You
  
   Luca Ercoli
 
 

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

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

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



Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5

2005-04-27 Thread Lutz Zetzsche
Hi Stefan,

Am Mittwoch, 27. April 2005 15:20 schrieb Stefan Parnet:
 Hello,

 I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since
 Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot
 compile my JSPs.
 So I want the tomcat to compile the JSP's with the Sun JDK 1.5
 compiler. I searched the web, but I did not find any instructions how
 to configure the tomcat to do so.

 Can anyone help me?

Do you integrate the Tomcat 5.5.9 into your Eclipse IDE or do you run it 
seperately?

If you run Tomcat integrated into Eclipse, perhaps you can tell Eclipse 
which installed Tomcat and which installed JDK to use for your project. 
This is the way, I can do it with NetBeans IDE.

Else, if you run Tomcat independently of the IDE, you must only set the 
environment variable for the JDK correctly before starting the server. 
I am running Tomcat 5.5.7 with JDK 1.5.0_02 and have to set the 
environment variable JRE_HOME so that Tomcat uses the right one of the 
installed JDKs. I set the JRE_HOME manually before starting Tomcat:

export JRE_HOME=/usr/java/jre1.5.0_02/
(you must change the path to the path you use on your system)

The environment variable JAVA_HOME could also play a role, although not 
in my case. :-)

I hope, this information does help a little.


Best wishes

Lutz

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



Re: OutOfMemoryError - 100 thread limit?

2005-04-27 Thread Andre Van Klaveren
We're battling this same problem at our client's site.  I think I've
identified the same cause (running out of Perm Gen space) but I have
to prove it to them first.  Hooking a profiler into the Tomcat
instance should clearly show this but they don't have one handy. 
Moving some of the applications to a second instance of Tomcat should
also solve this problem.

-- 
Virtually,
Andre Van Klaveren
Architect III, SCP
Enterprise Transformation Services
Unisys Corporation

On 4/21/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Peter Lin [mailto:[EMAIL PROTECTED]
  Subject: Re: OutOfMemoryError - 100 thread limit?
 
  the default Perm is 64M. If LeeAnn's webapp have a large number of
  classes, maybe there's too many; therefore forcing the VM to resize
  the perm.
 
 IIRC (haven't looked at core HotSpot code in detail since 1.4.1 days),
 the virtual address boundary between perm and the other generations is
 fixed at JVM initialization and never moves.  The perm gen does go
 through GC just like the other gens, but no memory ever moves between
 the perm and any other space, and the perm gen maximum virtual address
 range never changes.
 
 The HotSpot JVM allocates, but does not commit, all of the -Xmx space at
 startup in one contiguous block (although there were rumors of that
 changing in later JVMs).  Only the -Xms portion is committed, split up
 into three regions - young, old, and perm.  When a region fills and GC
 doesn't reduce the usage significantly, additional pages are committed
 in whichever region needs expanding.
 
 I think what was happening is that LeeAnn simply had more classes than
 would fit in 64 MB.  Nothing to do with threads, just the total number
 of classes in all the applications added together.
 
  - Chuck
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 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: Howto configure tomcat to compile JSPs with Sun JDK 1.5

2005-04-27 Thread Stefan Parnet

Lutz Zetzsche schrieb:
Hi Stefan,
Am Mittwoch, 27. April 2005 15:20 schrieb Stefan Parnet:
 

Hello,
I installed Tomcat 5.5.9 and want to use Java 1.5 in my JSPs. Since
Tomcat 5.5 uses the Eclipse JDT Compiler (Java 1.4), it cannot
compile my JSPs.
So I want the tomcat to compile the JSP's with the Sun JDK 1.5
compiler. I searched the web, but I did not find any instructions how
to configure the tomcat to do so.
Can anyone help me?
   

Do you integrate the Tomcat 5.5.9 into your Eclipse IDE or do you run it 
seperately?

If you run Tomcat integrated into Eclipse, perhaps you can tell Eclipse 
which installed Tomcat and which installed JDK to use for your project. 
This is the way, I can do it with NetBeans IDE.

Else, if you run Tomcat independently of the IDE, you must only set the 
environment variable for the JDK correctly before starting the server. 
I am running Tomcat 5.5.7 with JDK 1.5.0_02 and have to set the 
environment variable JRE_HOME so that Tomcat uses the right one of the 
installed JDKs. I set the JRE_HOME manually before starting Tomcat:

export JRE_HOME=/usr/java/jre1.5.0_02/
(you must change the path to the path you use on your system)
The environment variable JAVA_HOME could also play a role, although not 
in my case. :-)

I hope, this information does help a little.
Best wishes
Lutz
I have the environment variables JAVA_HOME and JRE_HOME already set to 
the JDK, but Tomcat still compiles JSPs with its built in  Eclipse JDT 
Java compiler.
This fact is mentioned in the Release Notes. There is also mentioned 
that it is possible to configure Tomcat to use another compiler. But 
there is no explanation how to configure it.

Thanks for your answer.
Stefan

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on
it, is prohibited.
E-mail messages are not necessarily secure.  Renesas does not accept
responsibility for any changes made to this message after it was sent.
Please note that this email message has been swept by Renesas for
the presence of computer viruses.

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


Custom Realm for Lotus Domino Could not open notes session

2005-04-27 Thread holger . willenborg
Hi, I' trying to implement a realm to authenticate against a Notes DIIOP 
service.

This is done using a class which extends RealmBase and fill some of the 
methods (for reference
I leave all the code inside here, if you like to write your own Realm, you 
can start with that code below).

In other places, this code works, but within the authenticate() method it 
won't work and will end up in an exception:
NotesException: Could not open Notes session: org.omg.CORBA.MARSHAL: 
vmcid: 0x0  minor code: 0  completed: No
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.init(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at 
com.armacell.tomcat.auth.DominoRealm.authenticate(DominoRealm.java:98)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 

...

The really weird about this is, that it actually works if I move it to the 
constructor. It makes no sense to move it there of course and I did it for 
testing only, but why doesn't it work in the authenticate() method while 
it does in another place ? 

Not even the packet to the DIIOP server (at Port 63148) seems to be sent. 
(It will when used from the constructor).

Since the code needs to access a server I wonder if authenticate() is 
somehow synchronized or access of other servers is locked within the 
authenticate() method?

Any help appreciated.

Code (Check the MARKED CODE section):
-
public class DominoRealm extends RealmBase {

String username;
String passwd;
ArrayList roles = null;
 
public DominoRealm()  {
}
 
protected String getName() {
return username;
}

protected String getPassword(String arg0) {
return passwd;
}

protected Principal getPrincipal(String arg0) {
return new GenericPrincipal(this,username,passwd,roles);
}
 
public Principal authenticate(String user, String pass) {
 
try {
// -- MARKED CODE START
String[] args = new String[1];
args[0] = ;
// create the notes session
Session s = 
NotesFactory.createSession(lnmun06.armacell.com:63148,args,user,pass);
//  MARKED CODE END

Database db = s.getDatabase(,names.nsf);
 
this.username = user;
this.passwd = pass;
} catch (NotesException e) {
// HERE COMES THE ERROR
System.out.println(e.text);
e.printStackTrace();
return null;
}
 
return getPrincipal(user);
 
}
 
Thanks
Holger

Re: OutOfMemoryError - 100 thread limit?

2005-04-27 Thread Peter Lin
the advice given in previous message to dump the Perm gen info out
should tell you. running tomcat in a profiler may not show it. I use
optimizeIt frequently and it doesn't show perm generation.


peter 

On 4/27/05, Andre Van Klaveren [EMAIL PROTECTED] wrote:
 We're battling this same problem at our client's site.  I think I've
 identified the same cause (running out of Perm Gen space) but I have
 to prove it to them first.  Hooking a profiler into the Tomcat
 instance should clearly show this but they don't have one handy.
 Moving some of the applications to a second instance of Tomcat should
 also solve this problem.
 
 --
 Virtually,
 Andre Van Klaveren
 Architect III, SCP
 Enterprise Transformation Services
 Unisys Corporation
 
 On 4/21/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
   From: Peter Lin [mailto:[EMAIL PROTECTED]
   Subject: Re: OutOfMemoryError - 100 thread limit?
  
   the default Perm is 64M. If LeeAnn's webapp have a large number of
   classes, maybe there's too many; therefore forcing the VM to resize
   the perm.
 
  IIRC (haven't looked at core HotSpot code in detail since 1.4.1 days),
  the virtual address boundary between perm and the other generations is
  fixed at JVM initialization and never moves.  The perm gen does go
  through GC just like the other gens, but no memory ever moves between
  the perm and any other space, and the perm gen maximum virtual address
  range never changes.
 
  The HotSpot JVM allocates, but does not commit, all of the -Xmx space at
  startup in one contiguous block (although there were rumors of that
  changing in later JVMs).  Only the -Xms portion is committed, split up
  into three regions - young, old, and perm.  When a region fills and GC
  doesn't reduce the usage significantly, additional pages are committed
  in whichever region needs expanding.
 
  I think what was happening is that LeeAnn simply had more classes than
  would fit in 64 MB.  Nothing to do with threads, just the total number
  of classes in all the applications added together.
 
   - Chuck
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
  received this in error, please contact the sender and delete the e-mail
  and its attachments from all computers.
 
  -
  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.x: allowLinking under DefaultContext

2005-04-27 Thread Santosh Dawara
I would like to load classes required by my web applications via soft
links on Linux. I usually set DefaultContext allowLinking=true/
under the Host element in my server.xml. This worked well with
Tomcat 5.0. I moved my webapps to 5.5.9, I made similar modifications
to my 5.5 compliant 'server.xml' to 'allowLinking' under the
DefaultContext. Tomcat does not seem
to find my classes any longer.

To verify, I replaced the SymLink with a real directory, my servlet
initialized correctly. Tomcat was able to locate the class. As far as
the documentation is concerned, this feature should still be available
under 5.5.9 (see link below).

Could someone confirm if this functionality is still working under 5.5.9?

Reference: 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/defaultcontext.html

Regards,
Santosh

-- 
Santosh Dawara
([EMAIL PROTECTED])

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



Re: Tomcat creating new sessions between Servlet-JSP request dispatch under load

2005-04-27 Thread Andre Van Klaveren
Riyad,

Close, but it's more like this:

1 client (user)  == 1 session.

In most cases your client (assuming it's a browser) would only send
one request, which would translate into one thread, and therefor you
wouldn't have a threading issue with your Session object.  There is no
guarantee that your users won't either open up multiple browsers and
hit your application or, more realistically, they hit the submit
button twice therefor generating multiple requests to the server.  In
this situation it is conceivable that there could be a contention
between the two threads and the Session object.

This might sound far fetched but I've experienced this problem first
hand.  In general, you should only place objects in session if you
need to access it over several requests and you can't or don't want to
retrieve it from persistent storage.  If the data is meant for a
single request, place your object in request scope and forward to your
view component.

You mentioned that your problem got worse when you increased the
number of requests to the application.  This makes sense depending on
how you are generating the requests.  If you are using a tool that is
session aware then you are creating multiple threads that are all
trying to use the same Session object.

BTW, I copied this reply to the Tomcat Users List because I think this
is an important issue that a lot of developers don't
understand/realize.  I hope that's OK with you.



On 4/26/05, Riyad Kalla [EMAIL PROTECTED] wrote:
 Andre,
 I appreciate the reply, something you said perked my interesting. You
 mentioned synchronizing on the session object, but as I understand it:
 
 1 session == 1 thread == 1 client
 
 in Tomcat (or most typical application servers). So each client will
 have their own thread and session object, I don't need to synchronize
 on it (as I understand) because no two threads will ever be contenting
 with eachother for access to it.
 
 These are the facts that I have learned up until now, but if they are
 wrong please let me know, this is a pretty big oversight if indeed it
 is on my part.
 
 Best,
 Riyad
 
 On 4/26/05, Andre Van Klaveren [EMAIL PROTECTED] wrote:
  Riyad,
 
  You should not be using the Session object to store your DTO for
  display.  Especially if you are forwarding the request to a JSP.  The
  Session object should only be used to store data that is required to
  remain in server memory between client requests.  I would place your
  DTO in the Request object instead.  That alone will probably solve
  your problem.
 
  Now, assuming you continue to use the Session object, you should
  synchronize on the Session object before attempting to add your DTO
  object to it.  That will prevent multiple requests from stepping on
  each other while trying to add their DTOs to the Session.
 
  I haven't looked at Tomcat's code to see how they implemented the
  hashCode method of the Session object but it's not the best way to
  determine if two Sessions are equal in your case.  The hash code may
  depend on the contents of the Session object.  I would print out the
  session ID instead.  This will truely tell you if you have two
  different sessions.  From what you describe I find it hard to beleive
  that you there is a second session creeping into the picture within
  the same request.
 
  --
  Virtually,
  Andre Van Klaveren
  SCP
 
 


-- 
Virtually,
Andre Van Klaveren
Architect III, SCP
Enterprise Transformation Services
Unisys Corporation

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



Re: Howto configure tomcat to compile JSPs with Sun JDK 1.5

2005-04-27 Thread Lutz Zetzsche
Hi Stefan,

Am Mittwoch, 27. April 2005 16:14 schrieb Stefan Parnet:
 I have the environment variables JAVA_HOME and JRE_HOME already set
 to the JDK, but Tomcat still compiles JSPs with its built in  Eclipse
 JDT Java compiler.
 This fact is mentioned in the Release Notes. There is also mentioned
 that it is possible to configure Tomcat to use another compiler. But
 there is no explanation how to configure it.

Perhaps the following how-to contains the information, you missed in the 
release notes:

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

Best wishes
Lutz

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



Re: Tomcat SSL Client Authentication

2005-04-27 Thread lercoli
Tomcat version 5.5.9 (JDK 1.5.0_02 and Windows 2000 Professional).

Client certificate username is a tomcat user (with which I've already
successfully tested in DIGEST authentication).

The strange thing is that when I set authClient to true I never see the the
alert window of the server certificate
(while instead appears with clientAuth = false).

- Original Message - 
From: Darryl Wilburn [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 3:55 PM
Subject: Re: Tomcat SSL Client Authentication


 What version of TC?  I've read something about
 configuring the HTTPS connector to perform SSL client
 certificate authorization.  I'm agree with Jim, in
 server.xml, the clientAuth should be set to true.
 That is the correct setting, if you get a page not
 found, that doesn't mean the cert didn't work...
 Also, the name on the client cert must be exactly the
 same as the one in the user database.  I've also read
 that you don't need and security-constraints to use
 the CLIENT-CERT unless you're also using a separeat
 Realm.

 DW

 --- lercoli [EMAIL PROTECTED] wrote:
  Hi Jim
 
  I've tried with clientAuth = true but server
  certificate window doesn't
  appear and I get page not found error.
 
  - Original Message - 
  From: ohaya [EMAIL PROTECTED]
  To: Tomcat Users List
  tomcat-user@jakarta.apache.org
  Sent: Wednesday, April 27, 2005 12:49 PM
  Subject: Re: Tomcat SSL Client Authentication
 
 
   Hi,
  
   I believe that the clientAuth needs to be set to
  true in the
   server.xml.
  
   Jim
  
  
  
   lercoli wrote:
   
Hello
   
I've configured Tomcat SSL Client Authentication
  with these settings :
   
web.xml
   
...
security-constraint
   
web-resource-collection
   
web-resource-nameEntire
  Application/web-resource-name
   
url-pattern/*/url-pattern
   
http-methodGET/http-method
   
http-methodPOST/http-method
   
/web-resource-collection
   
user-data-constraint
   
   
 
 transport-guaranteeCONFIDENTIAL/transport-guarantee
   
/user-data-constraint
   
/security-constraint
   
login-config
   
auth-methodCLIENT-CERT/auth-method
   
/login-config
   
.
   
server.xml
   
.
   
Connector port=8443 maxHttpHeaderSize=8192
   
maxThreads=150 minSpareThreads=25
  maxSpareThreads=75
   
enableLookups=false
  disableUploadTimeout=true
   
acceptCount=100 scheme=https secure=true
   
clientAuth=false sslProtocol=TLS
   
keystoreFile=D:\jdk1.5.0_02\bin\keystore.jks
  keystorePass=changeit
   
truststoreFile=D:\jdk1.5.0_02\bin\cacerts.jks
  /
   
...
   
Client certificate (client.cer) is installed in
  my IE Browser (version
  6.0.28).
   
When I invoke htpps://localhost:8443/myweapp
  appears a window that asks
  me to accept the server certificate.
   
I accept and my webapp index page appears.
   
So why I don't see a window for client
  authentication ?
   
And why I 've the same behaviour also when I
  remove the client.cer from
  my Browser ?
   
It seems that client-certification doesn't work.
   
Any help would be greatly appreciated.
   
Thank You
   
Luca Ercoli
  
  
 
 -
   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]
 
 

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

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






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



RE: Jk and IIS 6 slow (resent)

2005-04-27 Thread Caldarale, Charles R
 From: Michael Südkamp [mailto:[EMAIL PROTECTED] 
 Subject: AW: Jk and IIS 6 slow (resent)
 
 We hadn't noticed this before because we don't use the IIS 
 for anything else than for the Tomcat redirect.

Then why use IIS at all?  Just configure Tomcat for ports 80 and 443 and 
eliminate the extra unnecessary software.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Question about File writing and authorisation

2005-04-27 Thread Maarten Janssen
Hello,

I have a servlet that create output files (txt) on the fly (with File obj
etc). I can write these files anywhere on the server (where the apllication
is running), so thats great.
But if I want to write them to another computer in the netwok (accessed by
\\name) I receive an access denied error. I am using windows NT.
I tried to set authorisation of all different types of users but didn't
help. What kind of user is Tomcat and anybody an solution?

thanx in advanced,

Maarten
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.10.3 - Release Date: 25-4-2005


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



RE: Question about File writing and authorisation

2005-04-27 Thread Peter Crowther
 From: Maarten Janssen [mailto:[EMAIL PROTECTED] 
 I have a servlet that create output files (txt) on the fly 
 (with File obj
 etc). I can write these files anywhere on the server (where 
 the apllication
 is running), so thats great.
 But if I want to write them to another computer in the netwok 
 (accessed by
 \\name) I receive an access denied error. I am using windows NT.
 I tried to set authorisation of all different types of users 
 but didn't
 help. What kind of user is Tomcat and anybody an solution?

Whatever it's running as on the computer.  I assume your Tomcat is
running as a service?  If so, look at the service's 'log on as'
information in Admin ToolsServices.  My guess is that it's running as
LocalSystem, which means you have all privilages locally but *none* on
the network - this is dangerous for the local system.  If you're looking
to create a file elsewhere on the network, I'd create a domain user
account for Tomcat, grant it Log On As A Service on the Tomcat server
and use that.

- Peter

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



Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT

2005-04-27 Thread Tony Nakamura
Hi Reynir,

I got it working.  I put isapi dll in the /bin directory, but IIS was
rejecting because there were many batches and exe files in the same
directory.  Since the jakarta virtual directory is given execute permission
for both scripts and executables, it was throwing 404 error because it's a
security risk to execute such files locally on the server.  So I simply
created another folder with just the dll in it and had virtual directory
point to the directory.

Thank you for your help!



Tony


- Original Message - 
From: reynir [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 8:57 AM
Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT


 well,
 the fact that you are getting 404 error from IIS really means that IIS
 is receiving the request, and forwarding it to
 /jakarta/isapi_redirect.dll, that is a virtual folder mapped on to the
 folder that the DLL is positioned in. If the 404 is coming from IIS (as
 it seems) it's obviously not finding this path. you should be able to
 see it by viewing the accesslog of IIS it should show this path
 /jakarta/isapi_redirect.dll and the error code 404 if it's not found
 but 200 or something else if it's there.
 check again if this part of the setup is correct, sometimes the
 difference is the name of the dll, some name it isapi_redirector.dll
 but not isapi_redirect.dll and since the registry entry specifies the
 full name of the dll this must be correct.

 again, hope it helps.
 -reynir



 Tony Nakamura wrote:

 Hi Reynir,
 
 I checked the server.xml, and it does have 8009 setting for listner ports
 uncommented.
 I have /jakarta virtual folder in IIS.
 
 I'm really confused as to what could be wrong...
 
 Thank you,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, April 27, 2005 4:47 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 hi,
 
 do you have the connector on port 8009 in your tomcat ?
 do you have the /jakarta virtual folder in IIS ?
 
 hope it helps
 -reynir
 
 
 Tony Nakamura wrote:
 
 
 
 Hi Reynir,
 
 Yes, the tomcat is on localhost, and I'm trying to access directly from
 
 
 the
 
 
 server right now.
 I can access the site with: http://localhost:8080/test/login.jsp but
not
 without specifying 8080 port.
 404 is from IIS log, and it seems to have changed from 404:03 to
404:02.
 
 Just for kicks, I also tried to replace localhost with an ip address,
but
 
 
 it
 
 
 was the same result.
 
 
 Thanks,
 
 
 Tony
 
 
 - Original Message - 
 From: reynir [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, April 26, 2005 11:48 AM
 Subject: Re: Vedr.: Re: Vedr.: ISAPI_REDIRECT
 
 
 
 
 
 
 Hi,
 
 Looks like the isapi_redirector is forwarding the request to the
 localhost host of your tomcat setup. is it there ?
 Check the access logs on the tomcat application. See if it's receiving
 the request.
 
 your error message, the 404, is it from tomcat (the blue one) or is it
 
 
 from IIS ?
 
 
 hope it helps,
 - reynir
 
 Tony Nakamura wrote:
 
 
 
 
 
 Hi,
 
 I uninstalled the exe version of isapi_redirect and decided to
manually
 configure them.
 As a result, I got the green arrow, and I'm able to see output in the
 
 
 log
 
 
 file given isapi_redirect runs
 in debug mode.  The log looks like the following.  This log from when
 
 
 I'm
 
 
 trying to run the IIS in 5.0 isolation mode.
 There is no output in the log file when I set the log level to
error,
 
 
 
 
 but
 
 
 
 
 I still get 404 File Not Found error when I try to access
 http://localhost/test/login.jsp
 
 
 Thanks!
 
 
 Tony
 
 
 ==
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1040): Using registry.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1043): Using log file c:\tomcat5.0.28\conf\isapi.log.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1044): Using log level 1.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1045): Using extension uri /jakarta/isapi_redirect.dll.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1046): Using worker file C:\tomcat5.0.28\conf\workers.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1047): Using worker mount file
 C:\tomcat5.0.28\conf\uriworkermap.properties.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 
 
 init_jk::jk_isapi_plugin.c
 
 
 (1049): Using uri select 0.
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 1
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_add::jk_uri_worker_map.c (371): general suffix rule
 /*jsp=main was added
 [Tue Apr 26 10:27:20 2005] [3616:816] [debug]
 uri_worker_map_open::jk_uri_worker_map.c 

Cannot assign requested address

2005-04-27 Thread J S
Hi,
I'm having problems getting tomcat (4.1.24) to start. It was working before, 
and I'm pretty sure nothing's been changed in the config. In the catalina 
log it just complains it can't assign the requested address, then shuts 
down.

Nothing is bound to the ip address, or port (even on local) so I'm 
completely stuck! Any help would be very much appreciated.

Cheers,
JS.
StandardManager[/passwordExpiry]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/passwordExpiry]: Seeding of random number generator has 
been completed
StandardWrapper[/passwordExpiry:default]: Loading container servlet default
StandardWrapper[/passwordExpiry:invoker]: Loading container servlet invoker
[INFO] ChannelSocket - -JK2: ajp13 listening on 
b7uat01-smpl143/154.122.154.174:8009
[INFO] JkMain - -Jk running ID=0 time=2/224708  
config=/b7/apache/b7uat01/conf/jk2.properties
StandardServer.await: create[8006]: java.net.BindException: Cannot assign 
requested address
java.net.BindException: Cannot assign requested address
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
   at java.net.ServerSocket.init(ServerSocket.java:165)
   at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:510)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
ServerLifecycleListener: Skipping MBean for Service 
StandardService[Tomcat-Apache]
GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI 
Resources
Stopping service Tomcat-Apache
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/tomcat-docs
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/webdav
StandardHost[154.122.154.174]: Removing web application at context path 
/passwordExpiry
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/manager


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


Re: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
If I use the session to store things, 1. Can I use simple java types? 
2. Do I have to use Java Beans (extends serializable)?

David Whitehurst
Viorel Dragomir wrote:
Yes.
But you can set some attributes of the objects as [ transient ] to not be serialized. 
So you don't have to make all objects in the package serializable.


Viorel Dragomir
.
..
---

- Original Message - 
From: David Whitehurst 
To: tomcat-user@jakarta.apache.org 
Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...

Long ago a multi-client, multi-Oracle application was written using 
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  I 
found one client implementation that used prepared statements but the 
primary key was being used e.g. update mytable set a= ?, b=? where 
pri_key =  + pkey +  ' ; ...whoa! I said, called the developer and we 
had a talk.

Then, I also found that where we use a HashMap object it is not 
synchronized.  I suspect that was the data problem, i.e. two records 
saved by two different people, and the data was the same for the 
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests but 
I'm also nervous now where I use Strings in the session e.g. a 
clientname, username, etc. My concern started when I read the posts 
about the non-serializable objects in the session.  Do all java objects 
placed in the session have to be serializable? 

Thanks,
David L. Whitehurst
-
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: (Fwd) Session attributes disappear between .jsp pages

2005-04-27 Thread Greg Vilardi
Yes, Chuck. The app is set to be reloadable in the Context. So is our other 
app that uses this jar perfectly well. The time stamp on all of the entries is 
around June 22, 2002. I checked these before sending my query. I'm sorry I 
didn't mention it in my earlier message.

Thank you for your suggestion though. I also verified that the jar has a 
correct timestamp when it is copied into the WEB-INF/lib directory.

-Greg

On 26 Apr 2005 at 17:58, Caldarale, Charles R wrote:

  From: Greg Vilardi [mailto:[EMAIL PROTECTED] 
  Subject: (Fwd) Session attributes disappear between .jsp pages 
  
  For the record, I figured this out. Our webapp was 
  automatically reloading every 15 seconds
 
 Only guessing, but:
 
 Is the reloadable attribute in this webapp's Context element enabled?
 
 Is there possibly a timestamp on some file or jar entry that's in the
 future?
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
Gregory H. Vilardi631-752-2701x240 [EMAIL PROTECTED]
Project Manager / Lead Software Engineer   Fax: (631)752-3397
Recurrent Software Solutions, Inc.   http://www.recurrentsoft.com
1 Huntington Quadrangle, Suite 1C02, Melville, NY 11747 


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



Re: Nervous about Sessions ...

2005-04-27 Thread Jay Hulslander
To store a Java Object in session (HTTPRequest or HTTPResponse), just make 
any Object (POJO or something more complicated) implement 
serializable.  Keep in mind, you don't need to code an extra functions, 
just add the implements serializable to Class definition.
-Jay
At 07:42 AM 4/27/2005 -0400, you wrote:
If I use the session to store things, 1. Can I use simple java types? 2. 
Do I have to use Java Beans (extends serializable)?

David Whitehurst
Viorel Dragomir wrote:
Yes.
But you can set some attributes of the objects as [ transient ] to not be 
serialized. So you don't have to make all objects in the package serializable.


Viorel Dragomir
.
..
---

- Original Message - From: David Whitehurst To: 
tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...

Long ago a multi-client, multi-Oracle application was written using 
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  I 
found one client implementation that used prepared statements but the 
primary key was being used e.g. update mytable set a= ?, b=? where 
pri_key =  + pkey +  ' ; ...whoa! I said, called the developer and we 
had a talk.

Then, I also found that where we use a HashMap object it is not 
synchronized.  I suspect that was the data problem, i.e. two records 
saved by two different people, and the data was the same for the 
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests but 
I'm also nervous now where I use Strings in the session e.g. a 
clientname, username, etc. My concern started when I read the posts about 
the non-serializable objects in the session.  Do all java objects placed 
in the session have to be serializable?
Thanks,

David L. Whitehurst
-
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: (Fwd) Session attributes disappear between .jsp pages

2005-04-27 Thread Caldarale, Charles R
 From: Greg Vilardi [mailto:[EMAIL PROTECTED] 
 Subject: RE: (Fwd) Session attributes disappear between .jsp pages 
 
 Yes, Chuck. The app is set to be reloadable in the Context. 

Turning off reloadable should prevent the behavior you're seeing, but it
won't help to explain why you're seeing it.  Removing reloadable from
all your webapps will also reduce overhead slightly.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Nervous about Sessions ...

2005-04-27 Thread Frank W. Zammetti
There *technically* isn't any requirement that things you store in 
session be serializable.  However, since some app servers use databases 
or file systems to persist session information, and that many times is 
implemented using serialization, and since serializable is usually (if 
not always) necessary in a clustered environment to replicate the 
session between nodes, you probably do for all intents and purposes only 
want to store serializable objects in session, just to future-proof 
your app.

Yes, you can store simple java types, and no, you do not *have* to use 
beans (although I think this is generally considered a best practice in 
most cases).  If you do use beans though, you will probably want to make 
sure you only use serializable types in the bean, or mark them transient 
as Viorel mentioned, as per the point made in the first paragraph above.

But again, there's nothing that says you have to do any of this... if 
you KNOW you are only going to run on a single server and if you KNOW 
your app server is only storing session in memory, there is nothing that 
says any object you put in session, on it's own or by virtue of members 
it contains, must be serializable.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
David Whitehurst wrote:
If I use the session to store things, 1. Can I use simple java types? 
2. Do I have to use Java Beans (extends serializable)?

David Whitehurst
Viorel Dragomir wrote:
Yes.
But you can set some attributes of the objects as [ transient ] to not 
be serialized. So you don't have to make all objects in the package 
serializable.


Viorel Dragomir
.
..
---

- Original Message - From: David Whitehurst To: 
tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...

Long ago a multi-client, multi-Oracle application was written using 
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  
I found one client implementation that used prepared statements but 
the primary key was being used e.g. update mytable set a= ?, b=? 
where pri_key =  + pkey +  ' ; ...whoa! I said, called the 
developer and we had a talk.

Then, I also found that where we use a HashMap object it is not 
synchronized.  I suspect that was the data problem, i.e. two records 
saved by two different people, and the data was the same for the 
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests 
but I'm also nervous now where I use Strings in the session e.g. a 
clientname, username, etc. My concern started when I read the posts 
about the non-serializable objects in the session.  Do all java 
objects placed in the session have to be serializable?
Thanks,

David L. Whitehurst
-
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: TC v5.5.9 Won't Server *.htm Files

2005-04-27 Thread David B. Saul
I have 5.5.7 and it seems to work ok - not much help - but -

Suggestion ( and a WAG ) check the web.xml in conf for the following mime
mapping:

mime-mapping
extensionhtm/extension
mime-typetext/html/mime-type
/mime-mapping

Let us know...

-Original Message-
From: Bob Bronson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 26, 2005 11:13 PM
To: tomcat-user@jakarta.apache.org
Subject: TC v5.5.9 Won't Server *.htm Files


Hello all,

I'm sure this must be a configuration issue. I am running TC 5.5.9 as a
stand-alone server (not w/Apache). The problem I'm seeing is that when I
point my browser to an index.htm file, Tomcat gives me a 404, telling me
it cannot find index.jsp.

Please notice I said, index.htm and not index.html.

Here's a peek at the HTTP headers as captured by Firefox. I'm only showing
the relevant headers.

GET /fred/bob/index.htm HTTP/1.1
Host: xxx.test1.com

HTTP/1.x 404 /fred/bob/index.jsp
Server: Apache-Coyote/1.1


Is that crazy? I'm asking for index.htm and it  *DOES* exist. If I rename it
to index.html everything works fine.

I know what you're thinking -- probably I do not have the welcome files
set right in my default web.xml. Well, here it is:

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

And I am *NOT* overriding these in the web app's web.xml.

Can someone running TC 5.5.9 as a standalone server please see if you can
serve an index.htm file?

Thanks much,

Bob



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



set header in all responses

2005-04-27 Thread Rodrigo Avila
Hi all!

Is possible to put this headers in all responses generated by Tomcat?

response.setHeader(Pragma,no-cache); response.setHeader
(Cache-Control,no-history);
response.setDateHeader(Expires,-1); 

Thanks the attetion.
 
-- 
Rodrigo de Avila
[EMAIL PROTECTED]

http://www.avila.eti.br


RE: set header in all responses

2005-04-27 Thread Peter Crowther
 From: Rodrigo Avila [mailto:[EMAIL PROTECTED] 
 Is possible to put this headers in all responses generated by Tomcat?
 
 response.setHeader(Pragma,no-cache); response.setHeader
 (Cache-Control,no-history);
 response.setDateHeader(Expires,-1); 

Yes.  At worst, you could write a Valve that set those fields before
invoking the next valve in the chain, and put it into your server.xml.
There may well be more elegant solutions.

- Peter

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



Tomcat 5.0.28; Struts 1.2.4 - - FileUploadException

2005-04-27 Thread Sweeney, Bill
 
Hi All - 

We are using the Struts fileupload.

Periodically (on the order of 100 of 3000 uploads) we get the error
below where the upload request fails with a Read timed out:

SEVERE: Failed to parse multipart request
org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Read timed out
 at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase
.java:429)
 at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Co
mmonsMultipartRequestHandler.java:195)



Does anyone know where and how to reset the time out interval for the
fileuploader in an effort to get around this issue?  Or is there another
fix? or there a known issue with the fileuploader?

Thanks!





--
William J. Sweeney| ChartOne, Inc.
617.648.4764 voice 

[EMAIL PROTECTED]

 


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



Re: set header in all responses

2005-04-27 Thread Frank W. Zammetti
A filter is an ideal solution for this... It has the benefit of being 
app-specific, so should you ever want to host another app in the same TC 
instance that doesn't require those headers, they won't be set 
automatically (i.e., at the server-level).

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Rodrigo Avila wrote:
Hi all!
Is possible to put this headers in all responses generated by Tomcat?
response.setHeader(Pragma,no-cache); response.setHeader
(Cache-Control,no-history);
response.setDateHeader(Expires,-1); 

Thanks the attetion.
 


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


Re: set header in all responses

2005-04-27 Thread Robert r. Sanders
I'd use a servlet filter; but either way it should work.
Peter Crowther wrote:
From: Rodrigo Avila [mailto:[EMAIL PROTECTED] 
Is possible to put this headers in all responses generated by Tomcat?

response.setHeader(Pragma,no-cache); response.setHeader
(Cache-Control,no-history);
response.setDateHeader(Expires,-1); 
   

Yes.  At worst, you could write a Valve that set those fields before
invoking the next valve in the chain, and put it into your server.xml.
There may well be more elegant solutions.
- Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
   Robert r. Sanders
   Chief Technologist
   iPOV
   (334) 821-5412
   www.ipov.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: set header in all responses

2005-04-27 Thread Rodrigo Avila
right... I need to all apps in an TC instance use these headers... how
I do it? I don't know how use filters / valves...

Thanks!

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



June Hodgins/HFX/MLAC is out of the office.

2005-04-27 Thread june_hodgins
I will be out of the office starting  04/25/2005 and will not return until
05/02/2005.



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



Re: set header in all responses

2005-04-27 Thread Frank W. Zammetti
Filters:
http://java.sun.com/products/servlet/Filters.html
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Rodrigo Avila wrote:
right... I need to all apps in an TC instance use these headers... how
I do it? I don't know how use filters / valves...
Thanks!




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


RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
Hi Frank,

I think this post is related to mine:

We had a few non-serializable objects stored in session in TC 5.0.28 but
after migrating the app TC 5.5.9 is throwing

java.lang.IllegalArgumentException: setAttribute: Non-serializable
attribute.

...when we try to put a non-serializable in the session. We are using a JSTL
recommended form like:

(...)

javax.servlet.jsp.jstl.fmt.LocalizationContext lc =
   new javax.servlet.jsp.jstl.fmt.LocalizationContext(bundle);

   javax.servlet.jsp.jstl.core.Config.set(session,

javax.servlet.jsp.jstl.core.Config.FMT_LOCALIZATION_CONTEXT,lc);
(...)

Do you know about any changes related to that in TC 5.5.x?

Thank you!

Paulo


-Mensagem original-
De: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de abril de 2005 12:59
Para: Tomcat Users List
Assunto: Re: Nervous about Sessions ...


There *technically* isn't any requirement that things you store in
session be serializable.  However, since some app servers use databases
or file systems to persist session information, and that many times is
implemented using serialization, and since serializable is usually (if
not always) necessary in a clustered environment to replicate the
session between nodes, you probably do for all intents and purposes only
want to store serializable objects in session, just to future-proof
your app.

Yes, you can store simple java types, and no, you do not *have* to use
beans (although I think this is generally considered a best practice in
most cases).  If you do use beans though, you will probably want to make
sure you only use serializable types in the bean, or mark them transient
as Viorel mentioned, as per the point made in the first paragraph above.

But again, there's nothing that says you have to do any of this... if
you KNOW you are only going to run on a single server and if you KNOW
your app server is only storing session in memory, there is nothing that
says any object you put in session, on it's own or by virtue of members
it contains, must be serializable.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

David Whitehurst wrote:
 If I use the session to store things, 1. Can I use simple java types?
 2. Do I have to use Java Beans (extends serializable)?

 David Whitehurst

 Viorel Dragomir wrote:

 Yes.
 But you can set some attributes of the objects as [ transient ] to not
 be serialized. So you don't have to make all objects in the package
 serializable.




 Viorel Dragomir

 .
 ..
 ---



 - Original Message - From: David Whitehurst To:
 tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31
 Subject: Nervous about Sessions ...


 Long ago a multi-client, multi-Oracle application was written using
 Struts.  Recently, we had a 4 in 22,000 record data integrity issue.
 I found one client implementation that used prepared statements but
 the primary key was being used e.g. update mytable set a= ?, b=?
 where pri_key =  + pkey +  ' ; ...whoa! I said, called the
 developer and we had a talk.

 Then, I also found that where we use a HashMap object it is not
 synchronized.  I suspect that was the data problem, i.e. two records
 saved by two different people, and the data was the same for the
 different records in the same Oracle second.

 I'm looking for comments about the use of this HashMap on requests
 but I'm also nervous now where I use Strings in the session e.g. a
 clientname, username, etc. My concern started when I read the posts
 about the non-serializable objects in the session.  Do all java
 objects placed in the session have to be serializable?
 Thanks,

 David L. Whitehurst

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



RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
Ok Jay,

But what about this JSTL recommendation:

(...)
javax.servlet.jsp.jstl.fmt.LocalizationContext lc =
new javax.servlet.jsp.jstl.fmt.LocalizationContext(bundle);

// This code just sets the lc variable - not serializable in the session
object

javax.servlet.jsp.jstl.core.Config.set(session,javax.servlet.jsp.jstl.core.C
onfig.FMT_LOCALIZATION_CONTEXT,lc);

(...)

In this case we should have to extend that JSTL class...but it used to work
in TC 5.0.28.

Do you know why TC 5.5.9 doesn't accept it?

Thanks,

Paulo

-Mensagem original-
De: Jay Hulslander [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de abril de 2005 12:51
Para: Tomcat Users List
Assunto: Re: Nervous about Sessions ...


To store a Java Object in session (HTTPRequest or HTTPResponse), just make
any Object (POJO or something more complicated) implement
serializable.  Keep in mind, you don't need to code an extra functions,
just add the implements serializable to Class definition.
-Jay
At 07:42 AM 4/27/2005 -0400, you wrote:
If I use the session to store things, 1. Can I use simple java types? 2.
Do I have to use Java Beans (extends serializable)?

David Whitehurst

Viorel Dragomir wrote:

Yes.
But you can set some attributes of the objects as [ transient ] to not be
serialized. So you don't have to make all objects in the package
serializable.




Viorel Dragomir

.
..
---



- Original Message - From: David Whitehurst To:
tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...


Long ago a multi-client, multi-Oracle application was written using
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.  I
found one client implementation that used prepared statements but the
primary key was being used e.g. update mytable set a= ?, b=? where
pri_key =  + pkey +  ' ; ...whoa! I said, called the developer and we
had a talk.

Then, I also found that where we use a HashMap object it is not
synchronized.  I suspect that was the data problem, i.e. two records
saved by two different people, and the data was the same for the
different records in the same Oracle second.

I'm looking for comments about the use of this HashMap on requests but
I'm also nervous now where I use Strings in the session e.g. a
clientname, username, etc. My concern started when I read the posts about
the non-serializable objects in the session.  Do all java objects placed
in the session have to be serializable?
Thanks,

David L. Whitehurst

-
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: RES: Nervous about Sessions ...

2005-04-27 Thread Frank W. Zammetti
Hi Paul,
No, I don't know of any changes... I'm actually wondering if this is a 
restriction the latest servlet spec places on objects in session... I 
tend to doubt Tomcat would be imposing such a restriction unless the 
spec indicated such a restriction... I myself might learn something 
here! :)  Does anyone reading this know a definitive answer?

Frank
Paulo Alvim wrote:
Hi Frank,
I think this post is related to mine:
We had a few non-serializable objects stored in session in TC 5.0.28 but
after migrating the app TC 5.5.9 is throwing
java.lang.IllegalArgumentException: setAttribute: Non-serializable
attribute.
...when we try to put a non-serializable in the session. We are using a JSTL
recommended form like:
(...)
javax.servlet.jsp.jstl.fmt.LocalizationContext lc =
   new javax.servlet.jsp.jstl.fmt.LocalizationContext(bundle);
   javax.servlet.jsp.jstl.core.Config.set(session,
javax.servlet.jsp.jstl.core.Config.FMT_LOCALIZATION_CONTEXT,lc);
(...)
Do you know about any changes related to that in TC 5.5.x?
Thank you!
Paulo
-Mensagem original-
De: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de abril de 2005 12:59
Para: Tomcat Users List
Assunto: Re: Nervous about Sessions ...
There *technically* isn't any requirement that things you store in
session be serializable.  However, since some app servers use databases
or file systems to persist session information, and that many times is
implemented using serialization, and since serializable is usually (if
not always) necessary in a clustered environment to replicate the
session between nodes, you probably do for all intents and purposes only
want to store serializable objects in session, just to future-proof
your app.
Yes, you can store simple java types, and no, you do not *have* to use
beans (although I think this is generally considered a best practice in
most cases).  If you do use beans though, you will probably want to make
sure you only use serializable types in the bean, or mark them transient
as Viorel mentioned, as per the point made in the first paragraph above.
But again, there's nothing that says you have to do any of this... if
you KNOW you are only going to run on a single server and if you KNOW
your app server is only storing session in memory, there is nothing that
says any object you put in session, on it's own or by virtue of members
it contains, must be serializable.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
David Whitehurst wrote:
If I use the session to store things, 1. Can I use simple java types?
2. Do I have to use Java Beans (extends serializable)?
David Whitehurst
Viorel Dragomir wrote:

Yes.
But you can set some attributes of the objects as [ transient ] to not
be serialized. So you don't have to make all objects in the package
serializable.

Viorel Dragomir
.
..
---

- Original Message - From: David Whitehurst To:
tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 11:31
Subject: Nervous about Sessions ...
Long ago a multi-client, multi-Oracle application was written using
Struts.  Recently, we had a 4 in 22,000 record data integrity issue.
I found one client implementation that used prepared statements but
the primary key was being used e.g. update mytable set a= ?, b=?
where pri_key =  + pkey +  ' ; ...whoa! I said, called the
developer and we had a talk.
Then, I also found that where we use a HashMap object it is not
synchronized.  I suspect that was the data problem, i.e. two records
saved by two different people, and the data was the same for the
different records in the same Oracle second.
I'm looking for comments about the use of this HashMap on requests
but I'm also nervous now where I use Strings in the session e.g. a
clientname, username, etc. My concern started when I read the posts
about the non-serializable objects in the session.  Do all java
objects placed in the session have to be serializable?
Thanks,
David L. Whitehurst
-
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]



--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Custom Realm for Lotus Domino Could not open notes session

2005-04-27 Thread holger . willenborg
Hello,

I figured out how to get it to work, even if there was no hint in all the 
documentation I know... The NotesFactory provides another createSession() 
which uses org.omg.CORBA.ORB to implement an Object Request Broker which 
seems to do  connection pooling. Using this makes the problem disappear...

So, if you try to connect to a Domino (6.5.3) server using Tomcat (5.0.28) 
in a custom realm, keep in mind that you should use Connection pooling. If 
you want more specific info, mail to holger.willenborg__AT_gmx.net.

Regards
Holger

---
I wrote:

Hi, I' trying to implement a realm to authenticate against a Notes DIIOP 
service.

This is done using a class which extends RealmBase and fill some of the 
methods (for reference
I leave all the code inside here, if you like to write your own Realm, you 

can start with that code below).

In other places, this code works, but within the authenticate() method it 
won't work and will end up in an exception:
NotesException: Could not open Notes session: org.omg.CORBA.MARSHAL: 
vmcid: 0x0  minor code: 0  completed: No
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.init(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at 
com.armacell.tomcat.auth.DominoRealm.authenticate(DominoRealm.java:98)
at 
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 


...

The really weird about this is, that it actually works if I move it to the 

constructor. It makes no sense to move it there of course and I did it for 

testing only, but why doesn't it work in the authenticate() method while 
it does in another place ? 

Not even the packet to the DIIOP server (at Port 63148) seems to be sent. 
(It will when used from the constructor).

Since the code needs to access a server I wonder if authenticate() is 
somehow synchronized or access of other servers is locked within the 
authenticate() method?

Any help appreciated.

Code (Check the MARKED CODE section):
-
public class DominoRealm extends RealmBase {

String username;
String passwd;
ArrayList roles = null;
 
public DominoRealm()  {
}
 
protected String getName() {
return username;
}

protected String getPassword(String arg0) {
return passwd;
}

protected Principal getPrincipal(String arg0) {
return new GenericPrincipal(this,username,passwd,roles);
}
 
public Principal authenticate(String user, String pass) {
 
try {
// -- MARKED CODE START
String[] args = new String[1];
args[0] = ;
// create the notes session
Session s = 
NotesFactory.createSession(lnmun06.armacell.com:63148,args,user,pass);
//  MARKED CODE END

Database db = s.getDatabase(,names.nsf);
 
this.username = user;
this.passwd = pass;
} catch (NotesException e) {
// HERE COMES THE ERROR
System.out.println(e.text);
e.printStackTrace();
return null;
}
 
return getPrincipal(user);
 
}
 
Thanks
Holger


Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Yuval Zantkeren
Hi,

 

I want to change the ROOT context to my web app but not in the Tomcat
directory.

I tried to define the context in xml file in the
conf/Catalina/localhost/ with path= and delete the ROOT folder in

The webapp directory but it doesn't work.

I would also want to use this root from the JK connector.

 

Please advise,

 

Yuval



Re: Why 8080 and 8443 ..?

2005-04-27 Thread Nikola Milutinovic
David Whitehurst wrote:
Chuck:
Could you elaborate on what those parameters would be? A port is just 
a number. I'm trying to understand the history, but I would appreciate 
your comments on the other things required to make Tomcat production 
ready on top of just changing the Coyote connector from 8080 to 80 and 
8443 to 443?

The history is relatively clear. Normal Internet ports for HTTP/S are 80 
and 443. Since Tomcat is usually running first as a test project on some 
machine that already has a web server, in order to avoid conflicts or 
(which may even be worse in test situations) having ot connect Apache 
and TC, it is most reasonable to shift those ports.

Since TCP:0-1024 is already overbooked with registered services and 
TCP:1024-x has a lot other registered services, it seamed reasonable to 
place it at 8000 + 80,443.

As for production, you have several things to consider. Do you want to 
run TC standalone or behind Apache? Most likely you will not want TC to 
run as root, so you will have a dedicated account for TC, like tomcat 
or tomcat4 or tomcat5. You need to setup file permissions so that TC 
can access the files it needs.

If it is running standalone, you need to allow TC to bind to ports 80 
and 443, something best accomplished via Apache Jakarta-Commons Daemon 
and JSVC.

If it is running behind Apache, you need to setup a connector, like WARP 
(mod_webapp - prehestoric, but the ISP I'm working for at this moment 
uses it), JK2 (good, but abandoned and merged into JK) or JK.

And all of this needs setting up.
Nix.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OT: Good taglib repository - looking for date hadling tags

2005-04-27 Thread Nikola Milutinovic
Rahul Akolkar wrote:
One such repository:
http://jakarta.apache.org/taglibs/
 

I feel dumb not looking there first. Alas, I'm not in a position to use 
them, can you believe that? I'm using Struts 1.1 and it just doesn't 
live well with JSTL. Tried it and had XML parser errors during 
application deployment. This problem had been noted by others and the 
only solution was to remove JSTL.

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


getting web.xml configurations from jsp

2005-04-27 Thread Kimberly Nico
Hello,
I'm trying to add links to actions within a servlet (non-jsp) on my 
index page, but the url path of the servlet is configurable.  All I can 
rely on is the class name of the servlet.  I could probably do it with 
the old getServlet(String) on the ServletContext, except that method is 
deprecated.

I either need the web.xml configuration object (which could provide me 
the servlet-name of a particular class, which could provide the 
url-pattern for the servlet name), or some equivalent way of searching 
the servlets which are configured in tomcat.

I would prefer to leave my index page as straight jsp, interpreted by 
org.apache.jasper.servlet.JspServlet, and I would prefer not to add any 
more configuration variables, to avoid maintenance if that url pattern 
changes.  I have access to beans affiliated with the other servlet, but 
in order to get the servlet name I would need a Request.  I would also 
prefer to do as little as possible that is tomcat-specific.

Is there a way the jsp can get access to the web.xml configuration of 
another servlet?  (The information it needs is not in the default 
web.xml, but in the webapp/WEB-INF/web.xml.)

Thanks,
Kim Nico
Vizdom, Inc.
www.vizdom.com

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


Re: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Parsons Technical Services
RTFM or should I say rtm so as to be nice.
You can't do that with 5.5.X . You must declare the default context in the 
server.xml

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Doug
- Original Message - 
From: Yuval Zantkeren [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 3:03 PM
Subject: Change ROOT in Tomcat 5.5.9

Hi,

I want to change the ROOT context to my web app but not in the Tomcat
directory.
I tried to define the context in xml file in the
conf/Catalina/localhost/ with path= and delete the ROOT folder in
The webapp directory but it doesn't work.
I would also want to use this root from the JK connector.

Please advise,

Yuval

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


Re: Cannot assign requested address

2005-04-27 Thread Parsons Technical Services
Do an ipconfig /all on Windoze or ifconfig on Linux and see what your IP is.
Is there a reason you are having Tomcat only listen on a specific IP?
Is your IP static?
What OS are you running?
Doug
- Original Message - 
From: J S [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 11:38 AM
Subject: Cannot assign requested address


Hi,
I'm having problems getting tomcat (4.1.24) to start. It was working 
before, and I'm pretty sure nothing's been changed in the config. In the 
catalina log it just complains it can't assign the requested address, 
then shuts down.

Nothing is bound to the ip address, or port (even on local) so I'm 
completely stuck! Any help would be very much appreciated.

Cheers,
JS.
StandardManager[/passwordExpiry]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/passwordExpiry]: Seeding of random number generator has 
been completed
StandardWrapper[/passwordExpiry:default]: Loading container servlet 
default
StandardWrapper[/passwordExpiry:invoker]: Loading container servlet 
invoker
[INFO] ChannelSocket - -JK2: ajp13 listening on 
b7uat01-smpl143/154.122.154.174:8009
[INFO] JkMain - -Jk running ID=0 time=2/224708 
config=/b7/apache/b7uat01/conf/jk2.properties
StandardServer.await: create[8006]: java.net.BindException: Cannot assign 
requested address
java.net.BindException: Cannot assign requested address
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:447)
   at java.net.ServerSocket.init(ServerSocket.java:165)
   at 
org.apache.catalina.core.StandardServer.await(StandardServer.java:510)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:521)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
ServerLifecycleListener: Skipping MBean for Service 
StandardService[Tomcat-Apache]
GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI 
Resources
Stopping service Tomcat-Apache
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/tomcat-docs
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/webdav
StandardHost[154.122.154.174]: Removing web application at context path 
/passwordExpiry
StandardHost[154.122.154.174]: Removing web application at context path 
/dpm/manager


-
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: RES: Nervous about Sessions ...

2005-04-27 Thread Will Hartung
 From: Frank W. Zammetti [EMAIL PROTECTED]
 Sent: Wednesday, April 27, 2005 10:59 AM


 Hi Paul,

 No, I don't know of any changes... I'm actually wondering if this is a
 restriction the latest servlet spec places on objects in session... I
 tend to doubt Tomcat would be imposing such a restriction unless the
 spec indicated such a restriction... I myself might learn something
 here! :)  Does anyone reading this know a definitive answer?

Conceptually, I guess someone could have changed the session to require
serialization. Perhaps they did this to handle the new cluster/failover
aware sessions.

Tomcat has different session managers. A simple one that happily consumes
heap until you run out, a more sophisticated version that funnels old
sessions to disk and reloads them on demand, and then the failover aware
sessions.

But, even the generic base version would try to persist session between
restarts.

Finally, if you're having issues, you can always wrap you non-serialized
items into a class that IS serializable, and either simply lie (so that if
it actually TRIES to serialize it, it will fail and throw an exception), or
mark the fields as transient so they won't serialize.

There's also the option of digging deep into the Tomcat source code and just
fixing it and remove that limitation, but that's rather drastic.

Regards,

Will Hartung
([EMAIL PROTECTED])


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



Re: RES: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
I heard something confusing in the reply.  If Tomcat has a file caching 
under load, how does Tomcat serialize the objects in session if the 
client application isn't placing objects implementing 
java.io.serializable everytime?

Will Hartung wrote:
From: Frank W. Zammetti [EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 10:59 AM
   


 

Hi Paul,
No, I don't know of any changes... I'm actually wondering if this is a
restriction the latest servlet spec places on objects in session... I
tend to doubt Tomcat would be imposing such a restriction unless the
spec indicated such a restriction... I myself might learn something
here! :)  Does anyone reading this know a definitive answer?
   

Conceptually, I guess someone could have changed the session to require
serialization. Perhaps they did this to handle the new cluster/failover
aware sessions.
Tomcat has different session managers. A simple one that happily consumes
heap until you run out, a more sophisticated version that funnels old
sessions to disk and reloads them on demand, and then the failover aware
sessions.
But, even the generic base version would try to persist session between
restarts.
Finally, if you're having issues, you can always wrap you non-serialized
items into a class that IS serializable, and either simply lie (so that if
it actually TRIES to serialize it, it will fail and throw an exception), or
mark the fields as transient so they won't serialize.
There's also the option of digging deep into the Tomcat source code and just
fixing it and remove that limitation, but that's rather drastic.
Regards,
Will Hartung
([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]


Clustering troubles.

2005-04-27 Thread Rod Fitzsimmons Frey
I'm setting up a 2-node Tomcat cluster with jk_mod doing the 
loadbalancing.  The loadbalancing went without a hitch, or at least 
without hitches that maillist archives couldn't untie.  But now I'd like 
to have in-memory session replication between the two tomcat nodes.  I 
uncommented the cluster element in the server.xml file on each node, but 
clustering didn't magically happen as I hoped it would: no replication 
takes place.

I'm using a page in the jsp-examples webapp that sets a simple attribute 
on the session --  session.setAttribute(hello, howdy);

When starting up Tomcat on each node, I get these log entries:
Apr 27, 2005 12:30:28 PM 
org.apache.catalina.cluster.session.DeltaManager start
INFO: Starting clustering manager at /jsp-examples
Apr 27, 2005 12:30:28 PM 
org.apache.catalina.cluster.session.DeltaManager start
INFO: Manager [/jsp-examples]: skipping state transfer. No members 
active in cluster group.

I get this on both nodes, even if I start one node, create a session, 
then start node 2.

Multicast is enabled: at least, when I ping 224.0.0.1, I get responses 
from all my interfaces.  Do I need to do something to join 228.0.0.4, or 
is that a programmatic thing?

I've pasted my workers.properties below (minus comments), and the 
cluster element from my server.xml.  I've tried adding a name 
attribute to the cluster element and to each of its child elements in 
turn, without effect.

TIA!
Rod
# workers.properties -
workers.java_home=/usr/java/jre1.5.0_02
ps=/
#
#-- ADVANCED MODE 
#-
#
worker.list=realserver1, realserver2, realserver3, realserver4, 
loadbalancer, jkstatus

worker.realserver1.port=8009
worker.realserver1.host=localhost
worker.realserver1.type=ajp13
worker.realserver1.lbfactor=100
worker.realserver2.port=8010
worker.realserver2.host=localhost
worker.realserver2.type=ajp13
worker.realserver2.lbfactor=100
worker.realserver3.port=8009
worker.realserver3.host=marmot
worker.realserver3.type=ajp13
worker.realserver3.lbfactor=100
worker.realserver4.port=8010
worker.realserver4.host=marmot
worker.realserver4.type=ajp13
worker.realserver4.lbfactor=100
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=realserver1, realserver2, 
realserver3, realserver4

worker.jkstatus.type=status
# end workers.properties
!-- server.xml cluster element --
Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
  managerClassName=org.apache.catalina.cluster.session.DeltaManager
  expireSessionsOnShutdown=false
useDirtyFlag=true
notifyListenersOnReplication=true
 Membership
 className=org.apache.catalina.cluster.mcast.McastService
 mcastAddr=228.0.0.4
 mcastPort=45564
 mcastFrequency=500
 mcastDropTime=3000/
 Receiver
 className=org.apache.catalina.cluster.tcp.ReplicationListener
 tcpListenAddress=auto
 tcpListenPort=4001
 tcpSelectorTimeout=100
 tcpThreadCount=6/
 Sender
 className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
 replicationMode=pooled
 ackTimeout=15000/
 Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
 
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/

 Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer
 tempDir=/tmp/war-temp/
  deployDir=/tmp/war-deploy/
  watchDir=/tmp/war-listen/
  watchEnabled=false/
/Cluster
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Hassan Schroeder
Parsons Technical Services wrote:
You can't do that with 5.5.X . You must declare the default context in 
the server.xml
No, I don't know how you're getting that out of the reference below
but there's no requirement to have your context -- any context --
defined in server.xml.
Trust me, I've got several 5.5.x machines running right now, and
*all* the contexts are defined in either /META-INF/context.xml or
$CATALINA_HOME/conf/{engine}/{hostname}/{context}.xml
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
FWIW,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Starting Version 5.5.7

2005-04-27 Thread walter.d.vollberg
I just installed Tomcat version 5.5.7 on my Win XP computer and have noticed 
there is no startup.* shutdown.* files I am used to using to boot Tomcat nor 
anything in the start menu. What happened to these files and what do I use to 
start Tomcat now?
 
Dave


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re: Starting Version 5.5.7

2005-04-27 Thread Jason Bainbridge
On 4/27/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I just installed Tomcat version 5.5.7 on my Win XP computer and have noticed 
 there is no startup.* shutdown.* files I am used to using to boot Tomcat nor 
 anything in the start menu. What happened to these files and what do I use to 
 start Tomcat now?

the Windows Installet no longer provides the manual startup/shutdown
scripts for some reason and instead installs it as a Windows Service
if you want the scripts back you need to download the Zip.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Starting Version 5.5.7

2005-04-27 Thread Anoop kumar V
tomcat, since 5.0 I think has stopped using the bat files and in your case I 
think it has been installed as a service already.

If not you can still use the tomcat5.exe or tomcat5w.exe in the 
{tomcat_home}/bin folder.

Make sure you have JDK 1.5+ on your system.

HTH,
Anoop

On 4/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 
 I just installed Tomcat version 5.5.7 on my Win XP computer and have 
 noticed there is no startup.* shutdown.* files I am used to using to boot 
 Tomcat nor anything in the start menu. What happened to these files and what 
 do I use to start Tomcat now?
 
 Dave
 
 This message is for the designated recipient only and may contain 
 privileged, proprietary, or otherwise private information. If you have 
 received it in error, please notify the sender immediately and delete the 
 original. Any other use of the email by you is prohibited.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Thanks and best regards,
Anoop


Re: Clustering troubles.

2005-04-27 Thread Rod Fitzsimmons Frey
Forgot to mention:   Java runtime is jre1.5.0_02
Rod Fitzsimmons Frey wrote:
I'm setting up a 2-node Tomcat cluster with jk_mod doing the 
loadbalancing.  The loadbalancing went without a hitch, or at least 
without hitches that maillist archives couldn't untie.  But now I'd 
like to have in-memory session replication between the two tomcat 
nodes.  I uncommented the cluster element in the server.xml file on 
each node, but clustering didn't magically happen as I hoped it 
would: no replication takes place.
... etc

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


Re: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Parsons Technical Services
Hassan,
So your context have the path element set to  ?
Please read what Yuval wrote and what I responded. Yuval wrote with path= 
. I responded with default context.

And you are correct that you do not have to define any context in the 
server.xml, but if you wish to use the path element set to a value of  
(defined as default) then you do according to the documentation.

 If you specify a context path of an empty string (), you are defining 
the default web application for this Host, which will process all requests 
not assigned to other Contexts. The value of this field must not be set 
except when statically defining a Context in server.xml, as it will be 
infered from the filenames used for either the .xml context file or the 
docBase. 

Doug
- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, April 27, 2005 3:17 PM
Subject: Re: Change ROOT in Tomcat 5.5.9


Parsons Technical Services wrote:
You can't do that with 5.5.X . You must declare the default context in 
the server.xml
No, I don't know how you're getting that out of the reference below
but there's no requirement to have your context -- any context --
defined in server.xml.
Trust me, I've got several 5.5.x machines running right now, and
*all* the contexts are defined in either /META-INF/context.xml or
$CATALINA_HOME/conf/{engine}/{hostname}/{context}.xml
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
FWIW,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


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


SimpleTagSupport in Tomcat 4.1.27

2005-04-27 Thread Jason_Rosenblum
Hi,
 
I'm trying to run a simple JSP that tests a custom tag. The tag was an
extension of SimpleTagSupport.java. I have included the class
SimpleTagSupport in my WAR file via j2ee-1.4.jar, but I am receiving an
exception (see below). Does anyone have any ideas?
 
 
javax.servlet.ServletException:
javax/servlet/jsp/tagext/SimpleTagSupport

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
6)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)

at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)

at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)

at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:60
1)

at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)

at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)

at java.lang.Thread.run(Thread.java:536)



root cause 

java.lang.NoClassDefFoundError:
javax/servlet/jsp/tagext/SimpleTagSupport

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:502)

at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCla
ssLoader.java:1680)

at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader
.java:968)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1410)

at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
.java:1289)

at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:709)

at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)

at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)

at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)

at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)

at org.apache.jasper.compiler.Parser.parseBody(Parser.java:833)

at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:753)

at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:804)

at org.apache.jasper.compiler.Parser.parse(Parser.java:122)

at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
199)

at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
153)

at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)

at

Re: RES: Nervous about Sessions ...

2005-04-27 Thread Will Hartung
 From: David Whitehurst [EMAIL PROTECTED]
 Sent: Wednesday, April 27, 2005 8:05 AM

 I heard something confusing in the reply.  If Tomcat has a file caching
 under load, how does Tomcat serialize the objects in session if the
 client application isn't placing objects implementing
 java.io.serializable everytime?

It doesn't. It fails for that case.

The real question is whether you care.

If you're using the RAM based session manager that tries and saves sessions
on Tomcat restart, then you ask yourself if you really care to save sessions
over a restart? (I don't, you may though.)

If you don't, then it doesn't matter if you have non-serializable data in
your sessions.

If you DO care about persisting sessions (for whatever reason, such as
relying on a paging session manager), then obviously you need to make sure
you store serializable data.

The real point, though, is that the spec says that you can put an Object
into the session. It doesn't say Serializable. So, if Tomcat for whatever
reason, is doing something like:

public void setAttribute(String name, Object value) {
if (!(value instanceof Serializable)) {
throw new BoomBoomException();
}
}

Then, it's kind of adhering to the letter of the spec, but not really the
spirit of the spec.

It's fine to say that if you have Objects that are not Serializable in your
Session, the session will not be persisted, if and when that happens, but
it's another thing to limit the contract (since, in most case in the real
world, most sessions are simply stored in memory and serialization is not an
issue).

Besides, it doesn't even solve the issue. You can put, say, an ArrayList
full of objects that are not serializable, and it would pass this test, but
fail later. The only real way to know if something is Serializable is to
either reflectively crawl the objects contents and check, or simply try and
serialize it and see. Any session manager that's serializing or crawling the
Object every time you call setAttribute is going to, umm, politely, suck,
because of the performance hit. (Note, many failover session managers do
precisely that -- serialize the new attributes immediately, but then, they
pretty much have to don't they? But you knew that when you signed up for
it.)

So, better to document the behavior and adhere to the spec and let the
programmer deal with the consequences of all that rope you're handing him.

IMHO, of course, I'm not emperor yet. If I were, I could make an edict,
until then...simple opinion :-).

Regards,

Will Hartung
([EMAIL PROTECTED])


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



no host matches server name localhost

2005-04-27 Thread Jonathan August
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, so 
I'm not sure what to check.


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


Re: no host matches server name localhost

2005-04-27 Thread Rod Fitzsimmons Frey
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, so 
I'm not sure what to check.


-
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: SimpleTagSupport in Tomcat 4.1.27

2005-04-27 Thread Jukka Uusisalo
[EMAIL PROTECTED] wrote:
Hi,
 
I'm trying to run a simple JSP that tests a custom tag. The tag was an
extension of SimpleTagSupport.java. I have included the class
SimpleTagSupport in my WAR file via j2ee-1.4.jar, but I am receiving an
exception (see below). Does anyone have any ideas?
 
Tomcat 4 implments jsp 1.2 specs but SimpleTagSupport is available since
jsp 2.0, tomcat 5. I don't remember how tomcat 4 works, but tomcat 5 
does not load specification classes like Servlet classes from 
application war file.

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


RE: SimpleTagSupport in Tomcat 4.1.27

2005-04-27 Thread Jason_Rosenblum
Thanks! I'll rewrite the tag to use TagSupport.

~Jason

-Original Message-
From: Jukka Uusisalo [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 3:57 PM
To: Tomcat Users List
Subject: Re: SimpleTagSupport in Tomcat 4.1.27


[EMAIL PROTECTED] wrote:
 Hi,
  
 I'm trying to run a simple JSP that tests a custom tag. The tag was an

 extension of SimpleTagSupport.java. I have included the class 
 SimpleTagSupport in my WAR file via j2ee-1.4.jar, but I am receiving 
 an exception (see below). Does anyone have any ideas?
  

Tomcat 4 implments jsp 1.2 specs but SimpleTagSupport is available since
jsp 2.0, tomcat 5. I don't remember how tomcat 4 works, but tomcat 5 
does not load specification classes like Servlet classes from 
application war file.

- Jukka -


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


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



Re: no host matches server name localhost

2005-04-27 Thread Jonathan August
This is my /etc/hosts:
[jon ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost

On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote:
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, so 
I'm not sure what to check.


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

Jon August
Internection
1-866-345-HOST

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


Type of server

2005-04-27 Thread Chawke, Nitin \(Corporate, consultant\)
Hi All,
I have a very basic question here.

What is tomcat ? Is it a Web Server or an App Server
My understanding was its a Web Server with a Web Container.

But recently I have come accross a lot of discussions saying that is an 
Application server?
I tried to find out in the documentations, but nowhere it is clearly mentioned.

Please advise.

Thanks,
Nitin


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



Re: Change ROOT in Tomcat 5.5.9

2005-04-27 Thread Hassan Schroeder
Parsons Technical Services wrote:
Please read what Yuval wrote --
OK, that was:
I want to change the ROOT context to my web app but not in the Tomcat
directory.
I tried to define the context in xml file in the
conf/Catalina/localhost/ with path= and delete the ROOT folder in
The webapp directory but it doesn't work.
:: which I took to mean having a ROOT context in a place other
than $CATALINA_HOME/webapps/.
And all that takes is to change the docbase attribute of the relevant
ROOT.xml file, which has an assumed context path of .
Perhaps I misunderstand the OP's goal...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: no host matches server name localhost

2005-04-27 Thread Rod Fitzsimmons Frey
I should have looked at your message more closely.
The error is probably with your default host.  Look in your 
{tomcat-home}/conf/server.xml file.  Look for something like

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
Post your server.xml file if you can't work it out.
Rod
Jonathan August wrote:
This is my /etc/hosts:
[jon ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost

On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote:
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try to 
connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, 
so I'm not sure what to check.


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

Jon August
Internection
1-866-345-HOST

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


deployer always deploying context.xml

2005-04-27 Thread Paulo Alvim
Hi!

We are using Tomcat Deployer with TC528 and trying to make it work without
include the context.xml into the WAR.

Since we have a WAR as a product, we can't define SGBD connection pooling
information in advance...and it seems to be the way J2EE should work
(context.xml as a deployment time artefact).

We couldn't find a way to do it...any help here?

Thanks a lot!

Paulo


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



Re: RES: Nervous about Sessions ...

2005-04-27 Thread David Whitehurst
Will , I do editing application software for clients like BMW and 
Volkswagen, and my application had an issue where e.g. 2 records in 
22,000 edits had the same data tied to different keys and different 
editors (users).  I found that I was using a HashMap (not threadsafe, 
changed that) and I now ..I am wondering whether the use of java simple 
types (e.g. client, and user strings) in the session is a good idea.

We are testing the synchonization of the Hashmap object Friday.  So, I 
am on a knowledge hunt to understand session fully.  I use Tomcat 5 
within JBoss 3.2.5 servers.

Thanks (I know I'm not supposed to do that so that's why the explanation)
David L. Whitehurst
Will Hartung wrote:
From: David Whitehurst [EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 8:05 AM
   

 

I heard something confusing in the reply.  If Tomcat has a file caching
under load, how does Tomcat serialize the objects in session if the
client application isn't placing objects implementing
java.io.serializable everytime?
   

It doesn't. It fails for that case.
The real question is whether you care.
If you're using the RAM based session manager that tries and saves sessions
on Tomcat restart, then you ask yourself if you really care to save sessions
over a restart? (I don't, you may though.)
If you don't, then it doesn't matter if you have non-serializable data in
your sessions.
If you DO care about persisting sessions (for whatever reason, such as
relying on a paging session manager), then obviously you need to make sure
you store serializable data.
The real point, though, is that the spec says that you can put an Object
into the session. It doesn't say Serializable. So, if Tomcat for whatever
reason, is doing something like:
public void setAttribute(String name, Object value) {
   if (!(value instanceof Serializable)) {
   throw new BoomBoomException();
   }
}
Then, it's kind of adhering to the letter of the spec, but not really the
spirit of the spec.
It's fine to say that if you have Objects that are not Serializable in your
Session, the session will not be persisted, if and when that happens, but
it's another thing to limit the contract (since, in most case in the real
world, most sessions are simply stored in memory and serialization is not an
issue).
Besides, it doesn't even solve the issue. You can put, say, an ArrayList
full of objects that are not serializable, and it would pass this test, but
fail later. The only real way to know if something is Serializable is to
either reflectively crawl the objects contents and check, or simply try and
serialize it and see. Any session manager that's serializing or crawling the
Object every time you call setAttribute is going to, umm, politely, suck,
because of the performance hit. (Note, many failover session managers do
precisely that -- serialize the new attributes immediately, but then, they
pretty much have to don't they? But you knew that when you signed up for
it.)
So, better to document the behavior and adhere to the spec and let the
programmer deal with the consequences of all that rope you're handing him.
IMHO, of course, I'm not emperor yet. If I were, I could make an edict,
until then...simple opinion :-).
Regards,
Will Hartung
([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: Type of server

2005-04-27 Thread Jorge Davila
This is from the online doc.

Tomcat 5 implements the Servlet 2.4 and JavaServer Pages 2.0
specifications from the Java Community Process, and includes many
additional features that make it a useful platform for developing and
deploying web applications and web services.

The generalized idea is:

CLIENT
|
| http request/response (maybe this request is to an application)
|
APACHE web server (with mod_proxy enabled)
receive the request. if the request is a request to an application
within tomcat apache send the request to tomcat (the container of web
applications) 
|
| request is forwarded to the container
|
TOMCAT
|
| request is forwarded (again) to the appropriated application.
|
APPLICATION
|
| query to a db store
|
DB STORE


Jorge Dvila.

El mi, 27-04-2005 a las 16:04 -0400, Chawke, Nitin (Corporate,
consultant) escribi:
 Hi All,
 I have a very basic question here.
 
 What is tomcat ? Is it a Web Server or an App Server
 My understanding was its a Web Server with a Web Container.
 
 But recently I have come accross a lot of discussions saying that is an 
 Application server?
 I tried to find out in the documentations, but nowhere it is clearly 
 mentioned.
 
 Please advise.
 
 Thanks,
 Nitin
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: no host matches server name localhost

2005-04-27 Thread Jonathan August
Hmm, I have pretty much what you have.  Here's the whole server.xml:
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
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

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

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080
   maxThreads=150 minSpareThreads=25 
maxSpareThreads=75
   enableLookups=false redirectPort=8443 
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
  /Host
/Engine
  /Service
/Server


On Apr 27, 2005, at 4:08 PM, Rod Fitzsimmons Frey wrote:
I should have looked at your message more closely.
The error is probably with your default host.  Look in your 
{tomcat-home}/conf/server.xml file.  Look for something like

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
Post your server.xml file if you can't work it out.
Rod
Jonathan August wrote:
This is my /etc/hosts:
[jon ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost

On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote:
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try 
to connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this, 
so I'm not sure what to check.


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


RES: RES: Nervous about Sessions ...

2005-04-27 Thread Paulo Alvim
Thank you very much, Frank...

I had to create the following class...

-
import java.io.Serializable;
import java.util.ResourceBundle;

import javax.servlet.jsp.jstl.fmt.LocalizationContext;

public class PlcLocalizationContext extends LocalizationContext implements
Serializable {

public PlcLocalizationContext(ResourceBundle bundle) {
super(bundle);
}

}

-

...and lie to Tomcat. It's ok for us now! ;-)

PS But I think that this change will cause many problems to Tomcat
Users...maybe this check should be a server.xml option.



-Mensagem original-
De: Will Hartung [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 27 de abril de 2005 15:48
Para: Tomcat Users List; [EMAIL PROTECTED]; Paulo Alvim
Cc: Tomcat Users List
Assunto: Re: RES: Nervous about Sessions ...


 From: Frank W. Zammetti [EMAIL PROTECTED]
 Sent: Wednesday, April 27, 2005 10:59 AM


 Hi Paul,

 No, I don't know of any changes... I'm actually wondering if this is a
 restriction the latest servlet spec places on objects in session... I
 tend to doubt Tomcat would be imposing such a restriction unless the
 spec indicated such a restriction... I myself might learn something
 here! :)  Does anyone reading this know a definitive answer?

Conceptually, I guess someone could have changed the session to require
serialization. Perhaps they did this to handle the new cluster/failover
aware sessions.

Tomcat has different session managers. A simple one that happily consumes
heap until you run out, a more sophisticated version that funnels old
sessions to disk and reloads them on demand, and then the failover aware
sessions.

But, even the generic base version would try to persist session between
restarts.

Finally, if you're having issues, you can always wrap you non-serialized
items into a class that IS serializable, and either simply lie (so that if
it actually TRIES to serialize it, it will fail and throw an exception), or
mark the fields as transient so they won't serialize.

There's also the option of digging deep into the Tomcat source code and just
fixing it and remove that limitation, but that's rather drastic.

Regards,

Will Hartung
([EMAIL PROTECTED])



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



Re: no host matches server name localhost

2005-04-27 Thread Jonathan August
I think I was just missing a Context.
Thanks for the help, Rod!!
-Jon

On Apr 27, 2005, at 4:24 PM, Jonathan August wrote:
Hmm, I have pretty much what you have.  Here's the whole server.xml:
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
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
 
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina
!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080
   maxThreads=150 minSpareThreads=25  
maxSpareThreads=75
   enableLookups=false redirectPort=8443  
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
!-- Define the top level container in our container hierarchy --
Engine name=Catalina defaultHost=localhost debug=0
  !-- Global logger unless overridden at lower levels --
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  !-- Define the default virtual host
   Note: XML Schema validation will not work with Xerces 2.2.
   --
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log.  
suffix=.txt
timestamp=true/

  /Host
/Engine
  /Service
/Server


On Apr 27, 2005, at 4:08 PM, Rod Fitzsimmons Frey wrote:
I should have looked at your message more closely.
The error is probably with your default host.  Look in your  
{tomcat-home}/conf/server.xml file.  Look for something like

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false
Post your server.xml file if you can't work it out.
Rod
Jonathan August wrote:
This is my /etc/hosts:
[jon ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain   localhost

On Apr 27, 2005, at 3:52 PM, Rod Fitzsimmons Frey wrote:
What do you have in your /etc/hosts file?
Jonathan August wrote:
I installed Tomcat 5.0.30 using yum on Fedora Core 3.  When I try  
to connect to http://localhost:8080/, I get:

Alert!: HTTP/1.1 400 No Host matches server name localhost
I'm sure I'm missing something simple, but I'm pretty new at this,  
so I'm not sure what to check.


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

Jon August
Internection
1-866-345-HOST

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


Re: SSL

2005-04-27 Thread jejones
So I am new, obviously with the keytool use.. attached is the cert.txt 
file resulting from the keytool -list -v.. I changed the CSR data.. but 
the format is there... do you see anything wrong with the file?

-jrj
Jason Bainbridge wrote:
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 

Finially, some progress; but not exactly what I wanted... I made the F
uppercase, stopped/started the server; now it's refusing connections.
This is from the log file:
Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
SEVERE: Endpoint [SSL:
   

when doing these steps:
Import the Chain Certificate into you keystore
keytool -import -alias root -keystore your_keystore_filename
-trustcacerts -file filename_of_the_chain_certificate
And finally import your new Certificate (It must be in X509 format):
keytool -import -alias tomcat -keystore your_keystore_filename
-trustcacerts -file your_certificate_filename
Did you specify the full path names? I would backup the .keystore and
then try again by specifying full path names to make sure.
Sounds like you have an incomplete .keystore being used. 

 



Keystore type: jks
Keystore provider: SUN

Your keystore contains 2 entries

Alias name: root
Creation date: Apr 21, 2005
Entry type: trustedCertEntry

Owner: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., O=VeriSign 
Trust Network
Issuer: OU=Class 3 Public Primary Certification Authority, O=VeriSign, Inc., 
C=US
Serial number: 254b8a853842cce358f8c5ddae226ea4
Valid from: Wed Apr 16 17:00:00 PDT 1997 until: Mon Oct 24 16:59:59 PDT 2011
Certificate fingerprints:
 MD5:  BC:0A:51:FA:C0:F4:7F:DC:62:1C:D8:E1:15:43:4E:CC
 SHA1: C2:F0:08:7D:01:E6:86:05:3A:4D:63:3E:7E:70:D4:EF:65:C2:CC:4F


***
***


Alias name: tomcat
Creation date: Apr 21, 2005
Entry type: trustedCertEntry

Owner: CN=, OU=, O=, L=, ST=California, C=US
Issuer: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., O=VeriSign 
Trust Network
Serial number: 46fefd812464db21ede3b8e4f39a9218
Valid from: Wed Apr 06 17:00:00 PDT 2005 until: Fri Apr 07 16:59:59 PDT 2006
Certificate fingerprints:
 MD5:  D3:9B:5C:E3:41:D9:6D:AD:DE:62:2B:E0:E1:74:5B:FD
 SHA1: 37:55:D7:35:82:FA:13:33:F2:45:4E:13:92:8C:73:3B:7C:11:D8:61


***
***



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

Re: client authentication dont work

2005-04-27 Thread Mark Thomas
Your user entry in tomcat-users.xml needs to look something like this:
  user username=CN=Mark Thomas, OU=Jakarta, O=Apache, L=London, C=GB 
password=null roles=tomcat,certs/

Basically, the user name needs to be the CN on the user's cert.
Mark
Markus Linnemann wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi,

I try to authentificate to a web App by Client.Cert.
I get these error message:
HTTP Status 401 - Cannot authenticate with the provided credentials
Here are my settings:
web.xml:
security-constraint
web-resource-collection
web-resource-namecertLogin.jsp/web-resource-name
url-pattern/idp/certLogin.jsp/url-pattern
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameSourceIDuser/role-name
/auth-constraint   
/security-constraint

login-config
auth-methodCLIENT-CERT/auth-method
realm-nameSourceID/realm-name
/login-config
security-role
description![CDATA[SourceID Authenticated User]]/description
role-nameSourceIDuser/role-name
/security-role
tomcat.users:
tomcat-users
   role rolename=SourceIDuser/
   user
username=[EMAIL PROTECTED]   
password=null roles=SourceIDuser/

  user username=markus password=test roles=SourceIDuser/
 
/tomcat-users

It works fine with Basic authentication!
And it works fine with only set clientAuth=true.
But I only want to secure a part of my WebApp,
so clientAuth=true is not helpful.
Any help would be greatly appreciated.
Markus
- --
Markus Linnemann
ifis - Institut fr Internet-Sicherheit, FH Gelsenkirchen
Tel.: 0209 9596 797
www.internet-sicherheit.de
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCb5VohyPbXYfivmMRAurbAJ9SQAqlK+3SXqsYaIx9NsSBjcR6xACcCs+L
rg0SJ+M1jyRtex9YDP9DBIM=
=5CuL
-END PGP SIGNATURE-

-
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: SSL

2005-04-27 Thread jejones
If I run keytool again, will it generate a keystore with a different 
private key?  If so, then the cert I received from verisign will not 
work with that file.

-jrj
Jason Bainbridge wrote:
Did you specify the full path names? I would backup the .keystore and
then try again by specifying full path names to make sure.
Sounds like you have an incomplete .keystore being used. 

 


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


Re: SSL

2005-04-27 Thread Jason Bainbridge
On 4/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 So I am new, obviously with the keytool use.. attached is the cert.txt
 file resulting from the keytool -list -v.. I changed the CSR data.. but
 the format is there... do you see anything wrong with the file?

Hazarding a guess but it looks like you created the CSR in a different
.keystore and then imported Verisign's certificate into this one as
the tomcat alias should look something like:

Alias name: tomcat
Creation date: Jan 28, 2005
Entry type: keyEntry
Certificate chain length: 4
Certificate[1]:
Owner: CN=XXX, OU=XXX, O=X, L=XX, ST=XX, C=X
Issuer: CN=
Serial number: 
Valid from: Fri Jan 28 00:00:24 GMT 2005 until: Sun Jan 28 00:00:24 GMT 2007
Certificate fingerprints:
 MD5:  XX
 SHA1: XXX

Then because that one has a chain length of 4 it has 3 other certs in
the chain, then each of those have their own aliases as well.

Your verisgn cert isn't in any chain and I'm guessing the reason is
because it's not where the CSR was generated from so you either need
to find that .keystore or do another .CSR from this or another new
.keystore and import the trusted cert you receive from that CSR.

The all important part is the .CSR needs to match with the trusted
cert you get back.
 
 -jrj
 
 Jason Bainbridge wrote:
 
 On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 Finially, some progress; but not exactly what I wanted... I made the F
 uppercase, stopped/started the server; now it's refusing connections.
 This is from the log file:
 
 Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint [SSL:
 
 
 
 when doing these steps:
 
 Import the Chain Certificate into you keystore
 
 keytool -import -alias root -keystore your_keystore_filename
 -trustcacerts -file filename_of_the_chain_certificate
 
 And finally import your new Certificate (It must be in X509 format):
 
 keytool -import -alias tomcat -keystore your_keystore_filename
 -trustcacerts -file your_certificate_filename
 
 Did you specify the full path names? I would backup the .keystore and
 then try again by specifying full path names to make sure.
 
 Sounds like you have an incomplete .keystore being used.
 
 
 
 
 
 
 
 Keystore type: jks
 Keystore provider: SUN
 
 Your keystore contains 2 entries
 
 Alias name: root
 Creation date: Apr 21, 2005
 Entry type: trustedCertEntry
 
 Owner: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
 OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., 
 O=VeriSign Trust Network
 Issuer: OU=Class 3 Public Primary Certification Authority, O=VeriSign, 
 Inc., C=US
 Serial number: 254b8a853842cce358f8c5ddae226ea4
 Valid from: Wed Apr 16 17:00:00 PDT 1997 until: Mon Oct 24 16:59:59 PDT 2011
 Certificate fingerprints:
  MD5:  BC:0A:51:FA:C0:F4:7F:DC:62:1C:D8:E1:15:43:4E:CC
  SHA1: C2:F0:08:7D:01:E6:86:05:3A:4D:63:3E:7E:70:D4:EF:65:C2:CC:4F
 
 ***
 ***
 
 Alias name: tomcat
 Creation date: Apr 21, 2005
 Entry type: trustedCertEntry
 
 Owner: CN=, OU=, O=, L=, ST=California, C=US
 Issuer: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
 OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., 
 O=VeriSign Trust Network
 Serial number: 46fefd812464db21ede3b8e4f39a9218
 Valid from: Wed Apr 06 17:00:00 PDT 2005 until: Fri Apr 07 16:59:59 PDT 2006
 Certificate fingerprints:
  MD5:  D3:9B:5C:E3:41:D9:6D:AD:DE:62:2B:E0:E1:74:5B:FD
  SHA1: 37:55:D7:35:82:FA:13:33:F2:45:4E:13:92:8C:73:3B:7C:11:D8:61
 
 ***
 ***
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



redirect stdout on tomcat 5.5

2005-04-27 Thread Kanda Upendra

I am using Tomcat 5.5 and when I don't use the tomcat.exe, I can make it
write to the stdout log. How can I redirect stdout to a specific file.
Suggestions please.



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



  1   2   >