当我整合red5(red5-server-1.0.9-RELEASE)和Tomcat(tomcat8)时,我复制配置文件,出现以下问题。谁能帮助我,谢谢? enter image description here enter image description here
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default.context' defined in URL [file:/F:/apache-tomcat-8.0.45/webapps/red5/WEB-INF/classes/beanRefContext.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [org.red5.server.Context@586d7ec1] with key 'global.context'; nested exception is javax.management.NotCompliantMBeanException: org.red5.server.jmx.mxbeans.ContextMXBean: Method org.red5.server.jmx.mxbeans.ContextMXBean.getResource has parameter or return type that cannot be translated into an open type
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1193)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1095)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:383)
... 13 common frames omitted
答案 0 :(得分:0)
这是一个古老的主题,但是如果有人需要的话,还会添加这个答案。
我认为您要做的是将red5安装到vanilla tomcat 8.x安装中,但是您需要首先使用maven构建red5服务器。
根据说明状态(https://github.com/Red5/red5-server),您需要使用以下步骤构建服务器:
git clone https://github.com/Red5/red5-server.git
mvn -Dmaven.test.skip=true install
mvn -Dmaven.test.skip=true clean package -P assemble
存档文件包含您需要的一切,red5脚本,conf和libs目录都在那里!
只需将zip(或tar)的内容复制到基线tomcat 8.x目录中即可。 (zip将位于目标目录中)
然后只需运行red5.bat / sh文件就可以了。
希望这可以帮助你或某人。