javax.naming.NamingException

> Lookup failed for 'java:comp/env/ejb/Calculator' in > SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, > java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, > java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root > exception is javax.naming.NamingException: Exception resolving Ejb for > 'Remote ejb-ref name=ejb/Calculator,Remote 3.x interface > =null,ejb-link=null,lookup=,mappedName=,jndi-name=corba:iiop:localhost:3700#ejb/Calc,refType=Session' > . Actual (possibly internal) Remote JNDI name used for lookup is > 'corba:iiop:localhost:3700#ejb/Calc#null' [Root exception is > java.lang.NullPointerException]] > at > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) > at > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) >

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 web27

  • via Unknown by Bernhard Thalmayr Guest,
  • via Unknown by Unknown author,
  • Stack trace

    • javax.naming.NamingException: > Lookup failed for 'java:comp/env/ejb/Calculator' in > SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, > java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, > java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root > exception is javax.naming.NamingException: Exception resolving Ejb for > 'Remote ejb-ref name=ejb/Calculator,Remote 3.x interface > =null,ejb-link=null,lookup=,mappedName=,jndi-name=corba:iiop:localhost:3700#ejb/Calc,refType=Session' > . Actual (possibly internal) Remote JNDI name used for lookup is > 'corba:iiop:localhost:3700#ejb/Calc#null' [Root exception is > java.lang.NullPointerException]] > at > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) > at > com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) > at javax.naming.InitialContext.lookup(InitialContext.java:392) at javax.naming.InitialContext.lookup(InitialContext.java:392)

    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,