I forgot the attachment, didn't I. Big surprise.

Michael

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Thijs Triemstra | Collab
> Sent: Thursday, July 26, 2007 4:35 PM
> To: [email protected]
> Subject: Re: [Red5] Red5 Scripting Questions
> 
> Hi Michael,
> 
> > 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
> 
> I tried the python oflaDemo and I don't see this error.. (using the
> latest svn trunk version)
> Can you send a copy of your red5-web.xml?
> 
> >
> > 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.ScriptCompilationExc
> > eption
> > ] threw exception; nested exception is java.lang.NoSuchMethodError:
> > javax.script.ScriptEngineManager.getEngineFactories()Ljava/util/List;:
> 
> This is a known issue, check this ticket for info and progress:
> http://jira.red5.org/browse/APPSERVER-169
> 
> Thijs
> 
> 
> 
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:lang="http://www.springframework.org/schema/lang";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
                           http://www.springframework.org/schema/lang
http://www.springframework.org/schema/lang/spring-lang-2.0.xsd";>

	<bean id="placeholderConfig"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigure
r">
	    <property name="location" value="/WEB-INF/red5-web.properties"
/>
	</bean>

	<bean id="web.context" class="org.red5.server.Context"
		autowire="byType" />

	<bean id="web.scope" class="org.red5.server.WebScope"
		 init-method="register">
		<property name="server" ref="red5.server" />
		<property name="parent" ref="global.scope" />
		<property name="context" ref="web.context" />
		<property name="handler" ref="web.handler" />
		<property name="contextPath" value="${webapp.contextPath}"
/>
		<property name="virtualHosts" value="${webapp.virtualHosts}"
/>
	</bean>

	<!--<bean id="web.handler"
	    class="org.red5.server.webapp.oflaDemo.Application" />-->

	<bean id="web.handler"
class="org.red5.server.script.rhino.RhinoScriptFactory">
        <constructor-arg index="0" value="classpath:applications/main.js"/>
        <constructor-arg index="1">
			<list>
     			<value>org.red5.server.api.IScopeHandler</value>
     			<value>org.red5.server.adapter.IApplication</value>
  			</list>
		</constructor-arg>
		<constructor-arg index="2">
 
<value>org.red5.server.adapter.ApplicationAdapter</value>
		</constructor-arg>
	</bean>

	<!--<bean id="web.handler"
class="org.springframework.scripting.jruby.JRubyScriptFactory">
		<constructor-arg index="0"
value="classpath:applications/main.rb"/>
		<constructor-arg index="1">
			<list>
	
<value>org.red5.server.api.IScopeHandler</value>
	
<value>org.red5.server.adapter.IApplication</value>
			</list>
		</constructor-arg>
	</bean>
-->
	<!--<bean id="web.handler"
class="org.red5.server.script.groovy.GroovyScriptFactory">
		<constructor-arg index="0"
value="classpath:applications/main.groovy"/>
		<constructor-arg index="1">
			<list>
	
<value>org.red5.server.api.IScopeHandler</value>
	
<value>org.red5.server.adapter.IApplication</value>
			</list>
		</constructor-arg>
	</bean>-->

<!---	<bean id="web.handler"
class="org.red5.server.script.jython.JythonScriptFactory">
		<constructor-arg index="0"
value="classpath:applications/main.py"/>
		<constructor-arg index="0" value="file:C:/Program Files/Red5/webapps/oflaDemo/WEB-INF/applications/main.py"/>
		<constructor-arg index="1">
			<list>
     			<value>org.red5.server.api.IScopeHandler</value>
     			<value>org.red5.server.adapter.IApplication</value>
  			</list>
		</constructor-arg>
        <constructor-arg index="2">
            <list>
                <value>VADER</value>
                <value>2</value>
                <value>III</value>
            </list>
        </constructor-arg>
	</bean>-->

   <!-- <bean id="demoService.service"
	    class="org.red5.server.webapp.oflaDemo.DemoService" />-->

	<bean id="demoService.service"
class="org.red5.server.script.rhino.RhinoScriptFactory">
		<constructor-arg index="0"
value="classpath:applications/demoservice.js"/>
		<constructor-arg index="1">
			<list>
 
<value>org.red5.server.webapp.oflaDemo.IDemoService</value>
  			</list>
		</constructor-arg>
		<constructor-arg index="2">
 
<value>org.red5.server.webapp.oflaDemo.DemoServiceImpl</value>
		</constructor-arg>
	</bean>

	<!--<bean id="demoService.service"
class="org.springframework.scripting.jruby.JRubyScriptFactory">
		<constructor-arg index="0"
value="classpath:applications/demoservice.rb"/>
		<constructor-arg index="1">
			<list>
 
<value>org.red5.server.webapp.oflaDemo.IDemoService</value>
  			</list>
		</constructor-arg>
	</bean>-->

	<!--<bean id="demoService.service"
class="org.red5.server.script.jython.JythonScriptFactory">
		<constructor-arg index="0" value="file:C:/Program Files/Red5/webapps/oflaDemo/WEB-INF/applications/demoservice.py"/>
		<constructor-arg index="1">
			<list>
	
<value>org.red5.server.webapp.oflaDemo.IDemoService</value>
			</list>
		</constructor-arg>
		<constructor-arg index="2" ref="web.handler"/>
	</bean>-->

	<bean
class="org.springframework.scripting.support.ScriptFactoryPostProcessor"/>


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

Reply via email to