[Red5] open file from red5 application

joseph wamicha jwamicha at gmail.com
Tue Jan 23 18:31:23 EST 2007


Hello,

I am trying to open a file playlist.xml in the directory
{myapp}/WEB-INF/playlist/playlist.xml
Here's the line of code that gets the inputstream:

InputStream xmlStream = this.appScope.getResource
("playlist/playlist.xml").getInputStream();


However, when trying to start the server, I get the following error (it's
complaining about not being able to find the file):
 - - - -
[java] [INFO] 6422 main:(
org.springframework.beans.factory.support.DefaultListableBeanFactory.info )
Pre-instantiating singletons in factory [
org.springframework.beans.factory.support.DefaultListableBeanFactorydefining
beans [placeholderConfig,
web.context,web.scope,web.handler]; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactorydefining
beans [
global.clientRegistry,global.serviceInvoker,global.mappingStrategy,
global.context,global.handler,global.scope,red5.scopeResolver]; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactorydefining
beans [
red5.server
,serializer,deserializer,statusObjectService,rtmpCodecFactory,remotingCodecFactory,videoCodecFactory,streamableFileFactory,sharedObjectService,streamService,providerService,consumerService,FlowControlService,schedulingService,threadFactory,remotingPool,
object.cache,flv.impl,
org.springframework.beans.factory.config.MethodInvokingFactoryBean,
org.springframework.beans.factory.config.MethodInvokingFactoryBean#1,playlistSubscriberStream,clientBroadcastStream];
root of BeanFactory hierarchy]
     [java] [ERROR] 6446 main:(
org.red5.webapps.red5java.Application.error) IOException converting
xml to dom
     [java] java.io.IOException: Error converting from string to doc
/home/sysadmin/red5/red5_server/java.io.BufferedInputStream at 1bc4ec8 (No such
file or directory)
- - - -

Please help, where is the file in the red5 servlet context, thanks.

-- 
C is forever.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070124/2c37076f/attachment.htm


More information about the Red5 mailing list