Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new

2007-02-17 Thread Rainer Jung
Try if you can touch the file outside of tomcat using the same user id, 
that your tomcat process uses and using the exact samne path. Is there 
SELinux something similar on your system?


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can't find classes in jar files in WEB-INF (was: Recurring (looping?) error messages)

2007-02-17 Thread aladdin
When I put my webapp.jar file in the WEB-INF directory, it doesn't find the 
app.  When I exploded it into the classes directory, and associated 
subdirectories, they are found fine, but I get this problem (the one below).

This, it turns out, is triggered by the fact I have the webapp.jar file in the 
lib directory and all the classes unpacked in the classes directory (both 
under WEB-INF, of course).  Getting rid of the webapp.jar file in the lib 
directory solves the problem below, but now tomcat won't use that the jar 
file in the lib directory, even though when it's unpacked in the classes 
directory, he seems perfectly happy.  Is there some magic I need for tomcat 
to use .jar files in the WEB-INF/lib directory, like an entry in web.xml or 
server.xml?

On Friday 16 February 2007 22:52, aladdin wrote:
 I was getting a message like SEVERE PersistenceManager persistence not
 enabled, or something like that (I don't remember) so I disabled
 (commented out) the Manager tag in server.xml that configured the
 PersistenceManager. Now, I'm getting

 Feb 16, 2007 9:26:34 PM org.apache.catalina.loader.WebappClassLoader
 modified INFO: Additional JARs have been added
 Feb 16, 2007 9:26:34 PM org.apache.catalina.core.StandardContext reload
 INFO: Reloading this Context has started

 over and over in the log files.  Anyone know what's causing this?  I
 thought maybe tomcat was restarting, but the PID doesn't change.  It seems
 to work, but it's filling up my log files.

 TIA

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new

2007-02-17 Thread dlangschied
Hi
- Original Message 
From: Rainer Jung [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 17, 2007 12:00:25 PM
Subject: Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new


Try if you can touch the file outside of tomcat using the same user id, 
that your tomcat process uses and using the exact samne path. Is there 
SELinux something similar on your system?

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat ssl/https: error 302 when accessing servlet with https

2007-02-17 Thread Greg Brownell

All,

Well, the solutions was rather simple.  Since I had to re-install Fedora 
Core 5, I neglected to open port 443 in the FC firewall.  Once opened, 
all worked just fine.


Sorry for spinning everyone's wheels, but I guess there's a lesson in 
here somewhere (probably something to do with Occam).


Again, thanks to all who replied to my support request.

Greg.

Caldarale, Charles R wrote:
From: Greg Brownell [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat ssl/https: error 302 when accessing 
servlet with https


As for auth-constraint, users never had to authenticate 
before accessing the servlet(s).



Yes, you're right - I just verified that lack of any auth-constraint,
as opposed to an auth-constraint with no roles, allows access to all.

Reading the original question more closely, the 302 is not an error -
it's just a redirect from the server supplying a different URL for the
browser to try.  This happens, for example, if you attempt access via
HTTP, and the server redirects to HTTPS.

Since this timeout appeared only after you changed certificates, have
you tried going back to the prior one?

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Weird Exception thrown on startup (how to resolve?)

2007-02-17 Thread Lisa

I think this worked.  I just recursively removed every .ser file there just
to make sure:
$find . -name '*.ser' -exec rm {} \;

thanks

L




Markus Schönhaber wrote:
 
 Lisa wrote:
 
 What is throwing the following Exception?  How to fix?

 ---
 INFO: Filter 'sessionFilter' configured successfully
 Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager
 doLoad
 SEVERE: IOException while loading persisted sessions:
 java.io.EOFException
 
 To me, this looks as if the serialized session data got somehow corrupted.
 You 
 could try to move the corresponding files out of the way or delete them.
 By default, for each webapp the session data will be serialized to
 ${catalina.home}/work/Engine/Host/webapp/SESSIONS.ser
 
 Regards
   mks
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Weird-Exception-thrown-on-startup-%28how-to-resolve-%29-tf3234967.html#a9022770
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new

2007-02-17 Thread Martin Gainty
if you're not writing within the $CATALINA_HOME folder you'll need to assign 
write permissions for TOMCAT webapps to access the folder
e.g.
grant {
permission java.io.FilePermission /opt/jdk1.5.0_06/jre/lib/wsdl.properties, 
read,write,execute;
}

Viel Gluck,
Martin --
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 17, 2007 12:26 PM
Subject: Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new


Hi
- Original Message 
From: Rainer Jung [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 17, 2007 12:00:25 PM
Subject: Re: IOException writing to /usr/share/tomcat5/conf/tomcat-users.xml.new


Try if you can touch the file outside of tomcat using the same user id, 
that your tomcat process uses and using the exact samne path. Is there 
SELinux something similar on your system?

Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Weird Exception thrown on startup (how to resolve?)

2007-02-17 Thread Martin Gainty
a good practice would be to handle the IOException in code
//lets assume foo was initialised to a Foo class and supposedly serialised 
earlier (possibly in an earlier (init()) method)

String result;
try
{
 result = foo.getNewMethod()
}
catch(IOException ioe)
{
  System.out.println(foo is corrupt will reconstruct..)
  foo = new Foo();
  result = foo.getNewMethod(); 
}

Viel Gluck
Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Lisa [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Saturday, February 17, 2007 1:57 PM
Subject: Re: [OT] Weird Exception thrown on startup (how to resolve?)



I think this worked.  I just recursively removed every .ser file there just
to make sure:
$find . -name '*.ser' -exec rm {} \;

thanks

L




Markus Schönhaber wrote:
 
 Lisa wrote:
 
 What is throwing the following Exception?  How to fix?

 ---
 INFO: Filter 'sessionFilter' configured successfully
 Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager
 doLoad
 SEVERE: IOException while loading persisted sessions:
 java.io.EOFException
 
 To me, this looks as if the serialized session data got somehow corrupted.
 You 
 could try to move the corresponding files out of the way or delete them.
 By default, for each webapp the session data will be serialized to
 ${catalina.home}/work/Engine/Host/webapp/SESSIONS.ser
 
 Regards
   mks
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Weird-Exception-thrown-on-startup-%28how-to-resolve-%29-tf3234967.html#a9022770
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL Redirect Question

2007-02-17 Thread Stanczak Group

Ya the filter option sounds good. Where/what is this project?

Nikola Milutinovic wrote:

Actually, there is already a project URL Filter for Java Web applications, 
basically does what mod_rewrite and mod_proxy give you. Maybe not in so many 
details, but it is going to save our hide on our next project. :-)

Nix.

- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 8, 2007 4:45:39 PM
Subject: RE: URL Redirect Question

  
From: Propes, Barry L [GCG-NAOT] 
[mailto:[EMAIL PROTECTED] 
Subject: RE: URL Redirect Question


set that one URL in your welcome page as the default -- say 
index or default.jsp, or index.html, or whatever.

That way, people can just click that simple link below.



You can also use a filter or valve within Tomcat to forward the request
to the desired context, and avoid any client interaction.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.

http://advision.webevents.yahoo.com/mailbeta/features_spam.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  


--
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: URL Redirect Question

2007-02-17 Thread Martin Gainty
If apache is front ending I would use mod_rewrite
else use Tomcat filter and valves as earlier suggested

M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Stanczak Group [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 17, 2007 3:23 PM
Subject: Re: URL Redirect Question


 Ya the filter option sounds good. Where/what is this project?
 
 Nikola Milutinovic wrote:
 Actually, there is already a project URL Filter for Java Web applications, 
 basically does what mod_rewrite and mod_proxy give you. Maybe not in so many 
 details, but it is going to save our hide on our next project. :-)

 Nix.

 - Original Message 
 From: Caldarale, Charles R [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, February 8, 2007 4:45:39 PM
 Subject: RE: URL Redirect Question

   
 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: URL Redirect Question

 set that one URL in your welcome page as the default -- say 
 index or default.jsp, or index.html, or whatever.
 That way, people can just click that simple link below.
 

 You can also use a filter or valve within Tomcat to forward the request
 to the desired context, and avoid any client interaction.

  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






  
 
 Sucker-punch spam with award-winning protection. 
 Try the free Yahoo! Mail Beta.
 http://advision.webevents.yahoo.com/mailbeta/features_spam.html

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



   
 
 -- 
 Justin Stanczak
 Stanczak Group
 812-735-3600
 
 All that is necessary for the triumph of evil is that good men do nothing.
 Edmund Burke
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Performance tuning parameters

2007-02-17 Thread j r

Alan,

Thanks for the definitions.  This is good info!



-j

On 2/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:


J.

This is what I've learnt in the last couple of months:

- maxThreads
The maximum number of http worker threads that tomcat will create.  This
is the limit of the number of concurrent http requests that the server can
be servicing at any given moment.  If the thread is waiting for a database
or webservice call , then the thread is just blocked but it is still part
of the maxThreads count (750 in your example).  Tomcat will create more
threads to do the other stuff that needs to be done.

- minSpareThreads
The number of new threads that tomcat will start when the threadpool has
become full.We have the number set down to 20 because it appears that
the request that triggered the increase waits for all the threads to be
created (i.e. the pool to get the new stock of threads), before the
request is handed to one of those threads.

- maxSpareThreads
When the number of threads that have nothing to do in the threadpool gets
to this number, tomcat will start removing threads from the threadpool,
and killing them.

- acceptCount
This is the number of TCP connections that will be accepted even though
there may not be a Thread immediately available to service them.  This
means that in your example you could have 850 incoming request at any
momemt, Request number 851 will be refused (received a connection
refused).   We have the acceptCount set to half of the number of threads,
so that there can be a big pile up of work, if our database suddenly
gets a hickup.


Alan M




Andrew Pliszka [EMAIL PROTECTED]
02/16/2007 11:06 AM
Please respond to
Tomcat Users List users@tomcat.apache.org


To
Tomcat Users List users@tomcat.apache.org
cc

Subject
Re: Performance tuning parameters






Hi,

Do you have any load balancer? I am sorry if this is a trivial
questions, but I have worked with cases that people have no load
balancer and connections are just killing them.

Now, if you do not have a load balancer you might consider NetScaler, it
might lower your number of connections considerably.

Andrew Pliszka
j r wrote:

 I am gleaning from your comments that MaxThreads is the only thing to
 tweak.  Yes I do really have a connection issue.  I have millions and
 millions of connection requests on a very small pool of servers.  The
app
 has been tuned constantly over years.  I am either bound to buy more
 servers
 or tweak tomcat to get more throughput.  In reality, I probably need
 to do
 both.

 On a large pageview day, we will overflow the 750 MaxThreads.  This is
 noticed by the MaxThreads limit being exceeded error message.  We have
 tweaked all pieces of the tomcat config.  I was hoping a post here
 could get
 more explanation of the parameters.  We have our experience to fall
 back on,
 but I was hoping for more.

 If MaxThreads is the main thing to tweak, we will continue doing so.
 There
 is a limit to this though.  You should create the funnel for customer
 requests (webserver limits, mod_jk limits, and tomcat limits). Exploding
 MaxThreads to a large number just to be large does not seem to fit with
 having an acceptCount value or the funnel that should be created.


 Thanks,
 J

 On 2/16/07, Andrew Miehs [EMAIL PROTECTED] wrote:


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dear J,

 The focus should be on your application, and configuring everything
 thing around that.

 If you REALLY have an out of  connection problem, increase Max
 Threads to 1, but I don't
 think that will really help you. The problem is usually that each
 individual request takes
 tooo long, which again, points back to your application - There isn't
 that much to tweak
 in tomcat. Once you have configured your application, then you can
 start looking at the
 kernel - but these only bring small % improvements.

 Without more information - ie: current number of threads being used,
 it is very
 hard to answer your question.

 Cheers

 Andrew

 On 16/02/2007, at 4:43 AM, j r wrote:

  The focus should be on the tomcat tweaking.  We get errors in the
  tomcat
  error logs that say tomcat has reached its connection limits.  I
  never said
  that it was serving slow.  It hits connection limits which means
  that the
  app will not serve any more traffic until connections clear.
 
  If a box definitely has more capacity (dual core, dual procs), then
  my best
  guess is that tomcat is not tuned perfectly to allow the max amount
of
  connections in.  We have raised MaxThreads in the past to allow more
  connections in.  This works, but surely other knobs are important
  to be
  tweaked.
 
  I am looking for good definitions and/or best practices on which
  knobs to
  tweak to allow the max connections in before exhausting the jvm
native
  memory allocation or cpu on the box.
 
 
 
  Thanks,
  J
 
  On 2/15/07, Andrew Miehs [EMAIL PROTECTED] wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Dear J'
 
  What do 

Re: URL Redirect Question

2007-02-17 Thread Stanczak Group

So create a filter or is there one already to use?

Martin Gainty wrote:

If apache is front ending I would use mod_rewrite
else use Tomcat filter and valves as earlier suggested

M-
--- 
This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Stanczak Group [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, February 17, 2007 3:23 PM
Subject: Re: URL Redirect Question


  

Ya the filter option sounds good. Where/what is this project?

Nikola Milutinovic wrote:


Actually, there is already a project URL Filter for Java Web applications, 
basically does what mod_rewrite and mod_proxy give you. Maybe not in so many 
details, but it is going to save our hide on our next project. :-)

Nix.

- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 8, 2007 4:45:39 PM
Subject: RE: URL Redirect Question

  
  
From: Propes, Barry L [GCG-NAOT] 
[mailto:[EMAIL PROTECTED] 
Subject: RE: URL Redirect Question


set that one URL in your welcome page as the default -- say 
index or default.jsp, or index.html, or whatever.

That way, people can just click that simple link below.



You can also use a filter or valve within Tomcat to forward the request
to the desired context, and avoid any client interaction.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.

http://advision.webevents.yahoo.com/mailbeta/features_spam.html

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
  

--
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]