javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory

420 views
Skip to first unread message

Dhaval Joshi

unread,
Feb 17, 2016, 2:23:03 PM2/17/16
to dcm...@googlegroups.com
Hi

I am running dcm4chee 2.18.3-psql on jdk 1.8.0_73 and when I start the server, I get this error below, Can any one let me know which jar file might be missing
Attaching server.log for more information

Regards
Dhaval Joshi


2016-02-17 14:20:45,883 INFO  -> (Thread-16) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] Check file system group LOSSY_STORAGE for deletion of orphaned private files
2016-02-17 14:20:45,884 INFO  -> (Thread-17) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] Check file system group ONLINE_STORAGE for deletion of orphaned private files
2016-02-17 14:20:45,886 ERROR -> (Thread-16) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] deleteOrphanedPrivateFiles() failed:
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:192)
        at org.dcm4chex.archive.mbean.JndiHelper.jndiLookup(JndiHelper.java:19)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.fileSystemMgt2(FileSystemMgt2Service.java:878)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.internalDeleteOrphanedPrivateFiles(FileSystemMgt2Service.java:851)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.deleteOrphanedPrivateFiles(FileSystemMgt2Service.java:835)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service$2$1.run(FileSystemMgt2Service.java:324)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)
        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
        ... 9 more
2016-02-17 14:20:45,889 ERROR -> (Thread-17) [org.dcm4chex.archive.mbean.FileSystemMgt2Service] deleteOrphanedPrivateFiles() failed:
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
        at javax.naming.InitialContext.init(InitialContext.java:244)
        at javax.naming.InitialContext.<init>(InitialContext.java:192)
        at org.dcm4chex.archive.mbean.JndiHelper.jndiLookup(JndiHelper.java:19)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.fileSystemMgt2(FileSystemMgt2Service.java:878)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.internalDeleteOrphanedPrivateFiles(FileSystemMgt2Service.java:851)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service.deleteOrphanedPrivateFiles(FileSystemMgt2Service.java:835)
        at org.dcm4chex.archive.mbean.FileSystemMgt2Service$2$1.run(FileSystemMgt2Service.java:324)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:72)
        at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:61)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
        ... 9 more
2016-02-17 14:20:46,623 ERROR -> (main) [STDERR] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
2016-02-17 14:20:46,636 ERROR -> (main) [STDERR] Compiler warnings:
2016-02-17 14:20:46,637 ERROR -> (main) [STDERR]   WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
2016-02-17 14:20:46,643 ERROR -> (main) [STDERR] Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
2016-02-17 14:20:46,651 ERROR -> (main) [STDERR] Compiler warnings:

server.log
Reply all
Reply to author
Forward
0 new messages