[Red5] about version 0.6 / my current experiences
Ruben Waitz
red5 at amtex.nl
Sun Jun 25 13:19:14 EDT 2006
Hi Joachim,
I'm pulling my hair out to get apps working without adding classes to
red5.jar. Ofcourse with a server restart each attempt.
It seems that webapps/myapp/WEB-INF/classes/myapp/Application.class is
simply ignored or skipped.
I connected it from webapps/myapp/WEB-INF/red5-web.xml in the following way:
<bean id="web.handler"
class="myapp.Application"
singleton="true" />
Also I made all neccessary changes red5-web.properties (webapp.contextPath)
and web.xml (webrootkey)
Also, for insurance, I copied 'Application.class' to webapps/myapp/WEB-
INF/classes/ but had no success either.
Finally tried it on Linux to avoid 'wrapper.exe' but this was unsuccessful
also.
Am I forgetting something to let it work...?
(Furthermore I noticed that all 'shipped' application-examples make use of
classes in the red5.jar. That's why they do always work I think...)
Ruben
On Sat, 24 Jun 2006 02:06:54 +0200, Joachim Bauch wrote
> Hi Ruben,
>
> Ruben Waitz wrote:
> > I'll have to test the 'WEB-INF/classes/*.jar' method.
> > In the courses at 'http://www.flashextensions.com/index.php?page=free'
(20+
> > tutorials) the teacher (Fred?) explicitly said that you'll have to add
your
> > own class file in the jar file to let it work.
> > I think that it only works if you register the app in build.xml and
> > recompile Red5 with Ant completely.
>
> You surely don't have to add your classes to the red5.jar file!
> It's okay to have them either somewhere
> 1. in the classpath
> 2. in WEB-INF/classes/*.class
> 3. in WEB-INF/lib/*.jar
>
> Of course you can add your app to the build.xml to generate a
> red5.jar that contains all classes, but it's not required.
>
> > So you are saying if I turn helloWorld.class into helloWorld.jar and put
it
> > into WEB-INF/classes it should work?
>
> You don't need to put it in a .jar file, the .class is sufficient.
>
> > And also leave red5.jar untouched? That would be very nice...! That way
I
> > could reside mysql-connector-java.*.jar there too.
>
> Yep.
>
> > Continuing on that, it should also be possible to
enable 'log4j.properties'
> > for each individual application (in its own log file).
>
> Yep, just put such a file in the WEB-INF directory of your application.
>
> > You asked me how I would like to deploy an application.
> > Let's say there's a production Linux server and a Windows XP development
> > desktop both running Red5.
> > I think of the following scene:
> [...]
>
> Okay, this is all sounds like a good way to deploy applications, but
> I think this will be done in a second step after Red5 is mostly
> feature-complete ;)
>
> Joachim
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
More information about the Red5
mailing list