OrientDb Studio需要RuntimePermission.createClassLoader
我可以使用嵌入式(plocal)服务器启动OrientDb studio。但是,我必须向RuntimePermission.createClassLoader授予权限。我宁愿不授予该权限,也不需要类加载器;热重新部署可能不适合我的需要,服务器将嵌入(不独立于我的应用程序) 是否可以在没有类加载器的情况下加载OrientDb Studio 以下是我启动服务器的代码:OrientDb Studio需要RuntimePermission.createClassLoader,orientdb,orientdb2.2,Orientdb,Orientdb2.2,我可以使用嵌入式(plocal)服务器启动OrientDb studio。但是,我必须向RuntimePermission.createClassLoader授予权限。我宁愿不授予该权限,也不需要类加载器;热重新部署可能不适合我的需要,服务器将嵌入(不独立于我的应用程序) 是否可以在没有类加载器的情况下加载OrientDb Studio 以下是我启动服务器的代码: OServer server; System.setProperty("ORIENTDB_HOME", getGraphDa
OServer server;
System.setProperty("ORIENTDB_HOME", getGraphDatabaseDirectoryPath());
server = OServerMain.create();
server.startup(orientServerConfigFile.getInputStream());
server.activate();
orientServerConfigFile指向我的confile。这是我的配置文件:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
<network>
<protocols>
<protocol implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" name="binary"/>
<protocol name="http" implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
</protocols>
<listeners>
<listener protocol="binary" socket="default" port-range="2424-2430" ip-address="0.0.0.0"/>
<listener protocol="http" port-range="2480-2485" ip-address="0.0.0.0">
<commands>
<command implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent" pattern="GET|www GET|studio/ GET| GET|*.htm GET|*.html GET|*.xml GET|*.jpeg GET|*.jpg GET|*.png GET|*.gif GET|*.js GET|*.css GET|*.swf GET|*.ico GET|*.txt GET|*.otf GET|*.pjs GET|*.svg">
<parameters>
<entry value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache" name="http.cache:*.htm *.html"/>
<entry value="Cache-Control: max-age=120" name="http.cache:default"/>
</parameters>
</command>
</commands>
</listener>
</listeners>
</network>
<users>
<user resources="*" password="root" name="root"/>
<user resources="connect,server.listDatabases,server.dblist" password="guest" name="guest"/>
</users>
<properties>
<entry value="1" name="db.pool.min"/>
<entry value="50" name="db.pool.max"/>
<entry value="true" name="profiler.enabled"/>
</properties>
嗨,你能发布你的代码吗?嗨,你能发布你的代码吗?