Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      47

      Description

      I'm using the 12 jan 07 nightly build for webpack, and I'm unable to build the
      samples present in the jsf-extensions/samples directory. Some samples have
      missing directories, others don't compile.

      Here are some outputs:

      =======[ Tictactoe sample]================
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictactoe>ant
      Buildfile: build.xml

      assemble.war:

      assemble.exploded.war:

      prepare:
      [mkdir] Created dir: C:\Documents and Settings\dada\webpack\jsf-extensions\s
      amples\tictactoe\build\jsf-tictactoe
      [mkdir] Created dir: C:\Documents and Settings\dada\webpack\jsf-extensions\s
      amples\tictactoe\build\jsf-tictactoe\WEB-INF
      [mkdir] Created dir: C:\Documents and Settings\dada\webpack\jsf-extensions\s
      amples\tictactoe\build\jsf-tictactoe\WEB-INF\classes

      compile:
      [javac] Compiling 2 source files to C:\Documents and Settings\dada\webpack\j
      sf-extensions\samples\tictactoe\build\jsf-tictactoe\WEB-INF\classes
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:29: package javax.faces.component does not
      exist
      [javac] import javax.faces.component.UICommand;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:30: package javax.faces.component does not
      exist
      [javac] import javax.faces.component.UIViewRoot;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:31: package javax.faces.context does not e
      xist
      [javac] import javax.faces.context.FacesContext;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:32: package javax.faces.event does not exi
      st
      [javac] import javax.faces.event.ActionEvent;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:79: cannot find symbol
      [javac] symbol : class ActionEvent
      [javac] location: class tictactoe.Game
      [javac] public void start(ActionEvent e) {
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:86: cannot find symbol
      [javac] symbol : class ActionEvent
      [javac] location: class tictactoe.Game
      [javac] public void select(ActionEvent e) {
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:139: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] private boolean isMoveOK(UICommand command) {
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:32: package javax.faces.applicat
      ion does not exist
      [javac] import javax.faces.application.Application;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:33: package javax.faces.applicat
      ion does not exist
      [javac] import javax.faces.application.FacesMessage;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:34: package javax.faces.context
      does not exist
      [javac] import javax.faces.context.FacesContext;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:80: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(String messageId, Object..
      . params) {
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:97: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(Locale locale,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:163: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(FacesContext context,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:163: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(FacesContext context,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:169: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(FacesContext context,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:169: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] public static FacesMessage getMessage(FacesContext context,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:195: cannot find symbol
      [javac] symbol : class Application
      [javac] location: class tictactoe.MessageFactory
      [javac] protected static Application getApplication() {
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:87: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)e.getComponent();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:87: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)e.getComponent();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:123: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstan
      ce();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:123: cannot find symbol
      [javac] symbol : variable FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstan
      ce();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:124: cannot find symbol
      [javac] symbol : class UIViewRoot
      [javac] location: class tictactoe.Game
      [javac] UIViewRoot viewRoot = context.getViewRoot();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:125: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponen
      t(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:125: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponen
      t(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:182: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:182: cannot find symbol
      [javac] symbol : variable FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:183: cannot find symbol
      [javac] symbol : class UIViewRoot
      [javac] location: class tictactoe.Game
      [javac] UIViewRoot viewRoot = context.getViewRoot();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:184: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponent(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:184: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponent(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:256: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:256: cannot find symbol
      [javac] symbol : variable FacesContext
      [javac] location: class tictactoe.Game
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:257: cannot find symbol
      [javac] symbol : class UIViewRoot
      [javac] location: class tictactoe.Game
      [javac] UIViewRoot viewRoot = context.getViewRoot();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:258: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponent(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\Game.java:258: cannot find symbol
      [javac] symbol : class UICommand
      [javac] location: class tictactoe.Game
      [javac] UICommand command = (UICommand)viewRoot.findComponent(id);
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:82: cannot find symbol
      [javac] symbol : class FacesContext
      [javac] location: class tictactoe.MessageFactory
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:82: cannot find symbol
      [javac] symbol : variable FacesContext
      [javac] location: class tictactoe.MessageFactory
      [javac] FacesContext context = FacesContext.getCurrentInstance();
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:123: cannot find symbol
      [javac] symbol : variable FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] bundle = ResourceBundle.getBundle(FacesMessage.FACES_MES
      SAGES,
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:156: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] return (new FacesMessage(summary, detail));
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:186: cannot find symbol
      [javac] symbol : class FacesMessage
      [javac] location: class tictactoe.MessageFactory
      [javac] FacesMessage message = getMessage(locale, messageId, params)
      ;
      [javac] ^
      [javac] C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictac
      toe\src\main\java\tictactoe\MessageFactory.java:196: cannot find symbol
      [javac] symbol : variable FacesContext
      [javac] location: class tictactoe.MessageFactory
      [javac] return (FacesContext.getCurrentInstance().getApplication());

      [javac] ^
      [javac] Note: C:\Documents and Settings\dada\webpack\jsf-extensions\samples\
      tictactoe\src\main\java\tictactoe\Game.java uses unchecked or unsafe operations.

      [javac] Note: Recompile with -Xlint:unchecked for details.
      [javac] 40 errors

      BUILD FAILED
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:75: The
      following error occurred while executing this line:
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:68: The
      following error occurred while executing this line:
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:29: Comp
      ile failed; see the compiler error output for details.

      Total time: 1 second
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\tictactoe>
      ========================================================
      =========[ blank facelets sample]==============
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\blank-facelets>ant

      Buildfile: build.xml

      copy.per-app.libs.and.assemble.war:

      copy.per-app.dependent.libs:

      assemble.war:

      assemble.exploded.war:

      prepare:

      compile:

      BUILD FAILED
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:82: The
      following error occurred while executing this line:
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:75: The
      following error occurred while executing this line:
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:68: The
      following error occurred while executing this line:
      C:\Documents and Settings\dada\webpack\jsf-extensions\samples\build.xml:29: srcd
      ir "C:\Documents and Settings\dada\webpack\jsf-extensions\samples\blank-facelets
      \src\main\java" does not exist!

      Total time: 0 seconds
      ========================================================

        Activity

        Hide
        aditya_dada added a comment -

        The reason for compilation problems seems to be a wrong hard-coded path for
        javaee.jar in samples/build.properties file.

        build.properties should either have an empty value for javaee.jar or it should
        be commented out with the instruction to the user.
        The build.xml should check then check if javaee.jar is available before trying
        compilation.

        After the correct javaee.jar value was, the compilation errors seem to have gone
        away, but not the missing directory errors for blank-* samples.

        Show
        aditya_dada added a comment - The reason for compilation problems seems to be a wrong hard-coded path for javaee.jar in samples/build.properties file. build.properties should either have an empty value for javaee.jar or it should be commented out with the instruction to the user. The build.xml should check then check if javaee.jar is available before trying compilation. After the correct javaee.jar value was, the compilation errors seem to have gone away, but not the missing directory errors for blank-* samples.
        Hide
        Ed Burns added a comment -

        I just downloaded the 2007-01-17 web pack and found that the build.properties
        was still not set to a pack relative javaee.jar.

        I do still see this problem:

        /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:87: The following error
        occurred while executing this line:
        /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:82: The following error
        occurred while executing this line:
        /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:75: The following error
        occurred while executing this line:
        /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:68: The following error
        occurred while executing this line:
        /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:29: srcdir
        "/jsfci1/edburns/webpack/jsf-extensions/samples/blank-facelets/src/main/java"
        does not exist

        and I know the cause. The installer doesn't keep the blank directory around.
        I'm working on a fix.

        Show
        Ed Burns added a comment - I just downloaded the 2007-01-17 web pack and found that the build.properties was still not set to a pack relative javaee.jar. I do still see this problem: /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:87: The following error occurred while executing this line: /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:82: The following error occurred while executing this line: /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:75: The following error occurred while executing this line: /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:68: The following error occurred while executing this line: /jsfci1/edburns/webpack/jsf-extensions/samples/build.xml:29: srcdir "/jsfci1/edburns/webpack/jsf-extensions/samples/blank-facelets/src/main/java" does not exist and I know the cause. The installer doesn't keep the blank directory around. I'm working on a fix.
        Hide
        Ed Burns added a comment -

        The samples now build if you set the javaee.jar correctly in the build.properties.

        Show
        Ed Burns added a comment - The samples now build if you set the javaee.jar correctly in the build.properties.
        Hide
        Rajiv Mordani added a comment -

        Point to the correct javaee.jar

        Show
        Rajiv Mordani added a comment - Point to the correct javaee.jar
        Hide
        Ed Burns added a comment -

        There is one extra ../ in the build.properties file in jsf-extensions/samples.

        Removing the extra ../ allows the samples to build.

        Show
        Ed Burns added a comment - There is one extra ../ in the build.properties file in jsf-extensions/samples. Removing the extra ../ allows the samples to build.
        Hide
        Rajiv Mordani added a comment -

        Fixed in latest nightly

        Show
        Rajiv Mordani added a comment - Fixed in latest nightly

          People

          • Assignee:
            Rajiv Mordani
            Reporter:
            aditya_dada
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: