Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContex

500 views
Skip to first unread message

Dhaval Joshi

unread,
Mar 7, 2016, 9:22:31 PM3/7/16
to dcm4che
Hi,

I am getting these error below, I am using CentOS 7 64bit, JDK 8 and Jboss 4.2.3  also I am attaching the logs please let know how can I fix

1] 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)

2] 2016-02-18 17:35:06,502 ERROR -> (Thread-17) [org.dcm4chex.archive.dcm.storescp.StoreScpService] Check for Pending Series Stored failed:
org.dcm4chex.archive.util.HomeFactoryException: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair (no security manager: RMI class loader disabled)]
    at org.dcm4chex.archive.util.EJBHomeFactory.lookup(EJBHomeFact
server.log

Dhaval Joshi

unread,
Mar 9, 2016, 8:23:27 PM3/9/16
to dcm4che
Hi,

Does any one know why this happening I facing this issue with on multiple dcm4chee version from 2.18.0 , 2.18.1 and 2.18.3. I tried different JDK versions from JDK 6, JDK 7 & JDK8 and same error occurs. I have tried adding these lines below to run.conf and edit jndi.properties in conf directory but that also did not help

JAVA_OPTS="$JAVA_OPTS -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory"
JAVA_OPTS="$JAVA_OPTS -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces -Djava.naming.provider.url=localhost:1099"

Can anyone help me out to resolve this issue

Regards
Dhaval Joshi
Reply all
Reply to author
Forward
0 new messages