Error on start up

Hi, I’m quite new to Wowza.

I’m getting this error on start up:

ServerUtils.loadServerListener: Error creating <ServerListener> (com.wowza.wms.plugin.collection.module.ModuleStreamPublisher) : 
java.lang.ClassCastException: com.wowza.wms.plugin.collection.module.ModuleStreamPublisher cannot be cast to com.wowza.wms.server.IServerNotify|
at com.wowza.wms.util.ServerUtils.loadServerListener(ServerUtils.java:43)|
at com.wowza.wms.util.ServerUtils.loadConfigFile(ServerUtils.java:304)|
at com.wowza.wms.server.Server.a(Server.java:936)|
at com.wowza.wms.server.Server.start(Server.java:970)|
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)|

Theses are my server listeners

com.wowza.wms.mediacache.impl.MediaCacheServerListener

com.wowza.wms.plugin.collection.serverlistener.ServerListenerStreamPublisher

com.wowza.wms.plugin.collection.module.ModuleStreamPublisher

com.wowza.wms.plugin.amazonaws.ec2.env.ServerListenerEC2Variables

Not sure how to solve this.

Thx

Martin

Hi Martin,

Are you trying to implement scheduling with the ServerListenerStreamPublisher? Please consult this article: https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher for a complete description. It looks like you’ve tried to add the module ModuleStreamPublisher as a Server Listener in conf/Server.xml, whereas that module should be added to the Application.xml of your application (e.g. in /conf/live/Application.xml if your application name is “live”)

Hi Karelboek,

That was exactly my problem.

It’s working correctly now.

Martin