Hi Guys
Looks like I'm going to have to turn to you for some help. After a couple of days trying to figure this out on my own I'm now officially at a loss.
I'm installing UIDesigner, Beehive and Controller from SVN trunk on my local server. I've got UIDesigner up and running nicely and I have access to the Beehive when I visit http://192.168.1.1:8081/beehive. But when I try to save any work in UIDesigner I get the error message:
"Failed to save resource to Beehive, status code: 404"
I'm not sure that I understand the interaction of the various paths in the settings. I'm thinking that could be where I'm having a problem. But, it may also be a Tomcat permissions thing too. Not sure, anyway...
My Beehive config.properties:
#jdbc config
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.1.1:3306/beehive?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.username = username
jdbc.password = password
#Work directory, contains svn-repos, workCopy and sync history logs.
work.dir = /opt/OpenRemote/tomcat/webapps/beehive
#iconDir
icons.dir = /opt/OpenRemote/tomcat/webapps/icons
#lircCrawRegex, it can not be mod
ified until the structure of remote lirc website had changed.
lirc.craw.regex = <tr><td valign=\"top\"><img src=\"/icons/(folder|text|script)\\.gif\" alt=\"\\[\\s\\w+\\]\"></td><td><a href=\"(.?)/?\">.?/?</a></td><td align=\"right\">(\\d\\d-\\w\\w\\w-\\d\$
My UIDesigner config.properties:
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.1.1:3306/beehive?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.username = username
jdbc.password = password
beehive.REST.Root.Url = http://192.168.1.1:8081/beehive/rest
panel.xsd.path = /panel-2.0-M7.xsd
controller.xsd.path = /controller-2.0-M7.xsd
webapp.server.root = /opt/OpenRemote/tomcat/webapps
controller.config.xml.path=/controller-config-2.0-M7.xml
controller.config.xsd.path=/controllerConfig-2.0-M7.xsd
and at the bottom of my Controller config.properties:
beehive.REST.Root.Url = http://192.168.1.1:8081/beehive/rest
On startup:
Using CATALINA_BASE: /opt/OpenRemote/tomcat
Using CATALINA_HOME: /opt/OpenRemote/tomcat
Using CATALINA_TMPDIR: /opt/OpenRemote/tomcat/temp
Using JRE_HOME: /usr
Any help or suggestions where else to look would be much appreciated.
Regards,
Garry
Comments (7)
Jan 29, 2012
Juha Lindfors says:
Nothing obvious jumped out by quick reading, sorry. I can run a diff on the con...Nothing obvious jumped out by quick reading, sorry.
I can run a diff on the config later to see if I notice something.
While I appreciate the time you've put into trying to get this to work, just wanted to point out that for merely adding a protocol dialog into the controller only requires you to send us an XML file which you can even post here on the forums: Developer How To - Adding Your Own Protocol to OpenRemote Boss 2.0 Designer.
If on the other hand you're setting up the servers for other reasons of your own, I'll see if I can spot anything that might cause the 404.
Jan 29, 2012
yann philippe says:
Hi Garry, Quicking review your config. The only thing I've noticed is: from UID...Hi Garry,
Quicking review your config.
The only thing I've noticed is:
from UIDesigner readme.txt:
h) set "webapp.server.root" parameter value to your web server root (eg: http://localhost:8080)
So not a path but URL.
Don't know if that can help.
Which version of Beehive are you using? I remember that I've tried different version before having one working correctly: from branches/Beehive_3_0_0_Betas
Regards
Jan 30, 2012
Garry Doucette says:
Yes, that was it Yann. I had to change webapp.server.root = /opt/OpenRemote/to...Yes, that was it Yann. I had to change
webapp.server.root = /opt/OpenRemote/tomcat/webapps
to
webapp.server.root = http://192.168.1.1:8081/modeler
in my UIDesigner config.properties.
Thanks for the help.
Garry
Jun 04, 2012
Nejc Šmid says:
Hello, I have a similar problem as Garry. I installed Designer, Beehive and Con...Hello,
I have a similar problem as Garry. I installed Designer, Beehive and Controller from SVN trunk (https://openremote.svn.sourceforge.net/svnroot/openremote/tags/project/) on my local apache-tomcat-6.0.18 server. Beehive and Designer are reachable on http://localhost:8080/beehive and http://localhost:8080/modeler.
In designer I created account and designed panel with configuration. But when I tried to save my design I got the error message:
500 The call failed on the server; see server log for details
Modeler logs errors.log and save.log:
2012-06-03 11:00:57,373 ERROR [Save] : Save failed due to network error : Failed to save resources to Beehive, status code: 404
org.openremote.modeler.exception.NetworkException: Failed to save resources to Beehive, status code: 404
Modeler logs beehive.log:
012-06-03 11:00:43,667 INFO : No user data found. Return code 404. Assuming new user account...
Modeler logs cache.log:
2012-06-03 11:00:42,519 INFO : No existing Beehive archive found. Backup skipped.
2012-06-03 11:00:42,532 INFO : Updating account cache for (User: nejc, Email: xxxxx@gmail.com, Roles: Admin, Account ID: 1).
2012-06-03 11:00:43,667 INFO : No user resources were downloaded from Beehive. Assuming new user account 'nejc'
Modeler logs restore.log:
2012-06-03 11:00:42,425 INFO : Attempting to restore designer panel UI state for user nejc (Acct ID : 1)
2012-06-03 11:00:43,722 INFO : Restored UI state : Panels : 1, max OID : 10
2012-06-03 11:00:43,732 INFO : Restore time (User: nejc, Email: xxxxx@gmail.com, Roles: Admin, Account ID: 1) : 01,326 seconds.
Save failed but when I restart server and open Designer all my previous configuration are there.
In beehive logs errors.log I got this warning:
Beehive 3.0 Beta1 | 2012-06-03 10:59:29,931 WARN
[org.springframework.aop.framework.Cglib2AopProxy] : Unable to proxy method [public final void org.springframework.orm.hibernate3.support.HibernateDaoSupport.setSessionFactory(org.hibernate.SessionFactory)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
My configurations:
I created mysql database (CREATE DATABASE beehive DEFAULT CHARACTER SET utf8; ) and imported (mysql -u root -p -h localhost beehive < import.sql).
Config.properties from Beehive:
#jdbc config jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/beehive?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.username = root
jdbc.password = xxxxx
#Work directory, contains svn-repos, workCopy and sync history logs.
work.dir = /usr/Runtime/apache-tomcat-6.0.18/webapps/beehive
#iconDir
icons.dir = /usr/Runtime/apache-tomcat-6.0.18/webapps/beehive/icons
#lircCrawRegex, it can not be modified until the structure of remote lirc website had changed. lirc.craw.regex = <tr><td valign=\"top\"><img src=\"/icons/(folder|text|script)\\.gif\" alt=\"\\[\\s\\w+\\]\"></td><td><a href=\"(.?)/?\">.?/?</a></td><td align=\"right\">(\\d\\d-\\w\\w\\w-\\d\\d\\d\\d\\s\\d\\d:\\d
d) </td><td align=\"right\">\\s*[-\\w\\.]+
s*</td></tr>
I did nothing with %PROJECT_ROOT%/config/spring-quartz.xml and edited /etc/subversion/config.
Config.properties from Designer:
jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/beehive?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.username = root
jdbc.password = xxxxx
beehive.REST.Root.Url = http://localhost:8080/beehive/rest
panel.xsd.path = /panel-2.0-M7.xsd
controller.xsd.path = /controller-2.0-M7.xsd
webapp.server.root = http://localhost:8080/modeler
controller.config.xml.path=/controller-config-2.0-M7.xml
controller.config.xsd.path=/controllerConfig-2.0-M7.xsd
#Email sender configuration for account activation.
#NOTE: host, username, password MUST be trimmed!
mail.sender.host=smtp
mail.sender.port=25
mail.sender.username=mail
mail.sender.password=xxxx
mail.smtp.auth.on=true
mail.smtp.timeout=25000
I'm confused about beehive.REST.Root.Url, because I can't find rest folder in ../webapps/beehive directory. I found it in ../webapps/beehive/WEB-INF/classes/org/openremote/beehive/rest. I'm not sure that I understand the interaction of the various paths in the settings.
One more question. How can I log into beehive administration client? I tried with account name and password but without success.
Thanks for the help.
Regards,
Nejc
Jun 04, 2012
Marcus Redeker says:
You have to add a "/" at the end of "beehive.REST.Root.Url in config.properties ...You have to add a "/" at the end of "beehive.REST.Root.Url in config.properties from Designer.
beehive.REST.Root.Url = http://localhost:8080/beehive/rest/
You cannot find a folder for it. That is ok. The "/rest/" part is mapped internal onto different Java classes.
Jun 04, 2012
Nejc Šmid says:
Yes! This was the missing part. Any suggestion for logging into beehive adminis...Yes! This was the missing part.
Any suggestion for logging into beehive administration client?
Mercus, thanks a lot.
Jun 04, 2012
Marcus Redeker says:
The default should be "admin" and no password. It's defined in webapps/beehive/W...The default should be "admin" and no password.
It's defined in webapps/beehive/WEB-INF/classes/applicationContext-security.xml