Connection Refused Error when running run_protege_server
Posted: 26 Jul 2011, 16:01
I have a new installation of Essential running on Windows Server 2008 R2 64 bit, with the following software versions:
Protege 3.4.6 (Build 613)
Java VM 6.0.250.6
Apache Tomcat/6.0.32
Any help with the problem below would be appreciated.
I can run successfully in standalone mode but when I try to start a serve process using run_protege_server.bat I get an RMI Error (see very end of post)
The text of my batch file is as follows:
-----------------BEGIN----------------------------
set JDKBIN="C:\Program Files\Java\jre6\bin"
rem Note that a space character in the following path must be replaced with '%%20' in
rem a batch file. If you are typing directly on the command line, a space must be
rem replaced with '%20'.
set CODEBASE_URL=file:/c:/program%%20files/protege_3.4.6/protege.jar
start /D%JDKBIN% /min rmiregistry.exe
set CLASSPATH=protege.jar;looks.jar;unicode_panel.jar;driver.jar;driver0.jar;driver1.jar
set MAINCLASS=edu.stanford.smi.protege.server.Server
set METAPROJECT=/D:/EssentialAm/Repository/essential_metamodel/essential_baseline_v1.2.pprj
set MAX_MEMORY=-Xmx500M
set HEADLESS=-Djava.awt.headless=true
set CODEBASE=-Djava.rmi.server.codebase=%CODEBASE_URL%
set LOG4J_OPT=-Dlog4j.configuration=file:log4j.xml
rem --- Optional arguments; uncomment if necessary ---
set HOSTNAME=-Djava.rmi.server.hostname=localhost
set "PORTOPTS=-Dprotege.rmi.server.port=5200 -Dprotege.rmi.registry.port=5100"
rem TX=-Dtransaction.level=READ_COMMITTED
rem "DEBUG_OPT=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
set OPTIONS=%MAX_MEMORY% %CODEBASE% %HEADLESS% %LOG4J_OPT% %HOSTNAME% %PORTOPTS% %TX% %DEBUG_OPT%
rem ------------------- Cmd Options -------------------
rem If you want automatic saving of the project,
rem setup the number of seconds in SAVE_INTERVAL_VALUE
rem set SAVE_INTERVAL=-saveIntervalSec=120
rem ------------------- Cmd Options -------------------
%JDKBIN%\java %OPTIONS% -cp %CLASSPATH% %MAINCLASS% %SAVE_INTERVAL% %METAPROJECT%
----------------END---------------------------
Protege server is starting...
Protege 3.4.6 Build 613, JVM 1.6.0_25-b06, memory=506M, Windows Server 2008 R2,
encoding=UTF-8, language=en, country=GB
WARNING: Is the registry running? -- java.rmi.ConnectException: Connection refus
ed to host: 10.36.6.55; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at edu.stanford.smi.protege.server.Server.checkRegistry(Unknown Source)
at edu.stanford.smi.protege.server.Server.startServer(Unknown Source)
at edu.stanford.smi.protege.server.Server.main(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
... 8 more
SEVERE: server startup failed -- java.io.IOException: Could not connect to the r
mi registry task
at edu.stanford.smi.protege.server.Server.checkRegistry(Unknown Source)
at edu.stanford.smi.protege.server.Server.startServer(Unknown Source)
at edu.stanford.smi.protege.server.Server.main(Unknown Source)
Protege 3.4.6 (Build 613)
Java VM 6.0.250.6
Apache Tomcat/6.0.32
Any help with the problem below would be appreciated.
I can run successfully in standalone mode but when I try to start a serve process using run_protege_server.bat I get an RMI Error (see very end of post)
The text of my batch file is as follows:
-----------------BEGIN----------------------------
set JDKBIN="C:\Program Files\Java\jre6\bin"
rem Note that a space character in the following path must be replaced with '%%20' in
rem a batch file. If you are typing directly on the command line, a space must be
rem replaced with '%20'.
set CODEBASE_URL=file:/c:/program%%20files/protege_3.4.6/protege.jar
start /D%JDKBIN% /min rmiregistry.exe
set CLASSPATH=protege.jar;looks.jar;unicode_panel.jar;driver.jar;driver0.jar;driver1.jar
set MAINCLASS=edu.stanford.smi.protege.server.Server
set METAPROJECT=/D:/EssentialAm/Repository/essential_metamodel/essential_baseline_v1.2.pprj
set MAX_MEMORY=-Xmx500M
set HEADLESS=-Djava.awt.headless=true
set CODEBASE=-Djava.rmi.server.codebase=%CODEBASE_URL%
set LOG4J_OPT=-Dlog4j.configuration=file:log4j.xml
rem --- Optional arguments; uncomment if necessary ---
set HOSTNAME=-Djava.rmi.server.hostname=localhost
set "PORTOPTS=-Dprotege.rmi.server.port=5200 -Dprotege.rmi.registry.port=5100"
rem TX=-Dtransaction.level=READ_COMMITTED
rem "DEBUG_OPT=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
set OPTIONS=%MAX_MEMORY% %CODEBASE% %HEADLESS% %LOG4J_OPT% %HOSTNAME% %PORTOPTS% %TX% %DEBUG_OPT%
rem ------------------- Cmd Options -------------------
rem If you want automatic saving of the project,
rem setup the number of seconds in SAVE_INTERVAL_VALUE
rem set SAVE_INTERVAL=-saveIntervalSec=120
rem ------------------- Cmd Options -------------------
%JDKBIN%\java %OPTIONS% -cp %CLASSPATH% %MAINCLASS% %SAVE_INTERVAL% %METAPROJECT%
----------------END---------------------------
Protege server is starting...
Protege 3.4.6 Build 613, JVM 1.6.0_25-b06, memory=506M, Windows Server 2008 R2,
encoding=UTF-8, language=en, country=GB
WARNING: Is the registry running? -- java.rmi.ConnectException: Connection refus
ed to host: 10.36.6.55; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
at edu.stanford.smi.protege.server.Server.checkRegistry(Unknown Source)
at edu.stanford.smi.protege.server.Server.startServer(Unknown Source)
at edu.stanford.smi.protege.server.Server.main(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
... 8 more
SEVERE: server startup failed -- java.io.IOException: Could not connect to the r
mi registry task
at edu.stanford.smi.protege.server.Server.checkRegistry(Unknown Source)
at edu.stanford.smi.protege.server.Server.startServer(Unknown Source)
at edu.stanford.smi.protege.server.Server.main(Unknown Source)