Discussion:
[Middlegen-user] Airline Sample Error
Ed Murray
2002-08-03 06:13:04 UTC
Permalink
Hi,
I am trying to learn middlegen as it looks like a great system.
I have set up the config to use Postgresql and JBoss 3.0 (Hopefully
correctly). I have set fkcmp="false" because I gather that is the right
thing to do with Postgresql.
I have run into a problem with the sample app.
It gets right through to the <strutsconfigxml/> section without error.
When it gets to this section however I get the following error:
Is this something that I have done wrong?

compile-web:
Overriding previous definition of reference to compile.class.path
[javac] Compiling 7 source files to
/archive/java/middlegen/middlegen/samples/build/classes
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/GetReservationAction.java:79: cannot resolve symbol
[javac] symbol : constructor ReservationPK
(java.lang.Integer,java.lang.Integer,java.lang.Integer)
[javac] location: class airline.interfaces.ReservationPK
[javac] ReservationLocal reservation =
ReservationUtil.getLocalHome().findByPrimaryKey(new
ReservationPK(flightIdFk, personIdFk, reservationId));

[javac] ^
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/GetReservationAction.java:83: cannot resolve symbol
[javac] symbol : method getPerson ()
[javac] location: interface airline.interfaces.ReservationLocal
[javac] request.setAttribute("person", reservation.getPerson());

[javac] ^
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/MakeReservationAction.java:91: cannot resolve symbol
[javac] symbol : method create
(java.lang.Integer,java.sql.Timestamp,airline.interfaces.PersonLocal,airline.interfaces.FlightLocal)
[javac] location: interface airline.interfaces.ReservationLocalHome
[javac] reservationHome.create(reservationId, new Timestamp((new
Date()).getTime()), person, flight);
[javac] ^
[javac] 3 errors

BUILD FAILED
file:/archive/java/middlegen/middlegen/samples/build.xml:482: Compile
failed; see the compiler error output for details.
Eivind Waaler
2002-08-05 09:12:02 UTC
Permalink
Hi Ed,

There might be some problems with the sample app right now. We will submit
a new and rewritten sample application soon, most likely next week.

What you can do to get it working now, is to delete the files that don't
compile and just try the get all action (lists all records in the three
sample tables). It should be found on the /airline/struts/getAll.do link
on the deployed webapp..

Sorry about this, as I said we'll update with some proper working samples
asap.

.eivind
Post by Ed Murray
Hi,
I am trying to learn middlegen as it looks like a great system.
I have set up the config to use Postgresql and JBoss 3.0 (Hopefully
correctly). I have set fkcmp="false" because I gather that is the right
thing to do with Postgresql.
I have run into a problem with the sample app.
It gets right through to the <strutsconfigxml/> section without error.
Is this something that I have done wrong?
Overriding previous definition of reference to compile.class.path
[javac] Compiling 7 source files to
/archive/java/middlegen/middlegen/samples/build/classes
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/GetReservationAction.java:79: cannot resolve symbol
[javac] symbol : constructor ReservationPK
(java.lang.Integer,java.lang.Integer,java.lang.Integer)
[javac] location: class airline.interfaces.ReservationPK
[javac] ReservationLocal reservation =
ReservationUtil.getLocalHome().findByPrimaryKey(new
ReservationPK(flightIdFk, personIdFk, reservationId));
[javac] ^
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/GetReservationAction.java:83: cannot resolve symbol
[javac] symbol : method getPerson ()
[javac] location: interface airline.interfaces.ReservationLocal
[javac] request.setAttribute("person", reservation.getPerson());
[javac] ^
[javac]
/archive/java/middlegen/middlegen/samples/src/java/airline/web/struts/MakeReservationAction.java:91: cannot resolve symbol
[javac] symbol : method create
(java.lang.Integer,java.sql.Timestamp,airline.interfaces.PersonLocal,airline.interfaces.FlightLocal)
[javac] location: interface airline.interfaces.ReservationLocalHome
[javac] reservationHome.create(reservationId, new Timestamp((new
Date()).getTime()), person, flight);
[javac] ^
[javac] 3 errors
BUILD FAILED
file:/archive/java/middlegen/middlegen/samples/build.xml:482: Compile
failed; see the compiler error output for details.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...