Sorry, wanted to clarify my email in the case someone is looking
through this thread later.
I had the plugin.xml inside my java package this is incorrect.

The wiki page here:
http://wiki.sipfoundry.org/display/sipXecs/Call+Control+Web+Service+Plugins

Shows the correct jar structure.

On Fri, Feb 3, 2012 at 1:02 AM, Mircea Carasel <[email protected]> wrote:
>
>
> So it appears that it is failing this conditon in RestServiceFinder
>
> Class< ? > clazz = Class.forName(className);
> if (Plugin.class.isAssignableFrom(clazz)) {
> ...
> }
> Make sure that your plugin jar is deployed under 
> <your_install_dir>share/java/sipXecs/sipXrest/plugins
>
> plugin jar structure:
> -java package
> -plugin.xml
>
>
> uri-prefix and plugin-class are mandatory for a plugin to be found as in the 
> example below
>
> <rest-service>
> <plugin-class>org.sipfoundry.sipxrest.cdrlog.CdrLogPlugin</plugin-class>
> <security-level>LOCAL-AND-REMOTE</security-level>
> <uri-prefix>/cdr</uri-prefix>
> -
> <service-description>
>  This is a rest plugin for querying call logs for a particular user. You can
> invoke it using the URI cdr/{user}?limit=maxrecs&fromdate=yyyymmdd where
> user is a valid user in your user database, maxrecs is the maximum number
> of records that can be returned and yyyymmdd is the year/month/day to use
> as a starting point for the call logs to obtain.
> </service-description>
> <remote-authentication-method>HTTP-DIGEST</remote-authentication-method>
> </rest-service>
>
> Also your plugin class must extend org.sipfoundry.sipxrest.Plugin
>
> Mircea
> ----------
> Come and see us at CoLab @ CSU in March (5th & 6th)
> http://www.sipfoundry.org/sipx-colab
> http://wiki.sipfoundry.org/display/sipXecs/2012+sipX-CoLab+Hackfest
>
>
>
> --
> Kyle Haefner, M.S.
> Communication Systems Programmer
> Colorado State University
> Fort Collins, CO
> Phone: 970-491-1012<tel:970-491-1012>
> Email:  [email protected]<mailto:[email protected]>
> _______________________________________________
> sipx-dev mailing list
> [email protected]<mailto:[email protected]>
> List Archive: http://list.sipfoundry.org/archive/sipx-dev/
>



-- 
Kyle Haefner, M.S.
Communication Systems Programmer
Colorado State University
Fort Collins, CO
Phone: 970-491-1012
Email:  [email protected]
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to