Hi,
All seems ok to me. You don't need more that pointing the right class
in xwiki.cfg...
Are you really sure that the jar contains the class and is in the
published /lib folder ? I don't see anything else yet.
On Tue, Dec 9, 2008 at 3:36 PM, Juergen Lorenz Simon <simon(a)webtecc.com> wrote:
Hi,
i've been writing a custom authentication plugin for xwiki. The
implementation was
pretty straightforward, however I'm having trouble deploying the
plugin. I bundled
it with other plugins for the same purpose in a jar file.
The jar file is deployed to my local repository. It's pulled in when I
build the
xe-debug-web in Eclipse and it's present in the xe-debug-web/WEB-INF/
lib directory
of the deployed app (in .metadata/.plugins/org.eclipse.wst.server.core/
tmp0 ...).
I altered the xwiki.cfg, adding the following line:
xwiki
.authentication
.authclass=com.kontrast.vodafone.portal.xwiki.PortalAuthenticationPlugin
However, when starting the application, I get the following problem:
- Initializing AuthService...
- Failed to initialize AuthService
com.kontrast.vodafone.portal.xwiki.PortalAuthenticationPlugin using
Reflection, trying default implementations using 'new'.
java.lang.ClassNotFoundException:
com.kontrast.vodafone.portal.xwiki.PortalAuthenticationPlugin
at
org
.apache
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1387)
at
org
.apache
.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.xpn.xwiki.XWiki.getAuthService(XWiki.java:4630)
at com.xpn.xwiki.XWiki.checkAuth(XWiki.java:3566)
at
com
.xpn
.xwiki
.user
.impl
.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:170)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3574)
at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:4480)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:190)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
at
org
.apache
.struts
.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org
.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:
94)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:
287)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
com
.xpn
.xwiki
.web
.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:
112)
at
org
.apache
.catalina
.core
.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org
.apache
.catalina
.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org
.apache
.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org
.apache
.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org
.apache
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:637)
Any idea what I've missed?
Thanks in advance,
J.L.Simon
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne