Bugs item #448447, was opened at 2001-08-06 08:57
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=448447&group_id=22866

Category: JBossServer
Group: v2.4 BETA (stable)
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Andreas Schaefer (schaefera)
Summary: metadata verifier does not follow dtd

Initial Comment:
DTD fro ejb2.0 say that abstract-schema-name
is optional. But verifier complained loudly.

I have developed a quick fix: ( CVS diff below )
---<snip>---
Index: EntityMetaData.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/metadata/EntityMetaData.java,v
retrieving revision 1.10
diff -r1.10 EntityMetaData.java
152c152,154
<                               abstractSchemaName =
getElementContent(getUniqueChild(element,
"abstract-schema-name"));
---
>                               // dtd says claerly
that this is optional...
>                               Element el =
getOptionalChild(element, "abstract-schema-name");
>                               abstractSchemaName =
(el == null)? "" : getElementContent(el);
---<snap>---

keep a good work...

----------------------------------------------------------------------

>Comment By: Andreas Schaefer (schaefera)
Date: 2001-11-02 16:38

Message:
Logged In: YES 
user_id=70434

Just the definition of the DTD is not enough. You should 
also check the fine print or the EJB spec. which says:

&#8226; Entity Bean&#8217;s abstract schema name. If the enterprise 
bean is an Entity Bean with con-tainer-
managed persistence and cmp-version 2.x, the Bean Provider 
must specify the
abstract schema name of the entity bean using the abstract-
schema-name element.

Also the DTD says that a CMP 2 Entity Bean HAS TO PROVIDE 
an abstract schema name !!

Andy

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=448447&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to