1 Reply Latest reply on May 11, 2004 6:12 AM by Darran Lofthouse

    Problem configuring jboss3.0.6 on a Multi Homed RH9 Linux

    andreacervi Newbie

      Hi Guys,

      We are installing and configurig a jboss3.0.6 on a RH9 linux with the j2sdk1.4.2_04.

      The RH linux is multi homed based (2 cards).

      We modified the jndi.properties file in the following way:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      # Do NOT uncomment this line as it causes in VM calls to go over
      # RMI!
      java.naming.provider.url=xxx.xxx.xxx.xxx

      Everytime the client tries to execute the lookup of a bean the following exception rise:

      iotools.test.MainTest$8.actionPerformed(MainTest.java:754)
      javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
      javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
      javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
      java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      java.awt.Component.processMouseEvent(Component.java:5100)
      java.awt.Component.processEvent(Component.java:4897)
      java.awt.Container.processEvent(Container.java:1569)
      java.awt.Component.dispatchEventImpl(Component.java:3615)
      java.awt.Container.dispatchEventImpl(Container.java:1627)
      java.awt.Component.dispatchEvent(Component.java:3477)
      java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
      java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
      java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
      java.awt.Container.dispatchEventImpl(Container.java:1613)
      java.awt.Window.dispatchEventImpl(Window.java:1606)
      java.awt.Component.dispatchEvent(Component.java:3477)
      java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
      java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
      java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
      java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
      java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

      iotools.entityFramework.EntityRepositoryDBBeanBased.connect(EntityRepositoryDBBeanBased.java:97)
      iotools.entityFramework.EntityRepositoryDBBeanBased.(EntityRepositoryDBBeanBased.java:45)
      iotools.coreUI.DBConnectSubscriber.doAction(DBConnectSubscriber.java:71)
      iotools.coreUI.launchService.LaunchService.run(LaunchService.java:34)
      java.lang.Thread.run(Thread.java:534)

      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:620)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
      javax.naming.InitialContext.lookup(InitialContext.java:347)
      iotools.entityFramework.EntityRepositoryDBBeanBased.connect(EntityRepositoryDBBeanBased.java:80)
      iotools.entityFramework.EntityRepositoryDBBeanBased.(EntityRepositoryDBBeanBased.java:45)
      iotools.coreUI.DBConnectSubscriber.doAction(DBConnectSubscriber.java:71)
      iotools.coreUI.launchService.LaunchService.run(LaunchService.java:34)
      java.lang.Thread.run(Thread.java:534)

      sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
      sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
      org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
      javax.naming.InitialContext.lookup(InitialContext.java:347)
      iotools.entityFramework.EntityRepositoryDBBeanBased.connect(EntityRepositoryDBBeanBased.java:80)
      iotools.entityFramework.EntityRepositoryDBBeanBased.(EntityRepositoryDBBeanBased.java:45)
      iotools.coreUI.DBConnectSubscriber.doAction(DBConnectSubscriber.java:71)
      iotools.coreUI.launchService.LaunchService.run(LaunchService.java:34)
      java.lang.Thread.run(Thread.java:534)

      java.net.PlainSocketImpl.socketConnect(Native Method)
      java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      java.net.Socket.connect(Socket.java:452)
      java.net.Socket.connect(Socket.java:402)
      java.net.Socket.(Socket.java:309)
      java.net.Socket.(Socket.java:124)
      sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
      sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
      sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
      org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484)
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463)
      javax.naming.InitialContext.lookup(InitialContext.java:347)
      iotools.entityFramework.EntityRepositoryDBBeanBased.connect(EntityRepositoryDBBeanBased.java:80)
      iotools.entityFramework.EntityRepositoryDBBeanBased.(EntityRepositoryDBBeanBased.java:45)
      iotools.coreUI.DBConnectSubscriber.doAction(DBConnectSubscriber.java:71)
      iotools.coreUI.launchService.LaunchService.run(LaunchService.java:34)
      java.lang.Thread.run(Thread.java:534)

      The problem seams that the server internally dosen't use the address in the jndi.properties file but use the 127.0.0.1.

      Does anyone help Us?

      Best Regards,

      Andrea