I need to be able to deploy while Red5 is working. The only solution I know is to use a WAR file and put it in a folder: webapp.
Is there another way?
I am using Red 5 v0.8. And I exported the WAR file using Eclipse 3.4.
I can deploy my webapp. However, when I export it as a WAR file, I have an error message and create an empty folder (see the error message at the end). When I install the samples defined with Red5, WAR deploys correctly. I tested it by matching exactly the same SOSample and my webapp files for WEB-INF (I just changed the name of webapps), but the problem persists.
I tried Project -> Clean ..., deleted the webapps folder before copying the military files to it. I checked this when it turned around normally that the correct files. However, the same behavior.
It may be simple, but still I do not really like Spring, I have to miss something simple.
Thank you in advance for any help you could give me,
Fabio
---------------------- Error Message
[INFO] [Red5_Scheduler_Worker-1] org.red5.server.tomcat.TomcatLoader - Applicati
: C:/eclipse/applications/Red5/webapps
[WARN] [Launcher:/] org.red5.server.tomcat.TomcatLoader - default.c
ontext bean : red5.core
"Launcher:/" org.springframework.beans.factory.
BeanDefinitionStoreException: bean
[/WEB-INF/red5-*.xml]; - java.io.FileNotFoundException: Servl
etContext [/WEB-INF/] URL-, exi
at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:190) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions (XmlWebApplicationContext.java:124) org.springframework.web.context.support.XmlWebApplicationContext.load
BeanDefinitions (XmlWebApplicationContext.java:92) at org.springframework.context.support.AbstractRefreshableApplicationCon
text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) org.springframework.context.support.AbstractApplicationContext.obtain
FreshBeanFactory (AbstractApplicationContext.java:422) org.springframework.context.support.AbstractApplicationContext.refres
(AbstractApplicationContext.java:352) at org.red5.server.tomcat.TomcatLoader $2.run(TomcatLoader.java:733)
: java.io.FileNotFoundException: ServletContext [/WEB-INF/] ca
URL-, org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:130) org.springframework.core.io.support.PathMatchingResourcePatternResolv
er.isJarResource(PathMatchingResourcePatternResolver.java:406) org.springframework.core.io.support.PathMatchingResourcePatternResolv
er.findPathMatchingResources(PathMatchingResourcePatternResolver.java:338) org.springframework.core.io.support.PathMatchingResourcePatternResolv
er.getResources(PathMatchingResourcePatternResolver.java:276) at org.springframework.context.support.AbstractApplicationContext.getRes
ources (AbstractApplicationContext.java:1018) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade
r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177) ... 7
-------------------------- ------------------- ----
org.red5.core;
import org.red5.server.adapter.MultiThreadedApplicationAdapter;
MultiThreadedApplicationAdapter {
public Double add(Double a, Double b) {
return a+b;
}
}