orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

Improve documentation on how configure studio in embedded server

Open fabriziofortino opened this issue 7 years ago • 2 comments

In Embed the Server documentation is not that clear how to properly configure OrientDB Studio.

Use an embedded configuration section the orientdb.www.path entry name points to an absolute path from an old release.

<entry name=\"orientdb.www.path\" value=\"C:/work/dev/orientechnologies/orientdb/releases/1.0rc1-SNAPSHOT/www/\"/>
  • Would it be possible to include Studio using the maven artifact (https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.orientechnologies%22%20AND%20a%3A%22orientdb-studio%22)?
  • Can the documentation be extended / improved to explain what are the steps to configure studio properly?

fabriziofortino avatar May 17 '17 09:05 fabriziofortino

2 years later, and unfortunately it's still absolutely unclear how to configure the embedded server in order to serve the static files from orientdb-studio maven artifact. Any chance to get a hint or link to example configuration?

denis-itskovich avatar Apr 28 '19 18:04 denis-itskovich

Can't get prof-of-concept of studio running over the embedded Orient Db server.

with 'commands' in 'listeners':

               <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: max-age=120" name="http.cache:default"/>
                           <entry value="Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\nPragma: no-cache" name="http.cache:*.htm *.html"/>
                       </parameters>
                   </command>
               </commands>

Response:

This xxx.xxx.xxx.xxx page can’t be found No web page was found for the web address: http://xxx.xxx.xxx.xxx:2480/studio/index.html
HTTP ERROR 404

without 'commands' in 'listeners':

Response:

{
  "errors": [
    {
      "reason": 405,
      "code": 405,
      "content": "Command not found: studio/index.html"
    }
  ]
}

So. I guess there is problem in serving static files from studio artifact. Included:

    implementation "com.orientechnologies:orientdb-server:3.0.23"
    implementation "com.orientechnologies:orientdb-graphdb:3.0.23"
    implementation "com.orientechnologies:orientdb-studio:3.0.23"
    implementation "com.orientechnologies:orientdb-tools:3.0.23"

Run-time logs:

WARNI Ignored storage configuration because not supported: plugin.dynamic=null [OClusterBasedStorageConfiguration]
WARNI Ignored storage configuration because not supported: orientdb.www.path=null [OClusterBasedStorageConfiguration]
WARNI Ignored storage configuration because not supported: server.cache.staticResources=null [OClusterBasedStorageConfiguration]

Should there be plugin registered for that?

skuhtic avatar Sep 08 '19 22:09 skuhtic