[Red5] Error starting RED5 from command line

Andy Shaules bowljoman at hotmail.com
Thu Nov 27 11:02:49 PST 2008


Hello Lenny,

I find it wonderful to edit build.xml to include my application. I delete all the fluff I never use such as all the swf and admin application. 

I then have a cute little distribution that is about 5 mb in size which is unzipped to it's location, and ant-server'd into life.

If I include all the dependancy jars, its about 20 mb. 

In the end the server contains only the root and my webapp. No demo folders either.

Its really nice once you get one setup. 

BTW Lenny, there is an old one(server 0.6.3) to browse on 'Texas' in smelter/red563/brighton.zip

 And beware if you run it as is, that the red5.properties is configured as: rtmp 2008, 6080, and 9080  

As well in 'yakima.fatdot.com' you can see a few amfphp classes to compliment the application. Just make sure the java is calling to the correct gateway you setup.

Andy
  ----- Original Message ----- 
  From: Lenny Sorey 
  To: red5 at osflash.org 
  Sent: Thursday, November 27, 2008 5:52 AM
  Subject: Re: [Red5] Error starting RED5 from command line


  Hello All ad Happy Thanksgiving.

  I finally figured out what was causing my problem
  with Red5 server not starting.

  First of all from the command line with r 3332 you cannot
  not start red5 with red5.bat or red5-bootstrap.bat.

  However, you can start red5 from the command line by using
  "ant server"  which I believe calls red5-bootstrap.

  I discovered this when I setup red5 to run under Eclipse on a different 
  machine.
   
  Tyler, I tried your suggestion regarding the changes to the bootstrap.bat
  but it did not work with r 3332 from svn. But, thanks again for you response to help.

  My next step will getting familiar with using the installer for my apps. ( I am not real thrill
  with this and will be looking for a shortcut to use with compiling mu apps and placing them
  in the webapps folder in the bin folder just to save a little time from having to use the installer.
  Although, for new users I think this is a great tool.

  Regards,

  Lenny
   
  On 11/24/08, Lenny Sorey <lrsorey at gmail.com> wrote: 
    Hi Tyler,

    Thanks for yor response.

    I will read your article and give it a try.

    Appreciate your help.

    Lenny

     
    On 11/23/08, Tyler Kocheran <rfkrocktk at gmail.com> wrote: 
      Lenny, I just published my complete article to my blog. You can view it here (permalink):
      http://blog.tkassembled.com/2008/11/red5-trunk-development-revisited.html 



      On Sun, Nov 23, 2008 at 12:47 PM, Tyler Kocheran <rfkrocktk at gmail.com> wrote:

        Yeah, usually those problem happen with a fresh download of the server. There's a few things you need to understand about the newest version to understand how to work on/with it. The article I published yesterday that you got is a little incomplete, and I'm about to start writing a more complete one. Please let me know if it helped resolve some of the errors that you're having. 



        On Sun, Nov 23, 2008 at 5:06 AM, Lenny Sorey <lrsorey at gmail.com> wrote:

          By the way,

          I am experiencing the above problems with a fresh download from 
          the trunk. version. 3332.

          I made no changes to anything other than compile from the command
          line and try to figure out how to integrate from the examples.

          I got quite a bit of experience with RED5 prior to the moving over 
          to Google for the SVN repository so this is pretty confusing to me
          why I am experiencing these problem.

          Guess quite a bit was changed in my long absence from RED5.

          Thanks for your response Tyler. I will read through your pdf to see if I can 
          see what is causing the loading problem.

          Thanks,

          Lenny



           
          On 11/22/08, Tyler Kocheran <rfkrocktk at gmail.com> wrote: 
            1: I think the ExceptionInInitializerError is triggered by a webapp's web.xml not being updated for the new trunk... I think. The format has changed since 0.7.

            2: I just got help on the whole bootstrap thing too, check out my blog post on the subject: http://blog.tkassembled.com/2008/11/red5-trunk-development-for-dummies-like.html 



            On Sat, Nov 22, 2008 at 8:40 PM, Daniel Rossi <electroteque at gmail.com> wrote:

              I had this also at one time. 


              On 23/11/2008, at 1:03 PM, Manuel Raña wrote:


                Don't know if this could help someone to help you but i have seen this errors before and i can reproduce them executing red5.sh from red5/ instead of red5/dist (on ubuntu hardy):

                Exception in thread "main" java.lang.ExceptionInInitializerError
                Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission logback.ContextSelector write)
                    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
                    at java.security.AccessController.checkPermission(AccessController.java:546)
                    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
                    at java.lang.System.setProperty(System.java:727)
                    at org.red5.server.Standalone.<clinit>(Standalone.java:49)



                2008/11/22 Lenny Sorey <lrsorey at gmail.com>

                  Oops, One more thing:

                  When I use the bootstrap to start, I get the following in the log file:

                  Exception in thread "main" java.lang.NullPointerException
                   at java.security.AccessControlContext.checkPermission(AccessControlContext.java:311) 

                   at java.security.AccessController.checkPermission(AccessController.java:546)
                   at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
                   
                   at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
                   at java.lang.System.getProperty(System.java:652)
                   at org.red5.server.Bootstrap.getRed5Root(Bootstrap.java:197)
                   at org.red5.server.Bootstrap.main(Bootstrap.java:60)

                  Lenny

                   
                  On 11/22/08, Lenny Sorey <lrsorey at gmail.com> wrote: 
                    Plaul,

                    Also when I use the bootstrap. with http://localhost:5080  I get a Page cannot be displayed message 

                    Lenny

                     
                    On 11/22/08, Lenny Sorey <lrsorey at gmail.com> wrote: 
                      HI Paul,

                      When I use red5-bootstrap.bat I don't see any messages regarding anything loading.

                      Regarding the Catalina conf, is this what you area talking about?

                      // ========== SYSTEM CODE PERMISSIONS =========================================


                      // These permissions apply to javac
                      grant codeBase "file:${java.home}/lib/-" {
                              permission java.security.AllPermission;
                      };

                      // These permissions apply to all shared system extensions
                      grant codeBase "file:${java.home}/jre/lib/ext/-" {
                              permission java.security.AllPermission;
                      };

                      // These permissions apply to javac when ${java.home] points at $JAVA_HOME/jre
                      grant codeBase "file:${java.home}/../lib/-" {
                              permission java.security.AllPermission;
                      };

                      // These permissions apply to all shared system extensions when
                      // ${java.home} points at $JAVA_HOME/jre
                      grant codeBase "file:${java.home}/lib/ext/-" {
                              permission java.security.AllPermission;
                      };

                      Walter, regarding the paths in my logback.xml file. Are you saying I need a fully qualiified path defined
                      like c::/red5/dist/log/red5.log  ?


                      <appender name="FILE" class="ch.qos.logback.core.FileAppender">
                        <File>log/red5.log</File>
                        <Append>false</Append>
                        <Encoding>UTF-8</Encoding>
                        <BufferedIO>false</BufferedIO>
                        <ImmediateFlush>true</ImmediateFlush>
                        <layout class="ch.qos.logback.classic.PatternLayout">
                         <Pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</Pattern>
                        </layout>
                       </appender>
                       <appender name="ERRORFILE" class="ch.qos.logback.core.FileAppender">
                        <File>log/error.log</File>
                        <Append>false</Append>
                        <Encoding>UTF-8</Encoding>
                        <BufferedIO>false</BufferedIO>
                        <ImmediateFlush>true</ImmediateFlush>
                           <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
                              <level>WARN</level>
                           </filter>
                        <layout class="ch.qos.logback.classic.PatternLayout">
                         <Pattern>%d{ISO8601} [%thread] %-5level %logger{35} - %msg%n</Pattern>
                        </layout>
                       </appender>


                      Thanks for all responses.

                      Lenny

                       
                      On 11/22/08, Mondain <mondain at gmail.com> wrote: 
                        Lenny, 
                        That is certainly an odd error and one that I have not seen before. What it means is that the application does not have permission to add/modify a system property. I would think this is a permission problem, but you are using windows.. I dont know if this will fix it but we have been directing everyone with "Standalone" problems to use "Bootstrap", mostly because of the pain of adding additional jars to the classpath when using Standalone.
                        One thing that I'm thinking is that you could check your conf/catalina.policy file and make sure that system permissions allow for "read" and "write".

                         
                        Paul


                        On Sat, Nov 22, 2008 at 8:49 AM, Lenny Sorey <lrsorey at gmail.com> wrote:

                          I am sure this has probably been discuss but I cannot fine a solution
                          to the following problem:

                          I compiled red5 with no problems.

                          I am using Windows 2000 and after compiling I try to start 
                          red5 from the red5/dist folder using red5.bat

                          I get the following error message.


                          Starting Red5 (org.red5.server.Standalone)
                          Exception in thread "main" java.lang.ExceptionInInitializerError
                          Caused by: java.security.AccessControlException: access denied (java.util.Proper
                          tyPermission logback.ContextSelector write)
                                  at java.security.AccessControlContext.checkPermission(AccessControlConte
                          xt.java:323)
                                  at java.security.AccessController.checkPermission(AccessController.java:
                          546)
                                  at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
                                  at java.lang.System.setProperty(System.java:727)
                                  at org.red5.server.Standalone.<clinit>(Standalone.java:49)

                          Anyone have a solution to this problem?

                          I am using revision 3332 from SVN.

                          Thanks,

                          Lenny


                          _______________________________________________
                          Red5 mailing list
                          Red5 at osflash.org
                          http://osflash.org/mailman/listinfo/red5_osflash.org





                        -- 
                        http://gregoire.org/
                        http://osflash.org/red5
                         

                        _______________________________________________
                        Red5 mailing list
                        Red5 at osflash.org
                        http://osflash.org/mailman/listinfo/red5_osflash.org







                   

                  _______________________________________________
                  Red5 mailing list
                  Red5 at osflash.org
                  http://osflash.org/mailman/listinfo/red5_osflash.org



                _______________________________________________
                Red5 mailing list
                Red5 at osflash.org
                http://osflash.org/mailman/listinfo/red5_osflash.org


               

              _______________________________________________
              Red5 mailing list
              Red5 at osflash.org
              http://osflash.org/mailman/listinfo/red5_osflash.org





            -- 

            And do this, knowing the time, that now it is high time to awake out of sleep;
            for now our salvation is nearer than when we first believed.

            _______________________________________________
            Red5 mailing list
            Red5 at osflash.org
            http://osflash.org/mailman/listinfo/red5_osflash.org



           

          _______________________________________________
          Red5 mailing list
          Red5 at osflash.org
          http://osflash.org/mailman/listinfo/red5_osflash.org





        -- 
        And do this, knowing the time, that now it is high time to awake out of sleep;
        for now our salvation is nearer than when we first believed.
         



      -- 
      And do this, knowing the time, that now it is high time to awake out of sleep;
      for now our salvation is nearer than when we first believed.


      _______________________________________________
      Red5 mailing list
      Red5 at osflash.org
      http://osflash.org/mailman/listinfo/red5_osflash.org








------------------------------------------------------------------------------


  _______________________________________________
  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/20081127/4e7f81dd/attachment-0001.html>


More information about the Red5 mailing list