I am not sure, but I think there is a small bug in xwork (class 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider).

Currently packages are read first and then includes. I'm using a xwork.xml and 
webwork-default.xml from one of the examples apps (adminapp-0.9 with Hibernate) and 
the CVS version failed to read it. I changed the order (includes first, than packages) 
and now it fine again.

    private void loadConfigurationFile(String fileName, DocumentBuilder db) throws 
Exception {
        Document doc = null;

        try {
            InputStream is = getInputStream(fileName);

            if (is == null) {
                throw new Exception("Could not open file " + fileName);
            }

            doc = db.parse(is);
        } catch (Exception e) {
            LOG.error("Caught exception while loading file " + fileName);
        }

        Element rootElement = doc.getDocumentElement();

        loadIncludes(rootElement, db);
        loadPackages(rootElement);
        //loadIncludes(rootElement, db);
    }

regards
Juergen


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to