• 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

WELD-001408: trying @Inject EJB in JAR to WAR

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I've JAR with EJB 3.1 that I need to use in WAR. Both JAR and WAR are deployed separately on same JBoss (AS 7.1). When I inject EJB in one of the CDI beans in WAR I got this error:

From my current point of view the @Inject doesn’t see the EJB, but if I use manual JNDI lookup (from WAR) is possible for me to get instance of this bean. Is possible to inject EJB from another JAR with @Inject annotation?

Class in WAR (CDI Bean) which @Inject EJB from JAR:

EJB class in JAR which I'm trying to @Inject with local and remote interface:

Thanks for any ideas.
 
Petr Freiberg
Greenhorn
Posts: 2
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer: http://stackoverflow.com/questions/39021535/weld-001408-trying-inject-ejb-from-jar-to-war/39064415#39064415
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic