Red5在演示应用程序的Windows上全新安装时创建名为“web.scope”的bean时出错

时间:2015-02-10 18:18:20

标签: java red5

我是Red5的新手。我刚刚下载了Red5 Windows安装程序1.0.5并安装在我的Windows 7 x64bit上的c:\ red5 direcroty中,版本为1.7.0_45。

我收到以下错误,并且webapps中没有演示正在运行。

2015-02-10 19:51:22,696 [Launcher:/] INFO  org.red5.server.scope.Scope - Invalid scope name, null is not allowed
2015-02-10 19:51:22,698 [Launcher:/] WARN  org.red5.server.scope.Scope - Invalid scope rejected: Scope [name=null, path=/default, type=APPLICATION, autoStart=true, creationTime=1423579882660, depth=1, enabled=true, running=false]
2015-02-10 19:51:22,698 [Launcher:/] WARN  org.red5.server.scope.Scope - Scope not added to parent
2015-02-10 19:51:22,699 [Launcher:/] INFO  org.red5.server.scope.WebScope - Webscope already registered
2015-02-10 19:51:22,709 [Launcher:/chat] WARN  o.s.w.c.s.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.red5.server.scope.Scope$ConcurrentScopeSet.keySet()    Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1554) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762) ~[spring-context-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482) ~[spring-context-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:479) [tomcatplugin-1.7.jar:na]
Caused by: java.lang.NoSuchMethodError: org.red5.server.scope.Scope$ConcurrentScopeSet.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
at org.red5.server.scope.Scope$ConcurrentScopeSet.hasName(Scope.java:1411) ~[red5-server-common-1.0.5-RELEASE.jar:na]
at org.red5.server.scope.Scope.hasChildScope(Scope.java:819) ~[red5-server-common-1.0.5-RELEASE.jar:na]
at org.red5.server.scope.Scope.init(Scope.java:872) ~[red5-server-common-1.0.5-RELEASE.jar:na]
at org.red5.server.scope.WebScope.register(WebScope.java:225) ~[red5.jar:na]
at org.red5.server.scope.WebScope.afterPropertiesSet(WebScope.java:111) ~[red5.jar:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550) ~[spring-beans-4.0.8.RELEASE.jar:4.0.8.RELEASE]
... 10 common frames omitted

2 个答案:

答案 0 :(得分:1)

这是由于使用JDK8编译并在JDK7或更早版本上运行的类。我更新了此版本以解决此问题,下载较新的存档,然后重试或将JDK更新到版本8.

答案 1 :(得分:-1)

我在Linux中遇到了同样的问题。我认为这是一个错误,因为1.0.4没有这样做。