geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lin Sun (JIRA)" <>
Subject [jira] Created: (GERONIMODEVTOOLS-119) import simple hello.war results xml-fragment tag in geronimo-web.xml
Date Wed, 06 Dec 2006 19:51:23 GMT
import simple hello.war results xml-fragment tag in geronimo-web.xml

                 Key: GERONIMODEVTOOLS-119
             Project: Geronimo-Devtools
          Issue Type: Bug
          Components: eclipse-plugin
    Affects Versions: 1.2.0
         Environment: patched created with latest trunk 480183
            Reporter: Lin Sun

Tried to import a simple hello war file however after import the geronimo-web.xml file contains
xml-fragment tag which prevents the hello project from being deployed to server. tried to
print out the following var plan in

plan = runtime.fixGeronimoWebSchema(planFile);
System.out.println("plan 1: " + plan.toString());

Here's the printout:
plan 1: <xml-fragment xmlns:nam="" xmlns:sec=""
xmlns:sys="" xmlns:web="">

Note this is not a valid plan.

I updated the following method in and it is
working now (for war file).

public XmlObject fixGeronimoWebSchema(IFile plan) throws XmlException {
        XmlObject xmlplan = getXmlObject(plan);
        if (plan != null) {
            SchemaConversionUtils.fixGeronimoSchema(xmlplan, GerWebAppDocument.type.getDocumentElementName(),
            save(xmlplan, plan);
            return xmlplan;
        return null;
//return SchemaConversionUtils.fixGeronimoSchema(getXmlObject(plan), GerWebAppDocument.type.getDocumentElementName(),

Also added the save method back from 1.0 to

private void save(XmlObject object, IFile file) {
try {;
file.refreshLocal(IFile.DEPTH_ONE, null);
} catch (IOException e) {
} catch (CoreException e) {

Patch has been tested on importing war projects and worked well.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message