geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rakesh Midha (JIRA)" <>
Subject [jira] Updated: (GERONIMO-1642) Deployment plan namespace validation
Date Mon, 18 Dec 2006 08:39:23 GMT
     [ ]

Rakesh Midha updated GERONIMO-1642:

    Attachment: namespace1642.patch

I tried this and found following results
for geronimo-web.xml
It gives Error: Unable to distribute myphonebook-web.war: Cannot handle web
plan with namespace
-- expecting or

I think it was fixed in revision 406804

for geronimo-ra.xml
It gives error: The document is not a
    document element namespace mismatch expected
    "" got

Again it is fixed

geronimo-application.xml, openejb-jar.xml and application-client
It is a problem mentioned in JIRA

The attached patch tries to fix it in generic way using

It tries to check for wrong element or namespace and instead of returning null, it throws
XmlException with message 
Cannot find desiredElement "application" with
    namespace{} in
    the plan provided.

So after applying patch, geronimo-application.xml, openejb-jar.xml and application-client
gives required error msg -->
Cannot find desiredElement "application" with
    namespace{} in
    the plan provided.

I hope this is what is desired.


> Deployment plan namespace validation
> ------------------------------------
>                 Key: GERONIMO-1642
>                 URL:
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>          Components: deployment, OpenEJB, web
>    Affects Versions: 1.1
>            Reporter: Aaron Mulder
>         Assigned To: Rakesh Midha
>            Priority: Critical
>             Fix For: 1.1.x
>         Attachments: namespace1642.patch
> When you deploy with a geronimo deployment plan packaged in the archive, but it has the
wrong namespace, the file is ignored.  If anything, you get a message saying the plan is required,
or that the archive is not a WAR/JAR/etc.  We should have special detection for geronimo-application.xml,
geronimo-ra.xml, geronimo-web.xml, and openejb-jar.xml that notices if the file is present
but has the wrong namespace, and prints a suggestive WARN or ERROR message to the console.
 Probably for the application.xml, web.xml, ra.xml, and ejb-jar.xml too.
> People have asked for help on the mailing list several times recently when they had this
(bad namespace) problem.

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