• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Petr Freiberg
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!