Re: Tomcat and CRL(s) Certification Revocation Lists

2006-05-11 Thread Jack

Hi Jeff,

you have the keystore type set as PKCS12 even though the CRL is a PEM
format file (and hence not PKCS12 format).
PKCS12 contains the private key as well as the cert and public key -
which is not applicable for the CRL file so this might be why it is
getting confused.

You could try removing the keystoreType field and building the
keystores as described on my page (as the method described there
definitely works).
http://jack.godau.googlepages.com/jbosscertificatesandopenssl





 
   


On 10/05/06, Jeff Krug <[EMAIL PROTECTED]> wrote:

Fri, May 05, at 04:31:PM : Jack has proclaimed:
> I have already gotten Tomcat to work with a (single) CRL, and as it
> was a bit of a struggle have placed some info for those trying to do
> this at [1]. The document is far from perfect, and any comments are
> welcome.
>
> [1] http://jack.godau.googlepages.com/jbosscertificatesandopenssl

Thanks for this page.  I am not using JBoss, but it has been useful.  I
have client certificate authentication working correctly, but I cannot
seem to get CRLs to work.

I built my CRL by executing:

$openssl ca -batch -gencrl -crldays 30 -out crl.pem

This way every user certificate I revoke can be packaged in a single
CRL. Is this type of CRL legitimate for use in Tomcat?


If it is a standard format CRL I would think so.




Is there a way to turn on sufficient debugging within Tomcat so that I
can try and figure out what is failing.  I don't see any error messages
in my tomcat.log file at all.  I don't know if it is even trying to
parse the crlFile, failing to parse the file, or if it is failing later
to recognize the certificate is revoked.


Again not sure on this point. I went with the prolonged trial and
error method :(


Cheers
Jack...

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



Re: Help!Tomcat crashes:Waiting for instance(s) to be deallocated

2006-05-11 Thread Martyn Hiemstra

Hi Starki78

I had this problem when using a singelton class that stored a datasource 
in it. Everytime I pressed F5 really fast the web server would hang and 
when I shutdown I got that same message. Apparently when pressing F5 
very fast instead of the singelton only using 1 datasource (The one in 
the singelton) it loaded 5 datasources and then the connection pool was 
full. Since the pool timeouts where set to 5 minutes the server would 
appear to hang when in actual fact my code was waiting for an available 
datasource.


I also get this when debugging my tomcat server using eclipse. If I'm 
debugging and one of the server threads is still debugging and I 
shutdown the server I get this message as well.


I'm guessing that somewhere alot of threads are waiting to finish. The 
fact that you have 536 instances to be deallocated could mean you have a 
serious flaw in your code.


Martyn

starki78 schreef:

Hi, we are working with Tomcat 4.1:
I didn't find a proper cause in the log-files.

Can someone help me please?
How could this be possible??

2006-05-11 06:53:35 StandardWrapper[/pss:action]: Waiting for 74 instance(s) to 
be deallocated

2006-05-11 06:53:36 StandardWrapper[/pss:jsp]: Waiting for 1 instance(s) to be 
deallocated

2006-05-11 06:53:36 StandardWrapper[/pss:default]: Waiting for 536 instance(s) 
to be deallocated






-
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 (Base?) directory

2006-05-11 Thread Dirk Moolman
Hi, I am sorry for posting such simple questions to the list, but I am
really pushed for time (new servers have to go live), and I have not
worked with Tomcat before.

I have successfully installed Tomcat, and someone helped me to confirm
that it was working by using CATALINA_BASE=/src/www/tomcat/demoserver.


I copied everything in this directory to a new tomcat filesystem I
created, where my applications will be loaded, and restarted Tomcat from
the new filesystem.

When I connect to tomcat  http://servername:8080, I now get a blank
page, where previously on the demoserver I was able to open a Tomcat
welcome page.

I assume from this that I cannot just move the demoserver directory
structure, but have to also change some config files if I want to do
this - is this correct ?




 



Dirk Moolman
Database and Unix Administrator
Digicare Technologies (HealthCorp)


>
The information on this e-mail including any attachments relates to the 
official business of DigiCare (Pty) Ltd. The information is confidential and 
legally privileged and is intended solely for the addressee. Access to this 
e-mail by anyone else is unauthorised and as such any disclosure, copying, 
distribution or any action taken or omitted in reliance on it is unlawful. 
Please notify the sender immediately if it has inadvertently reached you and do 
not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the 
information is, for whatever reason, corrupted or does not reach its intended 
destination. The views expressed in this e-mail  are the views of the 
individual sender and should in no way be construed as the views of DigiCare 
(Pty) Ltd, except where the sender has specifically stated them to be the views 
of DigiCare (Pty) Ltd.
>


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



loading context.xml from a directory / war

2006-05-11 Thread tv
Hello,

I struggle with loading context.xml from a build directory (and war package). On
our development server we have a directory with one of our projects, containing
the usual structure - doc, src, etc. If the compile works fine, the compiled
classes etc. are copied to the build directory, including the context.xml,
which placed in the META-INF directory and contains just one Realm we use to
check username and password. The war package is built without problems too.

The problem is this - we have a ANT target, we use to install this build
directory as a new web application to the tomcat 5.0 server:

  


  

It works nicely, with the exception that the context.xml is not loaded - it's
not copied to the /opt/tomcat5/conf/Catalina/[host]/[context].xml and the realm
is not available (ie. we can't check the username/password). The same happens
when trying to install the war package - the application loads and works fine,
but the context is not loaded.

The whole context.xml is this


 
 


I've been able to 'force' the context.xml in two ways:

1) Add docBase and copy the file to the /opt/tomcat5/conf/Catalina/[host]
directory, so the application is loaded automatically by tomcat.

2) Use the Tomcat Manager, and specify the context.xml as the 'XML Configuration
File URL' while deploying the new application.

But I don't like these ways, as I'd like achieve 'auto-load' from the META-INF
directory. So the question is - I have a 'build' directory with 'META-INF'
subdirectory, with 'context.xml' in it - What do I have to do to force Tomcat
to load this context.xml on startup? The same question applies to the WAR
package, which was created from the build directory.

t.v.

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



Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Peter Hubbard
Quite simply, if you have already logged in to the system, you get
kicked out until later. Like so:

HttpSession session = request.getSession(true);

if (session.getAttribute("details")!=null)
{
 log.warn("Already logged in.");
 redirect="/errors/alreadyloggedin.jsp";
}
else
{
 session.setAttribute("details", client);
 redirect = "/portal/portal.jsp";
} 


This gets me out of the problem of multiple logins through the same
browser window (Firefox and Opera) or the same PC (IE) having their
session information confused.

I've not found any other ways around this problem, or solutions of how
to allow individual browser windows and tabs to have individual session
data. Is there a real solution for this, and if so could some kind soul
please point me in the right direction?

Thanks

-- 
Peter Hubbard <[EMAIL PROTECTED]>


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



RE: Tomcat (Base?) directory

2006-05-11 Thread Tim Lucia
Did you include the ROOT/ directory from the old installation's webapps
directory?  That is where the welcome page lives.

Tim

-Original Message-
From: Dirk Moolman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 4:52 AM
To: Tomcat Users List
Subject: Tomcat (Base?) directory

Hi, I am sorry for posting such simple questions to the list, but I am
really pushed for time (new servers have to go live), and I have not
worked with Tomcat before.

I have successfully installed Tomcat, and someone helped me to confirm
that it was working by using CATALINA_BASE=/src/www/tomcat/demoserver.


I copied everything in this directory to a new tomcat filesystem I
created, where my applications will be loaded, and restarted Tomcat from
the new filesystem.

When I connect to tomcat  http://servername:8080, I now get a blank
page, where previously on the demoserver I was able to open a Tomcat
welcome page.

I assume from this that I cannot just move the demoserver directory
structure, but have to also change some config files if I want to do
this - is this correct ?




 



Dirk Moolman
Database and Unix Administrator
Digicare Technologies (HealthCorp)


>
The information on this e-mail including any attachments relates to the
official business of DigiCare (Pty) Ltd. The information is confidential and
legally privileged and is intended solely for the addressee. Access to this
e-mail by anyone else is unauthorised and as such any disclosure, copying,
distribution or any action taken or omitted in reliance on it is unlawful.
Please notify the sender immediately if it has inadvertently reached you and
do not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
information is, for whatever reason, corrupted or does not reach its
intended destination. The views expressed in this e-mail  are the views of
the individual sender and should in no way be construed as the views of
DigiCare (Pty) Ltd, except where the sender has specifically stated them to
be the views of DigiCare (Pty) Ltd.
>


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



When is init() called?

2006-05-11 Thread Martin Grogan

Hi all,
I'm new to the list. I was trying to find out exactly when Tomcat will 
call a servlets init() method.

Is it
   a) When tomcat is restarted or
   b) When I restart my web-app context from the Tomcat manager panel.
I ask because we run web-apps on a shared hosting server and don't have 
control over when Tomcat gets restarted, but would need to re-init() our 
servlets from time to time. We are running on Tomcat 5.5.7

Thanks,
Martin


Martin Grogan
Keizen Software

[EMAIL PROTECTED]
www.keizensoftware.com


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



RE: Tomcat (Base?) directory

2006-05-11 Thread Dirk Moolman
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED] 
Sent: 11 May 2006 01:22 PM

>Did you include the ROOT/ directory from the old installation's webapps
>directory?  That is where the welcome page lives.


Yes, I did, thank you   - I basically ran a TAR in the parent directory
of webapps (in the demoserver), and extracted this in my new home - so
all the files that were in the demo directory, are now in the new one
(including the conf, logs, etc...)

Dirk





[Original post]

-Original Message-
From: Dirk Moolman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 4:52 AM
To: Tomcat Users List
Subject: Tomcat (Base?) directory

Hi, I am sorry for posting such simple questions to the list, but I am
really pushed for time (new servers have to go live), and I have not
worked with Tomcat before.

I have successfully installed Tomcat, and someone helped me to confirm
that it was working by using CATALINA_BASE=/src/www/tomcat/demoserver.


I copied everything in this directory to a new tomcat filesystem I
created, where my applications will be loaded, and restarted Tomcat from
the new filesystem.

When I connect to tomcat  http://servername:8080, I now get a blank
page, where previously on the demoserver I was able to open a Tomcat
welcome page.

I assume from this that I cannot just move the demoserver directory
structure, but have to also change some config files if I want to do
this - is this correct ?




 



Dirk Moolman
Database and Unix Administrator
Digicare Technologies (HealthCorp)


>
The information on this e-mail including any attachments relates to the
official business of DigiCare (Pty) Ltd. The information is confidential
and
legally privileged and is intended solely for the addressee. Access to
this
e-mail by anyone else is unauthorised and as such any disclosure,
copying,
distribution or any action taken or omitted in reliance on it is
unlawful.
Please notify the sender immediately if it has inadvertently reached you
and
do not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
information is, for whatever reason, corrupted or does not reach its
intended destination. The views expressed in this e-mail  are the views
of
the individual sender and should in no way be construed as the views of
DigiCare (Pty) Ltd, except where the sender has specifically stated them
to
be the views of DigiCare (Pty) Ltd.
>


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


>
The information on this e-mail including any attachments relates to the 
official business of DigiCare (Pty) Ltd. The information is confidential and 
legally privileged and is intended solely for the addressee. Access to this 
e-mail by anyone else is unauthorised and as such any disclosure, copying, 
distribution or any action taken or omitted in reliance on it is unlawful. 
Please notify the sender immediately if it has inadvertently reached you and do 
not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the 
information is, for whatever reason, corrupted or does not reach its intended 
destination. The views expressed in this e-mail  are the views of the 
individual sender and should in no way be construed as the views of DigiCare 
(Pty) Ltd, except where the sender has specifically stated them to be the views 
of DigiCare (Pty) Ltd.
>


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



RE: Tomcat (Base?) directory

2006-05-11 Thread Dirk Moolman
Could it be because my tar & extract copied the symbolic links of the
demoserver as well ?

Ie. the conf directory is not a real directory, but a symbolic link to
the conf directory of the demo server 



-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED] 
Sent: 11 May 2006 01:22 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat (Base?) directory

Did you include the ROOT/ directory from the old installation's webapps
directory?  That is where the welcome page lives.

Tim

-Original Message-
From: Dirk Moolman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 4:52 AM
To: Tomcat Users List
Subject: Tomcat (Base?) directory

Hi, I am sorry for posting such simple questions to the list, but I am
really pushed for time (new servers have to go live), and I have not
worked with Tomcat before.

I have successfully installed Tomcat, and someone helped me to confirm
that it was working by using CATALINA_BASE=/src/www/tomcat/demoserver.


I copied everything in this directory to a new tomcat filesystem I
created, where my applications will be loaded, and restarted Tomcat from
the new filesystem.

When I connect to tomcat  http://servername:8080, I now get a blank
page, where previously on the demoserver I was able to open a Tomcat
welcome page.

