Plugin development trying to get the samples working

Hi,

I'm installed the lattest eap and try to get the samples running.

I get the following error :
WARN - ildServer.util.EventDispatcher - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleConfigTab' defined in URL : Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type to required type for property 'tabTitle'; nested exception is java.lang.IllegalArgumentException: Original must not be null
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sampleConfigTab' defined in URL : Unsatisfied dependency expressed through constructor argument with index 1 of type : No unique bean of type is defined: Unsatisfied dependency of type : expected at least 1 matching bean
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sampleConfigTab' defined in URL : Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type to required type for property 'tabTitle'; nested exception is java.lang.IllegalArgumentException: Original must not be null
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sampleConfigTab' defined in URL : Unsatisfied dependency expressed through constructor argument with index 1 of type : No unique bean of type is defined: Unsatisfied dependency of type : expected at least 1 matching bean
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)

2 comments

Hi,

I have seen that the structure of the jars has changed, so i have done a complete reconfiguring of my eclipse with the new jars.
After that i have a problem with the sample tab example. I have commented out the title line. Then the server starts without problems.

]]>


But when the sample tab is activated i get the following error:

javax.el.ELException: Error reading 'tabTitle' on type $Proxy5
at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)

If a look at the class SimpleCustomTab it has not a set Method for title or tabtitle.

Any help?

0

Hello Henk,

Looks like you've found a real problem in our demo. During one of the recent refactorings we've removed a setter for SimpleCustomTab class.
With the current sources you can only extend this class and provide title as a constructor parameter.
We'll put the title back, but so far you cannot use SimpleCustomTab directly from xml, you should extend it and put your class into Spring descriptor.

Sorry for inconvenience,

KIR

0

Please sign in to leave a comment.