Results 1 to 3 of 3

Thread: Unable to add ModuleOnConnectAuthenticate2

  1. #1
    Join Date
    Apr 2015
    Posts
    2

    Default Unable to add ModuleOnConnectAuthenticate2

    I installed the plugin in the lib directory where other plugins reside, as per this guide:

    http://www.wowza.com/forums/content....ule-Collection

    I then attempted to enable the plugin using this guide:

    http://www.wowza.com/forums/content....thenticate2%29

    In the logs, ever time I tried publishing a stream, the following error showed up:

    2015-04-06 14:28:42 EDT comment server WARN 200 - loadModFunctions[live/_definst_]: Module class not found or could not be loaded. Check [install-dir]/conf/live/Application.xml to be sure all Modules/Module/Class paths are correct: name:moduleOnConnectAuthenticate class:com.wowza.wms.plugin.collection.module.ModuleOnConnectAuthenticate2

    I also tried adding the module using the GUI in case I screwed up somewhere, and that didn't work either. I wasn't even able to add properties in the GUI after adding the module, presumably because the module wasn't found.

    If it makes any difference (and I hope it doesn't) I'm using the trial version as we evaluate the possibility of using this service.

  2. #2
    Join Date
    Jan 2015
    Posts
    357

    Default

    Hi amraam27,

    It should not make a difference if you are using a trial version. You should still be able to use the Wowza Module collection. Have you tried restarting the Wowza services after you have copied over the lib files?

    Also, you would need to enable Advanced Settings for your Manager user account in order to add custom modules.

    Michelle

  3. #3
    Join Date
    Apr 2015
    Posts
    2

    Default

    Hi Michelle, thanks for your reply.

    Yes, I restarted the service. Hell, I even restarted the whole server in a "nuke it all from orbit" hope. I had enabled the advanced settings. First, I tried doing it by modifying the file (backed it up first, just in case) with vi. When that didn't work, I reverted my changes and enabled advanced settings in the manager. I followed this guide:

    http://www.wowza.com/forums/content....#configModules

    The error was the same in the log.

    I'll paste some details below. Here is my lib directory:

    root@wowzadev:/usr/local/WowzaStreamingEngine/lib# ls
    bcprov-jdk15on-149.jar wms-dvr.jar wms-plugin-collection.jar
    commons-lang-2.6.jar wms-httpstreamer-cupertinostreaming.jar wms-pushpublish.jar
    jackson-annotations-2.1.1.jar wms-httpstreamer-directstreaming.jar wms-release-tools.jar
    jackson-core-2.1.1.jar wms-httpstreamer-mpegdashstreaming.jar wms-rest.jar
    jackson-databind-2.1.1.jar wms-httpstreamer-sanjosestreaming.jar wms-restlet-2.1.6.jar
    jid3lib-0.5.4.jar wms-httpstreamer-smoothstreaming.jar wms-restlet-2.1.6.org.restlet.ext.simple.jar
    joda-time-2.3.jar wms-jax.validation.jar wms-server.jar
    log4j-1.2.17.jar wms-jlayer.jar wms-stats.jar
    slf4j-api-1.6.4.jar wms-license-rest.jar wms-stream-file.jar
    slf4j-log4j12-1.6.4.jar wms-mediacache.jar wms-stream-live.jar
    wms-amazonutil.jar wms-mediareader-flv.jar wms-stream-publish.jar
    wms-ant.jar wms-mediareader-h264.jar wms-stream-record.jar
    wms-bootstrap.jar wms-mediareader-mp3.jar wms-stream-rtp.jar
    wms-commons-modeler.jar wms-mediareader-smil.jar wms-stream-shoutcast.jar
    wms-core.jar wms-mediawriter-flv.jar wms-transcoder.jar
    wms-drm.jar wms-mediawriter-h264.jar wms-xstream-1.4.7.jar

    All the jars have permissions set to 775.

    And below is what I have in my Application.xml file in [install root]/conf/live/Application.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <Root version="1">
    <Application>
    <Name>live</Name>
    <AppType>Live</AppType>
    <Description>Default application for live streaming created when Wowza Streaming Engine is installed. Use this application with its default configuration or modify the configuration as needed. You can also copy it to create another live application.</Description>
    <!-- Uncomment to set application level timeout values
    <ApplicationTimeout>60000</ApplicationTimeout>
    <PingTimeout>12000</PingTimeout>
    <ValidationFrequency>8000</ValidationFrequency>
    <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    <MaximumSetBufferTime>60000</MaximumSetBufferTime>
    <MaximumStorageDirDepth>25</MaximumStorageDirDepth>
    -->
    <Connections>
    <AutoAccept>true</AutoAccept>
    <AllowDomains></AllowDomains>
    </Connections>
    <!--
    StorageDir path variables

    ${com.wowza.wms.AppHome} - Application home directory
    ${com.wowza.wms.ConfigHome} - Configuration home directory
    ${com.wowza.wms.context.VHost} - Virtual host name
    ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
    ${com.wowza.wms.context.Application} - Application name
    ${com.wowza.wms.context.ApplicationInstance} - Application instance name

    -->
    <Streams>
    <StreamType>live-lowlatency</StreamType>
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, mpegdashstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater, mpegdashstreamingrepeater -->
    <LiveStreamPacketizers>cupertinostreamingpacketizer, mpegdashstreamingpacketizer, sanjosestreamingpacketizer, smoothstreamingpacketizer</LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>
    </Properties>
    </Streams>
    <Transcoder>
    <!-- To turn on transcoder set to: transcoder -->
    <LiveStreamTranscoder></LiveStreamTranscoder>
    <!-- [templatename].xml or ${SourceStreamName}.xml -->
    <Templates>${SourceStreamName}.xml,transrate.xml</Templates>
    <ProfileDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/profiles</ProfileDir>
    <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/transcoder/templates</TemplateDir>
    <Properties>
    </Properties>
    </Transcoder>
    <DVR>
    <!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above -->
    <!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above -->
    <!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below -->
    <!-- If this is a dvrstreamingrepeater, define Application/Repeater/OriginURL to point back to the origin -->
    <!-- To turn on DVR recording set Recorders to dvrrecorder. This works with dvrstreamingpacketizer -->
    <Recorders></Recorders>
    <!-- As a single server or as an origin, set the Store to dvrfilestorage-->
    <!-- edges should have this empty -->
    <Store></Store>
    <!-- Window Duration is length of live DVR window in seconds. 0 means the window is never trimmed. -->
    <WindowDuration>0</WindowDuration>
    <!-- Storage Directory is top level location where dvr is stored. e.g. c:/temp/dvr -->
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>
    <!-- valid ArchiveStrategy values are append, version, delete -->
    <ArchiveStrategy>append</ArchiveStrategy>
    <!-- Properties for DVR -->
    <Properties>
    </Properties>
    </DVR>
    <TimedText>
    <!-- VOD caption providers (separate with commas): vodcaptionprovidermp4_3gpp, vodcaptionproviderttml, vodcaptionproviderwebvtt, vodcaptionprovidersrt, vodcaptionproviderscc -->
    <VODTimedTextProviders></VODTimedTextProviders>
    <!-- Properties for TimedText -->
    <Properties>
    </Properties>
    </TimedText>
    <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, mpegdashstreaming, dvrchunkstreaming -->
    <HTTPStreamers>cupertinostreaming, smoothstreaming, sanjosestreaming, mpegdashstreaming</HTTPStreamers>
    <MediaCache>
    <MediaCacheSourceList></MediaCacheSourceList>
    </MediaCache>
    <SharedObjects>
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/applications/${com.wowza.wms.context.Application}/sharedobjects/${com.wowza.wms.context.ApplicationInstance}</StorageDir>
    </SharedObjects>
    <Client>
    <IdleFrequency>-1</IdleFrequency>
    <Access>
    <StreamReadAccess>*</StreamReadAccess>
    <StreamWriteAccess>*</StreamWriteAccess>
    <StreamAudioSampleAccess></StreamAudioSampleAccess>
    <StreamVideoSampleAccess></StreamVideoSampleAccess>
    <SharedObjectReadAccess>*</SharedObjectReadAccess>
    <SharedObjectWriteAccess>*</SharedObjectWriteAccess>
    </Access>
    </Client>
    <RTP>
    <!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    <Authentication>
    <PublishMethod>block</PublishMethod>
    <PlayMethod>none</PlayMethod>
    </Authentication>
    <!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
    <AVSyncMethod>senderreport</AVSyncMethod>
    <MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
    <IdleFrequency>75</IdleFrequency>
    <RTSPSessionTimeout>90000</RTSPSessionTimeout>
    <RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
    <RTSPBindIpAddress></RTSPBindIpAddress>
    <RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
    <IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
    <!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
    <Properties>
    </Properties>
    </RTP>
    <MediaCaster>
    <RTP>
    <RTSP>
    <!-- udp, interleave -->
    <RTPTransportMode>interleave</RTPTransportMode>
    </RTSP>
    </RTP>
    <StreamValidator>
    <Enable>true</Enable>
    <ResetNameGroups>true</ResetNameGroups>
    <StreamStartTimeout>20000</StreamStartTimeout>
    <StreamTimeout>12000</StreamTimeout>
    <VideoStartTimeout>0</VideoStartTimeout>
    <VideoTimeout>0</VideoTimeout>
    <AudioStartTimeout>0</AudioStartTimeout>
    <AudioTimeout>0</AudioTimeout>
    <VideoTCToleranceEnable>false</VideoTCToleranceEnable>
    <VideoTCPosTolerance>3000</VideoTCPosTolerance>
    <VideoTCNegTolerance>-500</VideoTCNegTolerance>
    <AudioTCToleranceEnable>false</AudioTCToleranceEnable>
    <AudioTCPosTolerance>3000</AudioTCPosTolerance>
    <AudioTCNegTolerance>-500</AudioTCNegTolerance>
    <DataTCToleranceEnable>false</DataTCToleranceEnable>
    <DataTCPosTolerance>3000</DataTCPosTolerance>
    <DataTCNegTolerance>-500</DataTCNegTolerance>
    <AVSyncToleranceEnable>false</AVSyncToleranceEnable>
    <AVSyncTolerance>1500</AVSyncTolerance>
    <DebugLog>false</DebugLog>
    </StreamValidator>
    <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    <Properties>
    </Properties>
    </MediaCaster>
    <MediaReader>
    <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
    <Properties>
    </Properties>
    </MediaReader>
    <MediaWriter>
    <!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
    <Properties>
    </Properties>
    </MediaWriter>
    <LiveStreamPacketizer>
    <!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
    <Properties>
    </Properties>
    </LiveStreamPacketizer>
    <HTTPStreamer>
    <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
    <Properties>
    </Properties>
    </HTTPStreamer>
    <Manager>
    <!-- Properties defined are used by the Manager -->
    <Properties>
    </Properties>
    </Manager>
    <Repeater>
    <OriginURL></OriginURL>
    <QueryString><![CDATA[]]></QueryString>
    </Repeater>
    <StreamRecorder>
    <Properties>
    </Properties>
    </StreamRecorder>
    <Modules>
    <Module>
    <Name>base</Name>
    <Description>Base</Description>
    <Class>com.wowza.wms.module.ModuleCore</Class>
    </Module>
    <Module>
    <Name>logging</Name>
    <Description>Client Logging</Description>
    <Class>com.wowza.wms.module.ModuleClientLogging</Class>
    </Module>
    <Module>
    <Name>flvplayback</Name>
    <Description>FLVPlayback</Description>
    <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
    </Module>
    <Module>
    <Name>moduleOnConnectAuthenticate</Name>
    <Description>Authenticates Flash connections.</Description>
    <Class>com.wowza.wms.plugin.collection.module.ModuleOnConnectAuthenticate2</Class>
    </Module>
    </Modules>
    <!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
    <Properties>
    </Properties>
    </Application>
    </Root>

Similar Threads

  1. Issue with ModuleOnConnectAuthenticate2
    By projjwal in forum Wowza Streaming Server Java API
    Replies: 4
    Last Post: 04-24-2015, 04:51 PM
  2. Want to Add Trascoder Add-on Module to my Wowza 3.0
    By Rameez Rahim in forum AddOn: Transcoder
    Replies: 1
    Last Post: 10-30-2014, 02:49 AM
  3. Replies: 7
    Last Post: 02-23-2014, 08:48 PM
  4. how to block duplicate authen in ModuleOnConnectAuthenticate2
    By ohmygod99 in forum Server-side Modules and Code Samples Discussion
    Replies: 3
    Last Post: 02-19-2013, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •