Topic
  • 11 replies
  • Latest Post - ‏2009-07-29T05:55:53Z by ashish.zan
SystemAdmin
SystemAdmin
1660 Posts

Pinned topic NamingContextPackage.NotFound

‏2004-09-29T08:04:13Z |
Hi,

I am using the following:

WebSphere Studio Application Developer (Windows)
Version: 5.1.2

DB2 v8.1.0.36

I am new to Websphere and I'm trying to set up a simple Websphere program from an IBM tutorial to create a simple bottom-up, then top-down entity beans-database relationships and then deploy the beans on the server and use the test client to access the beans.

However when I try to start the server I get the message below.

I did a Google on this and it suggests adding some .jar files to the build path. Is this necessary and where do I do this? Any other help/suggestions very much apprciated.
ERROR MESSAGE RECEIVED:
Content: JndiLookupInfo: jndiName="jdbc/dragonslayer"; providerURL=""; initialContextFactory=""

Exception data follows:
javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: jdbc/dragonslayer: First component in name dragonslayer not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)
at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:1399)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLookupObjectFactory.java:372)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:111)
at com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstanceExt(IndirectJndiLookupObjectFactory.java:221)
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:868)

Thanks again,
Dave
Updated on 2009-07-29T05:55:53Z at 2009-07-29T05:55:53Z by ashish.zan
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2004-10-08T13:56:37Z  
    hi,
    did u get any solution for the problem.i too am getting the same problem.please reply back in case you got something.

    thanks in advance,
    sunetra

    ******************
    exception
    ******************

    com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception) - Obtained Exception - javax.naming.NameNotFoundException: Context: WrapUpNetwork/nodes/ec-t2110519/servers/nodeagent, name: MarshDataSource: First component in name MarshDataSource not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - AuthorizationService .authenticate(EntityInfo entity) - Exception caught - com.marshmc.wrapup.exceptions.MarshWrapException: 100

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - AuthorizationService .authenticate(EntityInfo entity) - Exiting authenticate

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.validateUser(EntityInfo entity) -Normal Exit-

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.authenticateUser(String,String)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req) - Login failed.Could not obtain Auth Service.

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req)

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - In WrapUpBrowserBackTagdoStartTag()

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - Exiting WrapUpBrowserBackTagdoStartTag()
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2005-01-14T22:45:54Z  
    hi,
    did u get any solution for the problem.i too am getting the same problem.please reply back in case you got something.

    thanks in advance,
    sunetra

    ******************
    exception
    ******************

    com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception) - Obtained Exception - javax.naming.NameNotFoundException: Context: WrapUpNetwork/nodes/ec-t2110519/servers/nodeagent, name: MarshDataSource: First component in name MarshDataSource not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - AuthorizationService .authenticate(EntityInfo entity) - Exception caught - com.marshmc.wrapup.exceptions.MarshWrapException: 100

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - AuthorizationService .authenticate(EntityInfo entity) - Exiting authenticate

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.validateUser(EntityInfo entity) -Normal Exit-

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.authenticateUser(String,String)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req) - Login failed.Could not obtain Auth Service.

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req)

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - In WrapUpBrowserBackTagdoStartTag()

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - Exiting WrapUpBrowserBackTagdoStartTag()
    Hi,
    I am also facing same kind of problem ,

    I have a Stand alone Java application that looks up for a WebSphere MQ Queue Connection Factory
    What i had done is
    1) Installed Websphere Application Server and Websphere MQ
    2) Created a new Queue Manager in MQ and a Local Queue
    3) Created a WebSphere MQ Queue Connection Factory in Webshere Application Server with the information of the Queue Manager created
    4)Wrote a java program to lookup the new Connection Factory created by me
    the Program is as follows
    import com.ibm.mq.jms.MQQueueConnectionFactory;

    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.jms.Destination;
    import java.util.Hashtable;
    import java.util.Enumeration;

    /**
    • Created by IntelliJ IDEA.
    • User: prabha
    • Date: Jan 12, 2005
    • Time: 2:55:11 AM
    • To change this template use File | Settings | File Templates.
    */
    public class MessageSender {
    public static void main(String[] args) {
    java.util.Properties p = new java.util.Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    // p.put(Context.PROVIDER_URL, "iiop://pgh2393:900/");
    p.put(Context.PROVIDER_URL, "iiop://localhost:2809/");
    InitialContext jndiContext;
    try {
    jndiContext = new InitialContext(p);
    System.out.println("jndiContext.getNameInNamespace() = " + jndiContext.getNameInNamespace());
    MQQueueConnectionFactory fact = (MQQueueConnectionFactory) jndiContext.lookup("jms/firstQueueCF");
    Destination destination = (Destination) jndiContext.lookup("myqueue1");
    jndiContext.close();
    } catch (Exception e) {
    e.printStackTrace();

    }
    }
    }

    When i run this program i am getting an Exception like this
    javax.naming.NameNotFoundException: Context: inenprabhal4c/nodes/inenprabhal4c/servers/server1, name: jms/firstQueueCF: First component in name jms/firstQueueCF not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:85)
    at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
    at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3493)
    at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1521)
    at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1482)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1189)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1069)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
    at javax.naming.InitialContext.lookup(InitialContext.java:361)
    at mqjmstester.MessageSender.main(MessageSender.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

    Please help me ,
    What i wanted to do is to send a message to the MQ Queue using websphere,
    waiting for your valuable response
    regards
    Ajit
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2005-07-25T22:27:55Z  
    Hi,
    I am also facing same kind of problem ,

    I have a Stand alone Java application that looks up for a WebSphere MQ Queue Connection Factory
    What i had done is
    1) Installed Websphere Application Server and Websphere MQ
    2) Created a new Queue Manager in MQ and a Local Queue
    3) Created a WebSphere MQ Queue Connection Factory in Webshere Application Server with the information of the Queue Manager created
    4)Wrote a java program to lookup the new Connection Factory created by me
    the Program is as follows
    import com.ibm.mq.jms.MQQueueConnectionFactory;

    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.jms.Destination;
    import java.util.Hashtable;
    import java.util.Enumeration;

    /**
    • Created by IntelliJ IDEA.
    • User: prabha
    • Date: Jan 12, 2005
    • Time: 2:55:11 AM
    • To change this template use File | Settings | File Templates.
    */
    public class MessageSender {
    public static void main(String[] args) {
    java.util.Properties p = new java.util.Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
    // p.put(Context.PROVIDER_URL, "iiop://pgh2393:900/");
    p.put(Context.PROVIDER_URL, "iiop://localhost:2809/");
    InitialContext jndiContext;
    try {
    jndiContext = new InitialContext(p);
    System.out.println("jndiContext.getNameInNamespace() = " + jndiContext.getNameInNamespace());
    MQQueueConnectionFactory fact = (MQQueueConnectionFactory) jndiContext.lookup("jms/firstQueueCF");
    Destination destination = (Destination) jndiContext.lookup("myqueue1");
    jndiContext.close();
    } catch (Exception e) {
    e.printStackTrace();

    }
    }
    }

    When i run this program i am getting an Exception like this
    javax.naming.NameNotFoundException: Context: inenprabhal4c/nodes/inenprabhal4c/servers/server1, name: jms/firstQueueCF: First component in name jms/firstQueueCF not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
    at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:85)
    at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
    at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3493)
    at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1521)
    at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1482)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1189)
    at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1069)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:144)
    at javax.naming.InitialContext.lookup(InitialContext.java:361)
    at mqjmstester.MessageSender.main(MessageSender.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)

    Please help me ,
    What i wanted to do is to send a message to the MQ Queue using websphere,
    waiting for your valuable response
    regards
    Ajit
    Hi

    Did you resolve the problem of accessing the Queue Manager from you stand alone client. If so could you please tell us how you got around to doing it.
  • meduri
    meduri
    24 Posts

    Re: NamingContextPackage.NotFound

    ‏2005-08-18T03:16:08Z  
    Hi

    Did you resolve the problem of accessing the Queue Manager from you stand alone client. If so could you please tell us how you got around to doing it.
    Simple console clients seem to have this issue to complete a name lookup. I suggest

    1)creating J2EE application client container and run this app in it.

    2) run the app inside a IBM JRE .. not the traditional jre which 'ideally' has to work..

    HTH
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2005-12-08T23:01:02Z  
    Hi

    Did you resolve the problem of accessing the Queue Manager from you stand alone client. If so could you please tell us how you got around to doing it.
    I am having the same problem while accessing a JNDI lookup from stand-alone client. I am using WebSphere 5.1. Please help me in getting it resolved. I have been struggling to find a solution since few days.

    -Niyasi
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2006-02-07T09:54:56Z  
    hi,
    did u get any solution for the problem.i too am getting the same problem.please reply back in case you got something.

    thanks in advance,
    sunetra

    ******************
    exception
    ******************

    com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception) - Obtained Exception - javax.naming.NameNotFoundException: Context: WrapUpNetwork/nodes/ec-t2110519/servers/nodeagent, name: MarshDataSource: First component in name MarshDataSource not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.utils.AbstractMarshWrapDAO.throwMarshWrapExceptionSysError(Exception)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - AuthorizationService .authenticate(EntityInfo entity) - Exception caught - com.marshmc.wrapup.exceptions.MarshWrapException: 100

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - AuthorizationService .authenticate(EntityInfo entity) - Exiting authenticate

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.validateUser(EntityInfo entity) -Normal Exit-

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.authenticateUser(String,String)

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 ERROR - In com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req) - Login failed.Could not obtain Auth Service.

    08 Oct 2004 15:14:52,773 Servlet.Engine.Transports : 2 DEBUG - Exiting com.marshmc.wrapup.webapp.login.WrapupLoginServlet.loginUser(HttpServletRequest req)

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - In WrapUpBrowserBackTagdoStartTag()

    08 Oct 2004 15:14:52,783 Servlet.Engine.Transports : 2 DEBUG - Exiting WrapUpBrowserBackTagdoStartTag()
    Hi
    The problem is created when the reference of the DATASOURCE JNDI is not match with the EJB Container.go in to the ejb deployement discriptor and give the JNDI name of the datasource in to the text field of JNDI - CMP Connection Factory Binding.both JNDI name should be same.

    Thanks
    Pankaj
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2006-12-06T03:12:14Z  
    Try using lookup("java:comp/env/jdbc/dragonslayer") instead of lookup("jdbc/dragonslayer") in your code... this might work! At least it worked for me.
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2006-12-06T03:18:46Z  
    Try using lookup("java:comp/env/jdbc/dragonslayer") instead of lookup("jdbc/dragonslayer") in your code... this might work! At least it worked for me.
    Also you need to define a Resource in web.xml

    1. Open web.xml (under WebContent/WEB-INF) in WSAD
    2. Select the References tab, and then the Resource Environment sub-tab (at the top).
    3. Press the Add button to add a new resource.
    4. Click on the new resource name to edit it and give a lookup name, and change the JNDI name (in Websphere bindings) to JNDI name you assigned to the data source.

    You need to use the JNDI lookup name defined in the resources (step 4) in your java code for the look up.
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2008-02-28T22:12:38Z  
    Also you need to define a Resource in web.xml

    1. Open web.xml (under WebContent/WEB-INF) in WSAD
    2. Select the References tab, and then the Resource Environment sub-tab (at the top).
    3. Press the Add button to add a new resource.
    4. Click on the new resource name to edit it and give a lookup name, and change the JNDI name (in Websphere bindings) to JNDI name you assigned to the data source.

    You need to use the JNDI lookup name defined in the resources (step 4) in your java code for the look up.
    I also getting same kind of error while invoking EJB client, if anybody has idea about this issue, let me know ASAP.

    2/28/08 16:09:42:553 CST 0000000f EJBContainerI E WSVR0068E: Attempt to start EnterpriseBean SessionExampleEAR#SessionExample.jar#CalculatorSessionBean failed with exception: com.ibm.ejs.container.ContainerException: Failed to initialize BeanMetaData instance; nested exception is:
    java.lang.LinkageError: LinkageError while defining class: com.sessionbeanexample.EJSStatelessCalculatorSessionBeanHomeBean_10b2a682
    Could not be defined due to: com/sessionbeanexample/EJSStatelessCalculatorSessionBeanHomeBean_10b2a682 (Unsupported major.minor version 49.0)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    [0] com.ibm.ws.bootstrap.ExtClassLoader@7ca493f3
    [1] sun.misc.Launcher$AppClassLoader@7cb613f3
    [2] sun.misc.Launcher$ExtClassLoader@7cb213f3
    ---Original exception---
    java.lang.UnsupportedClassVersionError: com/sessionbeanexample/EJSStatelessCalculatorSessionBeanHomeBean_10b2a682 (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
    at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:518)
    at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:365)
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:3646)
    at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:1310)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:1913)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createDeferredBeanMetaData(EJBContainerImpl.java:4475)
    at com.ibm.ws.runtime.component.EJBContainerImpl.access$000(EJBContainerImpl.java:408)
    at com.ibm.ws.runtime.component.EJBContainerImpl$3.run(EJBContainerImpl.java:4277)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4274)
    at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:343)
    at com.ibm.ejs.container.HomeOfHomes.internalCreateWrapper(HomeOfHomes.java:473)
    at com.ibm.ejs.container.EJSContainer.createWrapper(EJSContainer.java:4270)
    at com.ibm.ejs.container.WrapperManager.faultOnKey(WrapperManager.java:517)
    at com.ibm.ejs.util.cache.Cache.findAndFault(Cache.java:495)
    at com.ibm.ejs.container.WrapperManager.keyToObject(WrapperManager.java:471)
    at com.ibm.ejs.oa.EJSOAImpl.keyToObject(EJSOAImpl.java:552)
    at com.ibm.ejs.oa.EJSRootOAImpl.keyToObject(EJSRootOAImpl.java:270)
    at com.ibm.rmi.corba.ObjectManager.lookupServant(ObjectManager.java:103)
    at com.ibm.CORBA.iiop.ServerDelegate.getServant(ServerDelegate.java:299)
    at com.ibm.rmi.iiop.ORB.lookupLocalObject(ORB.java:559)
    at com.ibm.CORBA.iiop.ORB.lookupLocalObject(ORB.java:1639)
    at com.ibm.rmi.iiop.CDRInputStream.newObjRef(CDRInputStream.java:1171)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1148)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1083)
    at com.ibm.rmi.corba.IorURL.iorbytesToObjref(IorURL.java:106)
    at com.ibm.rmi.corba.IorURL.resolve(IorURL.java:94)
    at com.ibm.rmi.corba.ORB.objectURLToObject(ORB.java:3934)
    at com.ibm.CORBA.iiop.ORB.objectURLToObject(ORB.java:3405)
    at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:3823)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolveUnresolvedBinding(WsnOptimizedNamingImpl.java:2154)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolve_binding(WsnOptimizedNamingImpl.java:1895)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:599)
    at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
    at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:610)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:463)
    at com.ibm.rmi.iiop.ORB.process(ORB.java:439)
    at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)
    at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2300)
    at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
    at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)

    • end Original exception----

    at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:1422)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:1913)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createDeferredBeanMetaData(EJBContainerImpl.java:4475)
    at com.ibm.ws.runtime.component.EJBContainerImpl.access$000(EJBContainerImpl.java:408)
    at com.ibm.ws.runtime.component.EJBContainerImpl$3.run(EJBContainerImpl.java:4277)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4274)
    at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:343)
    at com.ibm.ejs.container.HomeOfHomes.internalCreateWrapper(HomeOfHomes.java:473)
    at com.ibm.ejs.container.EJSContainer.createWrapper(EJSContainer.java:4270)
    at com.ibm.ejs.container.WrapperManager.faultOnKey(WrapperManager.java:517)
    at com.ibm.ejs.util.cache.Cache.findAndFault(Cache.java:495)
    at com.ibm.ejs.container.WrapperManager.keyToObject(WrapperManager.java:471)
    at com.ibm.ejs.oa.EJSOAImpl.keyToObject(EJSOAImpl.java:552)
    at com.ibm.ejs.oa.EJSRootOAImpl.keyToObject(EJSRootOAImpl.java:270)
    at com.ibm.rmi.corba.ObjectManager.lookupServant(ObjectManager.java:103)
    at com.ibm.CORBA.iiop.ServerDelegate.getServant(ServerDelegate.java:299)
    at com.ibm.rmi.iiop.ORB.lookupLocalObject(ORB.java:559)
    at com.ibm.CORBA.iiop.ORB.lookupLocalObject(ORB.java:1639)
    at com.ibm.rmi.iiop.CDRInputStream.newObjRef(CDRInputStream.java:1171)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1148)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1083)
    at com.ibm.rmi.corba.IorURL.iorbytesToObjref(IorURL.java:106)
    at com.ibm.rmi.corba.IorURL.resolve(IorURL.java:94)
    at com.ibm.rmi.corba.ORB.objectURLToObject(ORB.java:3934)
    at com.ibm.CORBA.iiop.ORB.objectURLToObject(ORB.java:3405)
    at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:3823)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolveUnresolvedBinding(WsnOptimizedNamingImpl.java:2154)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolve_binding(WsnOptimizedNamingImpl.java:1895)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:599)
    at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
    at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:610)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:463)
    at com.ibm.rmi.iiop.ORB.process(ORB.java:439)
    at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)
    at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2300)
    at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
    at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
    Caused by: java.lang.LinkageError: LinkageError while defining class: com.sessionbeanexample.EJSStatelessCalculatorSessionBeanHomeBean_10b2a682
    Could not be defined due to: com/sessionbeanexample/EJSStatelessCalculatorSessionBeanHomeBean_10b2a682 (Unsupported major.minor version 49.0)
    This is often caused by having a class defined at multiple
    locations within the classloader hierarchy. Other potential causes
    include compiling against an older or newer version of the class
    that has an incompatible method signature.
    Dumping the current context classloader hierarchy:
    ==> indicates defining classloader
    [0] com.ibm.ws.bootstrap.ExtClassLoader@7ca493f3
    [1] sun.misc.Launcher$AppClassLoader@7cb613f3
    [2] sun.misc.Launcher$ExtClassLoader@7cb213f3
    ---Original exception---
    java.lang.UnsupportedClassVersionError: com/sessionbeanexample/EJSStatelessCalculatorSessionBeanHomeBean_10b2a682 (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
    at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:518)
    at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:365)
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:3646)
    at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:1310)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createBeanMetaData(EJBContainerImpl.java:1913)
    at com.ibm.ws.runtime.component.EJBContainerImpl.createDeferredBeanMetaData(EJBContainerImpl.java:4475)
    at com.ibm.ws.runtime.component.EJBContainerImpl.access$000(EJBContainerImpl.java:408)
    at com.ibm.ws.runtime.component.EJBContainerImpl$3.run(EJBContainerImpl.java:4277)
    at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
    at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4274)
    at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:343)
    at com.ibm.ejs.container.HomeOfHomes.internalCreateWrapper(HomeOfHomes.java:473)
    at com.ibm.ejs.container.EJSContainer.createWrapper(EJSContainer.java:4270)
    at com.ibm.ejs.container.WrapperManager.faultOnKey(WrapperManager.java:517)
    at com.ibm.ejs.util.cache.Cache.findAndFault(Cache.java:495)
    at com.ibm.ejs.container.WrapperManager.keyToObject(WrapperManager.java:471)
    at com.ibm.ejs.oa.EJSOAImpl.keyToObject(EJSOAImpl.java:552)
    at com.ibm.ejs.oa.EJSRootOAImpl.keyToObject(EJSRootOAImpl.java:270)
    at com.ibm.rmi.corba.ObjectManager.lookupServant(ObjectManager.java:103)
    at com.ibm.CORBA.iiop.ServerDelegate.getServant(ServerDelegate.java:299)
    at com.ibm.rmi.iiop.ORB.lookupLocalObject(ORB.java:559)
    at com.ibm.CORBA.iiop.ORB.lookupLocalObject(ORB.java:1639)
    at com.ibm.rmi.iiop.CDRInputStream.newObjRef(CDRInputStream.java:1171)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1148)
    at com.ibm.rmi.iiop.CDRInputStream.read_Object(CDRInputStream.java:1083)
    at com.ibm.rmi.corba.IorURL.iorbytesToObjref(IorURL.java:106)
    at com.ibm.rmi.corba.IorURL.resolve(IorURL.java:94)
    at com.ibm.rmi.corba.ORB.objectURLToObject(ORB.java:3934)
    at com.ibm.CORBA.iiop.ORB.objectURLToObject(ORB.java:3405)
    at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:3823)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolveUnresolvedBinding(WsnOptimizedNamingImpl.java:2154)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.resolve_binding(WsnOptimizedNamingImpl.java:1895)
    at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:599)
    at com.ibm.ws.naming.cosbase.WsnOptimizedNamingImplBase.resolve_complete_info(WsnOptimizedNamingImplBase.java:2213)
    at com.ibm.WsnOptimizedNaming._NamingContextImplBase._invoke(Unknown Source)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:610)
    at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:463)
    at com.ibm.rmi.iiop.ORB.process(ORB.java:439)
    at com.ibm.CORBA.iiop.ORB.process(ORB.java:1737)
    at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2300)
    at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:65)
    at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)

    • end Original exception----

    at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:565)
    at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code))
    at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:365)
    at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
    at com.ibm.ejs.container.BeanMetaData.loadExistedClass(BeanMetaData.java:3646)
    at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java:1310)
    ... 39 more

    Regards
    Suresh Panneer Selvam
  • SystemAdmin
    SystemAdmin
    1660 Posts

    Re: NamingContextPackage.NotFound

    ‏2009-04-13T09:30:49Z  
    After creating JNDI in websphere console.
    Double click on the Websphere server in RAD.It opens overview page of the server
    There will be two options
    1.Run server with resources within workspace
    2.Run server with resources on server.

    We have to opt secind option and save it and restart the server.This may solve your problem.

    If not, another check is

    open ejb-jar.xml file under references tab u have to add resource references giving the details of the resource added in server admin console.
    suppose ex: testJNDI i have created in server admin console
    so in ejb-jar.xml under refernces add tab is ther click it it will ask some values mention them.
    After adding that click on it, it will open websphere bindings ther u have to bind with the jndi name i.e testJNDI
    don't do copy paste as spaces will b there and it won't b loaded.
  • ashish.zan
    ashish.zan
    1 Post

    Re: NamingContextPackage.NotFound

    ‏2009-07-29T05:55:53Z  
    There could be two reason for that.
    1. If home and remote entries are not given in ejb-jar.xml. This restricts looking up by jndi remotely.
    <home>ejbs.UploadEjbSessionHome</home>
    <remote>ejbs.UploadEjbSession</remote>
    2. In admincosole --->Application servers > server1 > Ports --- Host section IP address of that system has not been given.