javax.naming.NameNotFoundException

PWC4216: Name config-dir is not bound in this Context

Samebug tips3

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

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web466

  • via Unknown by Unknown author,
  • via Unknown by 843793,
  • Stack trace

    • 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 org.apache.catalina.startup.Embedded.start(Embedded.java:917) at com.sun.enterprise.web.PwcWebContainer.onStartup(PwcWebContainer.java:70) at com.sun.webserver.connector.nsapi.WebContainer.start(WebContainer.java:478) at com.sun.webserver.init.J2EERunner.confPostInit(J2EERunner.java:304)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    CasperCasper
    6 times, last one
    rafaelrafael
    Once,
    treefolktreefolk
    Once,
    Unknown visitor
    Unknown visitorOnce,
    davidvanlaatumdavidvanlaatum
    Once,
    29 more bugmates