• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DI in servlet

 
Kiril Nugmanov
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,


Currently i'm preparing for the SCBCD5 (have minor expirience with EJB). I'm really confused with DI in EJB3 - trying to acces local EJB from servlet and allways getting NullPointerException.

Was trying with several application servers Galssfish 2.1.1/3, JBoss 6.0.0.1. JDK version 1.6.0_18

There is my files:

Local interface

EJB

Servlet

DD

Maybe I'm missing something...



 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kiril Nugmanov wrote:



Web-app 2.4 doesn't support injection. You will need 2.5 version of the xsd. See this http://www.coderanch.com/t/426854/EJB-Other-Java-EE-Technologies/java/EJB-doing-nothing-jboss-GA#1894841

 
Kiril Nugmanov
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jaikiran Pai,

Thats was the problem. Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic