Did you check the permissions on /home/hans/casopis/system.xml and
"/home/hans/casopis/roles.xml". As you know apache normally set up with user
nobody. Therefore, you should grant the right permission mask to your
system.xml and roles.xml. BTW, I use the same block and it works for me. Can
you also supply system.xml and roles.xml to see if there are any problems in
those.

Alex
-----Original Message-----
From: Jan Stary [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 6:24 AM
To: Avalon Developers List
Subject: [repost - sorry, urgent] File "null" not found

Hello druzja,

the following code in ContainerComponent
(copied from 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(PageContextImp
l.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(Defa
ultEntityHandler.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)? All the files mentioned in code
exist and are readable.

In fact, I believe it's not related to Avalon...

Thanks for any ideas

Jan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to