Its something on my todo list. I'm thinking of adding the DTD validation
to the bean verifier step of deployment.

----- Original Message -----
From: "Darius Davidavicius" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 12, 2001 8:46 AM
Subject: [JBoss-dev] ejb-jar.xml DTD checking during deployment


> Hi all,
>
> Lest image situation:
>
> During implementation of EJB my collegues or myself do syntaxt error in the 
>ejb-jar.xml:
>
> ...
> <method-permissionnnnn>
>             <role-name>All</role-name>
>             <method>
>                 <ejb-name>EMailContact</ejb-name>
>                 <method-name>*</method-name>
>             </method>
> <method-permissionnnnn>
>
> now ejb is deployed but it works strange. I can fall into very interesting situation 
>just because some configuration is bad.
>
> What about syntaxt checking inside ApplicationMetaData.java or MetaData.java with 
>output like:
>                System.out.println( "WARNING during parsing ejb-jar.xml. Tag "
>                                    + children.item(i).getNodeName()
>                                    + " cannot be used inside "
>                                   + parent + " tag".
>                                   );
>
>
> XMLFileLoader.java has LocalResolver() class where DTDs are registered but I cannot 
>get any warning if deployment descriptor is
bad. Maybe
> configuration of Jboss allows to add checking?
> If not what do you think about improving it?
> I have already ligth version of it. Its done in the ApplicationMetaData.java where i 
>simple checking if tags is accorgins DTD of
EJB 1.1 spec. and if it is not i
> just  print warnings.
>
> Regards,
>
>
> Darius Davidavicius
> www.jbees.com
> J2EE consultations, development
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>


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

Reply via email to