powered by Jive Software

Plugin not found error

I am trying to use an auth plugin and I am having a problem getting Openfire to find it. I have created a jar file and put it in /var/lib/openfire/plugins directory and I am getting the following in error.log when I restart openfire.

2009.08.19 17:46:47 [org.jivesoftware.openfire.auth.AuthFactory.initProvider(AuthFactory.java:87)] Error loading auth provider: edu.stanford.openfire.auth.JAASAut
hProvider
java.lang.ClassNotFoundException: edu.stanford.openfire.auth.JAASAuthProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.jivesoftware.util.ClassUtils.loadClass(ClassUtils.java:68)
at org.jivesoftware.util.ClassUtils.forName(ClassUtils.java:40)
at org.jivesoftware.openfire.auth.AuthFactory.initProvider(AuthFactory.java:83)
at org.jivesoftware.openfire.auth.AuthFactory.(AuthFactory.java:49)
at org.jivesoftware.openfire.handler.IQAuthHandler.(IQAuthHandler.java:79)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jivesoftware.openfire.XMPPServer.loadModule(XMPPServer.java:531)
at org.jivesoftware.openfire.XMPPServer.loadModules(XMPPServer.java:486)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:430)
at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)

When I look at the jar file I see:

jar tf /var/lib/openfire/plugins/stanfordopenfire.jar

META-INF/
META-INF/MANIFEST.MF
edu/
edu/stanford/
edu/stanford/openfire/
edu/stanford/openfire/auth/
edu/stanford/openfire/auth/JAASAuthProvider$Handler.class
edu/stanford/openfire/auth/JAASAuthProvider.class
edu/stanford/openfire/auth/StanfordAuthorizationPolicy.class

What am I missing?

Silly me. This is not a plugin, but a module. It goes in /usr/share/openfire/lib.