-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Raghu,
On 10/14/2009 11:44 AM, raghu gs wrote:
> Tomcat is not running under a security manager.
> So that policy entry may need to be exists, i understood now.
Yes.
> I have tried stopping our web applications via tomcat-manager and restarted
> important web applications alone.
> But still timezone didn't reset to system timezone.
It never will: Tomcat does not change the time zone. If an application
does, it changes until another piece of code changes it.
If you want to find out which webapp is doing this you'll need to:
1. Shut down Tomcat
2. Move all webapps out of any auto-deployment directories (like
CATALINA_BASE/webapps, for instance)
3. Move all deployment files out of CATALINA_BASE/conf/[service]/[host]
(to avoid any webapps being deployed at all)
4. Verify that your JVM is now running with the correct TimeZone
(you may want to deploy a simple index.jsp in webapps/ROOT to verify
this)
5. One at a time, deploy the webapps you want to run on Tomcat:
5a. Repeat step 4. If step 4 shows the wrong TimeZone, you've found
your problematic webapp.
There is another option: run Tomcat under a SecurityManager with the
rights to set user.timezone revoked, and then see which webapp throws an
appropriate exception.
This is basic debugging, man.
> Wouldn't stopping offending web applications enough for the timezone to use
> system configuration?
No.
> Is it possible to restrict just timezone over-riding permission from web
> application instead of first listing what are all permissions that should be
> granted for a web application?
No.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkrWAQsACgkQ9CaO5/Lv0PDsWwCdHfEkGInUTJq3D/HLf2E75mcH
zKwAnjLqCoyd/tVrbon/jJrpLWRpMN7i
=6q3z
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]