I think this has to do with JAXB generating non-standard javabeans - i.e.
isetFoo(Boolean)/Boolean isFoo() - wheras the javabean spec would require
setFoo(Boolean)/Boolean getFoo(). Try adding a Boolean getEnabled() and see
if it works.

- Dan

On 6/13/07, Polar Humenn <[EMAIL PROTECTED]> wrote:

I have problem:

In a spring configuration file I'm trying to innitialize a Boolean
property

          <bean class="....">
             <property name="enabled" value="true"/>
           </bean>

I always get:

org.springframework.beans.TypeMismatchExceptions: Failed to convert
property value of type [java.lang.String] to required type [boolean] for
proerty 'enabled'.

The signature of the property is:

public void setEnabled(java.lang.Boolean arg0);

in some JAXB generated code;

I had thought Spring had some default property editor, and the reference
says so, (i.e. CustomBooleanPropertyEditor) that it just does these
conversions automatically by default.

Has this conversion (property editor) been turned off or disabled in CXF
anywhere?

Anybody have an answer, workaround, or a clue for me?

Cheers,
-Polar




--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com | http://netzooid.com/blog

Reply via email to