Why do I get InvalidName exception when deploying my EJBs

Solution Unverified - Updated -

Issue

  • Seeing exceptions like the following when using iiop and JNDI names like jboss.example.MyEjbRemote
        org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0
                at org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read(InvalidNameHelper.java:60)
                at org.omg.CosNaming._NamingContextExtStub.to_name(_NamingContextExtStub.java:86)
                at org.jboss.ejb3.iiop.IORFactory.rebind(IORFactory.java:243)
                at org.jboss.ejb3.iiop.IORFactory.start(IORFactory.java:380)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.