送高分了,2038端口被占用的老问题
我启用tomcat时,报这个错The RTMP server has encountered a fatal exception starting up: Address already in use: bind,就是2038端口被占用了,网络上说是在services-config.xml里面
<channel-definition id="my-rtmp" class="mx.messaging.channels.RTMPChannel">
<endpoint uri="rtmp://{server.name}:2038" class="flex.messaging.endpoints.RTMPEndpoint"/>
<properties>
<idle-timeout-minutes>20</idle-timeout-minutes>
<client-to-server-maxbps>100K</client-to-server-maxbps>
<server-to-client-maxbps>100K</server-to-client-maxbps>
<!-- for deployment on WebSphere, must be mapped to a WorkManager available in the web application's jndi context.
<websphere-workmanager-jndi-name>java:comp/env/wm/MessagingWorkManager</websphere-workmanager-jndi-name>
-->
</properties>
</channel-definition>
这段话去掉,我试了一下去掉可以不抱错,但是remoteobject方式交互的服务器端的内容都不响应了,这个问题到底要如何解决,请高手指教!
[解决办法]
http://bbs.airia.cn/FLEX/thread-2910-1-152.html
试试将2038改成别的?
[解决办法]
最简单的方法:把services-config.xml中的端口改掉