This is an eternal problem with JNDI names. The name "java:comp" is not required. Just change
the sun-web.xml to say:
[code]
<ejb-ref>
<ejb-ref-name>hello</ejb-ref-name>
<jndi-name>hello</jndi-name>
</ejb-ref>
[/code]
and you'll be fine. I just deployed it that way and everything is fine :)
Note: Doing what you did is hard, especially using NetBeans IDE. Here are the steps you
have to take to achieve this:
- Create an EJB Module Project.
- Leave the IDE for a while, resort to say command line and do a "jar cvf ejbif.jar org.petka.ejb.remote.HelloRemote.class".
- Create a Web Project.
- Add the Remote interface as the library (ejbif.jar) in Libraries.
- Compile the Web App.
- Deploy.
Phew!
- Kedar
[Message sent by forum member 'km' (km)]
http://forums.java.net/jive/thread.jspa?messageID=249247