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.

Bug 69990 - The sample java file fails to compile in Quick Start Guide for J2EE Applications
Summary: The sample java file fails to compile in Quick Start Guide for J2EE Applications
Status: VERIFIED WORKSFORME
Alias: None
Product: usersguide
Classification: Unclassified
Component: JavaEE (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Jullion-ceccarelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 06:36 UTC by judytang
Modified: 2006-10-16 16:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description judytang 2005-12-07 06:36:48 UTC
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)
Comment 1 John Jullion-ceccarelli 2005-12-08 16:44:25 UTC
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.
Comment 2 Petr Jiricka 2006-06-19 09:57:33 UTC
Removing INCOMPLETE keyword, this is an old issue, please evaluate again.
Comment 3 Petr Jiricka 2006-06-21 14:54:34 UTC
No additional info from the reporter, closing as WORKSFORME.
Comment 4 Dan Kolar 2006-10-16 16:55:23 UTC
v.