Alternatively, apply the patch attached to XDT-592. I've complained about this before and it won't get fixed, but you can patch your local tree to get round it. The patch adds those two fields to the util object, instead of the home.

http://opensource.atlassian.com/projects/xdoclet/secure/ ViewIssue.jspa?key=XDT-592

On Thursday, September 4, 2003, at 07:59 PM, Andrew Stevens wrote:

On Thu, 2003-09-04 at 17:45, John Shields wrote:
In attempting to create a stateless session bean, the home interface
is generated with these lines...

public static final String COMP_NAME="blah"
public static final String JNDI_NAME="blah"

when run against the j2eeRI(1.3.1) deploy tool verifier, it of course
blows up with...
Error: [ foohome ] is not defined as valid RMI-IIOP remote interface.
All enterprise beans home interfaces must be defined as valid RMI-IIOP
remote interface.
...
Comment out the statics and everything's dandy.
1)How do I get rid of the static generation
2)Could some kind soul tell me why we generate something that doesn't
verify on the j2ee ri? There must be a valid reason, you guys are a
heck of a lot smarter than me.

Because it's perfectly legal according to the spec, and we were doing it
long before that verifier came along and inflicted its bugs on us?
According to the Sun RMI FAQ at
http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#staticinit
(ditto for 1.3 & 1.4), you *are* allowed to have static fields in an RMI
remote interface... I suggest you raise a bug report with Sun ;-)



Andrew.




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to