Hello Enrico, i've created a dummy test project you can checkout it from 
git https://github.com/rogozinds/orientDBstudio.git
So I've done the following.
Created a db.config file, with all the settings
Copied a www folder from studio.zip to the resources folder.
Specified a path in the db.config to www folder (I"ve tried both relaitieve 
and absolute path)

For some reason when I start the server it listens to port 2424, but I 
specified a different port in my db.config.
When debugging, db.config file is read, but the class OServerConfiguration 
which I guess has all the config parameters, has only part of properties 
from the db.config file. And I also couldn't find the place, where ports 
and studio path are read from.

I will be glad to get any help/advice/ guess.

Thank you!

On Wednesday, May 6, 2015 at 2:04:33 PM UTC+3, Enrico Risa wrote:
>
> Can you help me to set up a test Environment so i can help you.
>
>
>
> 2015-05-06 12:56 GMT+02:00 Dmitrii Rogozin <[email protected] 
> <javascript:>>:
>
>> Hi,Enrico,
>> I have specified orientdb.www.path and extracted the zip Studio archieve 
>> there. I can access the studio throught browser.
>> But i get an error when trying to login or create new DB, exactly what 
>> Dave's 2nd post describes.
>> Command not found: GET.api/listDatabases [ONetworkProtocolHttpDb]
>>
>> On Wednesday, May 6, 2015 at 1:06:48 PM UTC+3, Enrico Risa wrote:
>>>
>>> hi Dimitri 
>>>
>>> i think you can solve it if you declare the $ORIENTDB_HOME in your code, 
>>> so the server
>>> will load the studio plugin from the plugins folder under the  ODB dist.
>>> Otherwise you can use the orientdb.www.path in the xml file but you 
>>> have to unpack the Studio zip under
>>> the www/studio folder
>>>
>>> 2015-05-06 11:56 GMT+02:00 Dmitrii Rogozin <[email protected]>:
>>>
>>>> We have exactly same problem. Dave have you found a solution?
>>>>
>>>>
>>>> On Tuesday, November 25, 2014 at 3:40:24 AM UTC+2, Dave ALI wrote:
>>>>>
>>>>> I have an instance of orientDb 2.0-M3 running in a Tomcat 7.0.47 app - 
>>>>> which works fine with Java API.  I think I have configuration correct for 
>>>>> http access. Log shows app listening 
>>>>>
>>>>> 2014-11-24 18:08:18:303 INFO  Listening http connections on 
>>>>> 0.0.0.0:2480 (protocol v.10, socket=default) [OServerNetworkListener]
>>>>>
>>>>> When I try to access studio at localhost:2480 the request returns 404 
>>>>> not found and produces exception below ...
>>>>>
>>>>> 2014-11-24 18:08:23:382 INFO  Deploying web application directory 
>>>>> /usr/local/apache-tomcat-7.0.47/webapps/manager [HostConfig]Error on 
>>>>> loading resource /studio/index.html
>>>>> java.net.SocketException: Socket closed
>>>>> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:121)
>>>>> at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
>>>>> at 
>>>>> java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
>>>>> at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.flush(OHttpResponse.java:454)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.sendStream(OHttpResponse.java:391)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.OHttpResponse.sendStream(OHttpResponse.java:355)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetStaticContent.execute(OServerCommandGetStaticContent.java:137)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:182)
>>>>> at 
>>>>> com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:581)
>>>>> at 
>>>>> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
>>>>>
>>>>>  Complete configuration file shown below. Any assistance/clues would 
>>>>> be greatly appreciated.
>>>>>
>>>>> +++++++
>>>>>
>>>>> <?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="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 
>>>>> 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 GET|*.json GET|*.woff GET|*.ttf 
>>>>> GET|*.svgz" stateful="false">
>>>>>                         <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>
>>>>>                 <parameters>
>>>>>                     <parameter name="network.http.charset" 
>>>>> value="utf-8"/>
>>>>>                 </parameters>
>>>>>             </listener>
>>>>>         </listeners>
>>>>>     </network>
>>>>>     <users>
>>>>>         <user name="root" password="XXXXXX" resources="*" />
>>>>>     </users>
>>>>>     <storages>
>>>>>         <storage 
>>>>> path="plocal:/Users/daved/bin/orientdb-community-2.0-M3/databases/ConcordDebate"
>>>>>  
>>>>> name="ConcordDebate"
>>>>>                  loaded-at-startup="true" />
>>>>>     </storages>
>>>>>     <properties>
>>>>>         <entry name="orientdb.www.path" 
>>>>> value="/Users/daved/bin/orientdb-community-2.0-M3/www/"/>
>>>>>         <entry name="orientdb.config.file" 
>>>>> value="/Users/daved/bin/orientdb-community-2.0-M3/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>
>>>>>
>>>>>
>>>>>
>>>>>  -- 
>>>>
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "OrientDB" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>  -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to