|
From: Leif M. <le...@ta...> - 2005-12-15 14:35:10
|
Karthikeyan,
Where are you from? That is a name I have not seen before? :-)
You didn't include the beginning of the log file, so I am not able
to see the command line
used to launch the JVM, and thus confirm that your
java.rmi.server.hostname property
is being set correctly. Verify that it is indeed being set.
You mentioned the wrapper.port property. That should have nothing
to do with your
RMI application, it is the port used by the Wrapper to communicate
between the JVM
and the Wrapper process. It is intentionally bound to the 127.0.0.1 IP
address to
prevent any security problems. I want to make sure that you are not
being confused
by the references to the Wrapper's backend socket in the debug log output?
There is nothing in the log that you posted which says what IP or
port the RMI server
is binding itself to.
Cheers,
Leif
karthikeyan d wrote:
> Hi All,
> i am using wrapper 3.1.2 to run an RMI engine as a service. i am able
> to start the engine at 127.0.0.1 <http://127.0.0.1> but i need to pass
> the ipaddress of the machine dynamically. i tried
> wrapper.java.additional.2=-Djava.rmi.server.hostname=10.25.2.16 but
> still the socket connection opens only in 127.0.0.1
> <http://127.0.0.1>. *is there any way to specify the hostname like we
> have for the port?* (wrapper.port is available). Even though the
> additional parameters passed using the wrapper.java.additional
> property appears in the command line, it is not changing the default
> behaviour. i.e socket opening on 127.0.0.1 <http://127.0.0.1>
>
> i am attaching a portion of the log file for your reference
>
> INFO | jvm 1 | 2005/12/15 11:39:21 | Loaded native library:
> wrapper.dll
> INFO | jvm 1 | 2005/12/15 11:39:21 | Calling native
> initialization method.
> INFO | jvm 1 | 2005/12/15 11:39:21 | Initializing WrapperManager
> native library.
> INFO | jvm 1 | 2005/12/15 11:39:21 | Java Executable:
> C:\j2sdk\bin\java.exe
> INFO | jvm 1 | 2005/12/15 11:39:21 | Windows version: 5.1.2600
> INFO | jvm 1 | 2005/12/15 11:39:21 | Java Version :
> 1.4.2_06-b03 Java HotSpot(TM) Client VM
> INFO | jvm 1 | 2005/12/15 11:39:21 | Java VM Vendor : Sun
> Microsystems Inc.
> INFO | jvm 1 | 2005/12/15 11:39:21 |
> INFO | jvm 1 | 2005/12/15 11:39:21 | Wrapper (Version 3.1.2 )
> http://wrapper.tanukisoftware.org <http://wrapper.tanukisoftware.org/>
> INFO | jvm 1 | 2005/12/15 11:39:21 |
> INFO | jvm 1 | 2005/12/15 11:39:21 |
> WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@1d8957f
> <mailto:org.tanukisoftware.wrapper.WrapperSimpleApp@1d8957f>, args[])
> called by thread: main
> INFO | jvm 1 | 2005/12/15 11:39:21 | Open socket to wrapper...
> INFO | jvm 1 | 2005/12/15 11:39:21 | Opened Socket
> INFO | jvm 1 | 2005/12/15 11:39:21 | Send a packet KEY :
> NbBxz7zjczvI57AK
> INFO | jvm 1 | 2005/12/15 11:39:21 |
> handleSocket(Socket[addr=/127.0.0.1,port=24000,localport=1929])
> DEBUG | wrapperp | 2005/12/15 11:39:21 | accepted a socket from
> 127.0.0.1 <http://127.0.0.1> on port 1929
> DEBUG | wrapperp | 2005/12/15 11:39:21 | read a packet KEY :
> NbBxz7zjczvI57AK
> DEBUG | wrapper | 2005/12/15 11:39:21 | Got key from JVM:
> NbBxz7zjczvI57AK
> DEBUG | wrapperp | 2005/12/15 11:39:21 | send a packet LOW_LOG_LEVEL : 1
> DEBUG | wrapperp | 2005/12/15 11:39:21 | send a packet PING_TIMEOUT : 30
> DEBUG | wrapper | 2005/12/15 11:39:21 | Start Application.
> DEBUG | wrapperp | 2005/12/15 11:39:21 | send a packet START : start
> INFO | jvm 1 | 2005/12/15 11:39:21 | Received a packet
> LOW_LOG_LEVEL : 1
> INFO | jvm 1 | 2005/12/15 11:39:21 | Wrapper Manager: LowLogLevel
> from Wrapper is 1
> INFO | jvm 1 | 2005/12/15 11:39:21 | Received a packet
> PING_TIMEOUT : 30
> INFO | jvm 1 | 2005/12/15 11:39:21 | Wrapper Manager: PingTimeout
> from Wrapper is 30000
> INFO | jvm 1 | 2005/12/15 11:39:21 | Received a packet START : start
> INFO | jvm 1 | 2005/12/15 11:39:21 | calling listener.start()
> INFO | jvm 1 | 2005/12/15 11:39:21 | WrapperSimpleApp: start(args)
> INFO | jvm 1 | 2005/12/15 11:39:21 | WrapperSimpleApp: invoking
> main method
> INFO | jvm 1 | 2005/12/15 11:39:23 | WrapperSimpleApp:
> start(args) end. Main Completed=false, exitCode=null
> INFO | jvm 1 | 2005/12/15 11:39:23 | returned from listener.start()
> INFO | jvm 1 | 2005/12/15 11:39:23 | Send a packet STARTED :
> DEBUG | wrapperp | 2005/12/15 11:39:23 | read a packet STARTED :
> DEBUG | wrapper | 2005/12/15 11:39:23 | JVM signalled that it was
> started.
> STATUS | wrapper | 2005/12/15 11:39:24 | RMI-ENGINE SERVICE started.
> DEBUG | wrapperp | 2005/12/15 11:39:25 | send a packet PING : ping
> INFO | jvm 1 | 2005/12/15 11:39:25 | Received a packet PING : ping
> INFO | jvm 1 | 2005/12/15 11:39:25 | Send a packet PING : ok
> DEBUG | wrapperp | 2005/12/15 11:39:25 | read a packet PING : ok
> DEBUG | wrapper | 2005/12/15 11:39:25 | Got ping response from JVM
> DEBUG | wrapperp | 2005/12/15 11:39:29 | send a packet PING : ping
> INFO | jvm 1 | 2005/12/15 11:39:29 | Received a packet PING : ping
> INFO | jvm 1 | 2005/12/15 11:39:29 | Send a packet PING : ok
> DEBUG | wrapperp | 2005/12/15 11:39:29 | read a packet PING : ok
> DEBUG | wrapper | 2005/12/15 11:39:29 | Got ping response from JVM
> DEBUG | wrapperp | 2005/12/15 11:39:33 | send a packet PING : ping
> INFO | jvm 1 | 2005/12/15 11:39:33 | Received a packet PING : ping
>
> Thanks & Regards,
> D.Karthikeyan.
>
>
>
>
>
|