Wowza Community

Could not find the main class: com.wowza.wms.bootstrap.Bootstrap. Program will exit.

this is what i get after ./startup.sh

Exception in thread “main” java.lang.NoClassDefFoundError: com/wowza/wms/bootstrap/Bootstrap

Caused by: java.lang.ClassNotFoundException: com.wowza.wms.bootstrap.Bootstrap

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

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

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

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

Could not find the main class: com.wowza.wms.bootstrap.Bootstrap. Program will exit.

can u help me? i uninstall the whole server with

cd /usr/local

rm –rf WowzaMediaServerPro-1.7.2

What do you get when you type in the following command:

java -version

Charlie

Uninstall again and this time try the rpm installer.

Charlie

You either have Wowza running twice or FMS and Wowza running at the same time. Try rebooting. Then see what you get when you execute the command:

ps -ef | grep java

If you see Wowza is already running then it is running as a service and you don’t need to start it standalone.

Charlie

Which installer did you use (rpm, deb, tar)? What Linux distro are you running?

Also, try editing bin/startup.sh and adding echo to the last line in the file:

from:
$_EXECJAVA $JAVA_OPTS $JMXOPTIONS -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start
to:
echo  $_EXECJAVA $JAVA_OPTS $JMXOPTIONS -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start

Then run ./startup.sh and send me the result. I want to see the command line that is being executed.

Charlie

Wait, I see the problem. The installation path is wrong. It is:

/usr/local/WowzaMediaServerPro/WowzaMediaServerPro-1.7.2/bin

It should just be:

/usr/local/WowzaMediaServerPro/bin

Where:

/usr/local/WowzaMediaServerPro

Is a symbolic link to:

/usr/local/WowzaMediaServerPro-1.7.2

So something got messed up in the install. Do you have any idea what might have gone wrong with the install?

Charlie

this:

java version “1.6.0_14”

Java™ SE Runtime Environment (build 1.6.0_14-b08)

Java HotSpot™ Server VM (build 14.0-b16, mixed mode)

thanks for your answer

i use the tar installer

i got FEDORA 7

previously, i get installed Wowza 1.7.0 … and everything was fine… then i uninstall 1.7.0 with

cd /usr/local

rm –rf WowzaMediaServerPro-1.7.0

and when i install the new wowza 1.7.2 the problem appears

ok let me check, and i post the result here … thank you charlie of the chocolate factory ;D

hi charlie … the rpm installer works… but i have a new problem

I get the following errors :

ERROR server comment - server core failure: java.net.BindException: Address alre ady in use

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)

at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r.registerNew(Unkno wn Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r.access$1100(Unkno wn Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r$Worker.run(Unknow n Source)

at org.apache.mina.util.NamePreservingRunnable.run(Un known Source)

at java.lang.Thread.run(Unknown Source)

INFO server comment - vhost home directory: /usr/local/WowzaMediaServerPro

INFO vhost vhost-start defaultVHost -

INFO vhost comment defaultVHost RTMP/RTMPT bind attempt ([any]:1935)

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net. BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment defaultVHost Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

everything works fine now!!! thank you charlie !!