Search Mailing List Archives
[protege-discussion] [WebProtege] Java.rmi.ConnectException || ClassNotFoundException:edu.stanford.smi.protege.server.Server
Ron Schultz
rcaschultz at gmail.com
Fri Apr 17 07:23:27 PDT 2009
Brice,
I too setup WebProtege on my laptop. I had some issues with the
installation. Maybe this will jog some ideas.
. The batch files assume that Java is installed in a specific place
(set JDKBIN=.). That was not true in my case and the RMI registry was not
starting properly.
. My laptop's firewall was not open to the correct ports.
. Also, I noticed your classpath (-cp) has colons ':' as delimiters,
instead of semicolons ';'.
o -cp protege.jar:looks-2.1.3.jar:unicode_panel.jar.
. I am not sure this is valid and may be causing the Class Not Found
exception because the classpath is invalid.
Hope this helps.
Ron
From: protege-discussion-bounces at lists.stanford.edu
[mailto:protege-discussion-bounces at lists.stanford.edu] On Behalf Of Brice
Sommacal
Sent: Thursday, April 16, 2009 1:20 PM
To: protege-discussion at lists.stanford.edu
Subject: [protege-discussion] [WebProtege] Java.rmi.ConnectException ||
ClassNotFoundException:edu.stanford.smi.protege.server.Server
Hello everyone,
I'm actually trying to run on WebProtege my ontology to get a better
rendering to the users of the base.
I was trying to set up WebProtege on mu laptop. But unfortunately, i didn't
succeed :S
Here are my errors.
Firstly, Following the step by step guide on the wiki, this error is showing
up:
SEVERE: java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
nested
exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at edu.stanford.smi.protege.server.Server.bindName(Unknown Source)
at edu.stanford.smi.protege.server.Server.initialize(Unknown Source)
at edu.stanford.smi.protege.server.Server.<init>(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(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 9 more
-- Server.bindName()
SEVERE: server startup failed -- java.rmi.ConnectException: Connection
refused t
o host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198
)
at
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at edu.stanford.smi.protege.server.Server.bindName(Unknown Source)
at edu.stanford.smi.protege.server.Server.initialize(Unknown Source)
at edu.stanford.smi.protege.server.Server.<init>(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(PlainSocketImpl.java:333)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
SocketFactory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
SocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 9 more
I also tested to change the ports and the hostname. But, nothing changed!
Secondly, following the more advanced guide, I entered that:
D:\Protege_3.4RC3>start "rmiregistry" /min "C:\Program
Files\Java\jre1.5.0_11\bi
n\rmiregistry.exe"
(which works!)
then:
D:\Protege_3.4RC3>java -Xmx200M -cp
protege.jar:looks-2.1.3.jar:unicode_panel.ja
r -Djava.rmi.server.codebase=file:/d:/Protege_3.4RC3/protege.jar
edu.stanford.sm
i.protege.server.Server examples\server\metaproject.pprj
And, I get this:
Caused by: java.lang.ClassNotFoundException:
edu.stanford.smi.protege.server.Ser
ver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: edu.stanford.smi.protege.server.Server.
Program
will exit.
I was trying that from work ( where my lapotop is inside a specific domain),
and from home... where I usually don't get any problems connecting
elsewhere.
I work with the lastest version of Protege and WebProtege.
I'm really lost with these errors.
Could please someone give me any hints to work with that?
Cheers,
Brice Sommacal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090417/f3d11239/attachment.html>
More information about the protege-discussion
mailing list