powered by Jive Software

Trouble with red5 plugin on FreeBSD Server

I’‘m hoping this is an easy answer or at least solvable We have an openfire server running on FreeBSD 6.2 here and we wanted to try out the red5 plugin. However, it seems to be failing to fully install. I tried googling the error and thought I just needed an updated version of java but after installing a later jdk (1.5.11) I’'m still getting this error. Also, trying to go to http://myserver:9090/red5 only gives an HTTP 404 error. Any help would be appreciated!

Here’'s the error from the error log…

2007.03.20 11:27:06 org.jivesoftware.wildfire.container.PluginManager.loadPlugin(PluginManager.java: 466) Error loading plugin

java.lang.UnsupportedClassVersionError: Bad version number in .class file

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)

at java.net.URLClassLoader.access$100(URLClassLoader.java:56)

at java.net.URLClassLoader$1.run(URLClassLoader.java:195)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:354 )

at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:325 )

at org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.java:978)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.j ava:624)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfigurat ion.java:366)

at org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.jav a:288)

at org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java :221)

at org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguratio n.java:179)

at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1188)

at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:481)

at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:434)

at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)

at org.jivesoftware.wildfire.plugin.red5.Red5Plugin.initializePlugin(Red5Plugin.ja va:234)

at org.jivesoftware.wildfire.container.PluginManager.loadPlugin(PluginManager.java :404)

at org.jivesoftware.wildfire.container.PluginManager.access$200(PluginManager.java :46)

at org.jivesoftware.wildfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:920)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:65)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:142)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:166)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

Message was edited by: userbsd

I am sorry, but you need java 1.6. The red5 server code has unfortunately been compiled with java 6

-dele

Thanks dele, I looked around and found one of your other threads that had that information down in it. I was disappointed at first because FreeBSD doesn’'t seem to have a port of Java 1.6. However, I was able to download the new java binary and cobble things together enough to get the red5 plugin working under FreeBSD. Thanks for the reply.