Hi,
during the multi-user installation I have the following issue:
Caused by: java.lang.ClassNotFoundException: edu.stanford.smi.protege.server.Server_Stub
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler$Loader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClassForName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
... 15 more
.bat file has the following set:
set JDKBIN="C:\Program Files (x86)\Java\jre1.8.0_221\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=http://localhost:8080/essential_viewer_62/protege.jar
rem file:/c:/program%%20files/Protege_3.5/protege.jar
rem C:\Program Files (x86)\Protege_3.5
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=examples\server\metaproject.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
set PORTOPTS=-Dprotege.rmi.server.port=5200 -Dprotege.rmi.registry.port=1099
rem RMI_REG_PORT=1099
rem RMI_SERV_PORT=5200
rem --- Optional arguments; uncomment if necessary ---
rem set HOSTNAME=-Djava.rmi.server.hostname=localhost
rem 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%
set METAPROJECT=essential-server/metaproject.pprj
Can you help me please?
Thank you!
ClassNotFoundException Server_Stub
Hi,
I think this is basically the same issue as you posted (slightly different config of the start rmiregistry.exe!) here, in the thread about the CODEBASE_URL
Let's keep that in one thread, over there.
Jonathan
I think this is basically the same issue as you posted (slightly different config of the start rmiregistry.exe!) here, in the thread about the CODEBASE_URL
Let's keep that in one thread, over there.
Jonathan