当前位置: 首页 > 工具软件 > Red5 > 使用案例 >

red5启动错误

赫连卓
2023-12-01

原来的错误是引入的jar包错了,里面没有MultiThreadedApplicationAdapter这个类,从github上又下了一个red5-server-common-1.0.6-RELEASE,

但是又出了新的问题,IConnection又出错了,新引入的包好像加载时有了问题

[ERROR] [Launcher:/redhh] org.red5.server.scope.Scope - Could not start scope Scope [name=redhh, path=/default, type=APPLICATION, autoStart=true, creationTime=1474606108800, depth=1, enabled=true, running=false]
java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/catalina/loader/WebappClassLoader) previously initiated loading for a different type with name "org/red5/server/api/IConnection"
    at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_73]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760) ~[na:1.8.0_73]
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_73]
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2495) ~[tomcat-embed-core.jar:8.0.26]
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:859) ~[tomcat-embed-core.jar:8.0.26]
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1301) ~[tomcat-embed-core.jar:8.0.26]
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166) ~[tomcat-embed-core.jar:8.0.26]
    at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_73]
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_73]
    at java.lang.Class.privateGetMethodRecursive(Class.java:3048) ~[na:1.8.0_73]
    at java.lang.Class.getMethod0(Class.java:3018) ~[na:1.8.0_73]
    at java.lang.Class.getMethod(Class.java:1784) ~[na:1.8.0_73]
    at org.red5.logging.Red5LoggerFactory.getLogger(Red5LoggerFactory.java:56) ~[red5-server-common-1.0.6-RELEASE.jar:1.0.6-RELEASE]
    at org.red5.server.adapter.MultiThreadedApplicationAdapter.start(MultiThreadedApplicationAdapter.java:336) ~[red5-server.jar:1.0.6-RELEASE]
    at org.red5.server.scope.Scope.start(Scope.java:1105) [red5-server-common-1.0.6-RELEASE.jar:na]
    at org.red5.server.scope.Scope$ConcurrentScopeSet.add(Scope.java:1332) [red5-server-common-1.0.6-RELEASE.jar:na]
    at org.red5.server.scope.Scope.addChildScope(Scope.java:205) [red5-server-common-1.0.6-RELEASE.jar:na]
    at org.red5.server.scope.Scope.init(Scope.java:873) [red5-server-common-1.0.6-RELEASE.jar:na]
    at org.red5.server.scope.WebScope.register(WebScope.java:225) [red5-server.jar:na]
    at org.red5.server.scope.WebScope.afterPropertiesSet(WebScope.java:111) [red5-server.jar:na]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) [spring-beans-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) [spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) [spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE]
    at org.red5.server.tomcat.TomcatLoader$1.run(TomcatLoader.java:485) [tomcatplugin-1.9.jar:na]
[INFO] [Launcher:/redtt] org.red5.server.scope.WebScope - Webscope already registered



 类似资料: