# Issue with ModuleOnConnectAuthenticate2

**URL:** <https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [March 31, 2015, 10:34pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927 "2015-03-31T22:34:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![projjwal\_sen](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@projjwal\_sen](https://community.wowza.com/u/projjwal_sen)\
**Post date:** [March 31, 2015, 10:34pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927/1 "2015-03-31T22:34:30Z")

</div>

Hi

I want to broadcast webcam stream (from my actionscript application) to wowza media server as live, using user authentication . I tried ModuleOnConnectAuthenticate2

and also follow the steps ([https://www.wowza.com/forums/content…-password-file](https://www.wowza.com/forums/content....-password-file)) .

This is the actionscript end script ,

var broadcastURL:String=‘rtmp://[wowzaServer]/live?user1&pass1’; // i put the userrname and password at conf/connect.password

broadcastNC=new NetConnection();

broadcastNC.client = this;

broadcastNC.connect(broadcastURL);

But at NetStatusEvent.NET\_STATUS it is receiving

NetConnection.Connect.Closed

NetConnection.Connect.Rejected

I think i am missing something ☹ . Anyway i am using wowza 4.1.1 developer edition (trial)

at wowza server end i already put wms-plugin-collection.jar at Wowza Streaming Engine 4.1.1\lib

and also added related Modules and properties for live application .

Please help ):

Regards

Projjwal

---

<div class="post-metadata">

**Author:** ![projjwal\_sen](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@projjwal\_sen](https://community.wowza.com/u/projjwal_sen)\
**Post date:** [April 2, 2015, 7:21pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927/2 "2015-04-02T19:21:09Z")

</div>

#Date: 2015-04-02

#Fields: x-severity x-category x-event date time c-client-id c-ip c-port cs-bytes sc-bytes x-duration x-sname x-stream-id x-spos sc-stream-bytes cs-stream-bytes x-file-size x-file-length x-ctx x-comment

ERROR server comment 2015-04-02 13:38:09 - - - - - 203491.295 - - - - - - - - IAuthenticateUsernamePasswordProvider.createUsernamePasswordProvider: Error creating UsernamePasswordProvider[com.example.MyCustomClass] : java.lang.ClassNotFoundException: com.example.MyCustomClass|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)|

---

<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:** [April 2, 2015, 5:47pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927/3 "2015-04-02T17:47:01Z")

</div>

Hi,

Thank you for the update.

Please keep us posted of your progress as other forum users might also benefit from your experience.

Thank you.

Zoran

---

<div class="post-metadata">

**Author:** ![projjwal\_sen](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@projjwal\_sen](https://community.wowza.com/u/projjwal_sen)\
**Post date:** [April 2, 2015, 7:29pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927/4 "2015-04-02T19:29:12Z")

</div>

I resolved just remove

Root/Application usernamePasswordProviderClass String com.example.MyCustomClass

and seems working fine , but need to check more .

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [April 24, 2015, 2:51pm UTC](https://community.wowza.com/t/issue-with-moduleonconnectauthenticate2/39927/5 "2015-04-24T14:51:53Z")

</div>

Hi projjwal,

I’m also going to move this to the correct sub-forum. This forum is reserved for requests for help from independent Wowza consultants.

Michelle
