Norberto Meijome wrote:
> do you have any firewall in place dropping packets to that tcp port? (dropping,
> instead of blocking, as block would send a RST or other, giving an almost
> instant failure)
>

No, no firewall:

hp# ipfw show
65535 59810 27838587 allow ip from any to any
hp#

BTW I can locate registry, I just can't register a service.

This is my main method:

public static void main(String[] args) {
try {
log.info("Starting server...");

log.debug("Creating instance of server class");
RMIRepositoryServer server = new
RMIRepositoryServerImpl();

log.debug("Locating registry");
Registry registry = LocateRegistry.getRegistry();

log.debug("Rebinding with name: " + SERVER_NAME);
registry.bind(SERVER_NAME, server);

log.info("Server bound to registry, ready for
connections.");
}
catch (Exception e) {
log.info("Exception in main()", e);
}
}

And the results (from the ant task):

run_server:
[java] Executing '/usr/local/jdk1.5.0/jre/bin/java' with arguments:
[java]
'-Djava.rmi.server.codebase=http://localhost/~miki/repobrowser-stubs.jar'
[java] '-Djava.rmi.server.hostname=localhost'
[java] '-classpath'
[java]
'/home/miki/workspace/RepoBrowser/build/build-server/repobrowser-server.jar:/home/m
iki/workspace/RepoBrowser/build/build-core/repobrowser-core.jar:/home/miki/workspace/RepoBrowse
r/build/build-core:/home/miki/workspace/RepoBrowser/build/build-api/repobrowser-api.jar:/home/m
iki/workspace/RepoBrowser/lib/antlr-2.7.6rc1.jar:/home/miki/workspace/RepoBrowser/lib/asm-attrs
..jar:/home/miki/workspace/RepoBrowser/lib/asm.jar:/home/miki/workspace/RepoBrowser/lib/cglib-2.
1.3.jar:/home/miki/workspace/RepoBrowser/lib/commons-beanutils.jar:/home/miki/workspace/RepoBro
wser/lib/commons-collections-3.2.jar:/home/miki/workspace/RepoBrowser/lib/commons-digester.jar:
/home/miki/workspace/RepoBrowser/lib/commons-lang-2.1.jar:/home/miki/workspace/RepoBrowser/lib/
commons-logging.jar:/home/miki/workspace/RepoBrowser/lib/dom4j-1.6.1.jar:/home/miki/workspace/R
epoBrowser/lib/ehcache-1.2.3.jar:/home/miki/workspace/RepoBrowser/lib/hibernate3.jar:/home/miki
/workspace/RepoBrowser/lib/jsp-api.jar:/home/miki/workspace/RepoBrowser/lib/jta.jar:/home/miki/
workspace/RepoBrowser/lib/log4j-1.2.11.jar:/home/miki/workspace/RepoBrowser/lib/postgresql-8.1-
405.jdbc3.jar:/home/miki/workspace/RepoBrowser/lib/servlet-api.jar'
[java] 'xxxserver.rmi.RMIRepositoryServerImpl'
[java]
[java] The ' characters around the executable and arguments are
[java] not part of the command.
[java] INFO 2006-10-31 00:28:00 RMIRepositoryServerImpl:main -
Starting server...
[java] DEBUG 2006-10-31 00:28:00 RMIRepositoryServerImpl:main -
Creating instance of serve
r class
[java] DEBUG 2006-10-31 00:28:09 RMIRepositoryServerImpl:main -
Locating registry
[java] DEBUG 2006-10-31 00:28:09 RMIRepositoryServerImpl:main -
Rebinding with name: RMIRe
positoryServer
[java] INFO 2006-10-31 00:29:09 RMIRepositoryServerImpl:main -
Exception in main()
[java] java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exc
eption is:
[java] java.net.SocketTimeoutException: Read timed out
[java] at
sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:274)
[java] at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCP Channel.java:171)
[java] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java: 306)
[java] at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
[java] at xxx.server.rmi.RMIRepositoryServerImpl.main(RMIRep osito
ryServerImpl.java:71)
[java] Caused by: java.net.SocketTimeoutException: Read timed out
[java] at java.net.SocketInputStream.socketRead0(Native Method)
[java] at
java.net.SocketInputStream.read(SocketInputStream. java:129)
[java] at
java.io.BufferedInputStream.fill(BufferedInputStre am.java:218)
[java] at
java.io.BufferedInputStream.read(BufferedInputStre am.java:235)
[java] at
java.io.DataInputStream.readByte(DataInputStream.j ava:241)
[java] at
sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:215)
[java] ... 4 more


_______________________________________________
freebsd-java@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"