AnsweredAssumed Answered

how to solve this problem from jpotts first edition tutorial

Question asked by himfire on May 1, 2012
Latest reply on May 2, 2012 by jpotts
I have downloaded the source code for the first edition of jpotts tutorial . this error has comes out to me and I don't know how to solve it can some one help me ?
I have done it in eclipse ?




Buildfile: /home/control/workspace/try2/advanced-workflow-article/build.xml
setup:
    [mkdir] Created dir: /home/control/workspace/try2/advanced-workflow-article/build
compile:
    [mkdir] Created dir: /home/control/workspace/try2/advanced-workflow-article/bin
    [javac] /home/control/workspace/try2/advanced-workflow-article/build.xml:51: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 12 source files to /home/control/workspace/try2/advanced-workflow-article/bin
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:7: error: package org.alfresco.web.scripts does not exist
    [javac] import org.alfresco.web.scripts.WebScriptRequest;
    [javac]                                ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:8: error: package org.alfresco.web.scripts does not exist
    [javac] import org.alfresco.web.scripts.WebScriptStatus;
    [javac]                                ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:16: error: package org.alfresco.web.scripts does not exist
    [javac] public class GetReview extends org.alfresco.web.scripts.DeclarativeWebScript {
    [javac]                                                        ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:23: error: cannot find symbol
    [javac]    protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status) {
    [javac]                                              ^
    [javac]   symbol:   class WebScriptRequest
    [javac]   location: class GetReview
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:23: error: cannot find symbol
    [javac]    protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status) {
    [javac]                                                                    ^
    [javac]   symbol:   class WebScriptStatus
    [javac]   location: class GetReview
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:7: error: package org.alfresco.web.scripts does not exist
    [javac] import org.alfresco.web.scripts.WebScriptRequest;
    [javac]                                ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:8: error: package org.alfresco.web.scripts does not exist
    [javac] import org.alfresco.web.scripts.WebScriptStatus;
    [javac]                                ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:19: error: package org.alfresco.web.scripts does not exist
    [javac] public class PostRating extends org.alfresco.web.scripts.DeclarativeWebScript {
    [javac]                                                         ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:26: error: cannot find symbol
    [javac]    protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status) {
    [javac]                                              ^
    [javac]   symbol:   class WebScriptRequest
    [javac]   location: class PostRating
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:26: error: cannot find symbol
    [javac]    protected Map<String, Object> executeImpl(WebScriptRequest req, WebScriptStatus status) {
    [javac]                                                                    ^
    [javac]   symbol:   class WebScriptStatus
    [javac]   location: class PostRating
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/behavior/Rating.java:136: error: cannot find symbol
    [javac]       String currentUser = AuthenticationUtil.getCurrentUserName();
    [javac]                                              ^
    [javac]   symbol:   method getCurrentUserName()
    [javac]   location: class AuthenticationUtil
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/behavior/Rating.java:139: error: cannot find symbol
    [javac]          AuthenticationUtil.setCurrentUser("admin");
    [javac]                            ^
    [javac]   symbol:   method setCurrentUser(String)
    [javac]   location: class AuthenticationUtil
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/behavior/Rating.java:171: error: cannot find symbol
    [javac]       if (switchUser) AuthenticationUtil.setCurrentUser(currentUser);
    [javac]                                         ^
    [javac]   symbol:   method setCurrentUser(String)
    [javac]   location: class AuthenticationUtil
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/GetReview.java:22: error: method does not override or implement a method from a supertype
    [javac]    @Override
    [javac]    ^
    [javac] /home/control/workspace/try2/advanced-workflow-article/src/com/someco/scripts/PostRating.java:25: error: method does not override or implement a method from a supertype
    [javac]    @Override
    [javac]    ^
    [javac] 15 errors
    [javac] 1 warning

BUILD FAILED
/home/control/workspace/try2/advanced-workflow-article/build.xml:51: Compile failed; see the compiler error output for details.

Total time: 7 seconds

Outcomes