Wowza Community

Added external jar to application

WARN server comment - loadModFunctions[5d73312581f91968179e823f/definst]: Module class not found or could not be loaded. Check [install-dir]/conf/5d73312581f91968179e823f/Application.xml to be sure all Modules/Module/Class paths are correct: name:BandwidthCalc class:com.wowza.rtmp.live.BandwidthCalc
INFO server comment - MediaCasterStreamValidator.init[5d73312581f91968179e823f/definst]: Started
INFO application app-start definst 5d73312581f91968179e823f/definst

I have added a jar and its giving me this warning and Logs are generated to my module

public class BandwidthCalc extends ModuleBase { // Class name

Build.xml File

<?xml version="1.0"?><project name="BandwidthCalc" default="jar" basedir=".."><br>   <br>   <property name="wowza.lib.dir" value="/usr/local/WowzaStreamingEngine/lib"/><br>   <property name="jar.filename" value="BandwidthCalc.jar"/><br>   <property name="core.build.dir" value="bin"/><br>   <target name="jar"><br>      <jar jarfile="${wowza.lib.dir}/${jar.filename}"><br>         <fileset dir="${core.build.dir}"/><br>      </jar><br>   </target><br></project>

Looking into this for you…

I would suggest @vipul pandey that you check the WSE lib folder to see if the file is actually there. If it is then it’s possibly a java version issue. If you run WSE from the command line then you may see a class version error.

Sometimes some of our users are trying to build their modules with java 10+ and then wondering why they won’t run on java 8. To remind you, our Engine currently runs on Java 8 and will be upgraded in a future release.

The error will look like this:

java.lang.UnsupportedClassVersionError: [class-name] has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0

java.lang.UnsupportedClassVersionError extends java.lang.Error so it won’t get caught by an Exception handler.


The fix will be to make sure eclipse is compiling against Java 8.