Hello druzja,
the following code in ContainerComponent
(still referring ti the white paper) ...
-- cut ----------------
public void initialize() throws Exception {
DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
Configuration sysConfig = builder.buildFromFile(
"/home/hans/casopis/system.xml");
Configuration roleConfig =
builder.build(this.getClass().getClassLoader().
getResourceAsStream("/home/hans/casopis/roles.xml"));
//DefaultRoleManager roles = new DefaultRoleManager();
//roles.enableLogging(Hierarchy.getDefaultHierarchy().getLoggerFor(
// "/home/hans/casopis/roles.xml"));
//roles.configure(roleConfig);
this.manager.setLogger(Hierarchy.getDefaultHierarchy().
getLoggerFor("casopis"));
this.manager.contextualize(new DefaultContext());
//this.manager.setRoleManager(roles);
this.manager.configure(sysConfig);
this.manager.initialize();
}
-- cut ----------------
... compiles ok (the lines are commented out just
to locate the evil), but when visiting a page which calls
container.initialize(), I get
-- cut ---
javax.servlet.ServletException: File "null" not found.
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:107)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
etc ....
root cause
org.xml.sax.SAXParseException: File "null" not found.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1202)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:499)
at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:312)
etc ...
-- cut ---
Why does this happen? Which file can't be found? Or should I provide
a filename somewhere (and I don't)?
Thanks for any ideas
Jan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>