List Info

Thread: Re: can't create a new app




Re: can't create a new app
user name
2008-03-14 15:38:43
 Hi sean, there isn't a red5.sh on the dist, just on red5 folder(the root instalation).
 Anyway i'm clueless all threads that i saw didn't worked.
 -use java 5 on the project on Eclipse
 -remove the servlet tags on web.xml
 -And i even tried to put the application on the jar by oppening the jar, creating a folder called tester and putting the compiled .class in there. It didn't worked.
 
 Is there any log in red5 for ubuntu( i didn't found any )? I don't know the reason but almos everybody seems to solve this pretty straight forward.

 PS: i try to connect by rtmp://localhost/tester OR rtmp://127.0.0.1/tester
 thanks for the help
>
>Message: 6
>Date: Fri, 14 Mar 2008 14:45:30 -0500
>From: Sean Newman < sean_newhotmail.com">sean_newhotmail.com>
&gt;Subject: Re: [Red5] can't create a new app
>To: < red5osflash.org">red5osflash.org>
>Message-ID: < BAY123-W9202963F8F09B587120E1F50A0phx.gbl">BAY123-W9202963F8F09B587120E1F50A0phx.gbl&gt;
>Content-Type: text/plain; charset=&quot;iso-8859-1"
&gt;
>
&gt;Hi Fabio,
>;
> Did you run the red5.sh in the dist directory?
>
>Sean
>
&gt;Date: Fri, 14 Mar 2008 15:51:58 -0300
&gt;From: blackjackdevelgmail.com">blackjackdevelgmail.com
>To: red5osflash.org">red5osflash.org
>Subject: [Red5] can't create a new app
>
&gt; I recently instaled red5 on an ubuntu notebook, all the demos works fine but my new application do not.
>; It name is tester and it's package is br.com.vplace.
> I used the following params:
&gt; In build.xml:
>
>
> &nbsp;  <context-param>
  ; &nbsp;  <param-name>webAppRootKey&lt;
>/param-name&gt;
>&nbsp; &nbsp; &nbsp;  <param-value>/tester</param-value&gt;
>&nbsp;  </context-param>;
>
> red5-web.xml
>
>;<bean id="web.handler&quot;
>
> &nbsp;   ;  class=&quot;br.com.vplace.tester"
&gt; &nbsp; &nbsp; &nbsp; singleton="true&quot; />
>
>red5-web.properties
>webapp.contextPath=/tester
>
> And in the build.xml :
><javac sourcepath="&quot; srcdir=&quot;${webapps.dir}/tester/WEB-INF/src" destdir=&quot;${webapps.build.dir}/tester/WEB-INF/classes"
>
>&nbsp;   ; &nbsp; &nbsp; &nbsp;  classpathref="webapps.classpath" optimize=&quot;${build.optimize}" verbose=&quot;${build.verbose}&quot;
>&nbsp; &nbsp;   ; &nbsp; &nbsp;  fork=";${build.fork}" nowarn=&quot;${build.nowarn}&quot; deprecation="${build.deprecation}";
>
&gt; &nbsp; &nbsp; &nbsp;   ; &nbsp; debug=&quot;${debug.state}" compiler=&quot;${compiler}" source=&quot;${java.target_version}" target=&quot;${java.target_version}"/&gt;
>
&gt; The ant server aparently runs fine, and the webapps.build.dir which seems to be  RED5_INSTALATION/dist/webapps,&nbsp; Has the tester folder and the WEB-INF, and etc, and when i runned ant server it created a tester.class file (which was expected).
>
>; Then after run ant server to build with ant my application, i start the sh to run the red5;
>
> But it seens that my application doesn't is reachable by the RTMP, like if i typed anything that isn't in the webapps folder.
>
> What i could be possible doing wrong?
>;
>Thanks F?bio Brazil
>;
Re: can't create a new app
user name
2008-03-14 15:57:26
Apparently there is an error when i run ant i got the following outpu which i guess is that a socket error:
&nbsp; [java] Exception in thread "main" java.net.BindException: Address already in use
   ;  [java]&nbsp; &nbsp;  at sun.nio.ch.Net.bind(Native Method)
  ; &nbsp; [java]&nbsp; &nbsp;  at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
&nbsp; &nbsp;  [java]&nbsp; &nbsp;  at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
  ; &nbsp; [java]&nbsp; &nbsp;  at org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:365)
 &nbsp;   [java]&nbsp; &nbsp;  at org.apache.mina.transport.socket.nio.SocketAcceptor.access$900(SocketAcceptor.java:55)
  ; &nbsp; [java]&nbsp; &nbsp;  at org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:224)
 &nbsp; &nbsp; [java]&nbsp; &nbsp;  at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:39)
 ; &nbsp;  [java]&nbsp; &nbsp;  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
