Dmitri,

I have looked at the lot (including the changes you made last night). I have
a few comments:

1) As it happens, the jboss_3_0.dtd does not exist yet. This is the reason
why we had this problem on JBoss 3.0a, which has been identified as a bug.
If you want more info, see bug report at
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=489465&group_id=
22866 . To fix the problem, you are now using jboss.dtd . I wonder how much
trouble this could trigger because this is the dtd for JBoss 2.2! Maybe it
would be safer to use jboss_2_4.dtd for the time being.

2) I tried removing the declaration of the dtd in the generated jboss.xml .
This works fine for JBoss3.0a as it stops complaining. However, if I change
this in jboss.j, than xdoclet starts complaining because it is set to
validate any generated xml file (hard coded)... Looked more at the code and
found out that the dtd has to be changed in two places: jboss.j and the
static variable JBOSS_DTD_FILE_NAME_30 of the JBossSubTask class. This
static variable points to a local dtd where in the jboss.j an http address
is used. I can see two problems with the having the dtd declared in two
places and refereing to an http address for a dtd:

a) there is somne redundancy here, which can trigger to some problems,
especially when you use two deferent dtd location, one local the other on
the web, which might get out of sink. Is it possible to avoid it?
b) The validation is hard coded to true and the dtd declared in the
jboss.xml requires an http connection! What if I want to work and I am not
connected to the internet? JBoss went around this problem by using a local
resolver. Have a look at the org.jboss.metadata.XMLFileLoader.LocalResolver
class (if you need I can send it to you).

Errr... Should we move this to the xdoclet-dev list?

Emmanuel

----- Original Message -----
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: "Emmanuel Sciara" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, December 08, 2001 4:54 AM
Subject: [Xdoclet-user] Re: [JBoss-user] JBoss-3.0,
org.jboss.ejb.DeploymentException:,
http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd


Emmanuel,

I've fixed this on my local copy, haven't checked in yet as its bundled up
with a couple of other things.  I will check in before the end of the
weekend... if you'd like it checked in before that, let me know, and I'll
look at splitting it out...

cheers
dim

On Fri, 7 Dec 2001, Emmanuel Sciara wrote:

> Moving lists as it is now a xdoclet issue.
>
> Now I have another problem during the build when I create from scratch:
>
> [ejbdoclet] Running XDoclet failed:
> [ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain,
method
> start has thrown an exception java.lang.reflect.InvocationTargetException
> [ejbdoclet] Generated file
> [file:C:/cvstest/sequence/build/generated/META-INF/jboss.xml:line 3]
> Message=[Valid documents must have a <!DOCTYPE declaration.
> ] is not valid according to its DTD. This might be due to some missing
@tags
> in your source.
> [ejbdoclet] 1 error
> [ejbdoclet] 2 warnings
>
> Looks like you need to have a dtd declared for that, which I think is good
> practice. Here is the answer I got after submitting the bug to the Jboss
> team.
>
> >>>>>>>>>>>>>>> quote
>
> First, the page http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
> is a 404, which shouldn't be the case.
>
> Second, the dtd are distributed with the source, in the
> directory jboss\src\resources\org\jboss\metadata\.  You
> could find it there and replace the url with a URL on local
> file or local webserver pointing on the corresponding file.
>
> Third, there are a class call
> org.jboss.metadata.XmlFileLoader.LocalResolver that I think
> should allow you to check the dtd without needing a extenal
> web access.  There are the javadoc comments of the class :
>
> Local entity resolver to handle J2EE DTDs. With this a http
> connection
> to sun is not needed during deployment.
> Function boolean hadDTD() is here to avoid validation errors in
> descriptors that do not have a DOCTYPE declaration.
> @author <a href="mailto:[EMAIL PROTECTED]";>Wolfgang
> Werner</a>
> @author <a href="mailto:[EMAIL PROTECTED]";>Darius
> Davidavicius</a>
>
> You should check in the 3.0 source if the DTD you need is
> listed there and if not, try to add it.
>
> <<<<<<<<<<<<<<<< quote
>
> So you might want to change the
http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
> to the locally held dtd. Especially because JBoss might not always have
> access to the web.
>
> Here you go.
>
> E
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: "Emmanuel Sciara" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 05, 2001 8:52 PM
> Subject: Re: [JBoss-user] JBoss-3.0, org.jboss.ejb.DeploymentException:,
> http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
>
>
> On Wed, 5 Dec 2001, Emmanuel Sciara wrote:
>
> > I am using xdoclet to generate my entity beans, which adds automatically
> > this dtd. And it seemS difficult to get rid of it (need to recompile and
> > repackage the whole of xdoclet)
>
> as of last night this is no longer the case.  if you want to grab the
> latest cvs you wont have this problem
>
> hth
> cheesr
> dim
>
> >
> > Looking at the JarDeployer MBean in the J2ee deployer service, the
> > ValidateDTDs attribute is set to false but , if I interpret the error
> > message correctly, the deployer still tries to validate it.
> >
> > Is this a bug? Is there a work around?
> >
> > I will report it in the bug database.
> >
> > Emmanuel
> > ----- Original Message -----
> > From: "joel cordonnier" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 27, 2001 8:11 AM
> > Subject: [JBoss-user] JBoss-3.0, org.jboss.ejb.DeploymentException:,
> > http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
> >
> >
> > > Hi !
> > >
> > > I have tryed to deploy some beans (CMP) on JBoss-3.0.
> > >
> > > There is an exception when deploying the beans:
> > >
> > > [09:07:46,137,XmlFileLoader] failed to load jboss.xml.
> > >  There could be a syntax error.
> > > org.jboss.ejb.DeploymentException: External entity not
> > > found: "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";.,
> > > Cause: java.io.FileNotFoundException:
> > > http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd
> > >         at
> > > org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:252)
> > >         at
> > >
> >
>
org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
> > >         at
> > > org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:176)
> > >         at
> > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:436)
> > >         at
> > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:377)
> > >         at
> > > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:308)
> > >         at java.lang.reflect.Method.invoke(Native
> > > Method)
> > >         at
> > >
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> > >         at
> > >
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> > >         at
> > > org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467)
> > >         at
> > >
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:444)
> > >         at
> > > org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
> > >         at java.lang.reflect.Method.invoke(Native
> > > Method)
> > >         at
> > >
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> > >         at
> > >
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> > >         at
> > > org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
> > >         at
> > > org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
> > >         at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > >
> > > Thanks
> > > /Joel
> > >
> > > ___________________________________________________________
> > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
> > > Yahoo! Courrier : http://courrier.yahoo.fr
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to