Hi,
I'm trying to embed a server into java app. I'm not able to connect to the database via Studio, I'm gettingCommand not found: GET. [ONetworkProtocolHttpDb]
I'm working with OrientDB VERSION 1.0
Here's my config file, I suspected relative paths, but even with full paths, result is the same<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orient-server>
<network>
<protocols>
<protocol name="binary"
implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary" />
<protocol name="http"
implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
</protocols>
<listeners>
<listener ip-address="127.0.0.1" port-range="2525" protocol="binary" />
<listener ip-address="127.0.0.1" port-range="2480-2490" protocol="http"/>
</listeners>
</network>
<users>
<user name="root" password="pcRoot" resources="*" />
</users>
<storages>
<storage path="local:./database/db_test" name="db_test"
loaded-at-startup="false" />
</storages>
<properties>
<entry name="orientdb.www.path" value="C:/Temp/EclipseOrient/OrientDB/www/"/>
<entry name="orientdb.config.file" value="C:/Temp/EclipseOrient/OrientDB/config/orientdb-server-config.xml"/>
<entry name="server.cache.staticResources" value="false" />
<entry name="log.console.level" value="finest" />
<entry name="log.file.level" value="fine" />
</properties>
</orient-server>
2012-06-11 02:05:45:360 WARN ->127.0.0.1: Command not found: GET. [ONetworkProtocolHttpDb]
2012-06-11 02:05:45:392 WARN ->127.0.0.1: Command not found: GET.favicon.ico [ONetworkProtocolHttpDb]
I modified the network section with the one that's available in orientdb-server-config.xml and it worked. So the instructions in the wiki may be updated with this section
<network>
<protocols>
<protocol name="binary" implementation="com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary"/>
<protocol name="http" implementation="com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpDb"/>
</protocols>
<listeners>
<listener ip-address="0.0.0.0" port-range="2424-2430" protocol="binary"/>
<listener ip-address="0.0.0.0" port-range="2480-2490" protocol="http">
<commands>
<command 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" implementation="com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent">
<parameters>
<entry name="http.cache:*.htm *.html" value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache"/>
<entry name="http.cache:default" value="Cache-Control: max-age=120"/>
</parameters>
</command>
</commands>
<parameters>
<parameter name="network.http.charset" value="utf-8"/>
</parameters>
</listener>
</listeners>
</network>