I have checked out the middlegen from cvs, and just tried the oracle sql
that followed :C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\src\sql\airline-oracle.sql.
first C:\GNU\WinCvs 1.3\CVSNT\middlegen\samples\build.xml I run
create-tables against oracle 10g database, the tables were created, then I
could compile because of the relation between persons and RESERVATIONS, then
after i have deleted that relation then I ran into the next problem, wich is
the following.
I had this problem befored but i fogot what I did it is long time ago.
thanks.
[ejbdoclet] Generating jbosscmp-jdbc.xml.
compile-ejb:
[javac] Compiling 53 source files to C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\classes
ejb-jar:
[mkdir] Created dir: C:\GNU\WinCvs 1.3\CVSNT\middlegen\samples\build\ejb
[jar] Building jar: C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\ejb\airline-ejb.jar
check-weblogic-jar:
fail-if-not-weblogic-jar-present:
postprocess-ejb-jar:
[move] Moving 1 files to C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\ejb
[echo] Running weblogic.ejbc
[java] <28-09-2004 15:55:22 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'ReservationFacade(Jar: C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\ejb\standard-airline-ejb.jar)' contains at
least on
e method without an explicit transaction attribute setting. The default
transaction attribute of Supports will be used for the following methods:
remote[create(java.sql.Date,airline.interfaces.FlightL
ocal),
create(java.sql.Date,java.lang.String,airline.interfaces.FlightLocal),
findByCommentary(java.lang.String),
update(airline.interfaces.ReservationLightValue),
create(airline.interfaces.Reservatio
nLightValue), removeEntity(airline.interfaces.ReservationLightValue),
findByRegistrationUtc(java.sql.Date),
findByPrimaryKey(airline.interfaces.ReservationPK), findAll()]
local[create(java.sql.Date,a
irline.interfaces.FlightLocal),
create(java.sql.Date,java.lang.String,airline.interfaces.FlightLocal),
findByCommentary(java.lang.String),
update(airline.interfaces.ReservationLightValue), create(airl
ine.interfaces.ReservationLightValue),
removeEntity(airline.interfaces.ReservationLightValue),
findByRegistrationUtc(java.sql.Date),
findByPrimaryKey(airline.interfaces.ReservationPK), findAll()] >
[java] <28-09-2004 15:55:22 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'PersonFacade(Jar: C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\ejb\standard-airline-ejb.jar)' contains at
least one met
hod without an explicit transaction attribute setting. The default
transaction attribute of Supports will be used for the following methods:
remote[update(airline.interfaces.PersonLightValue), removeE
ntity(airline.interfaces.PersonLightValue),
findByLastName(java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.lang.String),
create(java.lang.String,java.lang.String), findByPrimaryKey
(java.lang.Integer), findAll(),
create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstName(java.lang.String),
create(airline.interfaces.PersonLightValue)] local[update(airline.inter
faces.PersonLightValue), removeEntity(airline.interfaces.PersonLightValue),
findByLastName(java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.lang.String),
create(java.lang.String,jav
a.lang.String), findByPrimaryKey(java.lang.Integer), findAll(),
create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstName(java.lang.String), create(airline.interfaces.PersonLightVal
ue)] >
[java] <28-09-2004 15:55:22 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'FlightFacade(Jar: C:\GNU\WinCvs
1.3\CVSNT\middlegen\samples\build\ejb\standard-airline-ejb.jar)' contains at
least one met
hod without an explicit transaction attribute setting. The default
transaction attribute of Supports will be used for the following methods:
remote[findByDepartureUtc(java.sql.Date), findByName(java.l
ang.String), create(java.lang.String,java.sql.Date,java.sql.Date),
removeEntity(airline.interfaces.FlightLightValue),
update(airline.interfaces.FlightLightValue),
create(airline.interfaces.FlightLight
Value), findByPrimaryKey(java.lang.Integer), findAll(),
findByArrivalUtc(java.sql.Date)] local[findByDepartureUtc(java.sql.Date),
findByName(java.lang.String), create(java.lang.String,java.sql.Date,j
ava.sql.Date), removeEntity(airline.interfaces.FlightLightValue),
update(airline.interfaces.FlightLightValue),
create(airline.interfaces.FlightLightValue),
findByPrimaryKey(java.lang.Integer), findAll
(), findByArrivalUtc(java.sql.Date)] >
[java] ERROR: Error from ejbc: In EJB ReservationFacade, method
create(java.sql.Date,airline.interfaces.FlightLocal) exposes local interface
types or local home interface types through the remote
interface of the bean. This is not allowed.
[java] ERROR: Error from ejbc: In EJB ReservationFacade, method
create(java.sql.Date,java.lang.String,airline.interfaces.FlightLocal)
exposes local interface types or local home interface types t
hrough the remote interface of the bean. This is not allowed.
[java] ERROR: ejbc couldn't invoke compiler
BUILD FAILED
C:\GNU\WinCvs 1.3\CVSNT\middlegen\samples\config\ejb\weblogic.xml:61: Java
returned: 1
Total time: 31 seconds
C:\GNU\WinCvs 1.3\CVSNT\middlegen\samples>
_________________________________________________________________
Opret en gratis Hotmail-konto http://www.hotmail.com med udsigt til 250 MB
lagerkapacitet
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
|