Skip to content
mondain edited this page Dec 9, 2014 · 2 revisions

Missing classes in red5-server 1.0.4-SNAPSHOT

If you see a message about missing classes when running any snapshots or releases after version 1.0.4-SNAPSHOT, you are most likely missing the red5-server-common classes. The server project was split-up on commit 95fb2e to prevent the requirement of "extra" red5-server classes on red5-client implementers. The classes that were shared among the two projects are now in the red5-server-common repository.

The actual error that you're most likely to see would be this:

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:123)
	at org.red5.server.Bootstrap.main(Bootstrap.java:48)
Caused by: java.lang.NoClassDefFoundError: org/red5/logging/Red5LoggerFactory
	at org.red5.server.Launcher.launch(Launcher.java:53)
	... 6 more
Caused by: java.lang.ClassNotFoundException: org.red5.logging.Red5LoggerFactory
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	... 7 more
Clone this wiki locally