Discussion:
[Middlegen-user] middlegen can't compile ejb's on weblogic.
zousey seyzou
2004-10-10 15:40:48 UTC
Permalink
Hello i am using mysql and jdk.1.4, and i have alos tried jdk1.5. and I am
using weblogic8.SP3, i am using <!ENTITY ejb SYSTEM
"file:./config/ejb/weblogic.xml"> in build.xml
but not matter what I get the following errors.

******************************************************************************
ejb-jar:
[mkdir] Created dir: C:\middlegen-2.1\middlegen-2.1\samples\build\ejb
[jar] Building jar:
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\airline-ejb.jar

check-weblogic-jar:

fail-if-not-weblogic-jar-present:

postprocess-ejb-jar:
[move] Moving 1 files to
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb
[echo] Running weblogic.ejbc
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'ReservationFacade(Jar:
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar)'
contains at least one m
ethod without an explicit transaction attribute setting. The default
transaction attribute of Supports will be used for the following methods:
remote[findByPrimaryKey(airline.interfaces.ReservationPK)
, findAll(), update(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.interfaces.FlightLocal,airline.interfaces.PersonLocal),
create(airli
ne.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLocal,airline.interfaces.PersonLocal),
removeEntity(airline.interfaces.ReservationLightValue)
] local[findByPrimaryKey(airline.interfaces.ReservationPK), findAll(),
update(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.interface
s.FlightLocal,airline.interfaces.PersonLocal),
create(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLocal,airline.interfaces.PersonLoc
al), removeEntity(airline.interfaces.ReservationLightValue)] >
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'PersonFacade(Jar:
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar)'
contains at least one method
without an explicit transaction attribute setting. The default transaction
attribute of Supports will be used for the following methods:
remote[update(airline.interfaces.PersonLightValue), findByPrim
aryKey(java.lang.Integer),
removeEntity(airline.interfaces.PersonLightValue), findAll(),
create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.l
ang.String), create(airline.interfaces.PersonLightValue)]
local[update(airline.interfaces.PersonLightValue),
findByPrimaryKey(java.lang.Integer),
removeEntity(airline.interfaces.PersonLightValue), fi
ndAll(), create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.lang.String),
create(airline.interfaces.PersonLightValue)] >
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The EJB
'FlightFacade(Jar:
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar)'
contains at least one method
without an explicit transaction attribute setting. The default transaction
attribute of Supports will be used for the following methods:
remote[findByPrimaryKey(java.lang.Integer), findAll(), create(
java.lang.Integer,java.lang.String,java.sql.Timestamp,java.sql.Timestamp),
update(airline.interfaces.FlightLightValue),
removeEntity(airline.interfaces.FlightLightValue),
create(airline.interfaces.Fli
ghtLightValue)] local[findByPrimaryKey(java.lang.Integer), findAll(),
create(java.lang.Integer,java.lang.String,java.sql.Timestamp,java.sql.Timestamp),
update(airline.interfaces.FlightLightValue), re
moveEntity(airline.interfaces.FlightLightValue),
create(airline.interfaces.FlightLightValue)] >

[java] ERROR: Error from ejbc: In EJB ReservationFacade, method
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.interfaces.FlightLocal,airline.interfaces.PersonLocal)
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.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLocal,airline.interfaces.PersonLocal)
exposes local interface
types or local home interface types through the remote interface of the
bean. This is not allowed.


[java] ERROR: ejbc couldn't invoke compiler

_________________________________________________________________
Find det, du søger med MSN Søg http://search.msn.dk/
Eivind Waaler
2004-10-11 05:46:52 UTC
Permalink
The whole entityfacade stuff is pretty unstable. It's based on an old and
modified version of xdoclet.

You might have to write your own facades. The primary goal of Middlegen is
to generate the persistence layer (the cmp), everything else (facade,
struts, adapter..) should be considered beta.

I don't have weblogic installed myself. But if you come up with a
fix/patch, I'll be happy to add it.
=2Eeivind
Hello i am using mysql and jdk.1.4, and i have alos tried jdk1.5. and I a=
m
using weblogic8.SP3, i am using <!ENTITY ejb SYSTEM
"file:./config/ejb/weblogic.xml"> in build.xml
but not matter what I get the following errors.
*************************************************************************=
*****
[mkdir] Created dir: C:\middlegen-2.1\middlegen-2.1\samples\build\ejb
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\airline-ejb.jar
[move] Moving 1 files to
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb
[echo] Running weblogic.ejbc
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The =
EJB
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar=
)'
contains at least one m
ethod without an explicit transaction attribute setting. The default
remote[findByPrimaryKey(airline.interfaces.ReservationPK)
, findAll(), update(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.inte=
rfaces.FlightLocal,airline.interfaces.PersonLocal),
create(airli
ne.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLoca=
l,airline.interfaces.PersonLocal),
removeEntity(airline.interfaces.ReservationLightValue)
] local[findByPrimaryKey(airline.interfaces.ReservationPK), findAll(),
update(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.inte=
rface
s.FlightLocal,airline.interfaces.PersonLocal),
create(airline.interfaces.ReservationLightValue),
create(java.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLoca=
l,airline.interfaces.PersonLoc
al), removeEntity(airline.interfaces.ReservationLightValue)] >
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The =
EJB
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar=
)'
contains at least one method
without an explicit transaction attribute setting. The default transactio=
n
remote[update(airline.interfaces.PersonLightValue), findByPrim
aryKey(java.lang.Integer),
removeEntity(airline.interfaces.PersonLightValue), findAll(),
create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.l
ang.String), create(airline.interfaces.PersonLightValue)]
local[update(airline.interfaces.PersonLightValue),
findByPrimaryKey(java.lang.Integer),
removeEntity(airline.interfaces.PersonLightValue), fi
ndAll(), create(java.lang.Integer,java.lang.String,java.lang.String),
findByFirstNameAndLastName(java.lang.String,java.lang.String),
create(airline.interfaces.PersonLightValue)] >
[java] <10-10-2004 18:41:17 CEST> <Warning> <EJB> <BEA-010212> <The =
EJB
C:\middlegen-2.1\middlegen-2.1\samples\build\ejb\standard-airline-ejb.jar=
)'
contains at least one method
without an explicit transaction attribute setting. The default transactio=
n
remote[findByPrimaryKey(java.lang.Integer), findAll(), create(
java.lang.Integer,java.lang.String,java.sql.Timestamp,java.sql.Timestamp)=
,
update(airline.interfaces.FlightLightValue),
removeEntity(airline.interfaces.FlightLightValue),
create(airline.interfaces.Fli
ghtLightValue)] local[findByPrimaryKey(java.lang.Integer), findAll(),
create(java.lang.Integer,java.lang.String,java.sql.Timestamp,java.sql.Tim=
estamp),
update(airline.interfaces.FlightLightValue), re
moveEntity(airline.interfaces.FlightLightValue),
create(airline.interfaces.FlightLightValue)] >
[java] ERROR: Error from ejbc: In EJB ReservationFacade, method
create(java.lang.Integer,java.sql.Timestamp,java.lang.String,airline.inte=
rfaces.FlightLocal,airline.interfaces.PersonLocal)
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.lang.Integer,java.sql.Timestamp,airline.interfaces.FlightLoca=
l,airline.interfaces.PersonLocal)
exposes local interface
types or local home interface types through the remote interface of the
bean. This is not allowed.
[java] ERROR: ejbc couldn't invoke compiler
_________________________________________________________________
Find det, du s=F8ger med MSN S=F8g http://search.msn.dk/
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out mo=
re
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...