|Title|java.security.policy parsing problem
|Date|07-Nov-2006 04:58:03 EET
|[Bug criticality]|BadBug
|Browser version|IE 6
|[Bug status]|ClosedBug
|[PageProvider] used|
|Servlet Container|Tomcat 5.5.20
|Operating System|Windows 2000
|Java version|jre1.5.0_06

java.security.policy is not parsed properly after re-start of web app.

Steps to reproduce the problem:
1. New install of Tomcat, accept defaults.
2. Deploy jspwiki.war.
3. Navigate to Install.jsp, change directories.
4. Go to Tomcat manager and restart JSPWiki
5. Check jspwiki.log file.

It seems the java.security.policy value is being improperly concatenated with a default value.  Here are the relevant lines from the log file:

2006-11-06 21:12:01,867 [http-8080-Processor24] INFO com.ecyrd.jspwiki.auth.PolicyLoader  - Java security policy already set to: file:/C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/JSPWiki/WEB-INF/jspwiki.policy. (Leaving it alone...)
2006-11-06 21:12:01,867 [http-8080-Processor24] WARN com.ecyrd.jspwiki.auth.PolicyLoader  - You have set your 'java.security.policy' to point at 'C:\Program Files\Apache Software Foundation\Tomcat 5.5\file:\C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\JSPWiki\WEB-INF\jspwiki.policy', but that file does not seem to exist.  I'll continue anyway, since this may be something specific to your servlet container.  Just consider yourself warned.
2006-11-06 21:12:01,867 [http-8080-Processor24] WARN com.ecyrd.jspwiki.auth.PolicyLoader  - I could not locate the JSPWiki keystore ('jspwiki.jks') in the same directory as your jspwiki.policy file. On many servlet containers, such as Tomcat, this needs to be done.  If you keep having access right permissions, please try copying your WEB-INF/jspwiki.jks to C:\Program Files\Apache Software Foundation\Tomcat 5.5\file:\C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\JSPWiki\WEB-INF
2006-11-06 21:12:01,867 [http-8080-Processor24] INFO com.ecyrd.jspwiki.auth.AuthenticationManager  - Checking JAAS configuration...
2006-11-06 21:12:01,867 [http-8080-Processor24] INFO com.ecyrd.jspwiki.auth.AuthenticationManager  - JAAS already configured by some other application (leaving it alone...)


Seems to be fixed in 2.5


Yes, forgot to mark this one closed.  It should be closed in 2.4.80 and 2.5.1.