问题描述
- Red5-1.0集成到eclipse中启动报错
-
2015-7-4 19:09:27 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [default.context]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default.context' defined in URL [file:/E:/JavaProject/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Red5-1.0/WEB-INF/classes/beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'statusObjectService' defined in class path resource [red5-common.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.support.BeanDefinitionValidationException: Couldn't find an init method named 'initialize' on bean with name 'statusObjectService'
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:386)
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:536)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:376)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
解决方案
我把red5安装到linux可以启动成功,但是集成到eclipse后,启动就报错,提示statusObjectService类中没有initialize()方法,
statusObjectService确实没有这个方法,但是为啥在linux上就能启动成功
解决方案二:
我用的是red5的源码,搭建eclipse开发环境 tomcat用的是6.0
时间: 2024-08-03 23:52:52