[Red5] Running red5 problem
Gavriloaie Eugen-Andrei
crtmpserver at gmail.com
Fri Jul 24 07:03:01 PDT 2009
That worked. I also had to export RED5_HOME one more time to point to
the dist directory
But this pops the next question.... While in eclipse (checked out the
project from svn using the eclipse plugin) I want to run the server in
debug mode (step-by-step).
I want to do that because I think I found a "bug" (please note the
quotation marks) in amf3 serializer. I want to see how red5 is
handling it. For that I need step-by-step. But unfortunately, no dist
directory is available in eclipse. How can I fix this issue? If is not
possible, I'll fall back on good old trusty "print to console"
strategy combined with often recompiling. But is highly un-productive.
Moreover, I'm sure that the main developers have the right environment
for that. I doubt that they write code in vim (I love vim by the way :))
Thank you for your support.
On Jul 24, 2009, at 4:52 PM, Trevor Burton wrote:
> try moving into the ./dist directory that's created when you build
> red5 and running ./red5.sh from there.
>
> you're running it in the wrong directory. This is something that
> caught me out when i started with Red5 and something that's
> definately not obvious.
>
> T
>
> On Fri, Jul 24, 2009 at 2:49 PM, Gavriloaie Eugen-Andrei <crtmpserver at gmail.com
> > wrote:
> Hi,
>
> I have almost 0 experience with java. I'm trying to run the server
> by checking it out from svn. Here is what I do:
>
>
> 1. Check out the sources
> $ svn co http://red5.googlecode.com/svn/java/server/trunk red5
> A red5/test
> A red5/test/www
> A red5/test/www/WEB-INF
> A red5/test/www/WEB-INF/red5-web.properties
> A red5/test/www/WEB-INF/red5-web.xml
> .....
> Checked out revision 3703.
>
> 2. Build the server
> $ cd red5/
> $ ant
> Buildfile: build.xml
>
> -library.check:
> [echo] Java: java.home is /System/Library/Frameworks/
> JavaVM.framework/Versions/1.6.0/Home and the target version is 1.6
> [echo] Ant: ant.home is /usr/share/ant and the target version is
> Apache Ant version 1.7.0 compiled on May 18 2009
>
> -java6.check:
> [echo] Using Java 1.6
>
> prepare:
> [mkdir] Created dir: /Users/shiretu/work/red5/bin
> [mkdir] Created dir: /Users/shiretu/work/red5/dist
> [mkdir] Created dir: /Users/shiretu/work/red5/log
> [mkdir] Created dir: /Users/shiretu/work/red5/dist/log
> [mkdir] Created dir: /Users/shiretu/work/red5/cluster
> [mkdir] Created dir: /Users/shiretu/work/red5/cluster/origin
> [mkdir] Created dir: /Users/shiretu/work/red5/cluster/edge
> ..........
>
> BUILD SUCCESSFUL
> Total time: 19 seconds
>
>
> 3. Prepare the env
> $ pwd
> /Users/shiretu/work/red5
> $ export RED5_HOME=`pwd`
> $ echo $RED5_HOME
> /Users/shiretu/work/red5
>
>
>
> 4. Run the server
> $ ./red5.sh
> Starting Red5
> Red5 root: /Users/shiretu/work/red5
> Configuation root: /Users/shiretu/work/red5/conf
> Root: /Users/shiretu/work/red5
> Deploy type: bootstrap
> Logback selector: org.red5.logging.LoggingContextSelector
> Setting default logging context: default
> 16:45:54.249 [main] INFO org.red5.server.Launcher - Red5 Server
> 0.9.0-dev $Revision: 3701 $ (http://code.google.com/p/red5/)
> Red5 Server 0.9.0-dev $Revision: 3701 $ (http://code.google.com/p/red5/
> )
> 16:45:54.340 [main] INFO o.s.c.s.FileSystemXmlApplicationContext -
> Refreshing
> org.springframework.context.support.FileSystemXmlApplicationContext
> @70dc57db: display name
> [org.springframework.context.support.FileSystemXmlApplicationContext
> @70dc57db]; startup date [Fri Jul 24 16:45:54 EEST 2009]; root of
> context hierarchy
> 16:45:54.416 [main] INFO o.s.b.f.xml.XmlBeanDefinitionReader -
> Loading XML bean definitions from class path resource [red5.xml]
> org.springframework.beans.factory.BeanDefinitionStoreException:
> IOException parsing XML document from class path resource
> [red5.xml]; nested exception is java.io.FileNotFoundException: class
> path resource [red5.xml] cannot be opened because it does not exist
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
> (XmlBeanDefinitionReader.java:349)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
> (XmlBeanDefinitionReader.java:310)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
> (AbstractBeanDefinitionReader.java:143)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
> (AbstractBeanDefinitionReader.java:178)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
> (AbstractBeanDefinitionReader.java:149)
> at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
> (AbstractBeanDefinitionReader.java:212)
> at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
> (AbstractXmlApplicationContext.java:113)
> at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions
> (AbstractXmlApplicationContext.java:80)
> at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
> (AbstractRefreshableApplicationContext.java:123)
> at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
> (AbstractApplicationContext.java:422)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh
> (AbstractApplicationContext.java:352)
> at org.red5.server.Launcher.launch(Launcher.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:106)
> at org.red5.server.Bootstrap.main(Bootstrap.java:50)
> Caused by: java.io.FileNotFoundException: class path resource
> [red5.xml] cannot be opened because it does not exist
> at
> org.springframework.core.io.ClassPathResource.getInputStream
> (ClassPathResource.java:143)
> at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
> (XmlBeanDefinitionReader.java:336)
> ... 17 more
> Bootstrap complete
>
>
> Now I'm totally lost....
>
> My machine specs:
>
> $ java -version
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b02-216)
> Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-88, mixed mode)
>
>
> $ uname -a
> Darwin shiretu-2.local 10.0.0b4 Darwin Kernel Version 10.0.0b4: Sat
> Jul 11 02:49:36 PDT 2009; root:xnu-1456.1.19~1/RELEASE_I386 i386
>
> Mac OS X Snow Leopard
>
>
>
> Thank you for your help
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
> --
> Trevor Burton
> http://www.flashmonkey.org
> http://www.paperworld3d.com
> http://www.infrared5.com
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20090724/e1bd668a/attachment.html>
More information about the Red5
mailing list