JNDI - NameNotFoundException

Dear Madam/Sir,
We are developing an application which connects a LDAP server (iPlanet)
via JNDI. With JRE 1.4 our application have no problem, but with
either JRE 1.4.1 or 1.4.2 beta the application throws a NameNotFoundException, when I want performing any operation (lookup, getAttributes(), etc) on an IntialContext,
I would really appriciate some help in this matter.
Regards,
Daniel

switch off the Schema Check Enable option in the server configuration tab and check that u are giving the correct dn in the environment

Similar Messages

  • JNDI NameNotFoundException on ctx.lookup in WLS 6.1

    Hi dear all
    When deploying several entity beans in WLS 6.1 we always get a
    NameNotFoundException on the ctx.lookup for each bean. The JNDI name is
    defined (for every bean) in the IDE and also available in the WLS console
    (i.e. also in the deployment descriptor).
    Calling the ctx.lookup on the JNDI name for a DataSource defined in WLS does
    not raise an NameNotFoundException but a ClassCastException on the following
    "narrow" method (a DataSource object is not a bean --> so the WLS/VM runtime
    environment works right).
    Obviously, the JNDI names for the beans can not be determined/found
    correctly because of a deployment/version problem?!
    We're using JBuilder 5.0 and WLS 6.1SP1 on NT 4.0 (might be a/the problem?).
    Thx in advance
    Markus

    The java:comp/env namespace is specific to each individual component (i.e.,
    every component can potentially see a different set of objects with different
    names and/or the same objects with different names). For an EJB reference
    lookup, I believe that we automatically bind it under java:comp/env/ejb so if
    you specify the name of the ejb-ref as MyBeanHome in the ejb-jar.xml file, then
    the EJB whose deployment descriptor contains this ejb-ref entry can look up that
    referenced bean's home at java:comp/env/ejb/MyBeanHome. When you specify the
    JNDI name under which a bean will be deployed, we do not automatically make that
    bean home available to other beans in their respective java:comp/env/ejb
    namespaces (though they are accessible via the global JNDI name used to register
    the bean). To get this, you must create the ejb-ref entries and their
    corresponding ejb-reference-description entries in the deployment descriptors.
    Hope this helps,
    Robert
    Programit wrote:
    Ditto. I'm experiencing the same problem.
    I've spent a great deal of time working with this stuff. I believe Weblogic
    is lacking in their support here. It's obvious that something isn't working
    correctly, because everything was working fine before I installed WLS6.1
    with SP1. In fact, I have two systems running right now: The code and
    deployment descriptors are exactly the same. The System works fine in
    WLS6.1. The System does NOT work in WLS6.1 SP1 becuase of these damn Naming
    issues.
    We've deployed with the BEA RDBMS Security Realm -- without modification.
    Other than that, everything else is pretty standard. The JNDI tree on the
    Weblogic console doesn't work either. It says it can resolve "comp"!!!!
    "kefah Seyed" <[email protected]> wrote in message
    news:[email protected]...> Hi Markus
    I send this message because I have the same
    problem with JNDI. My envirronment is the
    same : I'm under nt 4.0 with weblogic 6.1
    but I use Together 5.5 and I tried to deploy manually the EJB.
    But it's always the same error.
    I tried under WebSphere and with a name
    like "java:comp/env/ejb-name" it work.
    So I tried all I could if you have a solution now please send me amessage.

  • JNDI NameNotFoundException in java proxy

    Hello All,
    We are using a.jsp file that uses client proxy to send data to XI. We have crated the required .ear and have deployed it to the J2EE server.
    The ejb-j2ee-engine.xml contains the following
    <ejb-j2ee-engine>
         <enterprise-beans>
              <enterprise-bean>
                   <ejb-name>JavaProxyTest</ejb-name>
                   <ejb-ref>
                        <ejb-ref-name>ejb/JavaProxyTest</ejb-ref-name>
                        <jndi-name>ejb/JavaProxyTest</jndi-name>
                   </ejb-ref>
                   <session-props/>
              </enterprise-bean>
         </enterprise-beans>
    </ejb-j2ee-engine>
    The java class that invokes the proxy bean has follwoing lines of code......
    Context ctx = null;
    Object ref = null;
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
    p.put(Context.PROVIDER_URL, "zhmscad5:50000");
    p.put(Context.SECURITY_PRINCIPAL, "qqsaraa");
    p.put(Context.SECURITY_CREDENTIALS, "patni123");
    System.out.println("1.0 -
    JavaProxy_BSER cONTEXT cREATED");
    ctx = new InitialContext(p);
    System.out.println("1.1 -
    JavaProxy_BSER cONTEXT cREATED");
    queryOutLocalHome =(USERNAMESYNCABSMI_PortTypeLocalHome)ctx.lookup("/localejbs/sap.com/JavaProxyTest");
    When we are trying to send the data through .jsp file we are getting the following error:
    Error:
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/ejb/JavaProxyTest
    I am unable to figure out what should be JNDI name and how to use it in the java file
    queryOutLocalHome =(USERNAMESYNCABSMI_PortTypeLocalHome)ctx.lookup("/localejbs/sap.com/JavaProxyTest");
    Any help on the above issue will be appriciated.
    Thanks
    Abinash

    Hello,
    I am calling ejb from .jsp use following code
    Properties props = new Properties();
    InitialContext ctx = new InitialContext();
    Object ob = ctx.lookup("java:comp/env/ejb/CalculatorBean");
    CalculatorHome home = (CalculatorHome) PortableRemoteObject.narrow(ob, CalculatorHome.class);
    calc = home.create();
    I have a error:
    java.lang.ClassNotFoundException: class com.sap.examples.calculator.beans.CalcProxy : com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at calculator, the whole lookup name is java:comp/env/ejb/CalculatorBean
    My ejb-jar.xml is:
    <display-name>
         CalculatorEjb</display-name>
         <enterprise-beans>
              <session>
                   <icon/>
                   <ejb-name>Calculator</ejb-name>
                   <home>com.sap.examples.calculator.CalculatorHome</home>
                   <remote>com.sap.examples.calculator.CalculatorRemote</remote>
                   <local-home>com.sap.examples.calculator.CalculatorLocalHome</local-home>
                   <local>com.sap.examples.calculator.CalculatorLocal</local>
                   <service-endpoint>com.sap.examples.calculator.CalculatorServiceEndpoint</service-endpoint>
                   <ejb-class>com.sap.examples.calculator.CalculatorBean</ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
                   <ejb-ref>
                        <ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
                        <ejb-ref-type>Session</ejb-ref-type>
                        <home>com.sap.examples.calculator.CalculatorHome</home>
                        <remote>com.sap.examples.calculator.CalculatorRemote</remote>
                        <ejb-link>Calculator</ejb-link>
                   </ejb-ref>
                   <ejb-local-ref>
                        <description/>
                        <ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
                        <ejb-ref-type>Session</ejb-ref-type>
                        <local-home>com.sap.examples.calculator.CalculatorLocalHome</local-home>
                        <local>com.sap.examples.calculator.CalculatorLocal</local>
                        <ejb-link>Calculator</ejb-link>
                   </ejb-local-ref>
              </session>
         </enterprise-beans>
    my ejb-j2ee-engine.xml is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-j2ee-engine
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="ejb-j2ee-engine.xsd">
         <enterprise-beans>
              <enterprise-bean>
                   <ejb-name>Calculator</ejb-name>
                   <ejb-ref>
                        <ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
                        <jndi-name>ejb/CalculatorBean</jndi-name>
                   </ejb-ref>
                   <ejb-local-ref>
                        <ejb-ref-name>ejb/CalculatorBean</ejb-ref-name>
                        <jndi-name>ejb/CalculatorBean</jndi-name>
                   </ejb-local-ref>
              </enterprise-bean>
         </enterprise-beans>
    </ejb-j2ee-engine>

  • Exception when trying to manipulate Data in an ADAM server

    Hi all,
    I'm having problems with trying to manipulate data in the ADAM instance on my machine. Currently I can bind to the ADAM instance (took me a while to figure out that ADAM isn't like other normal LDAP servers... you need to bind as a user which is a member of the Administrators group. So currently my url is ldap://localhost:389/O=Microsoft,C=US, user is cn=Mary,cn=Roles,o=Microsoft,c=US for example), but using java code all I can do is search for data and retrieve the results. However when it comes to modifying, adding and the like I keep getting a NameNotFoundException:
    org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001D2, problem 2001 (NO_OBJECT), data 0, best match of:
         'O=Microsoft,C=US'
    What is wrong? Why can I do searches but not anything else? Since this looks like a permissions issue with ADAM I haven't included any of my source code. Also this org.springframework.ldapNameNotFoundException is the same as JNDI NameNotFoundException, so even if you don't know anything about spring framework this isn't a cause for concern.
    Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I am having problem retrieving the users from the AD, can anyone help me with this with an example plz!

  • At startup: "Unable to resolve weblogic.jdbc.connectionPool"

    WLS 6.0 SP1 on Solaris 8
    Oracle 8.1.7 using JDBC Thin driver from Oracle.
    At startup of WebLogic, just after WLS creates the pool, I get a JNDI
    NameNotFoundException, as shown below.
    However, this does not seem to cause any problems for us.
    ####<Jun 20, 2001 10:16:17 AM GMT+10:00> <Info> <JDBC Pool ora817Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Pool: 'ora817Pool'
    will be tested at: '10 minute intervals.>
    ####<Jun 20, 2001 10:16:20 AM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:21 AM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:22 AM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:23 AM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:24 AM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:24 AM GMT+10:00> <Info> <Adapter> <pssydsun01>
    <myserver> <main> <system> <> <000000> <Exception thrown by rmi
    server(class weblogic.jndi.internal.RootNamingNode)
    [-4918694186591914732S:192.168.0.52:[7001,7001,7002,7002,7001,7002,-1]/9]:
    weblogic.jndi.internal.RootNamingNode@1fea8a>
    javax.naming.NameNotFoundException: Unable to resolve
    weblogic.jdbc.connectionPool Resolved: 'weblogic' Unresolved:'jdbc' ;
    remaining name 'connectionPool'
    at
    weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:803)
    at
    weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:209)
    at
    weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:129)
    at
    weblogic.jndi.internal.BasicNamingNode.list(BasicNamingNode.java:496)
    at
    weblogic.jndi.internal.BasicNamingNode.list(BasicNamingNode.java:500)
    at
    weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(RootNamingNode_WLSkel.java:230)

    Just installed SP2 on top of WebLogic Server 6.0 SP1.
    I still get the same message in weblogic.log while it was starting up:
    ####<Jun 28, 2001 12:53:00 PM GMT+10:00> <Info> <WebLogicServer>
    <pssydsun01> <myserver> <main> <> <> <000000> <IIOP subsystem enabled.>
    ####<Jun 28, 2001 12:53:10 PM GMT+10:00> <Info> <WebLogicServer>
    <pssydsun01> <myserver> <main> <system> <> <000214> <WebLogic Server (6.0
    Service Pack 2 05/24/2001 11:55:28 #117037) "myserver"
    (c) 1995, 1996, 1997, 1998 WebLogic, Inc.
    (c) 1999, 2000 BEA Systems, Inc.>
    ####<Jun 28, 2001 12:53:23 PM GMT+10:00> <Info> <JDBC Pool ora817Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Pool: 'ora817Pool'
    will be tested at: '10 minute intervals.>
    ####<Jun 28, 2001 12:53:26 PM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 28, 2001 12:53:27 PM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 28, 2001 12:53:28 PM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 28, 2001 12:53:29 PM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 28, 2001 12:53:30 PM GMT+10:00> <Info> <JDBC Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Connection for pool
    "ora817Pool" created.>
    ####<Jun 28, 2001 12:53:30 PM GMT+10:00> <Info> <Adapter> <pssydsun01>
    <myserver> <main> <system> <> <000000> <Exception thrown by rmi
    server(class weblogic.jndi.internal.RootNamingNode)
    [7126974831161186990S:192.168.0.52:[7001,7001,7002,7002,7001,7002,-1]/9]:
    weblogic.jndi.internal.RootNamingNode@504ec1>
    javax.naming.NameNotFoundException: Unable to resolve jdbc. Resolved: ''
    Unresolved:'jdbc' ; remaining name ''
    at
    weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:803)
    at
    weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:209)
    at
    weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:129)
    Daniel Hoppe wrote:
    Hi,
    it's a problem in SP1, doesn't seem to cause any harm. Afaik it's fixed
    in RP1 and in SP2
    Daniel
    -----Urspr?ngliche Nachricht-----
    Von: Jesus M. Salvo Jr. [mailto:[email protected]]
    Bereitgestellt: Mittwoch, 20. Juni 2001 02:17
    Bereitgestellt in: jndi
    Unterhaltung: At startup: "Unable to resolve
    weblogic.jdbc.connectionPool"
    Betreff: At startup: "Unable to resolve weblogic.jdbc.connectionPool"
    WLS 6.0 SP1 on Solaris 8
    Oracle 8.1.7 using JDBC Thin driver from Oracle.
    At startup of WebLogic, just after WLS creates the pool, I get a JNDI
    NameNotFoundException, as shown below.
    However, this does not seem to cause any problems for us.
    ####<Jun 20, 2001 10:16:17 AM GMT+10:00> <Info> <JDBC Pool
    ora817Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000> <Pool:
    'ora817Pool'
    will be tested at: '10 minute intervals.>
    ####<Jun 20, 2001 10:16:20 AM GMT+10:00> <Info> <JDBC
    Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000>
    <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:21 AM GMT+10:00> <Info> <JDBC
    Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000>
    <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:22 AM GMT+10:00> <Info> <JDBC
    Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000>
    <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:23 AM GMT+10:00> <Info> <JDBC
    Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000>
    <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:24 AM GMT+10:00> <Info> <JDBC
    Connection Pool>
    <pssydsun01> <myserver> <main> <system> <> <000000>
    <Connection for pool
    "ora817Pool" created.>
    ####<Jun 20, 2001 10:16:24 AM GMT+10:00> <Info> <Adapter>
    <pssydsun01>
    <myserver> <main> <system> <> <000000> <Exception thrown by rmi
    server(class weblogic.jndi.internal.RootNamingNode)
    [-4918694186591914732S:192.168.0.52:[7001,7001,7002,7002,7001,
    7002,-1]/9]:
    weblogic.jndi.internal.RootNamingNode@1fea8a>
    javax.naming.NameNotFoundException: Unable to resolve
    weblogic.jdbc.connectionPool Resolved: 'weblogic' Unresolved:'jdbc' ;
    remaining name 'connectionPool'
    at
    weblogic.jndi.internal.BasicNamingNode.newNameNotFoundExceptio
    n(BasicNamingNode.java:803)
    at
    weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingN
    ode.java:209)
    at
    weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamin
    gNode.java:129)
    at
    weblogic.jndi.internal.BasicNamingNode.list(BasicNamingNode.java:496)
    at
    weblogic.jndi.internal.BasicNamingNode.list(BasicNamingNode.java:500)
    at
    weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(RootNaming
    Node_WLSkel.java:230)

  • NameNotFoundException in JNDI lookup in for stand alone App client in EJB3

    I created an ejb module in netbeans 5.5 added a session facade (SavingsaccountFacade) and downloaded it to SunAppServer 9 (java EE 5). When I try and access the JNDI name in a stand alone java application client using the following code
    Context initial = new InitialContext();
    Object objref = initial.lookup("ejb/SavingsaccountFacade");
    I get the following errors:
    javax.naming.NameNotFoundException: SavingsaccountFacade not found
    at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:203)
    I have added j2ee.jar, appserv-rt.jar, and the dist/SavingsAccount.jar to the library. When I do a similar thing in J2EE1.4 it worked fine.
    Can somebody help please.
    Thanks

    Hi Dave,
    Here's our EJB FAQ entry that explains how EJB Global JNDI names are set in the
    Java EE 5 SDK and Glassfish. The most likely explanation is that the name used
    in the client does not match the one assigned to your EJB in sun-ejb-jar.xml.
    https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • JNDI lookup from OC4J to weblogic throws javax.naming.NameNotFoundException

    Hi All,
    We have the below setup in our production environment.
    EJB application is deployed in the Weblogic 10.3.4.0 Server on Sun Solaris. The EJB version is 3.0
    OC4J 10.2.0 is running on another Sun Solaris machine.
    There are 2 webservice applications WEBSERV1 & TestSoapEJB running on this OC4J container.
    We need to do lookup the EJBs deployed on the Weblogic server. For this we used the below logic in the web service's Stateless session bean:
    String weblogicURL = "";
    Properties props = new Properties();
    try
    props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("wl.properties"));
    weblogicURL     = props.getProperty("weblogicURL");     
    catch (FileNotFoundException e)
    e.printStackTrace();
    catch (IOException e)
    e.printStackTrace();
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.SECURITY_PRINCIPAL,"weblogic");
    ht.put(Context.SECURITY_CREDENTIALS,"weblogic654");
    ht.put(Context.PROVIDER_URL, weblogicURL);
    ctx = NamingManager.getInitialContext(ht) ;
    // tried using //ctx = new InitialContext(ht); same behavior.
    TestEJB.AdministratorEJB ejb = (TestEJB.AdministratorEJB) ctx.lookup("TestEJB#TestEJB.AdministratorEJB");
    ctx.close();
    When we first test first WEBSER1, the lookup is fine.
    But when we test the second webservice WEBSER2, the webservice name itself not able to lookup: It gives the below error:
    javax.naming.NameNotFoundException: remaining name: env/TestSoapEJB
    Below is the stack throws thrown on browser:
    500 Internal Server Error
    javax.naming.NameNotFoundException: remaining name: env/TestSoapEJB     
    at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:35)     
    at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:39)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59)     
    at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:64)     
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)     
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)     
    at javax.naming.InitialContext.lookup(InitialContext.java:392)     
    at oracle.j2ee.ws.SessionBeanRpcWebService.init(SessionBeanRpcWebService.java:65)     
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java:2354)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.findServlet(HttpApplication.java:4795)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2821)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:680)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     
    at java.lang.Thread.run(Thread.java:662)
    It seems that, the OC4J is looking in Weblogic context. But it should be looking in its own context. How to resolve this issue.
    The same case happens if i restart the OC4J and first test the TestSoapEJB the lookup is fine . But if i test the WEBSERV1 , it throws the same error as above. In short, if one of the webservices lookup is working fine, the other webservice is not working. At the same time only one webservice's lookup is working.
    Kindly help me to resolve this issue.
    regards,
    Zia
    Edited by: PT Expert on Sep 9, 2012 3:16 AM

    I work now more that two days on this error!!!
    -> I remade my complete jdev project, it did not work!
    -> I deleted the jdev/system/j2ee/oc4j/workspace dir
    -> I search for some .lock files
    -> and many more tries!!! But without success...
    Is there a way to reset the Embedded OC4J?

  • Jndi.persistent.exceptions.NameNotFoundException

    Hello Friends , Can any one help in understanding the following and error and why possibly this might have occured
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of tclmitsamuimainframe~wd.
    at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:584)
    at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:343)
    at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:266)
    at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:286)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at com.sap.engine.services.servlets_jsp.server.application.utils.NamingUtils.createNamingContexts(NamingUtils.java:69)
    at com.sap.engine.services.servlets_jsp.server.application.NamingResources.bindNamingResources(NamingResources.java:130)
    at com.sap.engine.services.servlets_jsp.server.application.ApplicationContext.init(ApplicationContext.java:902)
    at com.sap.engine.services.servlets_jsp.server.deploy.StartAction.createContext(StartAction.java:316)
    at com.sap.engine.services.servlets_jsp.server.deploy.StartAction.prepareStart(StartAction.java:153)
    at com.sap.engine.services.servlets_jsp.server.deploy.WebContainer.prepareStart(WebContainer.java:405)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:219)
    at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:185)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:491)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:256)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:400)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.regularStartApplicationLocalAndWait(DeployServiceImpl.java:3202)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:3194)
    at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:835)
    at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:580)
    at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:496)
    at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:166)
    at com.sap.engine.services.deploy.server.application.StartTransaction.beginLocal(StartTransaction.java:140)
    at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:482)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:256)
    at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:400)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.regularStartApplicationLocalAndWait(DeployServiceImpl.java:3202)
    at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:3194)
    at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.startApplicationLocalAndWait(DeployCommunicatorImpl.java:685)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.ApplicationManager.start(ApplicationManager.java:178)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.ApplicationManager.start(ApplicationManager.java:162)
    at com.sap.engine.services.webdynpro.WebDynproRuntimeServiceImpl.start(WebDynproRuntimeServiceImpl.java:425)
    at com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObject.start(DeployableObject.java:211)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.initApplicationDeployableObjectPart(RequestManager.java:555)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.initTask(RequestManager.java:477)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doInitWdEnvironment(RequestManager.java:150)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:205)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
    at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
    at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
    at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
    at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
    at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
    at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
    at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
    at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    our team is stuck finding reasons for this exception , so ay explaination is most welcomed
    Edited by: Smriti_techno on Apr 24, 2009 7:36 AM
    Edited by: Smriti_techno on Apr 24, 2009 7:37 AM

    Hi,
    Open Visual administrator, /usr/sap/<instance name>/JC00/j2ee/admin/go.bat
    • Navigate to server > services > JDBC connector > drivers in runtime tab
    • Click create new driver and specify a name, eg “SQL Server”)
    • Point to 3 .jar files which was installed by the MS jdbc driver before. The files are: msbase.jar, mssqlserver.jar and msutil.jar
    • The driver installation is now completed
    Create datasource
    • Click DataSources in the same path as above (server > services > JDBC connector)
    • Click “new driver or datasource”.
    • Fillout the following properties:
    o Main tab > DataSource Name: fx “MyDatasource”
    o Main tab > Add Alias: fx “MyAlias”
    o Main tab > Driver Name: SQL Server
    o Main tab > JDBC version: 2.0 (with XA support)
    o Main tab > Object factory: com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
    o Main tab > DataSource Type: ConnectionPoolDataSource
    o Main tab > CPDS classname: com.microsoft.jdbcx.sqlserver.SQLServerDataSource
    o Additional tab > add property “serverName = <your server>, fx localhost”
    o Additional tab > add property “databaseName = <your db>, fx Northwind”
    o Additional tab > add property “portNumber = <port>, fx 1433”
    o Additional tab > add property “user = <sql database user>, fx sa”
    o Additional tab > add property “password = <password>”
    • Save and restart J2EE. The datasource is now ready to use.
    /people/anilkumar.vippagunta2/blog/2007/02/20/reading-and-writing-images-from-sqlserver-in-webdynpro
    Regards
    Ayyapparaj

  • JNDI - javax.naming.NameNotFoundException

    Hi,*
    I am new to JNDI. I am trying to execute the below mentioned code eg given in help topic in sun website.
    ** Included JAR files[fscontext.jar, provideutil.jar]*
    ** passing /classes as command line argument as mentioned in that example.[not sure its the right way]*
    ** I am using RAD to compile and execute the application.*
    *import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import java.util.Hashtable;
    import com.sun.jndi.fscontext.RefFSContextFactory;
    public class Resolve {
    public static void main(String argv[]) {
    // The user should provide a file to lookup
    if (argv.length != 1) {
    System.+err+.println("Usage: java Resolve ");
    System.+exit+(-1);
    String name = argv[0];
    // Here we use the file system service provider
    Hashtable env = new Hashtable();
    env.put(Context.+INITIAL_CONTEXT_FACTORY+, "com.sun.jndi.fscontext.RefFSContextFactory");
    try {
    // Create the initial context
    Context ctx = new InitialContext(env);
    System.+out+.println("1");
    // Look up an object
    Object obj = ctx.lookup(name);
    System.+out+.println("2");
    // Print it out
    System.+out+.println(name + " is bound to: " + obj);
    // Close the context
    ctx.close();
    } catch (NamingException e) {
    System.+err+.println("Problem looking up " + name + ": " + e);
    Output:
    1
    Problem looking up /classes: javax.naming.NameNotFoundException:/classes
    Could you please help me resolving this issue.
    Thanks in advance.

    Hello:
    I display the full context of the connection factory in the application that publish the message:
    Full context is :
    Enviroment is : {java.naming.corba.orb=com.sun.enterprise.iiop.POAEJBORB@ec4a87}
    And in the web service when i create the initial context the full context is:
    Full context is : java:
    Enviroment is : {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, java.naming.factory.url.pkgs=org.apache.naming}
    How can i see the connection factory in the Web Service, because the connection factory was created in other Application?

  • JNDI lookup failed:javax.naming.NameNotFoundException

    Hello:
    I have a application (not web) that publish messages to a specific topic, i want to receive these messages in a Web Service, but when the web service make the call to a class that is the JMS Client it can't find the Connection factory Name that i create in the aplication.
    I want to know what i have to do,
    I work with J2EE1.3.1 and JMS1.0.2 for the application that publish the messages
    and Jwsdp1.1, tomcat 4 and j2sdk 1.4.0 for the web service.
    I create the connection factory with this command:
    j2eeadmin -addJmsFactory jms/DurableTopicB topic -props clientID=IdTopicB
    Then in the class that the web service invoke i trying to join with this:
    try {
    jndiContext =new InitialContext();
    }catch (NamingException e){
    System.err.println("Could not create JNDI API "+
    "context:"+e.toString());
    return;
    *Look up connection factory and topic.If either  
    *does not exist,exit.                            
    try {
    topicConnectionFactory =(TopicConnectionFactory)
    jndiContext.lookup(conFacName);
    }catch (NamingException e){                      
    System.err.println("JNDI API lookup failed:"+
    e.toString());
    return;
    //System.exit(1);
    But i receive a error message in the log of Tomcat:
    JNDI API lookup failed:javax.naming.NameNotFoundException: El nombre DurableTopicB no este asociado a este contexto
    Thanks

    Hello:
    I display the full context of the connection factory in the application that publish the message:
    Full context is :
    Enviroment is : {java.naming.corba.orb=com.sun.enterprise.iiop.POAEJBORB@ec4a87}
    And in the web service when i create the initial context the full context is:
    Full context is : java:
    Enviroment is : {java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, java.naming.factory.url.pkgs=org.apache.naming}
    How can i see the connection factory in the Web Service, because the connection factory was created in other Application?

  • NameNotFoundException when looking up datasource jndi from standalone clien

    Hi,
    I'm trying to lookup datasource jndi from standalone client, but always get exceptions.
    I configured an oralce datasource with jndi name "oracleDataSource". When looking it up in servlet, I can get connection.
    In order to test it from standalone client, I created following code:
    public class DataSourceTest
    * Attempt to authenticate the user.
    public static void main(String[] args)
    String datasource = null;
    if (args.length == 1 ) {
    datasource = args[0];
    System.out.println("datasource = "+datasource);
    if(datasource == null)
    datasource = "oracleDataSource";
    try{
    Connection conn = null;
    Properties env = new Properties();
    env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
    env.put("java.naming.provider.url", "iiop://localhost:3700");
    Context initial = new InitialContext(env);
    if(datasource != null){
    DataSource ds = (DataSource)initial.lookup(datasource);
    conn = ds.getConnection();
    if(conn != null){
    System.out.println("datasource is gotten.");
    conn.close();
    else
    System.out.println("datasource is error.");
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    When running, I get following exception:
    [java] datasource = oracleDataSource
    [java] Caught an unexpected exception!
    [java] javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
    [java] at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
    [java] at org.omg.CosNaming._NamingContextExtStub.resolve(_NamingContextExtStub.java:402)
    [java] at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:368)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:417)
    [java] at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:395)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    I also tried many other methods but always got exceptions. What's wrong with it? How can I lookup the datasource jndi from standalone client?
    Thanks in advance!

    Thank Tuan!
    I tried. When running, the server will read security.properties and ejb.properties. But I didn't use ejb and I didn't know how to configure ejb.properties, so I let ejb.properties empty. The security.properties is as following:
    client.sendpassword=true
    server.trustedhosts=*
    interop.ssl.required=false
    interop.authRequired.enabled=false
    interop.nameservice.ssl.required=false
    The result is:
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:63)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.tbcn.ceap.test.cilent.DataSourceTest.main(DataSourceTest.java:42)
    Also, I tried it with ACC. In sun sample ConverterClient.java under rmi-iiop/simple, I added following code under with ACC and without ACC. With ACC, I can get connection. But without ACC, I can't get it.
    try{
              DataSource ds = (DataSource)initial.lookup("oracleDataSource");
              Connection conn = ds.getConnection();
              if(conn != null){
              System.out.println("datasource oracleDataSource gotten.");
              conn.close();
              else
              System.out.println("oracleDataSource is error.");
    Does it means that we must lookup datasource jndi with ACC?

  • NameNotFoundException when looking up JNDI

    Hi,
    I'm getting the same naming exception you can see @ http://www.coderanch.com/t/51509/Struts/Calling-EJB-action-class when looking up an ejb object.
    How should I lookup the object?
    Thank you in advance,
        Michael Jones

    Hello
    Please try the following.
    Do annotate the EJB with the corresponding name in order to identify it later on:
    @Stateful(name = "MyLostEJB")
    public MyLostEJB implements LostEJBRemoteHome, LostEJBLocalHome
          public String sayHello(){ return "Hello"; }
    And then:
    LostEJBRemoteHome myEjb= null;
    myEjb= (LostEJBRemoteHome ) new InitialContext().lookup("MyLostEJB/remote");
        myEjb.sayHello();
    I hope it helps
    Alejandro

  • Unable to resolve JNDI DataSource in weblogic 12c When you upgrade web application

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

    I create a datasource which jndi name is jdbc/allianzB2CDataSource and the target is AdminServer ,and i deploy a web application in AdminServer.In that web application,the code(base on spring framework) is:
    public static DataSource getJndiDataSource(String name) {
      JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();
      Properties jndiEnvironment = new Properties();
      jndiEnvironment.put("java.naming.factory.initial",
      "weblogic.jndi.WLInitialContextFactory");
      dsLookup.setJndiEnvironment(jndiEnvironment);
      try {
      dsLookup.setResourceRef(false);
      return dsLookup.getDataSource(name);
      } catch (Exception e) {
      dsLookup.setResourceRef(true);
      return dsLookup.getDataSource(name);
    And the parameter is jdbc/allianzB2CDataSource,everything work fine,but when i restart or upgrate the web application,i got the error like this:
    javax.naming.NameNotFoundException: Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'
    Unable to resolve 'jdbc.allianzB2CDataSource'. Resolved 'jdbc'; remaining name 'allianzB2CDataSource'

  • Easy JNDI + Connection Pool Question

    This is an easy question:
    Once I get the object represented by my connection pool from the
    Weblogic JNDI tree, how do I get a connection from the returned object
    of type weblogic.common.internal.ResourceAllocator?
    I keep getting ClassCastExceptions. I have tried
    ConnectionPoolDataSource, Connection, and DataSource.
    String conPool = "weblogic.jdbc.connectionPool.demoPool";
    try {
    Object obj = ctx.lookup(conPool);
    msg(DEBUG,"FROM LOOKUP" + obj.getClass().getName());
    //DataSource ds = (DataSource)ctx.lookup(conPool);
    //con = ds.getConnection();
    } catch (NameNotFoundException e) {
    // binding does not exist
    msg(ERROR,"BINDING DOES NOT EXIST",e);
    } catch (NamingException e) {
    // a failure occurred
    msg(ERROR,"NAMING FAILURE OCCURED",e);
    } catch (Exception e) {
    msg(ERROR,"SOME RANDOM ERROR",e);
    Thanks,
    -Jacob

    "Jacob Meushaw" wrote in message
    Once I get the object represented by my connection pool from the
    Weblogic JNDI tree, how do I get a connection from the returned object
    of type weblogic.common.internal.ResourceAllocator?
    I keep getting ClassCastExceptions.
    DataSource ds = (DataSource)ctx.lookup(conPool);I think, you must use narrow operation:
    Object reference = ctx.lookup(conPool);
    DataSource ds =
    (DataSource) PortableRemoteObject.narrow (ds,DataSource.class);
    I haven't got time to check it, but I hope that works.
    Wojtek

  • EJB 3.0 and jndi lookup (simple question)

    hi all,
    i am newbie on Weblogic Application Server and i have some issues,
    i have weblogic application server 10.0, also i have oracle timesten in-memory database, i have configured datasource and deploy my ejb 3.0 application, but i could not done jndi lookup?
    here is my example:
    1. one stateless session bean :
    import javax.ejb.Remote;
    @Remote
    public interface InsertSubscriber {
         public void insertSubscriber(SubscriberT subscriberT);
    } 2. here is it's implementation :
    @Remote(InsertSubscriber.class)
    @Stateless
    public class InsertSubscriberBean implements InsertSubscriber {
         @PersistenceContext(unitName = "TimesTenDS")
         private EntityManager oracleManager;
         public void insertSubscriber(SubscriberT subscriber)
              try {
                   System.out.println("started");
                   oracleManager.persist(subscriber);
                   System.out.println("end");
              } catch (Exception e) {
                   e.printStackTrace();
    }3 and my test client :
    public class Client {
         public static void main(String[] args) {
              Context ctx = null;
              Hashtable ht = new Hashtable();
              ht.put(Context.INITIAL_CONTEXT_FACTORY,
                        "weblogic.jndi.WLInitialContextFactory");
              ht.put(Context.PROVIDER_URL, "t3://192.9.200.222:7001");
              try {
                   ctx = new InitialContext(ht);
                   InsertSubscriber usagefasade = (InsertSubscriber) ctx
                             .lookup("ejb.InsertSubscriberBean");               
              } catch (NamingException e) {
                   e.printStackTrace();
              } finally {
                   try {
                        ctx.close();
                   } catch (Exception e) {
                        e.printStackTrace();
    }what i did incorrect ???
    i got error like this : Name not fount exception
    when i tried to view jndi tree on weblogic server application console i found this :
         Binding Name:     
    TimestenExampleTimestenExample_jarInsertSubscriberBean_InsertSubscriber     
         Class:     
    test.InsertSubscriberBean_o7jk9u_InsertSubscriberImpl_1000_WLStub     
         Hash Code:     
    286     
         toString Results:     
    weblogic.rmi.internal.CollocatedRemoteRef - hostID: '2929168367193491522S::billing_domain:AdminServer', oid: '286', channel: 'null'what does it mean how i can done lookup to jndi ?
    Regards,
    Paata Lominadze,
    Magticom LTD.
    Georgia.

    Hi All,
    I am using the weblogic cluster with session replication and EJB 2.0 with Local entity beans.
    for fail-over session should be replicated to another server so we can achive the same session if 1st server fails.
    Suppose i m using two managed server(server1,server2) in the cluster.I am storing the object of class ABC into session and object contains the instance of Local-EntityBean home but i put that as a transient.I have also override the readObject and write object method.
    when write object is called on 1st server,readObject method should be called on second server so we will be sure that session is replicating properly.
    pleaase find the code below : -
    public IssuerPageBean() {
    initEJB();
    private void readObject(java.io.ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    initEJB();
    initializeCommonObject();
    private void writeObject(java.io.ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    private void initEJB() {
    try {
    ic = new InitialContext();
    issuerHome = (LocalIssuerHome) ic.lookup("java:comp/env/Issuer");
    } catch (NamingException e) {
    e.printStackTrace();
    in my case if i am calling the constructor IssuerPageBean(),it calls the initEJB() method and lookeup the entity local home properly but when readObject method is called on another server only initEJB() method is called directly and getting the exception below :
    WARNING: Error during create -
    javax.naming.NameNotFoundException: remaining name: env/ejb/Client
    at weblogic.j2eeclient.SimpleContext.resolve(Ljavax/naming/Name;Z)Ljavax/naming/Context;(SimpleContext.java:35)
    at weblogic.j2eeclient.SimpleContext.resolve(Ljavax/naming/Name;)Ljavax/naming/Context;(SimpleContext.java:39)
    at weblogic.j2eeclient.SimpleContext.lookup(Ljavax/naming/Name;)Ljava/lang/Object;(SimpleContext.java:57)
    at weblogic.j2eeclient.SimpleContext.lookup(Ljavax/naming/Name;)Ljava/lang/Object;(SimpleContext.java:57)
    at weblogic.j2eeclient.SimpleContext.lookup(Ljava/lang/String;)Ljava/lang/Object;(SimpleContext.java:62)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(Ljava/lang/String;)Ljava/lang/Object;(ReadOnlyCont
    extWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(Ljava/lang/String;)Ljava/lang/Object;(AbstractURLContext.jav
    a:130)
    at javax.naming.InitialContext.lookup(Ljava/lang/String;)Ljava/lang/Object;(InitialContext.java:347)
    at com.lb.equities.veda.tools.salesvault.jsp.ClientPageBean.initEJB()V(ClientPageBean.java:218)
    at com.lb.equities.veda.tools.salesvault.jsp.ClientPageBean.readObject(Ljava/io/ObjectInputStream;)V(ClientPageB
    ean.java:191)
    at java.lang.LangAccessImpl.readObject(Ljava/lang/Class;Ljava/lang/Object;Ljava/io/ObjectInputStream;)V(Unknown
    Source)
    at java.io.ObjectStreamClass.invokeReadObject(Ljava/lang/Object;Ljava/io/ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava/lang/Object;Ljava/io/ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava/lang/Object;(Unknown Source)
    at java.util.HashMap.readObject(Ljava/io/ObjectInputStream;)V(Unknown Source)
    at java.lang.LangAccessImpl.readObject(Ljava/lang/Class;Ljava/lang/Object;Ljava/io/ObjectInputStream;)V(Unknown
    Source)
    at java.io.ObjectStreamClass.invokeReadObject(Ljava/lang/Object;Ljava/io/ObjectInputStream;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava/lang/Object;Ljava/io/ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava/lang/Object;Ljava/io/ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava/lang/Object;Ljava/io/ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava/lang/Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava/lang/Object;(Unknown Source)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject()Ljava/lang/Object;(ChunkedObjectInputStream.jav
    a:120)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(Ljava/lang/Class;)Ljava/lang/Object;(MsgAbbrevInputStream.java:
    121)
    at weblogic.cluster.replication.ReplicationManager_WLSkel.invoke(ILweblogic/rmi/spi/InboundRequest;Lweblogic/rmi
    /spi/OutboundResponse;Ljava/lang/Object;)Lweblogic/rmi/spi/OutboundResponse;(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(Lweblogic/rmi/extensions/server/RuntimeMethodDescriptor;Lweblogic
    /rmi/spi/InboundRequest;Lweblogic/rmi/spi/OutboundResponse;)V(BasicServerRef.java:492)
    Please help .
    Thanks in Advance.
    Edited by hforever at 03/04/2008 7:28 AM

Maybe you are looking for