- 浏览: 99600 次
- 性别:
- 来自: 广州
文章分类
最新评论
-
蜗居之家:
akka2.0的如何实现1.2的功能 onReceive中接收 ...
Akka2使用探索1(Remoting) -
chenyehui:
这有点像nio, read和write的动作不需要user进程 ...
使用Akka的Actor和Future简单地实现并发处理 -
chenyehui:
hi 请问下 你这种方式 看不出来和Java 多线程的区别在哪 ...
使用Akka的Actor和Future简单地实现并发处理 -
henry_wu001:
这种调用是不是同步的,会不会阻塞?
Akka2使用探索5(Typed Actors) -
ZZX19880809:
啥ji巴玩意,copy也不看下,这啥样子了
Akka2使用探索7——“云计算”示例(Actor、Future、Remoting、Router、Deploy、异步、并发使用Demo)
启动多个Red5的应用时,报端口冲突的错误“Address already in use”(Windows下没有,Linux下报错):
2009-11-17 12:01:04,330 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN o.s.b.f.s.DisposableBeanAdapter - Couldn't find a destroy method named 'shutdown' on bean with name 'schedulingService'
2009-11-17 12:01:04,356 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR o.s.web.context.ContextLoader - Context initialization failed
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:/u2ct/gs-tomcat/webapps/ls-1.0.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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341) [spring-web-2.5.6.jar:2.5.6]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195) [spring-web-2.5.6.jar:2.5.6]
at org.red5.server.war.WarLoaderServlet.contextInitialized(WarLoaderServlet.java:120) [jakubiak-red5-core-0.9-SNAPSHOT.jar:na]
at com.todream.location.server.LocationServerStartupListener.contextInitialized(LocationServerStartupListener.java:22) [LocationServerStartupListener.class:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) [catalina.jar:na]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) [catalina.jar:na]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296) [catalina.jar:na]
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) [catalina.jar:na]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default.context' defined in URL [file:/u2ct/gs-tomcat/webapps/ls-1.0.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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_06]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:141) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384) [spring-beans-2.5.6.jar:2.5.6]
... 20 common frames omitted
Caused by: 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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) [spring-beans-2.5.6.jar:2.5.6]
... 36 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_06]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) [spring-context-2.5.6.jar:2.5.6]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_06]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_06]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_06]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_06]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) [spring-beans-2.5.6.jar:2.5.6]
... 38 common frames omitted
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method) [na:1.6.0_06]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [na:1.6.0_06]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [na:1.6.0_06]
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:251) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:523) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:65) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:407) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.0-M6.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [na:1.6.0_06]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [na:1.6.0_06]
... 1 common frames omitted
2009-11-17 12:01:04,371 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR o.red5.server.war.WarLoaderServlet -
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:/u2ct/gs-tomcat/webapps/ls-1.0.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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341) [spring-web-2.5.6.jar:2.5.6]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195) [spring-web-2.5.6.jar:2.5.6]
at org.red5.server.war.WarLoaderServlet.contextInitialized(WarLoaderServlet.java:120) [jakubiak-red5-core-0.9-SNAPSHOT.jar:na]
at com.todream.location.server.LocationServerStartupListener.contextInitialized(LocationServerStartupListener.java:22) [LocationServerStartupListener.class:na]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934) [catalina.jar:na]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4429) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) [catalina.jar:na]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:850) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:724) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:493) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1274) [catalina.jar:na]
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296) [catalina.jar:na]
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) [catalina.jar:na]
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) [catalina.jar:na]
at java.lang.Thread.run(Thread.java:619) [na:1.6.0_06]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default.context' defined in URL [file:/u2ct/gs-tomcat/webapps/ls-1.0.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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_06]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:141) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384) [spring-beans-2.5.6.jar:2.5.6]
... 20 common frames omitted
Caused by: 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 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248) [spring-beans-2.5.6.jar:2.5.6]
... 36 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rtmpTransport' defined in class path resource [red5-core.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6]
at java.security.AccessController.doPrivileged(Native Method) [na:1.6.0_06]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) [spring-beans-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) [spring-context-2.5.6.jar:2.5.6]
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93) [spring-context-2.5.6.jar:2.5.6]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_06]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.6.0_06]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.6.0_06]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [na:1.6.0_06]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) [spring-beans-2.5.6.jar:2.5.6]
... 38 common frames omitted
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method) [na:1.6.0_06]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119) [na:1.6.0_06]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) [na:1.6.0_06]
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:251) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.transport.socket.nio.NioSocketAcceptor.open(NioSocketAcceptor.java:48) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.registerHandles(AbstractPollingIoAcceptor.java:523) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor.access$200(AbstractPollingIoAcceptor.java:65) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.core.polling.AbstractPollingIoAcceptor$Acceptor.run(AbstractPollingIoAcceptor.java:407) [mina-core-2.0.0-M6.jar:na]
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64) [mina-core-2.0.0-M6.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [na:1.6.0_06]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [na:1.6.0_06]
... 1 common frames omitted
解决办法:修改red5-core.xml:
1: <bean class="java.net.InetSocketAddress">
2: <constructor-arg index="0" type="java.lang.String"
3: value="0.0.0.0" />
4: <constructor-arg index="1" type="int" value="1935" />
5: </bean>
换一个端口,例如把1935换成19350:
1: <bean class="java.net.InetSocketAddress">
2: <constructor-arg index="0" type="java.lang.String"
3: value="0.0.0.0" />
4: <constructor-arg index="1" type="int" value="19350" />
5: </bean>
这时再启动就正常了。但是如果客户端仍然用“rtmp://192.168.0.xxx/app”连接时是连不上服务器的。需要将rui换成:“rtmp://192.168.0.xxx:19350/app”,要加上服务器端配置的端口
评论
可是我换了服务器换成weblogic,jdk换成1.6后就出现这个错误.现在我把服务器和jdk换回来,错误依旧没有消失....郁闷了
我的是在tomcat上开发的项目,然后我发布到weblogic上才报的错.
报错时候可以确保没有任何red5的应用起来..
不知道后面会有些什么影响,目前还没暴露出来.
netstat查看一下
相关推荐
创建多个NodeRed实例,需要为每个实例指定不同的工作目录和端口号: 1. 创建新工作目录: ``` mkdir /path/to/instance1 mkdir /path/to/instance2 ``` 2. 在每个工作目录中初始化NodeRed: ``` cd /path/to...
文件名通常不需要更改,但如果你有多个示例应用,可能需要重命名以避免冲突。 4. **运行与访问**:部署完成后,重新启动Red5服务器,`oflaDemo`应用就会自动加载。然后,通过浏览器访问`...
JBoss在运行时会占用多个端口,用于不同的服务和通信: 1. **HTTP/HTTPS端口**:默认情况下,JBoss的HTTP端口是8080,HTTPS端口是8443,用于处理HTTP和安全的HTTPS请求。 2. **管理端口**:如`management-http`的...
Red5是一款开源的Java流媒体服务器,主要用于...综上所述,将Red5项目部署到Tomcat涉及到多个步骤,从项目构建到服务器配置,再到流媒体服务的实现。通过熟练掌握这些知识,你可以有效地管理和运行基于Red5的Web应用。
Postfix以其模块化设计著称,由多个独立的程序组成,每个程序都有特定的功能,如接收、路由和发送邮件。此外,Postfix支持与MySQL数据库集成,这使得它能够处理虚拟邮件用户,提供更灵活的管理和用户配额。 在开始...
总的来说,MySQL 5.6在Red Hat 6.4上的主从复制配置涉及多个步骤,包括设置服务器ID、开启二进制日志、配置复制参数、初始化从服务器以及处理可能的错误情况。这一过程对于保证数据安全和系统的高可用性至关重要。
2. **自定义 contrib 节点**:Node-RED的节点库(nodes)是由多个贡献者提供的,称为"contrib"节点。这个包装程序允许用户指定他们自己的贡献节点,这意味着你可以选择只使用特定的、与项目相关的节点,或者包含自...
在Linux环境下,安装MySQL数据库时可能会遇到版本冲突的问题,尤其是当你试图安装一个更高版本的MySQL而系统中已存在一个旧版本时。这个问题主要是由于RPM(Red Hat Package Manager)包管理器不允许同名但不同版本...
5. **端口冲突**:如果在同一台机器上运行多个VNC实例,则需要注意端口号的分配,避免端口冲突。 - 解决方法:可以通过指定不同的端口号来运行多个VNC实例,例如使用`vncserver :2`来启动第二个VNC会话。 6. **...
文档中提到了这一点,强调了在多厂商环境中部署时需要注意的相关问题。 #### 文档资源 HPE提供了丰富的文档资源,包括但不限于用户手册、技术指南和技术支持文档等。这些资源可以帮助管理员更好地理解HPE 3PAR ...
启动多个 Redis 实例的方法是为每个实例配置不同的配置文件(如 `redis.conf`),并确保它们监听不同的端口,以避免冲突。例如,将默认的 6379 端口更改为其他未使用的端口,如 6380、6381 等。 在启动 Redis 服务...
总结来说,RHEL5上安装和配置ASE12.5.4_x86_64是一个涉及多个步骤的过程,包括系统准备、安装、配置和启动。通过使用提供的启动脚本,可以简化这一过程,确保ASE能够在你的环境中顺利运行。记得在每个步骤中都要细心...
1. **多实例配置**:在同一台Linux服务器上运行多个Tomcat实例,每个实例都有自己的配置、日志和应用目录,以确保它们互不影响。 2. **环境变量**:在Linux中,为了区分不同的Tomcat实例,我们需要设置`JAVA_HOME`...
对于TongWeb6.1的安装,它支持多个操作系统平台,包括Windows、Linux(如RedHat、RedFlag、Suse Linux系列)、Unix(如Sun Microsystems Solaris系列、IBM AIX系列)。安装时,操作系统的要求包括至少512MB的内存和...
具有多个接口的设备可以同时被多个应用程序(或者设备驱动程序)所访问,其中每一个应用程序(或者设备驱动程序)都占据一个不同的接口。该 API 支持控制传输、批量传输和中断传输,不支持等时传输,因为等时传输用于...
3. **虚拟局域网(VLAN)支持**:二层交换机支持VLAN配置,可以将物理网络划分为逻辑上的多个子网,有助于网络管理,提升安全性,同时减少广播流量。 4. **端口安全**:二层交换机可以设置端口安全策略,限制特定...
3. **解决连接问题**: 如果遇到网络连接问题,可能是由于MAC地址冲突引起的。此时可以通过修改虚拟机的MAC地址来解决。 ##### 安装NFS服务 1. **检查安装情况**: 使用`rpm -qa nfs* port*`检查是否已经安装了nfs-...
- 设置服务器ID:为防止多个主服务器之间的冲突,需要为每个服务器分配唯一的服务器ID。 2. **从服务器配置**: - 复制主服务器数据:通过创建复制用户账号并授权,然后使用CHANGE MASTER TO命令指定主服务器的IP...
【描述】:Windows上的JBoss集群搭建涉及多个步骤,包括服务器复制、负载均衡和通信机制的设置。这篇资料集合了网络上的精华知识,旨在协助读者快速掌握集群配置技巧,顺利实施项目。 【标签】:Windows、JBoss、...