wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes strange things happen - Non matching type for @Inject of setter: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "strange things happen - Non matching type for @Inject of setter:" Watch "strange things happen - Non matching type for @Inject of setter:" New topic
Author

strange things happen - Non matching type for @Inject of setter:

rouven gorsky
Greenhorn

Joined: Feb 10, 2009
Posts: 14
Hi

I'm deploying an ear with a web-module. The war is built using the following ant skript (part of it):

a)


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:

b)


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.

 
 
subject: strange things happen - Non matching type for @Inject of setter:
 
Similar Threads
"Exclude" does not seem to be working when building WAR
WAR error - Unexpected element "{}war"
(Anyone) using propertyfile ?
Ant war task and JSP tag files
Warning Message When I Ran My ANT build.xml File