Closed 13539956066 closed 7 years ago
INTELLIJ IDEA
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<?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.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd">
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<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.scope.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="com.demo.Application" />
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
Update to the latest release or milestone; versions prior to 1.0.9 have be superseded.
Hello! I've already updated to the 1.0.9 version, and the flash Builder connection is still going wrong [WARN] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Scope not found org.red5.server.exception.ScopeNotFoundException: Scope not found: example in null
red5-web.xml <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.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd">
<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/red5-web.properties</value>
<value>classpath:mybatis.properties</value>
</list>
</property>
</bean>
<!-- Defines the web context -->
<bean id="web.context" class="org.red5.server.Context" autowire="byType" />
<!-- Defines the web scopes -->
<bean id="web.scope" class="org.red5.server.scope.WebScope">
<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="com.dialog.Dialogue" /> -->
<bean id="web.handler" class="com.video.Application" />
<import resource="classpath:spring-bean.xml" />
<!-- <import resource="classpath:spring-bean.xml" /> -->
import java.util.*; import org.red5.server.adapter.ApplicationAdapter; import org.red5.server.api.IConnection; import org.red5.server.api.scope.IScope; import org.red5.server.api.stream.IServerStream;
public class Application extends ApplicationAdapter {
private IScope appScope;
private IServerStream serverStream;
/** {@inheritDoc} */
@Override
public boolean appStart(IScope app) {
super.appStart(app);
log.info("oflaDemo appStart");
System.out.println("oflaDemo appStart");
appScope = app;
return true;
}
/** {@inheritDoc} */
@Override
public boolean appConnect(IConnection conn, Object[] params) {
log.info("oflaDemo appConnect");
return super.appConnect(conn, params);
}
/** {@inheritDoc} */
@Override
public void appDisconnect(IConnection conn) {
log.info("oflaDemo appDisconnect");
if (appScope == conn.getScope() && serverStream != null) {
serverStream.close();
}
super.appDisconnect(conn);
}
}
There is a problem, very feel back
Scope not found means you dont have the scope you requested or it failed to start. I suggest turning up your logger to see where or how it may have failed to start up. Ensure that you are not using a Spring context loader in your web.xml.
Thank you for your reply. It was when I loaded mybatis-3 that there was a problem
Software development environment
red5 1.0.8 jdk 1.8 tomcat 8.0.4 system windows7 64
ERROR :
[RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
Flash Builder connect red5
ERROR :
[WARN] [NioProcessor-2] org.red5.io.object.Deserializer - Black list is not yet initialized [WARN] [RTMPConnectionExecutor-1] org.red5.server.net.rtmp.RTMPHandler - Scope n ot found org.red5.server.exception.ScopeNotFoundException: Scope not found: example in nu