[jboss-user] [Beginners Corner] - Compile the tutorial examples

zetzioni do-not-reply at jboss.com
Sat Sep 23 04:50:48 EDT 2006


Hi, 

I installed JBoss, downloaded the examples (both sun tutorial and JBoss), set the jboss.home to the correct value, and JAVA_HOME to the correct value. I'm getting the following errors in compilation:

compile:
    [javac] Compiling 5 source files to C:\jboss-4.0.4.GA\j2ee14\examples\bank\b
uild
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:16: package com.sun.ebank.ejb.account does not exist
    [javac] import com.sun.ebank.ejb.account.AccountController;
    [javac]                                  ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:17: package com.sun.ebank.ejb.account does not exist
    [javac] import com.sun.ebank.ejb.account.AccountControllerHome;
    [javac]                                  ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:18: package com.sun.ebank.util does not exist
    [javac] import com.sun.ebank.util.AccountDetails;
    [javac]                           ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:26: cannot find symbol
    [javac] symbol  : class AccountController
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]     private AccountController getController()
    [javac]             ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:5: package com.sun.ebank.util does not exist
    [javac] import com.sun.ebank.util.Debug;
    [javac]                           ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:6: package com.sun.ebank.web does not exist
    [javac] import com.sun.ebank.web.*;
    [javac] ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:32: cannot find symbol
    [javac] symbol  : class AccountControllerHome
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]     AccountControllerHome home = (AccountControllerHome)
    [javac]         ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:32: cannot find symbol
    [javac] symbol  : class AccountControllerHome
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]     AccountControllerHome home = (AccountControllerHome)
    [javac]                                       ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:40: cannot find symbol
    [javac] symbol  : class AccountController
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]         AccountController mgr     = getController();
    [javac]             ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:41: cannot find symbol
    [javac] symbol  : class AccountDetails
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]         AccountDetails    details = mgr.getDetails(accountID);
    [javac]             ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:53: cannot find symbol
    [javac] symbol  : class AccountController
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]         AccountController mgr = getController();
    [javac]             ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:60: cannot find symbol
    [javac] symbol  : class AccountDetails
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]             AccountDetails details = (AccountDetails) it_list.next()
;
    [javac]                 ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\TellerBea
n.java:60: cannot find symbol
    [javac] symbol  : class AccountDetails
    [javac] location: class com.jboss.ebank.TellerBean
    [javac]             AccountDetails details = (AccountDetails) it_list.next()
;
    [javac]                                           ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:40: cannot find symbol
    [javac] symbol  : class BeanManager
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]         BeanManager beanManager =
    [javac]         ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:41: cannot find symbol
    [javac] symbol  : class BeanManager
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]             (BeanManager) session.getAttribute("beanManager");
    [javac]              ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:44: cannot find symbol
    [javac] symbol  : variable Debug
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]             Debug.print("hack - Creating bean manager.");
    [javac]             ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:45: cannot find symbol
    [javac] symbol  : class BeanManager
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]             beanManager = new BeanManager();
    [javac]                               ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:49: cannot find symbol
    [javac] symbol  : class CustomerBean
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]         CustomerBean customerBean = new CustomerBean();
    [javac]         ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:49: cannot find symbol
    [javac] symbol  : class CustomerBean
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]         CustomerBean customerBean = new CustomerBean();
    [javac]                                         ^
    [javac] C:\jboss-4.0.4.GA\j2ee14\examples\bank\src\com\jboss\ebank\web\Custo
merHackFilter.java:52: cannot find symbol
    [javac] symbol  : variable Debug
    [javac] location: class com.jboss.ebank.web.CustomerHackFilter
    [javac]         Debug.print("hack - added customerBean to request");
    [javac]         ^
    [javac] 20 errors

BUILD FAILED
C:\jboss-4.0.4.GA\j2ee14\examples\bank\jboss-build.xml:44: Compile failed; see the compiler error output for details.

I guess I'm doing something real wrong... can anybody point what this thing is?

Thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973695#3973695

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973695



More information about the jboss-user mailing list