Skip to Content
0
Former Member
Dec 08, 2006 at 10:59 AM

JNDI NameNotFoundException

35 Views

First,I created a DC project which type is J2EE Web Module.

I wrote a DAO Interface(DAO.class), DAO_Impl(JdbcDAO.calss) and Employee_DATA(Emp.class).

After that, I added DAO.class and Emp.class to public parts which type is "API for developing/compiling other DCs" named "api".

Also, I added root pacakage to another public parts which type is "Can be packaged into other build results" named "dao".

Second,I created anther project which type is J2EE Server Component-->Library(DC).

In the Used DCs, I added the "dao".

Third, I created a Web Dynpro project in DC

In the Component Cotroller I wrote code:

JdbcDAO dao = new JdbcDAO();

After running this application, I got a Exception from Server "NameNotFoundException"

I am wondering if my JNDI is wrong. But I can't fine a way to fix it.

Can anybody show me some idea.

Thanks in advance.