0 Replies Latest reply on Jun 6, 2006 1:07 PM by Reggie Hayes

    Error running Duke's Bank Client Application

    Reggie Hayes Newbie

      I am getting a NamedNotFoundException when I try to run standalone client of the Duke's Bank Application. The web client application works as expected. JBoss version 4.0.2.

      Thanks in advance.

      Buildfile: C:\Dev\j2eetutorial14\examples\bank\jboss-build.xml
      run-client:
      [echo] C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-antlr.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bcel.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-bsf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-log4j.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-oro.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-regexp.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-apache-resolver.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-logging.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-commons-net.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-icontract.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jai.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-javamail.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jdepend.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jmf.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-jsch.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-junit.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-launcher.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-netrexx.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-nodeps.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-starteam.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-stylebook.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-swing.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-trax.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-vaj.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-weblogic.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xalan1.jar;C:\eclipse\plugins\org.apache.ant_1.6.5\lib\ant-xslp.jar;C:\eclipse\configuration\org.eclipse.osgi\bundles\6\1\.cp\lib\remoteAnt.jar;C:\Program Files\Java\jdk1.5.0_06\lib\tools.jar;C:\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.2.jar
      [java] log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
      [java] log4j:WARN Please initialize the log4j system properly.
      [java] javax.naming.NameNotFoundException: bank-client
      [java] at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
      [java] at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:194)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:534)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      [java] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      [java] at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
      [java] at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:127)
      [java] at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:196)
      [java] at $Proxy1.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:114)
      [java] at $Proxy0.lookup(Unknown Source)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at com.sun.ebank.util.EJBGetter.getCustomerControllerHome(EJBGetter.java:69)
      [java] at com.sun.ebank.appclient.DataModel.<init>(DataModel.java:126)
      [java] at com.sun.ebank.appclient.EventHandle.<init>(EventHandle.java:51)
      [java] at com.sun.ebank.appclient.BankAdmin.main(BankAdmin.java:572)
      [java] javax.naming.NameNotFoundException: bank-client
      [java] at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
      [java] at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:194)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:324)
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
      [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
      [java] at java.lang.Thread.run(Thread.java:534)
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      [java] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
      [java] at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
      [java] at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:127)
      [java] at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:196)
      [java] at $Proxy1.lookup(Unknown Source)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:114)
      [java] at $Proxy0.lookup(Unknown Source)
      [java] at javax.naming.InitialContext.lookup(Unknown Source)
      [java] at com.sun.ebank.util.EJBGetter.getAccountControllerHome(EJBGetter.java:52)
      [java] at com.sun.ebank.appclient.DataModel.<init>(DataModel.java:135)
      [java] at com.sun.ebank.appclient.EventHandle.<init>(EventHandle.java:51)
      [java] at com.sun.ebank.appclient.BankAdmin.main(BankAdmin.java:572)