This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm deploying an ear with a web-module. The war is built using the following ant skript (part of it):
If I'm deploying it the application works perfectly.
As I would prefer the classes to be included in WEB-INF/classes I altered the ant skript in the following way:
The ear is being builded correctly, all the classes are there. Deploying is ok, too. But I get a runtime error:
2010-06-24 16:42:15,303 FATAL [javax.enterprise.resource.webcontainer.jsf.application] java.lang.RuntimeException: Non matching type for @Inject of setter: public void fr.abc.usim.ejbs.ejb.UserManagerBean.setmailService(fr.abc.usim.ejbs.util.MailService) for type: $Proxy125
Anyone has an idea, why a) and b) yield different run time behaviours?
Thanks for your advice.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: strange things happen - Non matching type for @Inject of setter: