java.lang.ClassNotFoundException

web logic.jndi.WLInitialContextFactory\]

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar: https://goo.gl/U2zr8k

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

Solutions on the web160

  • web logic.jndi.WLInitialContextFactory]
  • via Oracle Community by 843830, 1 year ago
    web logic.jndi.WLInitialContextFactory]
  • via Oracle Community by 680722, 1 year ago
    web logic.jndi.WLInitialContextFactory]
  • Stack trace

    • java.lang.ClassNotFoundException: web logic.jndi.WLInitialContextFactory\] at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.<init>(Unknown Source) at se.anatom.ejbca.admin.BaseCommand.getInitialContext(BaseCommand.java:140) at se.anatom.ejbca.admin.BaseCommand.appServerRunning(BaseCommand.java:73) at se.anatom.ejbca.admin.Install.checkRequirements(Install.java:133) at se.anatom.ejbca.admin.Install.run(Install.java:91) at se.anatom.ejbca.admin.Install.main(Install.java:111) Caused by: java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFacto ry at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source) ... 9 more

    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

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 2 weeks ago
    4 times, 1 month ago
    Once, 1 month ago
    Unknown user
    Once, 2 months ago
    1189 more bugmates