javax.ejb.EJBException: Unable to connect to database. No object bound t o name java:comp/env/jdbc/BankDB

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807595, 1 year ago
Unable to connect to database. No object bound t o name java:comp/env/jdbc/BankDB
via Oracle Community by 843833, 1 year ago
Unable to connect to database. ejbTutorialDB not found
via Oracle Community by eve2, 1 year ago
Unable to connect to database. No object bound t o name java:comp/env/jdbc/Mysqlserdb
via Oracle Community by 843830, 1 year ago
nested exception is: java.rmi.ServerError: Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: com/mysql/jdbc/SQLError java.rmi.ServerError: Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: com/mysql/jdbc/SQLError
javax.ejb.EJBException: Unable to connect to database. No object bound t o name java:comp/env/jdbc/BankDB
at undefined.BankStub.transferToSaving(Unknown Source)
at undefined.BankClient.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.appclient.Main.(Main.java:406)
at com.sun.enterprise.appclient.Main.main(Main.java:105)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.