&nbsp; &nbsp;  [java]&nbsp; &nbsp;  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
 &nbsp;   [java]&nbsp; &nbsp;  at java.lang.Thread.run(Thread.java:619)

But since the streaming of the demos works i don't&nbsp; see if it's related

2008/3/14, Fábio Costa < blackjackdevelgmail.com">blackjackdevelgmail.com>:
 Hi sean, there isn't a red5.sh on the dist, just on red5 folder(the root instalation).
 Anyway i'm clueless all threads that i saw didn't worked.
 -use java 5 on the project on Eclipse
&nbsp;-remove the servlet tags on web.xml
 -And i even tried to put the application on the jar by oppening the jar, creating a folder called tester and putting the compiled .class in there. It didn't worked.
&nbsp;
 Is there any log in red5 for ubuntu( i didn't found any )? I don't know the reason but almos everybody seems to solve this pretty straight forward.

 PS: i try to connect by rtmp://localhost/tester OR rtmp://127.0.0.1/tester
 thanks for the help
>
>Message: 6
>Date: Fri, 14 Mar 2008 14:45:30 -0500
>From: Sean Newman < sean_newhotmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">sean_newhotmail.com>
>Subject: Re: [Red5] can't create a new app
>To: < red5osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">red5osflash.org>
>Message-ID: < BAY123-W9202963F8F09B587120E1F50A0phx.gbl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">BAY123-W9202963F8F09B587120E1F50A0phx.gbl&gt;
>Content-Type: text/plain; charset=&quot;iso-8859-1"
&gt;
>
&gt;Hi Fabio,
>;
> Did you run the red5.sh in the dist directory?
>
>Sean
>
&gt;Date: Fri, 14 Mar 2008 15:51:58 -0300
>From: blackjackdevelgmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">blackjackdevelgmail.com
>To: red5osflash.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">red5osflash.org
>Subject: [Red5] can't create a new app
>
&gt; I recently instaled red5 on an ubuntu notebook, all the demos works fine but my new application do not.
>; It name is tester and it's package is br.com.vplace.
> I used the following params:
&gt; In build.xml:
>
>
> &nbsp;  <context-param>
  ; &nbsp;  <param-name>webAppRootKey&lt;
>;/param-name>
>&nbsp;   ; &nbsp; <param-value>/tester</param-value&gt;
>&nbsp;  </context-param>;
>
> red5-web.xml
>
>;<bean id="web.handler&quot;
>
> &nbsp;   ;  class=&quot;br.com.vplace.tester"
> &nbsp;   ;  singleton="true&quot; />
>
>red5-web.properties
>webapp.contextPath=/tester
>
> And in the build.xml :
><javac sourcepath="&quot; srcdir=&quot;${webapps.dir}/tester/WEB-INF/src" destdir=&quot;${webapps.build.dir}/tester/WEB-INF/classes"
>
>; &nbsp; &nbsp; &nbsp; &nbsp;   ; classpathref="webapps.classpath" optimize=&quot;${build.optimize}" verbose=&quot;${build.verbose}&quot;
>&nbsp; &nbsp;   ; &nbsp; &nbsp;  fork=";${build.fork}" nowarn=&quot;${build.nowarn}&quot; deprecation="${build.deprecation}";
>
> &nbsp;   ; &nbsp; &nbsp; &nbsp; debug=&quot;${debug.state}" compiler=&quot;${compiler}" source=&quot;${java.target_version}" target=&quot;${java.target_version}"/&gt;
>
&gt; The ant server aparently runs fine, and the webapps.build.dir which seems to be  RED5_INSTALATION/dist/webapps,&nbsp; Has the tester folder and the WEB-INF, and etc, and when i runned ant server it created a tester.class file (which was expected).
>
&gt; Then after run ant server to build with ant my application, i start the sh to run the red5;
>
> But it seens that my application doesn't is reachable by the RTMP, like if i typed anything that isn't in the webapps folder.
>
> What i could be possible doing wrong?
>;
>Thanks F?bio Brazil
>;

why ROOT web app
country flaguser name
United States
2008-03-14 16:07:32
Hi,

Currently I use red5 only for media purposes.
For data services I use blazeds.

All this has to be to hosted within one servlet engine (
resin in my case ).

I have a working setup, but not a clean one according to
me.
Since red5 only works from ROOT context, I have to deploy a
customized red5-war under a context ( let's say
/red5-context ) and deploy my applications within this
context.

According to me it must be possible to create a war that has
not to be deployed under ROOT context.

Anyone bumped on problems like this?

Cheers,

Wouter.


_______________________________________________
Red5 mailing list
Red5osflash.org

http://osflash.org/mailman/listinfo/red5_osflash.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )