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

Reply via email to