> The problem is that the people who are writing these beans don't know
> xdoclet yet, so they haven't put any xdoclet tags in. They are
intended to
> be concrete beans, but haven't been tagged yet.
> 
> If this is necessary from a default value standpoint, then that's
fine,
> and should be noted in the documentation, and I'll just make sure to
tell
> everyone to at least put in the ejb:bean generate="false".

If they are intended to be concrete then no need for generate="false"
(it excludes a bean from being included in ejb-jar.xml). So for these
beans xdoclet should create some default values (ejb-name=bean-name,
etc) and generate minimum correct ejb-jar.xml/etc. I don't have any idea
why you're getting the error, so please send me the class def
(extends/implements part) and class level tags of the suspected classes
:-)

> Jason

Ara.

> > -----Original Message-----
> > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 08, 2002 4:14 PM
> > To: Jason Carreira; 'Xdoclet-User (E-mail)'
> > Subject: RE: [Xdoclet-user] Problem when there are no xdoclet tags
> >
> >
> > Jason,
> >
> > I'm a bit puzzled. I look at our code and seems like xdoclet
> > can't guess
> > the subtask type. Will you please send me class tags and class
> > definitions of your project? I assume you have some abstract classes
> > which derive from EntityBean/SessionBean but are not intended to be
> > concrete beans but xdoclet tries to generate dd for them and it
fails.
> > Is this assumption correct?
> >
> > Anyway to exclude a bean from being included in deployment as
> > a full ejb
> > you should put @ejb:bean generate="false" in javadocs of that
abstract
> > bean. But what is interesting is that xdoclet tries to guess
> > whether the
> > bean is a real concrete bean or just an abstract support class and
in
> > your case it fails. I'm curious to know why!
> >
> > Cheers,
> > Ara.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
[mailto:xdoclet-user-
> > > [EMAIL PROTECTED]] On Behalf Of Jason Carreira
> > > Sent: Friday, February 08, 2002 3:54 PM
> > > To: Xdoclet-User (E-mail)
> > > Subject: RE: [Xdoclet-user] Problem when there are no xdoclet tags
> > >
> > > Nope. Just CMP entity and SLSB.
> > >
> > > > -----Original Message-----
> > > > From: Ara Abrahamian [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, February 08, 2002 6:48 AM
> > > > To: Jason Carreira; 'Xdoclet-User (E-mail)'
> > > > Subject: RE: [Xdoclet-user] Problem when there are no xdoclet
tags
> > > >
> > > >
> > > > AFAIK it shouldn't complain. It's a bug. Do you have MDBs in
your
> > app?
> > > >
> > > > Ara.
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > [mailto:xdoclet-user-
> > > > > [EMAIL PROTECTED]] On Behalf Of Jason Carreira
> > > > > Sent: Friday, February 08, 2002 12:41 AM
> > > > > To: Xdoclet-User (E-mail)
> > > > > Subject: RE: [Xdoclet-user] Problem when there are no
> > xdoclet tags
> > > > >
> > > > > Well, unfortunately, they're all in the same
> > directory... There's
> > no
> > > > way
> > > > > to make xdoclet politely ignore any files without xdoclet
tags?
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Thursday, February 07, 2002 2:29 PM
> > > > > > To: Jason Carreira; Xdoclet-User (E-mail)
> > > > > > Subject: Re: [Xdoclet-user] Problem when there are no
xdoclet
> > tags
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Use the and <fileset /> attribute when selecting files to be
> > > > > > included and
> > > > > > just exclude the onces you haven't yet done.  THat way as
you
> > > > > > move them
> > > > > > across, you can just change the build file a little.
> > > > > >
> > > > > > cheers
> > > > > > dim
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Jason Carreira" <[EMAIL PROTECTED]>
> > > > > > To: "Xdoclet-User (E-mail)"
> > <[EMAIL PROTECTED]>
> > > > > > Sent: Friday, February 08, 2002 4:32 AM
> > > > > > Subject: [Xdoclet-user] Problem when there are no xdoclet
tags
> > > > > >
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > We're having a problem where XDoclet fails and breaks the
> > > > > > build when there
> > > > > > are no xdoclet tags in an EJB class that xdoclet finds:
> > > > > >
> > > > > > Running <deploymentDescriptor/>
> > > > > >   Generating EJB deployment descriptor.
> > > > > > javadoc: In doclet class xdoclet.DocletTask$DocletMain,
> > > > > > method start has
> > > > > > thrown an exception
> > java.lang.reflect.InvocationTargetException
> > > > > > (TemplateEngine.invokeMethod         795 ) Invoking method
> > failed:
> > > > > > ifIsAConcreteEJBean , line=8 of template file:
> > > > > > \xdoclet\ejb\ejb-jar_xml.j
> > > > > > java.lang.NullPointerException
> > > > > > at
> > > > > >
xdoclet.ejb.tags.EjbTagsHandler.isAConcreteEJBean(EjbTagsHandl
> > > > > > er.java:72)
> > > > > > at
> > > > > >
xdoclet.ejb.tags.EjbTagsHandler.ifIsAConcreteEJBean(EjbTagsHan
> > > > > > dler.java:494)
> > > > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > > > at
> > > > > >
> > > >
> >
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:781)
> > > > > > at
> > > > > >
xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngi
> > > > > > ne.java:837)
> > > > > > at
> > > > > >
xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.
> > > > > > java:705)
> > > > > > at
> > > >
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:441)
> > > > > > at
> > > >
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:323)
> > > > > > at
> > xdoclet.XDocletTagSupport.generate(XDocletTagSupport.java:809)
> > > > > > at
> > > > > >
> > > >
> >
xdoclet.tags.ClassTagsHandler.forAllClasses(ClassTagsHandler.java:262)
> > > > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > > > at
> > > > > >
> > > >
> >
xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:753)
> > > > > > at
> > > > > >
xdoclet.template.TemplateEngine.invokeBlockMethod(TemplateEngi
> > > > > > ne.java:837)
> > > > > > at
> > > > > >
xdoclet.template.TemplateEngine.handleBlockTag(TemplateEngine.
> > > > > > java:705)
> > > > > > at
> > > >
xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:441)
> > > > > > at
> > > >
xdoclet.template.TemplateEngine.generate(TemplateEngine.java:323)
> > > > > > at
> > xdoclet.template.TemplateEngine.start(TemplateEngine.java:386)
> > > > > > at
> > xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:486)
> > > > > > at
> > xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:320)
> > > > > > at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:121)
> > > > > > at
> > xdoclet.ejb.EjbDotXmlSubTask.execute(EjbDotXmlSubTask.java:122)
> > > > > > at xdoclet.DocletTask$DocletMain.start(DocletTask.java:523)
> > > > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > > > at
> > > >
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
> > > > > > at
> > > > com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
> > > > > > at com.sun.tools.javadoc.Main.main(Main.java:233)
> > > > > > Running XDoclet failed:
> > > > > > <<Running XDoclet failed.>>
> > > > > >
> > > > > > I'm in the process of moving our team over to xdoclet, so
> > > > > > they're not adding
> > > > > > xdoclet to all of the source files yet, so this is a real
> > > > > > problem for us. Is
> > > > > > there a way to make xdoclet ignore files without xdoclet
tags?
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Jason Carreira
> > > > > >
> > > > > > --
> > > > > > Jason Carreira
> > > > > > Technical Architect, Notiva Corp.
> > > > > > phone: 585.240.2793
> > > > > >   fax: 585.272.8118
> > > > > > email: [EMAIL PROTECTED]
> > > > > >
> > > > > > _______________________________________________
> > > > > > Xdoclet-user mailing list
> > > > > > [EMAIL PROTECTED]
> > > > > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > 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
> >
> >
> >
> > _________________________________________________________
> >
> > 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



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

Reply via email to