• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic