> -----Original Message-----
> From: Dave [mailto:[email protected]]
> Sent: Thursday, June 16, 2011 4:16 PM
> To: [email protected]
> Subject: Re: Comment authentication problem
> 
> Can you send the list of import statements at the start of your class,
> or the whole class.

import java.util.ResourceBundle;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
 
> I bet some of the package names have changed since 3.1.
> 
> - Dave

Rocsca

> 
> 
> 
> On Thu, Jun 16, 2011 at 4:47 AM, Rocco Scappatura
> <[email protected]> wrote:
> > On Mer, 15 Giugno 2011 13:53, Dave wrote:
> >> On Mon, Jun 13, 2011 at 7:32 PM, Rocco Scappatura
> >> <[email protected]> wrote:
> >>> On Gio, 9 Giugno 2011 19:09, Dave wrote:
> >>>> What is going wrong with your custom Servlet? Any error messages to
> >>>> share?
> >>>
> >>> Thank you Dave for you prompt answer and sorry for my delay.
> >>>
> >>> I try to modify the class MathCommentAuthenticator. I copied it into a
> >>> new
> >>> class just as I ve done in the thread above. I have some difficulty to
> >>> compile the class:
> >>>
> >>>>c:\java\bin\javac -cp
> >>> "C:\Tomcat\webapps\roller\WEB-INF\lib\commons-logging-
> 1.1.1.jar;C:\Tomcat\webapps\roller\WEB-INF\lib\roller-weblogger-web-
> 5.0.0.jar;C:\Tomcat\common\lib\servlet-api.jar;C:\Tomcat\common\lib\jsp-
> api.jar"
> >>> MathCommentAuthenticator.java
> >>>
> >>> MathCommentAuthenticator.java:31: cannot find symbol
> >>> symbol: class CommentAuthenticator
> >>> public class MathCommentAuthenticator implements CommentAuthenticator {
> >>
> >> I believe you will also need rollerweblogger-business-5.0.0.jar in
> >> your classpath.
> >
> > Nothing to do.. I get:
> >
> > C:\Tomcat\webapps\roller\WEB-INF\classes\org\rocsca>c:\java\bin\javac
> > -classpath
> >  "C:\Tomcat\common\lib\servlet-api.jar;C:\Tomcat\webapps\roller\WEB-
> INF\lib\comm
> > ons-logging-1.1.1.jar;C:\Tomcat\webapps\roller\WEB-INF\lib\roller-weblogger-
> web-
> > 5.0.0.jar;C:\Tomcat\webapps\roller\WEB-INF\lib\roller-weblogger-business-
> 5.0.0.j
> > ar"
> > "C:\Tomcat\webapps\roller\WEB-INF\classes\org\rocsca\MathCommentAuthenticato
> > r.java"
> > C:\Tomcat\webapps\roller\WEB-
> INF\classes\org\rocsca\MathCommentAuthenticator.jav
> > a:31: cannot find symbol
> > symbol: class CommentAuthenticator
> > public class MathCommentAuthenticator implements CommentAuthenticator {
> >                                                 ^
> > C:\Tomcat\webapps\roller\WEB-
> INF\classes\org\rocsca\MathCommentAuthenticator.jav
> > a:75: cannot find symbol
> > symbol  : variable mathAnswer
> > location: class org.rocsca.MathCommentAuthenticator.MathCommentAuthenticator
> >        sb.append(mathAnswer);
> >                  ^
> > C:\Tomcat\webapps\roller\WEB-
> INF\classes\org\rocsca\MathCommentAuthenticator.jav
> > a:94: cannot find symbol
> > symbol  : variable mathAnswerString
> > location: class org.rocsca.MathCommentAuthenticator.MathCommentAuthenticator
> >                if (mathAnswerString != null && answer ==
> > Integer.parseInt(mathA
> > nswerString)) {
> >                    ^
> > C:\Tomcat\webapps\roller\WEB-
> INF\classes\org\rocsca\MathCommentAuthenticator.jav
> > a:94: cannot find symbol
> > symbol  : variable mathAnswerString
> > location: class org.rocsca.MathCommentAuthenticator.MathCommentAuthenticator
> >                if (mathAnswerString != null && answer ==
> > Integer.parseInt(mathA
> > nswerString)) {
> >                                                                           ^
> > 4 errors
> >
> > even after put into the classpath the jars
> > roller-weblogger-business-5.0.0.jar and roller-weblogger-web-5.0.0.jar.
> >
> > I really can't figure out I can't succeed in compiling my class (It does't
> > seem to me that ther is any syntax error..).
> >
> >> - Dave
> >
> > rocsca
> >
> >>
> >
> >
> >

Reply via email to