Sorry, a clarification to my orig. mail: I've moved
all config files from the conf dir under /etc/red5, not just one
$ ll /etc/red5
16 -rw-r--r-- 1 root wheel 6445 Aug 14 13:50 jetty.xml
4 -rw-r--r-- 1 root wheel 1426 Aug 14 13:50 keystore
4 -rw-r--r-- 1 root wheel 1817 Aug 14 13:50 log4j.properties
4 -rw-r--r-- 1 root wheel 436 Aug 14 13:50 realm.properties
8 -rw-r--r-- 1 root wheel 2823 Aug 14 13:50 red5-common.xml
8 -rw-r--r-- 1 root wheel 3763 Aug 14 13:50 red5-core.xml
20 -rw-r--r-- 1 root wheel 9565 Aug 14 13:50 red5-rtmpt.xml
4 -rw-r--r-- 1 root wheel 55 Aug 14 13:50 red5.globals
4 -rw-r--r-- 1 root wheel 713 Aug 14 13:50 red5.policy
4 -rw-r--r-- 1 root wheel 209 Aug 14 13:50 red5.properties
8 -rw-r--r-- 1 root wheel 2054 Aug 14 13:50 red5.xml
40 -rw-r--r-- 1 root wheel 20424 Aug 14 13:50 web-default.xml
On 8/14/06, Alexander Farber <[EMAIL PROTECTED]> wrote:
> 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)
--
http://preferans.de
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org