This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

I am new to JAVA programming and I am trying to create a portlet in Eclipse using Maven, Hibernate and Springframe. I get the same type of error message (see below) when I try to deploy my portlet to LIFERAY. I am confused by what I have done wrong. Can anyone PLEASE help me? Here is the error message and some of my code/situation:

Comment

The type is determined by return type of the factory method NOT based on the object returned from the factory-method itself.

It is done to prevent over eagerly instantiation of beans and to prevent heavy objects from beeing instantiated. (Imagine some object which takes about 10 secs to create and it nog being a singleton, it would be quite a burden for startup).

Thanks again for clarifying.

Is there a way to tell spring which class/interfaces objects returned by factory-method implement? This means overwriting the default reflection mechanism? Something like