1 Reply Latest reply on Apr 22, 2005 4:55 AM by Buster Wang

    lookup in ha-jndi error

    Buster Wang Newbie

      hi,all
      In my cluster environment , I both use all configuration; I define my datasource like following;

      <local-tx-datasource>
      <jndi-name>cluster</jndi-name>

      <connection-url>jdbc:oracle:thin:@buster:1521:timogen</connection-url>

      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

      <user-name>test</user-name>

      test

      </local-tx-datasource>



      I can get datasource through InitailContext().look(java:cluster); That local jndi, the port is 1099 default;
      But as the jbossclustering suggestion, I want to get it from ha-jndi( 1100). then I get the error :
      javax.naming.NameNotFoundException: cluster not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      at org.jboss.ha.jndi.TreeHead.lookupLocally(TreeHead.java:272)
      at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:192)
      at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:131)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:187)
      at $Proxy69.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)

      anyone know why, please help me , I'm dying.