Petals BC EJB

The EJB's class name is not retrieved correctly

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Won't Fix
  • Affects Version/s: 1.2.1
  • Fix Version/s: None
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide
    <ejb:class-name>com.toto.MyEJB</ejb:class-name>

    is not retrieved like

    <ejb:class-name>
                    com.toto.MyEJB
    </ejb:class-name>

    Trailing white spaces are not removed. It can result in an error at deployment (the class name was not found).
    The value is retrieved in the component by using getExtension( "class-name" ).
    If the value is not null, then it should be trimed.

    Show
    <ejb:class-name>com.toto.MyEJB</ejb:class-name>
    is not retrieved like
    <ejb:class-name>
                    com.toto.MyEJB
    </ejb:class-name>
    Trailing white spaces are not removed. It can result in an error at deployment (the class name was not found). The value is retrieved in the component by using getExtension( "class-name" ). If the value is not null, then it should be trimed.
  • Environment:
    All.

Activity

Hide
Mathieu Carrolle added a comment - Mon, 8 Nov 2010 - 11:15:13 +0100

If no space character are allowed, the type token from XML Schema have to be used.

Show
Mathieu Carrolle added a comment - Mon, 8 Nov 2010 - 11:15:13 +0100 If no space character are allowed, the type token from XML Schema have to be used.
Hide
Vincent Zurczak added a comment - Mon, 8 Nov 2010 - 11:19:16 +0100

Then change its XML type (if you want).
In any case, a class name cannot have white spaces arround it.

However, I doubt it will change anything in the component, because component extensions are parsed manually.
So, changing the XML type will probably not change the component behavior.

Show
Vincent Zurczak added a comment - Mon, 8 Nov 2010 - 11:19:16 +0100 Then change its XML type (if you want). In any case, a class name cannot have white spaces arround it. However, I doubt it will change anything in the component, because component extensions are parsed manually. So, changing the XML type will probably not change the component behavior.
Hide
Mathieu Carrolle added a comment - Mon, 8 Nov 2010 - 11:37:56 +0100

Actually, it change anything in the component but in the next CDK, this value will be parsed by JAXB.

Show
Mathieu Carrolle added a comment - Mon, 8 Nov 2010 - 11:37:56 +0100 Actually, it change anything in the component but in the next CDK, this value will be parsed by JAXB.

People

Dates

  • Created:
    Thu, 4 Nov 2010 - 18:02:02 +0100
    Updated:
    Mon, 8 Nov 2010 - 11:37:56 +0100
    Resolved:
    Mon, 8 Nov 2010 - 11:15:13 +0100