• Post Reply Bookmark Topic Watch Topic
  • New Topic

NamingException raised by Netbeans at a very simple application  RSS feed

 
Hugo Alberto Bedolla
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody:

Ok, let's start with that:

Problem:

I used annotations in this way:



next the cody is only:



Ok... with that code, c is null, so the Web Container raises NullPointerException... ok, next, I perform these changes:


Ok... all happening here is this: NamingException javax.naming.NameNotFoundException: mypackage.CountryFacadeLocal not found.

I hate to say this but... always when tried to get some EJB reference I do the first approach, and never failed until now; ok, I was oriented to follow the second approach (By declaring the JNDI lookup code) and the last happens.

Any suggestion? Server is Glassfish 2.1.1. Thanks in advance.

Code:

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


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




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



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


--------------------------------------
--------------------------------------
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!