I assume from this that I cannot just move the demoserver directory
structure, but have to also change some config files if I want to do
this - is this correct ?




 



Dirk Moolman
Database and Unix Administrator
Digicare Technologies (HealthCorp)


>
The information on this e-mail including any attachments relates to the
official business of DigiCare (Pty) Ltd. The information is confidential
and
legally privileged and is intended solely for the addressee. Access to
this
e-mail by anyone else is unauthorised and as such any disclosure,
copying,
distribution or any action taken or omitted in reliance on it is
unlawful.
Please notify the sender immediately if it has inadvertently reached you
and
do not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the
information is, for whatever reason, corrupted or does not reach its
intended destination. The views expressed in this e-mail  are the views
of
the individual sender and should in no way be construed as the views of
DigiCare (Pty) Ltd, except where the sender has specifically stated them
to
be the views of DigiCare (Pty) Ltd.
>


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


>
The information on this e-mail including any attachments relates to the 
official business of DigiCare (Pty) Ltd. The information is confidential and 
legally privileged and is intended solely for the addressee. Access to this 
e-mail by anyone else is unauthorised and as such any disclosure, copying, 
distribution or any action taken or omitted in reliance on it is unlawful. 
Please notify the sender immediately if it has inadvertently reached you and do 
not read, disclose or use the content in any way. 
>
No responsibility whatsoever is accepted by DigiCare (Pty) Ltd if the 
information is, for whatever reason, corrupted or does not reach its intended 
destination. The views expressed in this e-mail  are the views of the 
individual sender and should in no way be construed as the views of DigiCare 
(Pty) Ltd, except where the sender has specifically stated them to be the views 
of DigiCare (Pty) Ltd.
>


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



RE: When is init() called?

2006-05-11 Thread Tim Lucia
init() is called when the servlet is instantiated.  If you have
1 then it will get called when the web
app is (re)started.  Otherwise, it will get called when the first request
for it is made.  To answer you're a) or b) question, it is both a and b.

Tim


-Original Message-
From: Martin Grogan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 7:25 AM
To: Tomcat Users List
Subject: When is init() called?

Hi all,
I'm new to the list. I was trying to find out exactly when Tomcat will call
a servlets init() method.
Is it
a) When tomcat is restarted or
b) When I restart my web-app context from the Tomcat manager panel.
I ask because we run web-apps on a shared hosting server and don't have
control over when Tomcat gets restarted, but would need to re-init() our
servlets from time to time. We are running on Tomcat 5.5.7 Thanks, Martin


Martin Grogan
Keizen Software

[EMAIL PROTECTED]
www.keizensoftware.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]



Client-cert authentication across web-applications

2006-05-11 Thread rnilsen

Hi,
I have been thinking about replacing the legacy username/password system
used today in my web-applications to use autentication with personal
certificates via client-cert authentication. The problem is that I need to
run multiple instances of the same web-application with different users in
each instance. The way it is done now is thru a legacy system checking the
database if username/password match, then generating a session - which
should still be possible if the webapp is not set up to use client-cert
authentication. 

The examples I see are all based on usernames and password (depending on
authenticaiton) placed in a spesific tomcat file - and I can't do that, it
needs to be put into the legacy database for the spesific instance. The plan
is to have the user, when entering without a personal certificate, just
enter his/her e-mail address in a field, then posted to a servlet residing
in the spesific web-application which then produces and e-mail with an url
and a random confirmation key. When the user clicks this url, he/she will
get the certificate request produced by a servlet which the browser will ask
the user to accept.

So, is it possible to a) have autentication split on each web-app and b)
have the user authentication be base on a legacy system thru e.g. a class in
the web-application itself?
--
View this message in context: 
http://www.nabble.com/Client-cert-authentication-across-web-applications-t1600820.html#a4340834
Sent from the Tomcat - User forum at Nabble.com.


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



RE: Tomcat Shutdown Unexpectedly

2006-05-11 Thread Dan Golob
Hello Vasily,

Thanks for the information, but in all honesty I don't think that this is
the solution.  The links you provided point to several errors that occur,
which aren't present on our machines.  On our machines the tomcat logs are
completely devoid of any reason for the crash, and the Windows Event Manager
simply states that the process "Shutdown Unexpectedly".  

Is there someplace where we can look to research this problem further?  My
lack of knowledge about Tomcat is probably starting to show.

