Questions about using and running the Rifidi Edge Server
Moderators: Matt, kyle
-
leonleslie
- Posts: 5
- Joined: Sat Sep 25, 2010 6:06 pm
Post
by leonleslie » Tue Sep 28, 2010 10:04 am
using java version "1.6.0_18" openjdk
Downloaded and unzip
Code: Select all
total 152
drwxr-xr-x 4 leon leon 4096 2010-08-30 14:51 applications
drwxr-xr-x 3 leon leon 4096 2010-08-31 16:50 config
drwxr-xr-x 4 leon leon 4096 2010-08-31 16:02 configuration
drwxr-xr-x 2 leon leon 4096 2010-09-01 11:20 docs
drwxr-xr-x 2 leon leon 4096 2010-05-12 18:45 licenses
drwxr-xr-x 2 leon leon 4096 2010-08-30 15:27 logs
drwxr-xr-x 7 leon leon 12288 2010-08-31 15:58 plugins
-rwxr-xr-x 1 leon leon 52576 2009-10-22 14:10 rifidiserver
-rw-r--r-- 1 leon leon 57344 2009-10-23 12:39 rifidiserver.exe
-rw-r--r-- 1 leon leon 762 2010-08-31 16:49 rifidiserver.ini
drwxr-xr-x 2 leon leon 4096 2010-05-12 18:45 startupscript
bash: ./rifidiserver: No such file or directory
-
Matt
- Posts: 362
- Joined: Fri May 02, 2008 11:56 am
- Organization: Pramari
Post
by Matt » Tue Sep 28, 2010 11:28 am
Hi leonleslie,
Thanks for the detailed post, looks like you did pretty much everything right.
leonleslie wrote:using java version "1.6.0_18" openjdk
That might be a problem; I've never tested it with the openjdk. I've always used the sun packages for Java. Here is the output of "java -version" for me:
Code: Select all
matt@matt-desktop ~ $ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
leonleslie wrote:bash: ./rifidiserver: No such file or directory
I think this error stems from your Java version, try the sun version and let me know if it works.
-
leonleslie
- Posts: 5
- Joined: Sat Sep 25, 2010 6:06 pm
Post
by leonleslie » Thu Oct 21, 2010 12:52 am
Sun version produce the same error, however I am sure it is my environment because it works find on a centos server.
-
Matt
- Posts: 362
- Joined: Fri May 02, 2008 11:56 am
- Organization: Pramari
Post
by Matt » Thu Oct 21, 2010 10:56 am
I didn't see this the first time around, but are you using sudo to call the ./rifidiserver? It will not work otherwise. Also, I would recommend calling the rifidiserver through the init.d instead of calling it directly (making sure the console is set to "2020" in the rifidiserver.ini), as that will make things easier to deal with.
To find out how to set up your init daemon, check here:
http://wiki.rifidi.org/index.php/Configure_An_EdgeBox
Starting at "Make rifidiserver an executable".
-Matt
-
osmo
- Posts: 3
- Joined: Mon Mar 30, 2015 6:17 pm
Post
by osmo » Mon Mar 30, 2015 6:37 pm
I am running into below error while invoking the start up script from /etc/init.d. I have tried setting the classpath and path to "/usr/local/sbin/rifidi" but the start up script is still unable to find "/config/rifidi-amq-external.xml".
PS: It works perfectly fine if i start the script directly from "/usr/local/sbin/rifidi" folder but i need to get the service started from init.d.
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader:315 - Loading XML bean definitions from class path resource [etc/rc.d/init.d/config/rifidi-amq-external.xml]
org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [etc/rc.d/init.d/config/rifidi-amq-external.xml]; nested exception is java.io.FileNotFoundException: class path resource [etc/rc.d/init.d/config/rifidi-amq-external.xml] cannot be opened because it does not exist
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:111)
at org.apache.xbean.spring.context.ResourceXmlApplicationContext.loadBeanDefinitions(ResourceXmlApplicationContext.java:104)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
-
Matt
- Posts: 362
- Joined: Fri May 02, 2008 11:56 am
- Organization: Pramari
Post
by Matt » Mon Apr 06, 2015 5:57 pm
Hi osmo,
How are you running the startup script? What are the commands you are using? When I use
Code: Select all
sudo /etc/init.d/rifidi-server start
from any location things start up fine.
-Matt
Who is online
Users browsing this forum: No registered users and 8 guests