# Error on start up

**URL:** <https://community.wowza.com/t/error-on-start-up/41877>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [November 18, 2014, 7:01pm UTC](https://community.wowza.com/t/error-on-start-up/41877 "2014-11-18T19:01:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Tremblay](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@Martin\_Tremblay](https://community.wowza.com/u/Martin_Tremblay)\
**Post date:** [November 18, 2014, 7:01pm UTC](https://community.wowza.com/t/error-on-start-up/41877/1 "2014-11-18T19:01:18Z")

</div>

Hi, I’m quite new to Wowza.

I’m getting this error on start up:

```auto
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

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [November 19, 2014, 1:36am UTC](https://community.wowza.com/t/error-on-start-up/41877/2 "2014-11-19T01:36:54Z")

</div>

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](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”)

---

<div class="post-metadata">

**Author:** ![Martin\_Tremblay](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@Martin\_Tremblay](https://community.wowza.com/u/Martin_Tremblay)\
**Post date:** [November 19, 2014, 4:59pm UTC](https://community.wowza.com/t/error-on-start-up/41877/3 "2014-11-19T16:59:09Z")

</div>

Hi Karelboek,

That was exactly my problem.

It’s working correctly now.

Martin
