You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/10/03 10:04:09 UTC
DO NOT REPLY [Bug 23585] New: -
Localton of ev_cache.ser file in DefaultEventRegistryImpl class
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23585>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23585
Localton of ev_cache.ser file in DefaultEventRegistryImpl class
Summary: Localton of ev_cache.ser file in
DefaultEventRegistryImpl class
Product: Cocoon 2
Version: 2.1.2
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: general components
AssignedTo: dev@cocoon.apache.org
ReportedBy: create@insert.com.pl
Location of ev_cache.ser is "hard coded" in WEB-INF. I think that sucha files
should be stored in servlet container work dir not in WEB-INF.
Correct method "contextualize" should looks like:
public void contextualize(Context context) throws ContextException {
org.apache.cocoon.environment.Context ctx =
(org.apache.cocoon.environment.Context) context.get(
Constants.CONTEXT_ENVIRONMENT_CONTEXT);
// set up file
m_persistentFile = new File((File)context.get(Constants.
CONTEXT_WORK_DIR), DefaultEventRegistryImpl.PERSISTENT_FILE);
if (m_persistentFile == null) {
throw new ContextException("Could not obtain persistent file. " +
"The cache event registry cannot be " +
"used inside an unexpanded WAR file.");
}
}