1 Reply Latest reply on Jul 7, 2004 6:56 PM by Nag Ch

    Unknown errors when I compiled with ant

    Ricky Wang Newbie

      When I execute
      ...>ant -f jboss-build.xml compile

      Errors happened, I did not understand why these errors happened.
      I have followed all the steps in the document "Geting started with JBoss"

      p.s. it seems that the system could not find some imported class files

      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\Dispatcher.java:30: cannot find symbol
      [javac] symbol : method getServletContext()
      [javac] location: class com.sun.ebank.web.Dispatcher
      [javac] BeanManager beanManager = (BeanManager)getServletContext().getAt
      tribute("beanManager");
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\Dispatcher.java:59: cannot find symbol
      [javac] symbol : class HttpSession
      [javac] location: class com.sun.ebank.web.Dispatcher
      [javac] HttpSession session = request.getSession();
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\Dispatcher.java:64: cannot find symbol
      [javac] symbol : method getServletContext()
      [javac] location: class com.sun.ebank.web.Dispatcher
      [javac] BeanManager beanManager = (BeanManager)getServletContext().getAt
      tribute("beanManager");
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\taglib\DefinitionTag.java:32: cannot find symbol
      [javac] symbol : variable pageContext
      [javac] location: class com.sun.ebank.web.taglib.DefinitionTag
      [javac] screens = (HashMap) pageContext.getAttribute("screens", pageCo
      ntext.APPLICATION_SCOPE);
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\taglib\DefinitionTag.java:32: cannot find symbol
      [javac] symbol : variable pageContext
      [javac] location: class com.sun.ebank.web.taglib.DefinitionTag
      [javac] screens = (HashMap) pageContext.getAttribute("screens", pageCo
      ntext.APPLICATION_SCOPE);
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\taglib\DefinitionTag.java:34: cannot find symbol
      [javac] symbol : variable pageContext
      [javac] location: class com.sun.ebank.web.taglib.DefinitionTag
      [javac] pageContext.setAttribute("screens", new HashMap(), pageC
      ontext.APPLICATION_SCOPE);
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\taglib\DefinitionTag.java:34: cannot find symbol
      [javac] symbol : variable pageContext
      [javac] location: class com.sun.ebank.web.taglib.DefinitionTag
      [javac] pageContext.setAttribute("screens", new HashMap(), pageC
      ontext.APPLICATION_SCOPE);
      [javac] ^
      [javac] E:\software\Java series\J2EE\1.3\tutorial\j2eetutorial\bank\src\com\
      sun\ebank\web\taglib\DefinitionTag.java:35: cannot find symbol