Hello,

I've tried using red5 0.5 and -trunk on OpenBSD -current
(with its jdk-1.5.0p19 package) and it seems to work ok.

Now I'd like to submit an official red5-package to OpenBSD.
However for that the config files _must_ be placed under /etc
(and not somewhere under /usr/... because the latter dir
could be located on an NFS drive and thus not unique)

So I've moved conf/* under /etc/red5/ and modified
the red5.sh script to pass an arg to Standalone.main:

    exec $JAVA -Djava.security.manager \
        -Djava.security.policy=conf/red5.policy \
        -cp red5.jar:conf:$CLASSPATH \
        org.red5.server.Standalone /etc/red5/red5.xml

And since the red5.root property in Standalone.java
is created out of red5Config by removing the last dir
(like "/usr/local/red5/conf" minus "/conf"), I've shortcuted
that for the moment:

    root = "/usr/local/red5";
    System.setProperty("red5.root", root);
    log.info("Setting Red5 root to " + root);

However the server still doesn't start -
the red5.common bean seems to be missing:

$ sh -x red5.sh
+ [ -x /usr/local/jdk-1.5.0/bin/java ]
+ break
+ [ ! -x /usr/local/jdk-1.5.0/bin/java ]
+ exec /usr/local/jdk-1.5.0/bin/java -Djava.security.manager
-Djava.security.policy=conf/red5.policy -cp red5.jar:conf:
org.red5.server.Standalone /etc/red5/red5.xml
[INFO] 1 main:( org.red5.server.Standalone.info ) RED5 Server
(http://www.osflash.org/red5)
[INFO] 18 main:( org.red5.server.Standalone.info ) Loading red5 global
context from: /etc/red5/red5.xml
[INFO] 22 main:( org.red5.server.Standalone.info ) Setting
configuration root to /etc/red5
[INFO] 35 main:( org.red5.server.Standalone.info ) Setting Red5 root
to /usr/local/red5
[INFO] 448 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.info
) Bean factory for application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=8984226]:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans []; root of BeanFactory hierarchy
[INFO] 505 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.info
) No beans defined in application context
[org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=8984226]
[INFO] 533 main:( org.springframework.core.CollectionFactory.info )
JDK 1.4+ collections available
[INFO] 602 main:( org.springframework.core.CollectionFactory.info )
Commons Collections 3.x available
[INFO] 623 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.info
) Unable to locate MessageSource with name 'messageSource': using
default [EMAIL PROTECTED]
[INFO] 637 main:(
org.springframework.context.support.ClassPathXmlApplicationContext.info
) Unable to locate ApplicationEventMulticaster with name
'applicationEventMulticaster': using default
[EMAIL PROTECTED]
[INFO] 643 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.info
) Pre-instantiating singletons in factory
[org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans []; root of BeanFactory hierarchy]
Exception in thread "main"
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'red5.common' is defined:
org.springframework.beans.factory.support.DefaultListableBeanFactory
defining beans []; root of BeanFactory hierarchy
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:671)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
        at 
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:553)
        at 
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:399)
        at org.red5.server.Standalone.main(Standalone.java:126)


Something minor seems to be missing there.

I've tried adding /etc/red5 to the CLASSPATH but that
didn't help... Does anybody pls. have a hint for me?

Regards
Alex

-- 
http://preferans.de

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to