2

I'm using HttpClient for testing and when I have been restarting/redeploying to Tomcat I have been getting some sort of client side caching... For example I tried deleting my authentication servlet and ran my tester class (which connects using HttpClient) and I get the same response over and over. I'm going crazy trying to figure out what exactly is happening here.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user398371
  • 857
  • 2
  • 10
  • 15

1 Answers1

0

Please bear with me as I'm editing this on my mobile device.

In your META-INF/context.xml, add a PersistentManager with saveOnRestart set to false.

Example:

<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false">
       <Store className="org.apache.catalina.session.FileStore" />
</Manager>

PS If this didn't help you, try this example here.

Community
  • 1
  • 1
Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228
  • Hmm... I wasn't even using context.xml (I'm very new to this). This is the extent of what I did with no results after restarting the container/redploying. – user398371 Aug 07 '10 at 00:25
  • No same place as before. I might try deploying it to a new copy of the container. – user398371 Aug 07 '10 at 00:32