Discussion:
[Middlegen-user] PersonBean.java:261: cannot resolve symbol: setReservations(reservations); !?!?!?!?!
kwiatek keith
2004-10-15 14:15:15 UTC
Permalink
Hello Wise person,

I have seen a couple people post very similar
problems, but no replies.... seems like it should be
simple solution... won't you please look at the error
below and provide some hint?

Thank You,
Keith


middlegen:
[middlegen] Database
URL:jdbc:oracle:thin:@tern.nist.gov:1521:tern
[middlegen] No <table> elements specified. Reading all
tables. This might take a while...
[middlegen] 2004-10-15 11:56:20,519 WARN
[middlegen.plugins.entitybean.JBoss] WARNING (cmp20):
JBoss 3.0 doesn't s
upport fields that are part of CMR to be CMP at the
same time. You might want to set fkcmp="false" in the
cmp20 plu
gin.
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
PERSONS
[middlegen] Extracting foreign keys for table :
RESERVATIONS
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
FLIGHTS
[middlegen] Updated preferences in
C:\downloads\middlegen-2.1-src\samples\src\airline-prefs.properties

ejbdoclet:
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationLightValue
'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightLightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonLightValue'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating PK class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating EJB deployment descriptor
(ejb-jar.xml).
[ejbdoclet] Generating weblogic-ejb-jar.xml.
[ejbdoclet] Generating weblogic-cmp-rdbms-jar.xml.
[ejbdoclet] Generating jboss.xml.
[ejbdoclet] Generating jbosscmp-jdbc.xml.

compile-ejb:
[javac] Compiling 53 source files to
C:\downloads\middlegen-2.1-src\samples\build\classes
[javac]
C:\downloads\middlegen-2.1-src\samples\build\gen-src\airline\ejb\PersonBean.java:261:
cannot resolve sy
mbol
[javac] symbol : variable reservations
[javac] location: class airline.ejb.PersonBean
[javac] setReservations(reservations);
[javac] ^
[javac] 1 error

BUILD FAILED
C:\downloads\middlegen-2.1-src\samples\build.xml:703:
Compile failed; see the compiler error output for
details.

Total time: 9 seconds
C:\downloads\middlegen-2.1-src\samples>ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[middlegen] Database
URL:jdbc:oracle:thin:@tern.nist.gov:1521:tern
[middlegen] No <table> elements specified. Reading all
tables. This might take a while...
[middlegen] 2004-10-15 12:01:53,998 WARN
[middlegen.plugins.entitybean.JBoss] WARNING (cmp20):
JBoss 3.0 doesn't s
upport fields that are part of CMR to be CMP at the
same time. You might want to set fkcmp="false" in the
cmp20 plu
gin.
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
PERSONS
[middlegen] Extracting foreign keys for table :
RESERVATIONS
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
FLIGHTS
[middlegen] Updated preferences in
C:\downloads\middlegen-2.1-src\samples\src\airline-prefs.properties

ejbdoclet:
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationLightValue
'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightLightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonLightValue'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating PK class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating EJB deployment descriptor
(ejb-jar.xml).
[ejbdoclet] Generating weblogic-ejb-jar.xml.
[ejbdoclet] Generating weblogic-cmp-rdbms-jar.xml.
[ejbdoclet] Generating jboss.xml.
[ejbdoclet] Generating jbosscmp-jdbc.xml.

compile-ejb:
[javac] Compiling 53 source files to
C:\downloads\middlegen-2.1-src\samples\build\classes
[javac]
C:\downloads\middlegen-2.1-src\samples\build\gen-src\airline\ejb\PersonBean.java:261:
cannot resolve sy
mbol
[javac] symbol : variable reservations
[javac] location: class airline.ejb.PersonBean
[javac] setReservations(reservations);
[javac] ^
[javac] 1 error

BUILD FAILED
C:\downloads\middlegen-2.1-src\samples\build.xml:703:
Compile failed; see the compiler error output for
details.

Total time: 9 seconds
C:\downloads\middlegen-2.1-src\samples>an
create-tables
'an' is not recognized as an internal or external
command,
operable program or batch file.

C:\downloads\middlegen-2.1-src\samples>ant
create-tables
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

create-tables:
[echo] Creating tables using URL
jdbc:oracle:thin:@tern.nist.gov:1521:tern
[sql] Executing file:
C:\downloads\middlegen-2.1-src\samples\src\sql\airline-oracle.sql
[sql] 13 of 13 SQL statements executed
successfully

BUILD SUCCESSFUL
Total time: 2 seconds
C:\downloads\middlegen-2.1-src\samples>ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[middlegen] Database
URL:jdbc:oracle:thin:@tern.nist.gov:1521:tern
[middlegen] No <table> elements specified. Reading all
tables. This might take a while...
[middlegen] 2004-10-15 12:05:52,686 WARN
[middlegen.plugins.entitybean.JBoss] WARNING (cmp20):
JBoss 3.0 doesn't s
upport fields that are part of CMR to be CMP at the
same time. You might want to set fkcmp="false" in the
cmp20 plu
gin.
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
PERSONS
[middlegen] Extracting foreign keys for table :
RESERVATIONS
[middlegen] -- RESERVATIONS-has-FLIGHTS
[middlegen] -- RESERVATIONS-has-PERSONS
[middlegen] Extracting foreign keys for table :
FLIGHTS
[middlegen] Updated preferences in
C:\downloads\middlegen-2.1-src\samples\src\airline-prefs.properties

ejbdoclet:
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Facade EJB class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Util class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Util class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating Local Home interface for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.ReservationBean-->
airline.interfaces.ReservationLightValue
'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.FlightBean-->
airline.interfaces.FlightLightValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonValue'.
[ejbdoclet] Generating Value Object class:
'airline.ejb.PersonBean-->
airline.interfaces.PersonLightValue'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Remote interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Home interface for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.ReservationFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.FlightFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.PersonFacadeEJB'.
[ejbdoclet] Generating Session class for
'airline.ejb.SequenceSessionBean'.
[ejbdoclet] Generating PK class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.SequenceBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.ReservationBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.FlightBean'.
[ejbdoclet] Generating CMP class for
'airline.ejb.PersonBean'.
[ejbdoclet] Generating EJB deployment descriptor
(ejb-jar.xml).
[ejbdoclet] Generating weblogic-ejb-jar.xml.
[ejbdoclet] Generating weblogic-cmp-rdbms-jar.xml.
[ejbdoclet] Generating jboss.xml.
[ejbdoclet] Generating jbosscmp-jdbc.xml.

compile-ejb:
[javac] Compiling 53 source files to
C:\downloads\middlegen-2.1-src\samples\build\classes
[javac]
C:\downloads\middlegen-2.1-src\samples\build\gen-src\airline\ejb\PersonBean.java:261:
cannot resolve sy
mbol
[javac] symbol : variable reservations
[javac] location: class airline.ejb.PersonBean
[javac] setReservations(reservations);
[javac] ^
[javac] 1 error

BUILD FAILED
C:\downloads\middlegen-2.1-src\samples\build.xml:703:
Compile failed; see the compiler error output for details.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Loading...