delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:date:message-id:subject:from:to | |
:content-type; q=dns; s=default; b=NyzLy8bJNENhzxEA6ADHiH5iBXHeD | |
h1hGtaVAYOd0jG5r1GckbTzf+63KDnSAp7V1XGjeCRwmaEsvegSv/jxc4fH/GpQw | |
4zRkGhgRhaXXnZgQJTBMdRFYzVtL6yczvne1wEbkl5WeLbHwQIGx0XlGB/7vSvlp | |
G31deH7iGOzxP4= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:date:message-id:subject:from:to | |
:content-type; s=default; bh=rbWb9V+76N7orLZCyzYv6PpRpvA=; b=asj | |
NVP8onbA4XeTi732JgDzzMm8Fjmbre6SFjk6KdgDdsl6fpLDK1FC9Koyt7upeuXk | |
f/oBNGGZ+4ngoiM1F4P84adeCexL0MKqDiwByu5o46p3wN8Rv5ZWsGPIpCfbxoZ4 | |
O1x6BWwRNay8Pv9RPSbWXXuXkIDrj+MtmEdCLr6w= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=4.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-vc0-f173.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.58.109.71 with SMTP id hq7mr4784302veb.26.1401985356621; Thu, 05 Jun 2014 09:22:36 -0700 (PDT) |
Date: | Thu, 5 Jun 2014 09:22:36 -0700 |
Message-ID: | <CAK03LAoZUgeOaH-n9AuxfF7b4WAz7ij4jTDOPEWkyk5==FJukQ@mail.gmail.com> |
Subject: | using cygwin inetd to start a script on a server to run a java application |
From: | annie s <anne DOT stockley AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Hi, I am following the oracle doc http://docs.oracle.com/javase/7/docs/technotes/guides/rmi/inetd/launch-service.html (solaris specific) I have two windows 2012 server VMs (firewalls off). I believe that I have configured cygwin inetd correctly by following the directions in C:\cygwin64\usr\share\doc\Cygwin\inetutils-server.README, running /usr/bin/iu-config using values ntsec and creating user cyg_server on the server. I start and stop inetd using cygrunsrv -S inetd and cygrunsrv -E inetd. I have cygwin inetd ftp working on the machines. What I am trying to do is to get the client to call an inetd service on the server which in turn runs a script on the server which sets up the environment and calls a java class called "Server". My C:\cygwin64\etc\inetd.config on the server ftp stream tcp nowait annie /usr/sbin/ftpd ftpd example-server stream tcp wait cyg_server /nms/bin/test/test test c:\windows\system32\drivers\etc\services on the server example-server 9999/tcp i think the hosts file on both the server and the client is corrently configured because ftp between the client and the server works the test script on the client sets up the environment and then calls /cygdrive/c/Apps/Java/jdk1.7.0_51/bin/java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true -classpath c:\\cygwin64\\nms\\bin jmini.nms.console.inetd.Server 9999 &> /tmp/tmp.dat Using Process Explorer I can see the client calling the cygwin inetd service, and a java exe being created. The Server code is called but the client timesout. tmp.dat on the server contains proxy Proxy[ServiceInterface,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[192.168.100.10:57036](local),objID:[27e13e26:14662d7e06e:-7fff, -976951803438894493]]]]] server: failed to initialize registry proxy Proxy[ServiceInterface,RemoteObjectInvocationHandler[UnicastRef [liveRef: [endpoint:[192.168.100.10:57036](local),objID:[27e13e26:14662d7e06e:-7fff, -976951803438894493]]]]] on port 9999 Exception java.net.BindException: Address already in use: JVM_Bind Looking at TCP view on start up there are two inetd processes, the ftp process (port 21) and the example-server (port 9999) process. when i start the client there are three inetd processes, the ftp process (port 21), the example-server (port 9999) process remote address the server, and the example-server (port 9999) process remote address the client. the java process starts on a port that is not shared with any other process. and the client dies with a java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketTimeoutException: Read timed out My questions are can you see how I have misconfigured this? Have you got a cygwin inetd process running a script/ java process and could you share the secret sauce with me? Thank you in advance Annie -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |