I´m having some problems with jsp cache on jboss. When I deploy the web app in a war file into jboss and try to load some jsp pages, the resulting pages aren't the same version of the deployed ones. It seams that the old pages are cached.
I´ve deleted the content of jboss temp dir but without success. Even if I restart jboss the problem persists but if I reboot the OS it works fine.
Note: It works in Tomcat without this problem.
So, what can I do?
I'm having the same issue so AFAICT this is not isolated. It's very dificult to develop the presentation layer when old pages keep getting returned.
If you are on windows, calling Timezone.setDefault() could be your problem. Not sure about other OS's.
Take a look at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6212869, I found and reported the bug in the JVM tracking down why my jsps weren't updating.
Not sure if this is your problem or not, but it could be. What happens exactly is after changing the default Timezone, the JVM writes the wrong file times for the redeployed files, and the .class files of the compiled .jsps are more recent than the new .jsp files.
I've been solved the problem by disabling IE cache. Configure your IE cache to get new versions of pages each time the page is loaded.
Or try it with Firefox to see if the problem persists.
I found no relief from clearing out the browser cache or setting IE up to get new versions of pages everytime......BUT....................
If you delete the contents under the "work" folder of the JBoss alias your running, all these JSP problems go away. I only see the current JSP pages that are actually deployed under the alias I'm running. No more old JSP data. That was really weird to me and was driving me nutts.
I deleted everything under C:\jboss-4.0.2\server\default\work
since I'm running the "default" alias.