javax.naming.NamingException

Unable to acquire SerialContextProvide for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise. aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta eFactoryImpl} [Root exception is java.lang.ClassCastException]]

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web22

  • via Unknown by 932533,
  • via Unknown by 932533,
  • Stack trace

    • javax.naming.NamingException: Unable to acquire SerialContextProvide for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise. aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta eFactoryImpl} [Root exception is java.lang.ClassCastException]] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jaa:518) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jaa:455) at javax.naming.InitialContext.lookup(Unknown Source) at SimpleTopicPublisher.main(SimpleTopicPublisher.java:112) Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvide for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise. aming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDISta eFactoryImpl} [Root exception is java.lang.ClassCastException] at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContet.java:351) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.jaa:504) ... 3 more Caused by: java.lang.ClassCastException at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableemoteObject.java:262) at javax.rmi.PortableRemoteObject.narrow(Unknown Source) at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNamService(SerialContext.java:1244) at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SeriaContext.java:410) at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContet.java:346) ... 4 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 visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,