You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "John Sisson (JIRA)" <de...@geronimo.apache.org> on 2006/02/23 13:28:39 UTC

[jira] Created: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Invalid deployment descriptor error when deploying an EJB 2.0 MDB
-----------------------------------------------------------------

         Key: GERONIMO-1649
         URL: http://issues.apache.org/jira/browse/GERONIMO-1649
     Project: Geronimo
        Type: Bug
  Components: OpenEJB, deployment  
    Versions: 1.0    
    Reporter: John Sisson
 Assigned to: John Sisson 
    Priority: Blocker
     Fix For: 1.1, 1.0.1


There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:

org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
/xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
ven@http://java.sun.com/xml/ns/j2ee]

I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by "John Sisson (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=comments#action_12367629 ] 

John Sisson commented on GERONIMO-1649:
---------------------------------------

Note that the comment by Anita above is for a separate issue and is not addressed by this JIRA.

> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1649
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB, deployment
>     Versions: 1.0
>     Reporter: John Sisson
>     Assignee: John Sisson
>     Priority: Blocker
>      Fix For: 1.1, 1.0.1
>  Attachments: TEST-org.apache.geronimo.schema.SchemaConversionUtilsTest.txt
>
> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
> ven@http://java.sun.com/xml/ns/j2ee]
> I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by "John Sisson (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=all ]
     
John Sisson closed GERONIMO-1649:
---------------------------------

    Resolution: Fixed

Fixed.  Changes merged to trunk.

> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1649
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB, deployment
>     Versions: 1.0
>     Reporter: John Sisson
>     Assignee: John Sisson
>     Priority: Blocker
>      Fix For: 1.1, 1.0.1
>  Attachments: TEST-org.apache.geronimo.schema.SchemaConversionUtilsTest.txt
>
> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
> ven@http://java.sun.com/xml/ns/j2ee]
> I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by "John Sisson (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=comments#action_12367627 ] 

John Sisson commented on GERONIMO-1649:
---------------------------------------

Test case and fix committed to 1.0 branch.  Need to merge to trunk.

> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1649
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB, deployment
>     Versions: 1.0
>     Reporter: John Sisson
>     Assignee: John Sisson
>     Priority: Blocker
>      Fix For: 1.1, 1.0.1

>
> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
> ven@http://java.sun.com/xml/ns/j2ee]
> I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by anita kulshreshtha <a_...@yahoo.com>.
John, 
    This was in HEAD (rev. 379574). I hastily assumed
