javax.naming.NameNotFoundException: PWC4216: Name config-dir is not bound in this Context

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

Samebug tips

,
via Stack Overflow by dereck

Add localDataSource="true" to the realm when using local database.

,
via Stack Overflow by john

Make sure you use the same name for your database everywhere in context.xml.

Solutions on the web

via hivmr.com by Unknown author, 1 year ago
PWC4216: Name config-dir is not bound in this Context
via appspot.com by Unknown author, 2 years ago
The name jdbc is not associated to this context
via Stack Overflow by Joaquín L. Robles
, 2 years ago
The name jdbc is not associated to this context
via Coderanch by Shishir malviya, 1 year ago
Name sewaDS is not bound in this Context
via Coderanch by Shishir malviya, 1 year ago
Name sewaDS is not bound in this Context
via spring.io by Unknown author, 1 year ago
javax.naming.NameNotFoundException: PWC4216: Name config-dir is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:778)
at org.apache.naming.NamingContext.lookup(NamingContext.java:161)
at be.sofico.web.frmwrk.application.ApplicationLoader.findConfigDirectory(ApplicationLoader.java:89)
at be.sofico.web.frmwrk.application.ApplicationLoader.contextInitialized(ApplicationLoader.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4456)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5111)
at com.sun.webserver.connector.nsapi.WebModule.start(WebModule.java:182)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:924)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1224)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520)
at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:478)
at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:304)

Users with the same issue

2 times, 3 months ago
6 times, 7 months ago
Once, 11 months ago
Once, 1 year ago
2 times, 1 year ago

Write tip

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