Register / Login
EJB and other Java EE Technologies
How to resolve java:comp error after adding the specified jar
posted 7 years ago
I'm using eclipse IDE and trying to run a JNDI program as stanalone.
where the look up is context.lookup("java:comp/env/jdbc/sunDB")
When i'm running this under
environement, (i.e in
) then it's working fine.
But when i try to run this program as standalone i'm getting the error
:comp is not bound in this context.
So, i added appserv-rt.jar and j2ee.jar in jre lib and trying to run in eclipse. Still the error persist.
How to resolve this problem.
any kind of help is appreciated.
Boost this thread!
How to Configure Eclipse
Problem running ant task in Eclipse 3.4
Error while running JBoss Server
Simple Java Program throwing cannot create process =193 error
error while running jsf application