File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@EJB

 
Dura Hurtado
Ranch Hand
Posts: 120
  • 0
  • 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: 610
IntelliJ IDE Java Linux
  • 0
  • 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
  • 0
  • 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: 610
IntelliJ IDE Java Linux
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic