Hello,

I'd like to package Red5 for OpenBSD and that's
why I'm trying to move the Red5 config files into
/etc/red5 to match their packaging policy.

I'm using now trunk and have moved a step
further in solving this problem: by trying and
cursing I've found that there are two combinations
that do work when I put / into the cp and run

/home/afarber/src/trunk/red5.jar:/ org.red5.server.Standalone /etc/red5/red5.xml

1) And then either this one works:

<bean id="red5.common"
class="org.springframework.context.support.FileSystemXmlApplicationContext">
<constructor-arg><list><value>classpath:/etc/red5/red5-common.xml</value></list></constructor-arg>
</bean>

2) or this one works too (but note the 2 slashes!):

<bean id="red5.common"
class="org.springframework.context.support.FileSystemXmlApplicationContext">
<constructor-arg><list><value>//etc/red5/red5-common.xml</value></list></constructor-arg>
</bean>

But now I'm stuck with the next problem:

Exception in thread "main" java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind(Native Method)
        at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
        at 
org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:523)
        at 
org.apache.mina.transport.socket.nio.SocketAcceptor.access$1000(SocketAcceptor.java:56)
        at 
org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:357)

I suspect that for some crazy reason the Spring
doesn't read in the file /etc/red5/red5.properties
and so Red5 tries to bind to the same default
address (maybe like 0.0.0.0:0)

Is there a way to print out a trace, binding to which
address:port has fired the exception above?

Regards
Alex

PS: Don't want to annoy anyone here, but to me
     as a JAVA/XML illiterate and maybe even a hater
     this Spring-stuff just feels so wrong: instead of
     using one plain text file for configuration, you
     have to spend days to debug this XML-junk and
     even once you sort it out, it is still counter-intuitive:

     why do I have to use -cp / in 1) above and
     -cp /etc/red5 just won't work?

     why do I have to use two slashes in 2) above?

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to