# Load Balancer installation

**URL:** <https://community.wowza.com/t/load-balancer-installation/43889>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [November 4, 2014, 4:42pm UTC](https://community.wowza.com/t/load-balancer-installation/43889 "2014-11-04T16:42:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Eichele](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Derek\_Eichele](https://community.wowza.com/u/Derek_Eichele)\
**Post date:** [November 4, 2014, 4:42pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/1 "2014-11-04T16:42:11Z")

</div>

I’m installing the load balancer on a fresh EC2 instance. The instructions that I’m finding seem outdated and sometimes contradictory, could someone clarify what the proper steps are (point me to a current doc)?

For example, the instructions I’m following say to copy the wms-plugin-loadbalancer.jar from the load balancer distribution into the /lib directory - but there is already a copy of that file there - which file should I use?

The same goes for \<install-dir/conf/Vhost.xml.

Also, the docs state to insert this code in the Server.xml:

```auto
<ServerListener>
    <BaseClass>com.wowza.wms.plugin.loadbalancer.general.LoadBalancerServer</BaseClass>
</ServerListener>

```

- but this class doesn’t exist in the jar (a class without “general” does).

My current installation is logging this error at startup (although the server seems to start):

ERROR server comment - ServerUtils.loadServerListener: Error creating (com.wowza.wms.plugin.loadbalancer.LoadBalancerServer) : java.lang.InstantiationException: com.wowza.wms.plugin.loadbalancer.LoadBalancerServer|at java.lang.Class.newInstance(Class.java:418)|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)|

---

<div class="post-metadata">

**Author:** ![Derek\_Eichele](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Derek\_Eichele](https://community.wowza.com/u/Derek_Eichele)\
**Post date:** [November 6, 2014, 7:06pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/2 "2014-11-06T19:06:17Z")

</div>

Someone has successfully installed a LoadBalancer 4.0 on Streaming Engine Version 4? There are two wms-plugin-loadbalancer.jar files, one with the server distribution, and one with the LoadBalancer distribution. If I use the one from the LoadBalancer, I get:

```auto
loadHTTPProvider: error parsing HTTPProvider properties : java.lang.ClassNotFoundException: com.wowza.wms.plugin.loadbalancer.http.LoadBalancerInterface|at java.net.URLClassLoader$1.run(URLClassLoader.java:372)|at java.net.URLClassLoader$1.run(URLClassLoader.java:361)|at java.security.AccessController.doPrivileged(Native Method)|at java.net.URLClassLoader.findClass(URLClassLoader.java:360)|at java.lang.ClassLoader.loadClass(ClassLoader.java:424)|

```

If I use the one from the Server distribution I get :

```auto
 ServerUtils.loadServerListener: Error creating <ServerListener> (com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener) : java.lang.ClassNotFoundException: com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener|at java.net.URLClassLoader$1.run(URLClassLoader.java:372)|at java.net.URLClassLoader$1.run(URLClassLoader.java:361)|at java.security.AccessController.doPrivileged(Native Method)|at java.net.URLClassLoader.findClass(URLClassLoader.java:360)|at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

```

It seems like it’s looking for classes in both jars?

Any help would be really appreciated.

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [November 7, 2014, 7:52pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/3 "2014-11-07T19:52:37Z")

</div>

Hi,

If you are using the LoadBalancer 4.0 package, the you should only put the wms-plugin-loadbalancer.jar file from the lib/ folder that is available in the LoadBalancer\_4.0.zip archive you downloaded from [here](https://www.wowza.com/downloads/forums/loadbalancer/LoadBalancer_4.0.zip).

The Load Balancer installation and usage instructions can be found in the **WowzaDynamicLoadBalancingAddOn\_UsersGuide.pdf** document that is also available in the same .zip package.

Zoran

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [November 8, 2014, 10:56pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/4 "2014-11-08T22:56:33Z")

</div>

Hi,

Can you open a ticket with our support team by sending an email to support@wowza.com and describing the issue you are encountering.

Please also send us a ZIP archive containing your Wowza conf/ and logs/ folders? Please also add a reference to this forum thread in your ticket.

Zoran

---

<div class="post-metadata">

**Author:** ![Derek\_Eichele](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Derek\_Eichele](https://community.wowza.com/u/Derek_Eichele)\
**Post date:** [November 6, 2014, 8:09pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/5 "2014-11-06T20:09:14Z")

</div>

I’ve renamed the loadbalancer version of the jar and included it in the lib dir along with the original. The server starts without warnings/errors now.

---

<div class="post-metadata">

**Author:** ![Derek\_Eichele](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Derek\_Eichele](https://community.wowza.com/u/Derek_Eichele)\
**Post date:** [November 7, 2014, 5:09pm UTC](https://community.wowza.com/t/load-balancer-installation/43889/6 "2014-11-07T17:09:50Z")

</div>

Thanks for the reply.

That is where I got the zip from, and those are the instructions I am following.

But, that simply doesn’t work as far as I can tell. From examining the jar files and the errors, there are classes in BOTH versions of the jar that are required. As I stated before, if I only use the jar that comes with the LoadBalancer distribution, I get this error:

ServerUtils.loadServerListener: Error creating (com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener) : java.lang.ClassNotFoundException: com.wowza.wms.plugin.loadbalancer.ServerListenerLoadBalancerListener|at java.net.URLClassLoader$1.run(URLClassLoader.java:372)|at java.net.URLClassLoader$1.run(URLClassLoader.java:361)|at java.security.AccessController.doPrivileged(Native Method)|at java.net.URLClassLoader.findClass(URLClassLoader.java:360)|at java.lang.ClassLoader.loadClass(ClassLoader.java:424)|
