[Red5] beginner help
Mike Baranczak
mbaranczak at gmail.com
Sun Dec 7 08:30:40 PST 2008
OK, now it makes sense. All the wars in there are compiled for 1.6.
If I don't want to screw around with the installer, can I just build
the wars and copy them manually into dist/webapps/? Or does the
installer do something else to them?
-MB
On Dec 7, 2008, at 7:26 AM, Manuel Raña wrote:
> Hi,
>
> installer app is getting the wars from here:
> http://red5.googlecode.com/svn/snapshots/
>
> And here is where available wars are listed:
> http://red5.googlecode.com/svn/snapshots/registry.xml
>
> If you want to build your own wars and make them available to the
> installer you could:
>
> 1.- build yourself the example apps wars from these sources:
> http://red5.googlecode.com/svn/java/example/trunk/
>
> 2.- change installer application.repository.url from this file (last
> line):
> red5/webapps/installer/WEB-INF/red5-web.properties
>
> 3.- create your own ${application.repository.url}registry.xml with
> this format:
> http://red5.googlecode.com/svn/snapshots/registry.xml
>
>
> then installer will load the apps you build from your own url
> just an idea...
>
>
>
> 2008/12/7 Mike Baranczak <mbaranczak at gmail.com>
> On Dec 7, 2008, at 1:41 AM, devon girard wrote:
>
> I say, don't give up! I bet good money that it is a rogue Java 6 jar!
>
> I doubt the line you specified Is what you want to be changing; that
> looks like a conditional statement to me.
>
> I know, that was just a temporary solution. I didn't feel like
> debugging the version-detection code, so I just bypassed it.
>
>
>
>
>
> And if you are compiling the demos also, remember that they have
> their own build.properties file; you will need to change it also.
>
> I don't have the time to backtrack and figure out exactly what conf
> I changed, yet if you are thorough with your jar removal +
> retrieving and you succeed in loading the java5 ivy conf you should
> be good...I guarantee you everything works just fine on osx.
>
> I already know which class is causing the problem, and where it lives:
>
> dist/webapps/admin/WEB-INF/classes/org/red5/webapps/admin/
> UserDatabase.class
>
> But here's the thing - I didn't compile this class. It (and the
> corresponding source file, in the same directory) only appears after
> I install "admin" through the installer applet. I thought that the
> installer was copying the webapps from somewhere else in the red5
> directory, but that's obviously not the case. Where the hell does it
> come from?
>
>
>
>
>
>
>
>
> On Sat, Dec 6, 2008 at 10:28 PM, Mike Baranczak
> <mbaranczak at gmail.com> wrote:
> You're right, ivy was trying to use the "java6" configuration.
>
> There is a line in build.properties about the java version, but ivy
> doesn't use that. Seems that the problem is in build.xml. I can't
> make sense of the version detection code, but I found this line in
> the "retrieve" target:
>
> <condition property="ivy.conf.name" value="java6">
>
> Changed it to "java5", then ran "ant ivyclear" and "ant retrieve".
> It told me it was using the "java5" configuration, so I ran "ant
> dist", started the server, and installed the "admin" application.
>
> But I'm still getting the exact same UnsupportedClassVersionError.
>
> -MB
>
>
>
> On Dec 7, 2008, at 12:18 AM, devon girard wrote:
>
> "UnsupportedClassVersionError: Bad version number in .class file" is
> telling you that there is a Java 1.6 jar somewhere in there.
>
> so, you need to be sure java5 config is being loaded; try checking
> the config files, I think "build.properties" specifies this.
>
> then, try "ant -p" in terminal and look for something like "ivy
> clean retrieve"....that is the command you want...it will delete all
> lib jars and re-download.
>
> I went through this also; when ivy begins the retrieved process,
> watch the console; it will output either java5 or java6...
>
> On Sat, Dec 6, 2008 at 10:01 AM, Mike Baranczak
> <mbaranczak at gmail.com> wrote:
> I just downloaded the version of red5 from svn trunk. I'm running
> Mac OS 10.4, with Java 1.5.
>
> The server builds with no problems, and after launching it (cd
> dist; ./red5.sh) I can access the welcome page at http://localhost:5080/
> , so I know it's running. But I still have multiple problems:
>
> 1. The applets on the demo pages don't load at all in Firefox, I
> just get a blank page. It works fine in Safari, so I'm guessing this
> is a JavaScript issue. Or possibly something to do with AdBlock...
> but let's set that aside for now.
>
>
>
> 2. I went to http://localhost:5080/installer/ and installed "echo"
> and "oflaDemo", but I can't get either of them to work. It seems
> that the applet is completely failing to connect to the server. I
> went to http://localhost:5080/demos/port_tester.swf and I get
> "FAILED" for all the items. I did see this in the server output:
>
> [ERROR] [pool-4-thread-12] org.red5.server.tomcat.TomcatLoader -
> Error setting up context: echo
>
>
>
> 3. When trying to go to the admin page, I get an exception:
>
> [ERROR] [http-5080-1] org.apache.catalina.core.ContainerBase.
> [red5Engine].[0.0.0.0].[/admin] - StandardWrapper.Throwable
> org.springframework.beans.factory.CannotLoadBeanClassException:
> Error loading class [org.red5.webapps.admin.UserDatabase] for bean
> with name 'userDatabase' defined in ServletContext resource [/WEB-
> INF/red5-security.xml]: problem with class file or dependent class;
> nested exception is java.lang.UnsupportedClassVersionError: Bad
> version number in .class file (unable to load class
> org.red5.webapps.admin.UserDatabase)
>
> The message shown in the browser tells me to move 3 jars to the
> shared lib directory; I did that, and there's no effect.
>
>
> Suggestions?
>
> -MB
>
>
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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
More information about the Red5
mailing list