Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@EJB

 
Dura Hurtado
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a .jsp which call a servlet it works fine, but when I type @EJB and press my button in my .jsp a 404 error appears. It informs me that the resource(servlet) is not available.

¿Could anyboby advice me?

Thanks.
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dura,

Please post some of your code and URL you invoke, so we will know exactly what are we talking about.
What server do you use? What EJB Container?

Cheers!
 
Dura Hurtado
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am using JBoss 5, and the code is this way:

index.jsp



M.java(servlet)
------------------

Here a thing happends which i don´t understand, if I type:

(404 error when @EJB is executed in runtime)




---------------------------------------

but if I type:



Then it works properly, ¿Anybody knows why?. The last example has been copy from the net it works but I don´t understand what way it injects the EJB.

¿What way could I know what EJB container I am using in JBoss5?

Thanks
 
Piotr Nowicki
Ranch Hand
Posts: 611
1
IntelliJ IDE Java Linux
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic