L.S., Looking at the code, I think the -a parameter is for setting the port number instead of the IP address. You're probably getting the exception because the IP address (with the . in it) can not be converted to an integer. At this point in time, I would definitely recommend you to take a look at the latest 4.2.0 snapshots (for Apache) or release candidates -- final releases are planned in the very short term. This version is using the latest Apache Felix Karaf (which emerged from the ServiceMix Kernel code you're using now) with a lot of bug fixes and improvements in it (I even think there's a few that apply very specifically to your use, with linux servers and remote connections).
You can download the latest snapshot from https://repository.apache.org/content/groups/snapshots-group/org/apache/servicemix/apache-servicemix/4.1.0-SNAPSHOT/ Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On 12 February 2010 13:44, gsanz <[email protected]> wrote: > > Hello I have installed fuse ESB in a machine with LInux installed ( Ubuntu > 9.04 ) . > The remote machine has the following IP address : 158.42.54.5 . > > In the remote machine The contents of the file : > /opt/iona/fuse-esb-4.0.0.4/etc/org.apache.servicemix.management.cfg are the > following : > > rmiRegistryPort = 1099 > jmxLogin = smx > jmxPassword = smx > serviceUrl = service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi > daemon = true > threaded = true > objectName = connector:name=rmi > > > IN the remote machine The contens of the file > /opt/iona/fuse-esb-4.0.0.4/etc/org.apache.servicemix.shell.cfg are the > following : > > startLocalConsole=${servicemix.startLocalConsole} > startRemoteShell=${servicemix.startRemoteShell} > remoteShellLocation=tcp://0.0.0.0:8101/ > > > > > > I try to connect to the remote machine machine from other machine which has > Windows XP SP 2 installed and FUSE ESB 4.0.0.4 installed but the remote > connection is not possible . > I follow this link > http://servicemix.apache.org/kernel/42-remote-console.html and exec > > C:\iona\fuse-esb-4.0.0.4\lib>java -jar servicemix-client.jar -a 158.42.54.5 > -u smx -p smx > > And I obtain the following result : > > java.lang.IllegalArgumentException: port out of range:-1 > at java.net.InetSocketAddress.<init>(InetSocketAddress.java:83) > at > org.apache.geronimo.gshell.whisper.transport.tcp.TcpAddressFactory.cr > eate(TcpAddressFactory.java:42) > at > org.apache.geronimo.gshell.whisper.transport.tcp.TcpAddressFactory.cr > eate(TcpAddressFactory.java:35) > at > org.apache.geronimo.gshell.whisper.transport.base.BaseTransport.conne > ct(BaseTransport.java:114) > at > org.apache.geronimo.gshell.whisper.transport.base.SpringBaseTransport > Factory.connect(SpringBaseTransportFactory.java:75) > at > org.apache.geronimo.gshell.whisper.transport.base.SpringBaseTransport > Factory.connect(SpringBaseTransportFactory.java:35) > at > org.apache.servicemix.kernel.client.RshClient.connect(RshClient.java: > 96) > at org.apache.servicemix.kernel.client.Main.main(Main.java:88) > > > It is supposed that the user and password for fuse-esb are jmx . I have also > tried with the user and password of the machine and I also have the same > problem : > java -jar servicemix-client.jar -a 158.42.54.5 -u user_machine -p > password_machine > > > It is supposed that it is a mistake in the file configuration , but I do no > t know where the mistake is .In the file of the remote machine > org.apache.servicemix.shell.cfg I have tried to change the > remoteShellLocation to tcp://158.42.54.5:8101/ but I have the same mistake > and fuse can not be started well. > > Can anybody help me ? > Thanks > -- > View this message in context: > http://old.nabble.com/Problems-with-remote-connection-with-FUSE-4.0.0.4-tp27563009p27563009.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
