I think it can’t find the bean class for ejb-ref ete/Member. Do some trial and error tests (such as removing the ejb-ref to make sure that’s the problem and so on) and narrow it to the actual problem. If it’s an ejb-ref problem then go enable log4j for EjbRefTagsHandler/etc and see what’s wrong. And if you find frustrated then (only after doing these tests please!) send us the code and the build.xml J

 

Ara.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Johan Isacsson
Sent: Friday, April 05, 2002 1:37 PM
To:
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Java 1.4 with XDoclet?

 

Hey,

 

I am using Ant version 1.4.1. Here is the error i get (i tweaked the log4j settings but it didn't give me any more info on this error, gave me lots of other info though :P)

 

[ejbdoclet] Running <deploymentDescriptor/>
[ejbdoclet]   Generating EJB deployment descriptor.
[ejbdoclet] Running XDoclet failed.
[ejbdoclet] <<No such EJB defined: ete/Member>>
[ejbdoclet] 1 error
[ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain,  method start has thrown an exception java.lang.refl
ect.InvocationTargetException
[ejbdoclet] 2 warnings

 

BUILD FAILED

 

C:\java\ete\build\build.xml:100: Javadoc returned 1

 

Total time: 44 seconds
C:\java\ete\build>ant -version
Ant version 1.4.1 compiled on October 11 2001

 

 

This was run on the comand line (Using Windows XP) with jdk 1.4.0

The exact same thing works if i use jdk 1.3.1_02

 

Here is the log4j settings i used:

log4j.rootCategory=INFO, Console
log4j.appender.Console=org.apache.log4j.ConsoleAppender
log4j.appender.Console.layout=org.apache.log4j.PatternLayout
log4j.appender.Console.layout.ConversionPattern=(%-35c{2} %-4L) %m%n

 

# Uncomment to debug all
log4j.category.xdoclet=DEBUG

 

# Example: Uncomment to debug all EJB Tasks only
log4j.category.xdoclet.ejb=DEBUG

 

# Example: Uncomment to debug the class SubTask only
#log4j.category.xdoclet.SubTask=DEBUG
#log4j.category.xdoclet.ejb.tags.RelationTagsHandler=DEBUG
#log4j.category.xdoclet.ejb.tags.MethodTagsHandler=DEBUG

 

# Example: Uncomment to debug the tokenizeValue() method of SubTask only
#log4j.category.xdoclet.SubTask.tokenizeValue=DEBUG

 

# Uncomment this line if you want to see stack traces
# Please always do so when you want to report a bug
log4j.category.xdoclet.DocletTask=DEBUG
log4j.category.xdoclet.DocletTask$DocletMain=DEBUG

 

log4j.category.xdoclet.tags.MethodTagsHandler=DEBUG

 

I really don't know how to proceed with this as i don't know how to get more debug info out of it.

 

Regards,

Johan Isacsson

 

 

 

 

----- Original Message -----

Sent: Friday, April 05, 2002 9:19 AM

Subject: AW: [Xdoclet-user] Java 1.4 with XDoclet?

 

For me it run's perfectly well with J2SE 1.4. Are you also using the most current version of Ant? (I run it directly from the prompt or from NetBeans 3.x IDE). I'm still using the @namespace:tag notation which works allright, except for more javadoc error messages being printed on the console. To adjust debug info open xdoclet.jar and modify the log4j.properties. There you can uncomment some of the lines that have a # in front of them.

 

Bernhard

-----Urspr�ngliche Nachricht-----
Von: Johan Isacsson [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 5. April 2002 08:50
An: [EMAIL PROTECTED]
Betreff: [Xdoclet-user] Java 1.4 with XDoclet?

Hello,

 

I have some problems with running XDoclet 1.1.2 under Java 1.4.0.

I'm executing the build script via Intellij's IDEA. In that tool i have to possibility to choose which JDK to use when executing ant, if i build with 1.3.1 it all works fine but if i choose 1.4.0 XDoclet fails with an XDoclet exception that says something like:

No such EJB: Member

 

I have tried to delete all generated code between the runs but that didn't help. 

I also noticed that some of the generated code looked a bit weird (one of the PK classes had 2 identical constructors for example)

 

I changed all the tags to use the @namespace.tag notation.

 

Is anyone successfully using XDoclet 1.1.2 with Java 1.4.0 ? If so, did you have to tweak anything to get it to work?

 

I would also like to know how to get more debug info out, right now i just get the xdoclet exception message.

 

Thanks for your time.

 

Regards,

Johan Isacsson

 

 

 

Reply via email to