On Tue, Dec 15, 2009 at 5:04 AM, Rocco Scappatura <rocco.scappat...@infracom.it> wrote: > On Sab, 12 Dicembre 2009 4:27, Dave wrote: >> Part of the problem is that the math authenticator does not include >> debug statements: >> >> http://bit.ly/5x31Qv >> >> One option would be for you to create your own new math authenticator >> based on that code, but with a different name/package. You could add >> debug code into your authenticator, compile it (against the Roller >> jars), plug it into Roller via roller-custom.properties and then get >> some useful output. > > I'm not expert java programmer.. :-( Neverthless I never downloaded source > version of roller 3.1 before today.. So I ask you to please address me.. > > What I have to put into de code to enable debug for the class > MathCommentAuthenticator?
I would recommend copying that MathCommentAuthenticator code that I referenced into a new Java class in a different package, for example "org.rocco" There is a logger in the MathCommentAuthenticator now, so to add debug logging you'll need this: mLogger.debug("I just did thing A"); // ... mLogger.debug("I just did thing B " + x + "times, how about that!?!"); > How I have to compile the java package? I suppose then I have to put some > resulting .jar and to copy it in <roller>\WEB-INF\lib dir and restart the > application.. Right? Since the MathCommentAuthenticator uses Commons Logging, Servlet API and Roller web stuff you will need to compile with these jars on your classpath: commons-logging.jar servlet.jar (from your app server perhaps?) roller-web.jar Then put the resulting classes in a jar file, put that jar file in WEB-INF/lib and add the following to your roller-custom.properties file so that Roller will use your new authenticator: authenticator.classname=org.rocco.MathCommentAuthenticator Hope that helps... - Dave