that these were related :(. I will look further and
file an issue if the problem still exists. 

Thanks
Anita

--- John Sisson <jr...@gmail.com> wrote:

> Anita,
> 
> the issue you have found in described in your
> comment below should be 
> moved to a separate mail thread or separate JIRA as
> it is a different 
> issue to the one my JIRA is describing.
> 
> In the mail/JIRA for your problem, can you also tell
> us whether is is in 
> HEAD or branches/1.0.
> 
> Thanks,
> 
> John
> Anita Kulshreshtha (JIRA) wrote:
> >     [
>
http://issues.apache.org/jira/browse/GERONIMO-1649?page=comments#action_12367495
> ] 
> >
> > Anita Kulshreshtha commented on GERONIMO-1649:
> > ----------------------------------------------
> >
> > These MDBs do not start during startup of the
> j2ee-tomcat-server built with fresh copy of G at rev
> 379835.
> >  ..............................
> >   WARNING: Some GBeans were not started
> successfully:
> >     TradeBrokerMDB (starting)
> >     TradeStreamerMDB (starting)
> >
> > Geronimo Application Server started
> >
> >   
> >> Invalid deployment descriptor error when
> deploying an EJB 2.0 MDB
> >>
>
-----------------------------------------------------------------
> >>
> >>          Key: GERONIMO-1649
> >>          URL:
> http://issues.apache.org/jira/browse/GERONIMO-1649
> >>      Project: Geronimo
> >>         Type: Bug
> >>   Components: OpenEJB, deployment
> >>     Versions: 1.0
> >>     Reporter: John Sisson
> >>     Assignee: John Sisson
> >>     Priority: Blocker
> >>      Fix For: 1.1, 1.0.1
> >>     
> >
> >   
> >> There is a bug in
>
org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..)
> for a EJB 2.0 MDB where the security-identity
> element is not moved to after the
> JNDIEnvironmentRefsGroup causing an error such as:
> >> org.apache.xmlbeans.XmlException: Invalid
> deployment descriptor: [error:
> cvc-complex-type.2.4b: Element not allowed: reso
> >> urce-ref@http://java.sun.com/xml/ns/j2ee in
> element
> message-driven@http://java.sun.com/xml/ns/j2ee,
> error: cvc-complex-type.2.4b: El
> >> ement not allowed:
> resource-ref@http://java.sun.com/xml/ns/j2ee in
> element
> message-driven@http://java.sun.com/xml/ns/j2ee,
> error: cv
> >> c-complex-type.2.4b: Element not allowed:
> resource-ref@http://java.sun.com/xml/ns/j2ee in
> element message-driven@http://java.sun.com
> >> /xml/ns/j2ee, error: cvc-complex-type.2.4b:
> Element not allowed:
> resource-ref@http://java.sun.com/xml/ns/j2ee in
> element message-dri
> >> ven@http://java.sun.com/xml/ns/j2ee]
> >> I will attach a test case to reproduce the
> problem tomorrow.
> >>     
> >
> >   
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [jira] Commented: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by John Sisson <jr...@gmail.com>.
Anita,

the issue you have found in described in your comment below should be 
moved to a separate mail thread or separate JIRA as it is a different 
issue to the one my JIRA is describing.

In the mail/JIRA for your problem, can you also tell us whether is is in 
HEAD or branches/1.0.

Thanks,

John
Anita Kulshreshtha (JIRA) wrote:
>     [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=comments#action_12367495 ] 
>
> Anita Kulshreshtha commented on GERONIMO-1649:
> ----------------------------------------------
>
> These MDBs do not start during startup of the j2ee-tomcat-server built with fresh copy of G at rev 379835.
>  ..............................
>   WARNING: Some GBeans were not started successfully:
>     TradeBrokerMDB (starting)
>     TradeStreamerMDB (starting)
>
> Geronimo Application Server started
>
>   
>> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
>> -----------------------------------------------------------------
>>
>>          Key: GERONIMO-1649
>>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>>      Project: Geronimo
>>         Type: Bug
>>   Components: OpenEJB, deployment
>>     Versions: 1.0
>>     Reporter: John Sisson
>>     Assignee: John Sisson
>>     Priority: Blocker
>>      Fix For: 1.1, 1.0.1
>>     
>
>   
>> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
>> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
>> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
>> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
>> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
>> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
>> ven@http://java.sun.com/xml/ns/j2ee]
>> I will attach a test case to reproduce the problem tomorrow.
>>     
>
>   


[jira] Commented: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by "Anita Kulshreshtha (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=comments#action_12367495 ] 

Anita Kulshreshtha commented on GERONIMO-1649:
----------------------------------------------

These MDBs do not start during startup of the j2ee-tomcat-server built with fresh copy of G at rev 379835.
 ..............................
  WARNING: Some GBeans were not started successfully:
    TradeBrokerMDB (starting)
    TradeStreamerMDB (starting)

Geronimo Application Server started

> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1649
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB, deployment
>     Versions: 1.0
>     Reporter: John Sisson
>     Assignee: John Sisson
>     Priority: Blocker
>      Fix For: 1.1, 1.0.1

>
> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
> ven@http://java.sun.com/xml/ns/j2ee]
> I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-1649) Invalid deployment descriptor error when deploying an EJB 2.0 MDB

Posted by "John Sisson (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-1649?page=all ]

John Sisson updated GERONIMO-1649:
----------------------------------

    Attachment: TEST-org.apache.geronimo.schema.SchemaConversionUtilsTest.txt

For future reference.. Attached test report showing failure in newly added test before fix was committed.  In the 2nd dump of xml (the output of the schema conversion from the EJB 2.0 format) in the report you will see that the security-identity element is in the wrong place.  It should be after the resource-ref elements.

> Invalid deployment descriptor error when deploying an EJB 2.0 MDB
> -----------------------------------------------------------------
>
>          Key: GERONIMO-1649
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1649
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB, deployment
>     Versions: 1.0
>     Reporter: John Sisson
>     Assignee: John Sisson
>     Priority: Blocker
>      Fix For: 1.1, 1.0.1
>  Attachments: TEST-org.apache.geronimo.schema.SchemaConversionUtilsTest.txt
>
> There is a bug in org.apache.geronimo.schema.SchemaConversionUtils.convertBeans(..) for a EJB 2.0 MDB where the security-identity element is not moved to after the JNDIEnvironmentRefsGroup causing an error such as:
> org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4b: Element not allowed: reso
> urce-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cvc-complex-type.2.4b: El
> ement not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com/xml/ns/j2ee, error: cv
> c-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-driven@http://java.sun.com
> /xml/ns/j2ee, error: cvc-complex-type.2.4b: Element not allowed: resource-ref@http://java.sun.com/xml/ns/j2ee in element message-dri
> ven@http://java.sun.com/xml/ns/j2ee]
> I will attach a test case to reproduce the problem tomorrow.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira