Ok, so I'm trying to understand how you actually use Red5, which btw could
be little bit more difficult. After all, there are only 22 different files
in conf/, half of which seem to use a different syntax, and thank god there
is pretty much no documentation at all. But I'm not complaining ;)

While I think I'm starting to get the hang of it, there are still some
pieces missing. Here's what I did:

* Install 6.2 on Windows Server 2003 with default settings
* Removed everything from the webapps folder except red5-default.xml and the
oflaDemo folder.
* Restarted, tested with the oflaDemo client - works perfectly.

Next, I wanted to try some customization. I'm not particularly fond of Java,
so I opened oflaDemo/WEB-INF/red5-web.xml, and commented out all web.handler
and demoService.service beans except for the two using the
JythonScriptFactory. Then I restarted Red5, got some new messages in the
log:

INFO | jvm 1 | 2007/07/26 04:35:06 | Python appStart [EMAIL PROTECTED] Depth
= 1, Path = '/default', Name = 'oflaDemo']
INFO | jvm 1 | 2007/07/26 04:35:06 | Arguments:(Python:Application,)
INFO | jvm 1 | 2007/07/26 04:35:12 | Python appConnect: RTMPMinaConnection
from 91.12.239.66:59112 to billy.dpool.org (in: 3338, out: 3073)
array(java.lang.Object,[])
INFO | jvm 1 | 2007/07/26 04:35:12 | Python setting bandwidth limits

So far, looking good. From what I can tell, this is what the main.py file is
printing. 

Unfortunately, when connecting with the oflaDemo, this is what I see:

INFO | jvm 1 | 2007/07/26 04:43:41 | [ERROR] 30328 pool-3-thread-5:(
org.red5.server.service.ServiceInvoker.invoke ) Method
getListOfAvailableFLVs not found in Error

That's the problem No. 1. My success with the other script languages was
even more limited, I get messages like these on startup:

INFO | jvm 1 | 2007/07/26 13:19:06 | [ERROR] 3938 WrapperSimpleAppMain:(
org.mortbay.log.invoke0 ) Nested in
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'web.scope' defined in ServletContext resource
[/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'web.handler'
while setting bean property 'handler'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'scriptedObject.web.handler' defined in ServletContext resource
[/WEB-INF/red5-web.xml]: Instantiation of bean failed; nested exception is
org.springframework.beans.factory.BeanDefinitionStoreException: Factory
method [public java.lang.Object
org.red5.server.script.rhino.RhinoScriptFactory.getScriptedObject(org.spring
framework.scripting.ScriptSource,java.lang.Class[]) throws
java.io.IOException,org.springframework.scripting.ScriptCompilationException
] threw exception; nested exception is java.lang.NoSuchMethodError:
javax.script.ScriptEngineManager.getEngineFactories()Ljava/util/List;:

Ok, I thought, let's try some debugging. I opened src/applications/main.py
in an editor and changed some of the print statements. To my surprise
however, the output in the log did not reflect those changes when I
restarted. So I started to wonder what "classpath:applications/filename.py"
in red6-web.xml actually means. The scriptiong howto says it referes to
./WEB-INF/applications/filename.py, so I moved the applications/ folder one
level up (it was in src/ previously). However, no matter where it is (lib/,
WEB-INF/, or missing completely), the Python messages on the log did not
change at all. Only after deleting ./lib/oflaDemo.jar where they gone. Does
that mean they are compiled into the .jar file? If so, how do I rebuild it?
Frankly, I was hoping not having to deal with Java too much.

Finally, I tried using file:C:/absolute-path/to/filename.py instead of
classpath:... - and that did the trick (the changed debug prints appear -
but "method getListOfAvailableFLVs not exists" stills occurs). Is this the
preferred way of doing it? Can this path be relative (if so, to what
directory)?

Sorry if this was a bit long. Thank you for any help.

Michael


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

Reply via email to