This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I am using 12/5 IDE build to do my testing. I followed the NetBeans IDE 5.0 Quick Start Guide for J2EE Applications, at the time when I was at the "Coding the Session Bean", I click the "this" link and get the sample file CustomerFacadeBean.java, then I click on the project node and select the build project function, I got the following compile error. I simply use the CustomerFacadeBean.java file provided. It could be some error in this java file, or the instruction is missing some steps ? Compiling 1 source file to D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\build\ear-module D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\src\java\ejb\CustomerFacadeBean.java:12: cannot find symbol symbol : class CustomerTblLocalHome location: package ejb private ejb.CustomerTblLocalHome custHome; D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\src\java\ejb\CustomerFacadeBean.java:59: cannot find symbol symbol : class CustomerTblLocalHome location: package ejb private ejb.CustomerTblLocalHome lookupCustomerTbl() { D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\src\java\ejb\CustomerFacadeBean.java:62: cannot find symbol symbol : class CustomerTblLocalHome location: package ejb ejb.CustomerTblLocalHome rv = (ejb.CustomerTblLocalHome) c.lookup("java:comp/env/ejb/CustomerTbl"); D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\src\java\ejb\CustomerFacadeBean.java:62: cannot find symbol symbol : class CustomerTblLocalHome location: package ejb ejb.CustomerTblLocalHome rv = (ejb.CustomerTblLocalHome) c.lookup("java:comp/env/ejb/CustomerTbl"); D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\src\java\ejb\CustomerFacadeBean.java:71: cannot find symbol symbol : class CustomerTblLocal location: package ejb ejb.CustomerTblLocal customer = custHome.findByPrimaryKey(new Integer(custId)); 5 errors D:\test\netbeantest\apps\CustomerBook\nbproject\build-impl.xml:140: The following error occurred while executing this line: D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\nbproject\build-impl.xml:236: The following error occurred while executing this line: D:\test\netbeantest\apps\CustomerBook\CustomerBook-ejb\nbproject\build-impl.xml:115: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 0 seconds)
Hmmm, this works for me. Can you tell me what you did to get to this point? Did you generate the entity beans from the database before you created the session bean? Did you create the session bean, then copy and paste the code for CustomerFacadeBean.java? CustomerTblLocalHome is in the same package as CustomerFacadeBean so as long as you created the beans, it should work. Also, what app server are you using for this? 8.2 or 8.1? If you're using 8.2, I just made some changes to the quickstart guide to make it work for app server 8.2 and derby, so I would suggest looking at tomorrow's dev build and opening the quickstart guide from the welcome screen.
Removing INCOMPLETE keyword, this is an old issue, please evaluate again.
No additional info from the reporter, closing as WORKSFORME.
v.