One more piece of information, Tomcat is running in standalone mode ...
meaning, without the aide of Apache Server.  May this be the problem?

Thanks again
Dan




-Original Message-
From: Vasily Ivanov [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 9:20 AM
To: Tomcat Users List
Subject: Re: Tomcat Shutdown Unexpectedly

Hi,

We've recently had something very similar with Tomcat and Apache Web Server.

Have a look here (read all in threads):
http://www.mail-archive.com/users@tomcat.apache.org/msg09335.html
http://marc.theaimsgroup.com/?l=tomcat-user&m=106193808515738&w=2

We changed configuration of Tomcat and Apache Web Server to be in
sync. Few days passed after fix's been placed, but it looks ok now.
Hope it'll help you.

Cheers,
  Vasily

On 5/11/06, zhann <[EMAIL PROTECTED]> wrote:
> Hello.
>
>
> We are having a strange Tomcat issue on one of our client's machines.
> The problem is that it shuts down randomly.  There is nothing in the
> Tomcat Log to indicate why this is occuring, and the Windows Event
> Manager simply states that the process "shut down unexpectedly".  We
> have tried recreating this problem in-house, but have absolutely no
> luck.
>
>
>
> We are running tomcat 5.x and Java 1.4.x.  The machine that this is
> installed on is Windows 2003 with all the latest updates.  One other
> thing to note, this installation of tomcat is using Load ballancing.
>
>
>
> If anyone can point me in a direction of where to look, it would be
> very helpful.  I have scoured the internet and the newsgroups but can't
> find a similar problem anywhere.
>
>
>
> Thanks in advance
> Dan
>
>
>
>
>

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



JConsole on AIX?

2006-05-11 Thread MERVYN . SANDS
Hi,

When using JConsole on AIX (IBM JDK) and selecting the 'MBeans' tab I don't
see the 'Catalina' branch in the Tree on the left hand side and therefore
can't manage any Tomcat MBeans. I can see JMImplementation, java.lang and
java.util.logging and thats it.

JConsole works fine on Solaris. Perhaps the difference is the IBM JDK
rather than Sun on Solaris?

Anyone else come across this problem?

Thank you.


Mervyn Sands





* email: [EMAIL PROTECTED]




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



SSL problem in Tomcat

2006-05-11 Thread Gavin Alexander

Hi, I am having a problem getting Tomcat to work properly with SSL.

My server.xml file contains the lines shown below, which appear fine to me.









Tomcat works fine with html pages, JSPs and servlets until such time 
as they require SSL, and then I get the following message:


Unable to connect
Firefox can't establish a connection to the server at localhost:8443.
*   The site could be temporarily unavailable or too busy. Try 
again in a few moments.
*   If you are unable to load any pages, check your computer's 
network connection.
*   If your computer or network is protected by a firewall or 
proxy, make sure that Firefox is permitted to access the Web.


or, in IE:

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site 
might be experiencing technical difficulties, or you may need to 
adjust your browser settings.


Please try the following:
...


If I enter https://localhost:8443 into the address bar of my browser 
(Firefox) I don't get the Tomcat splash page, as described in 
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html#Edit%20the%20Tomcat%20Configuration%20File.


If anyone can suggest any other configuration details, or tests that 
I can use to figure out the problem, I would be grateful.


Thankyou,

Gavin Alexander




Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread David Ron
I think that you first have to define what you mean when you say, 
"logged in".  When a person closes the browser window, have they logged 
out?  How does Tomcat know this?  Or, does the logout occur when the 
session is garbage collected?


So, without knowing what "logged in" really means, how can you know if a 
person is actually logged in or not?


--David Ron

Peter Hubbard wrote:


Quite simply, if you have already logged in to the system, you get
kicked out until later. Like so:

HttpSession session = request.getSession(true);
   
if (session.getAttribute("details")!=null)

{
log.warn("Already logged in.");
redirect="/errors/alreadyloggedin.jsp";
}
else
{
session.setAttribute("details", client);
redirect = "/portal/portal.jsp";
} 



This gets me out of the problem of multiple logins through the same
browser window (Firefox and Opera) or the same PC (IE) having their
session information confused.

I've not found any other ways around this problem, or solutions of how
to allow individual browser windows and tabs to have individual session
data. Is there a real solution for this, and if so could some kind soul
please point me in the right direction?

Thanks

 



--
David Ron
IT Director - BandMerch
5126 Clareton Drive #140
Agoura Hills, CA 91301
877-502-3728 x5201
[EMAIL PROTECTED]


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

Application started/stopped notification

2006-05-11 Thread Asaf Lahav








A
web service application I have which is running under tomcat is required to
perform an initialization process right after tomcat has loaded my webservice
application.

How
can I get an invocation of some sort that would indicate the application is up
and running?

 

And
also, I would like to get an invocation of some sort that would indicate that
the tomcat is stopping (preferably) before tomcat started the shutdown
sequence.

 

Thanks
in advance,

 



Asaf
Lahav

VP
R&D, Prima Grid LTD.

Cellular: 
972-54-4717955

Phone:  
972-3-6540255

Fax:  
972-3-6540254





 








Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Michael Jouravlev

On 5/11/06, Peter Hubbard <[EMAIL PROTECTED]> wrote:

how
to allow individual browser windows and tabs to have individual session
data. Is there a real solution for this, and if so could some kind soul
please point me in the right direction?


You can't on Firefox, but "one window -> one session" is default setup for MSIE.

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



Re: Application started/stopped notification

2006-05-11 Thread Michael Jouravlev

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#init(javax.servlet.ServletConfig)
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#destroy()

On 5/11/06, Asaf Lahav <[EMAIL PROTECTED]> wrote:






A web service application I have which is running under tomcat is required to 
perform an initialization process right after tomcat has loaded my webservice 
application.

How can I get an invocation of some sort that would indicate the application is 
up and running?



And also, I would like to get an invocation of some sort that would indicate 
that the tomcat is stopping (preferably) before tomcat started the shutdown 
sequence.



Thanks in advance,




Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:   972-3-6540254






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



[OT] htmlparser

2006-05-11 Thread MW Janssen
Hi,
 
has someone classes (source) for spidering with the use of org.htmlparser?
My spider has memory leaks I cant solve...
 
thx in advanced.
 
Maarten

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.6/336 - Release Date: 10-5-2006
 


RE: Application started/stopped notification

2006-05-11 Thread Tim Lucia
See also ServletContextListener as that will run on app start/stop
regardless of the servlet state.  And you don't need a servlet either.

Tim

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 12:10 PM
To: Tomcat Users List
Subject: Re: Application started/stopped notification

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#ini
t(javax.servlet.ServletConfig)
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#des
troy()

On 5/11/06, Asaf Lahav <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> A web service application I have which is running under tomcat is required
to perform an initialization process right after tomcat has loaded my
webservice application.
>
> How can I get an invocation of some sort that would indicate the
application is up and running?
>
>
>
> And also, I would like to get an invocation of some sort that would
indicate that the tomcat is stopping (preferably) before tomcat started the
shutdown sequence.
>
>
>
> Thanks in advance,
>
>
>
>
> Asaf Lahav
>
> VP R&D, Prima Grid LTD.
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:   972-3-6540254
>
>
>
>

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


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



Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread David Rees

On 5/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:

On 5/11/06, Peter Hubbard <[EMAIL PROTECTED]> wrote:
> how
> to allow individual browser windows and tabs to have individual session
> data. Is there a real solution for this, and if so could some kind soul
> please point me in the right direction?

You can't on Firefox, but "one window -> one session" is default setup for MSIE.


Unless you open that window by using Ctrl-N or File->New->Window, then
it shares the same sessions.

-Dave

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



RE: Application started/stopped notification

2006-05-11 Thread Asaf Lahav
Thanks Michael

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:   972-3-6540254

 

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 6:10 PM
To: Tomcat Users List
Subject: Re: Application started/stopped notification

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#ini
t(javax.servlet.ServletConfig)
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/Servlet.html#des
troy()

On 5/11/06, Asaf Lahav <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> A web service application I have which is running under tomcat is required
to perform an initialization process right after tomcat has loaded my
webservice application.
>
> How can I get an invocation of some sort that would indicate the
application is up and running?
>
>
>
> And also, I would like to get an invocation of some sort that would
indicate that the tomcat is stopping (preferably) before tomcat started the
shutdown sequence.
>
>
>
> Thanks in advance,
>
>
>
>
> Asaf Lahav
>
> VP R&D, Prima Grid LTD.
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:   972-3-6540254
>
>
>
>

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



Unable to open the service registry key

2006-05-11 Thread MinhTram

Good afternoon,

After spending all day so far on this, I think it's time to consult the
experts.

I just installed Tomcat 5.1.15 under my Windows 2000 Pro Administrator
account, as a service. All seems well until I log into my Ron account 
and I
get the message:

"Access is denied. Unable to open the service registry key."

I've been running version 5.1.12 for some time and don't remember 
making any
special configurations.

Help would be much appreciated.

Thank you,
Ron

---
The above problem is copied from 
http://www.webservertalk.com/message1395424.html


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

More virtual hosting problems!!

2006-05-11 Thread Rizwan Merchant


Hi all!

I have been following the mailing list and it seems this is a common 
problem amongst many users. But I could not find a solution to my 
problem, hence this post. Hope someone can help me.


I am trying to set up a simple virtual host for the domain www.riz.com 
on tomcat (listening on port 80) using the instructions provided at 
http://ex-parrot.com/~pete/tomcat-vhost.html


Based on the instructions here is what I have done..

1.Added the following to server.xml which is under under 
$CATALINA_HOME/conf
   autoDeploy="true"

  xmlValidation="false" xmlNamespaceAware="false">
 

   There is a riz.war file under $CATALINA_HOME/webapps that gets 
expanded on deployment.


2. Created a directory $CATALINA_HOME/conf/Catalina/www.riz.com
   Added ROOT.xml to this directory which contains
  
   

   
   


Note that I have mapped www.riz.com to 127.0.0.1 in the "hosts" file 
under c:\windows\system32\drivers\etc so that when i type www.riz.com in 
the browser it will resolve to localhost.


Please can someone tell me what I am doing wrong, or if I am missing 
anything?


Thanks,
-Riz.




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



Re: Multiple browser windows sharing the same session - dirty hack solution

2006-05-11 Thread Paul Singleton

Peter Hubbard wrote:

...
I've not found any other ways around this problem, or solutions of how
to allow individual browser windows and tabs to have individual session
data.


One (the only?) sure way to allow multiple sessions to coexist in
a browser or PC is to spurn cookies and use only URL rewriting.

First you need to ensure that your servlet/JSP app uses

  response.encodeURL()

wherever it returns a URL referring to one of its own pages, e.g.

  ">me

Then use the

  

attribute to stop session cookies being sent.

This has pros and cons but that's another topic...

Paul Singleton

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



properties files external to the war

2006-05-11 Thread Jay Wright


I am using tomcat 5.0.28 on Windows XP to deploy a war that is looking 
for an app.properties file as a classpath resource.  But app.properties 
is not *in* the war.


I need to place it on the classpath where the war's classpath resource 
loaders (Spring, actually) can find it.


I thought I could place *.properties files within the %TOMCAT_HOME%/conf 
directory, but that didn't work.


How best to handle this scenario?

Jay

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



Re: More virtual hosting problems!!

2006-05-11 Thread Rizwan Merchant


I got this working now by moving the Context definition from the 
ROOT.xml to the server.xml under the  tag as follows


 autoDeploy="true"

  xmlValidation="false" xmlNamespaceAware="false">
  

 

I got rid of the www.riz.com directory under $CATALINA_HOME/conf/Catalina

But I did read somewhere that it is not recommended to put the Context 
definition in the server.xml file.


Can someone please explain why the first scenario did not work and the 
above does, although it is not recommded.


Thanks,
-Riz.

Rizwan Merchant wrote:


Hi all!

I have been following the mailing list and it seems this is a common 
problem amongst many users. But I could not find a solution to my 
problem, hence this post. Hope someone can help me.


I am trying to set up a simple virtual host for the domain www.riz.com 
on tomcat (listening on port 80) using the instructions provided at 
http://ex-parrot.com/~pete/tomcat-vhost.html


Based on the instructions here is what I have done..

1.Added the following to server.xml which is under under 
$CATALINA_HOME/conf
   unpackWARs="true" autoDeploy="true"

  xmlValidation="false" xmlNamespaceAware="false">
 

   There is a riz.war file under $CATALINA_HOME/webapps that gets 
expanded on deployment.


2. Created a directory $CATALINA_HOME/conf/Catalina/www.riz.com
   Added ROOT.xml to this directory which contains
 
   
   


Note that I have mapped www.riz.com to 127.0.0.1 in the "hosts" file 
under c:\windows\system32\drivers\etc so that when i type www.riz.com 
in the browser it will resolve to localhost.


Please can someone tell me what I am doing wrong, or if I am missing 
anything?


Thanks,
-Riz.




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



Problem with tomcat translating docBase to absolute path

2006-05-11 Thread Johnson, Tony S.
HI, I have a context.xml file where I specify:



 
But when I look at the context using the admin app I see that Tomcat has 
translated the docbase to:
 
Document Base:  /a/surrey01/vol/vol2/g.glast_ground/docs
 
The problem is that /nfs/slac/g/glast/ground/docs is an NFS directory which is 
mounted using automount, but refering to it as  
/a/surrey01/vol/vol2/g.glast_ground/docs does not trigger the automount daemon, 
so after a few minutes the directory is unmouned and the application starts 
failing.  Is there any way to prevent tomcat (5.5.15) from doing this 
translation, or some other way to work around the problem?
 
Thanks, Tony
 


chroot'ing Tomcat and the Brittain BadInputFilterValve

2006-05-11 Thread Mark Petrovic

Good day.

After putting this off for too long, I finally got around to experimenting
with chroot'ing Tomcat.  My travails may help someone going through the same
process

http://www.petrovic.org/blog/?p=126

Same story for finally deploying the J. Brittain BadInputFilterValve under
Tomcat 5.5.12

http://www.petrovic.org/blog/?p=137

--
Mark


can I use shell variables in context.xml?

2006-05-11 Thread Nikita Tovstoles

Is the following possible?
   

where $RESOURCE_NAME is set in shell prior to starting Tomcat?




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



Re: More virtual hosting problems!!

2006-05-11 Thread Parsons Technical Services
One issue is that the path element can only be set to "" when you use it in 
the server.xml.


Doug

- Original Message - 
From: "Rizwan Merchant" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, May 11, 2006 1:37 PM
Subject: Re: More virtual hosting problems!!




I got this working now by moving the Context definition from the ROOT.xml 
to the server.xml under the  tag as follows


 autoDeploy="true"

  xmlValidation="false" xmlNamespaceAware="false">
  

 

I got rid of the www.riz.com directory under $CATALINA_HOME/conf/Catalina

But I did read somewhere that it is not recommended to put the Context 
definition in the server.xml file.


Can someone please explain why the first scenario did not work and the 
above does, although it is not recommded.


Thanks,
-Riz.

Rizwan Merchant wrote:


Hi all!

I have been following the mailing list and it seems this is a common 
problem amongst many users. But I could not find a solution to my 
problem, hence this post. Hope someone can help me.


I am trying to set up a simple virtual host for the domain www.riz.com on 
tomcat (listening on port 80) using the instructions provided at 
http://ex-parrot.com/~pete/tomcat-vhost.html


Based on the instructions here is what I have done..

1.Added the following to server.xml which is under under 
$CATALINA_HOME/conf
   autoDeploy="true"

  xmlValidation="false" xmlNamespaceAware="false">
 

   There is a riz.war file under $CATALINA_HOME/webapps that gets 
expanded on deployment.


2. Created a directory $CATALINA_HOME/conf/Catalina/www.riz.com
   Added ROOT.xml to this directory which contains
 
   
   


Note that I have mapped www.riz.com to 127.0.0.1 in the "hosts" file 
under c:\windows\system32\drivers\etc so that when i type www.riz.com in 
the browser it will resolve to localhost.


Please can someone tell me what I am doing wrong, or if I am missing 
anything?


Thanks,
-Riz.




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



Arabic Support on tomcat 5.0.28

2006-05-11 Thread Ahmed Talaat

Hi,
Any way to submit arabic chars through jsps?
I need to get the following code to work.. When i submit arabic 
characters using the this jsp, tomcat just replaces them with ''.




<%@ page language="java" contentType="text/html; charset=cp1256"
   pageEncoding="cp1256"%>




Insert title here


<%=request.getParameter("text")%>







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



Help with MD5 key generation with tomcat 5

2006-05-11 Thread Devireddy, Nagendra Reddy (STSD)

Hi I am getting the following error after executing this command ..

 "$JRE"/bin/java -classpath "$CATALINA_HOME"/server/lib/catalina.jar
org.apache.catalina.realm.RealmBase -a MD5 nagendra


Exception in thread "main" java.lang.NoClassDefFoundError:
javax/management/MBeanRegistration


at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInt

Can some one please help me on this ..

Thanks and Regards,
Nagendra Reddy. D
Hewlett Packard ISO (STSD)
Bangalore.
Ph : 080-22052254
+hp = Everything is Possible