Re: [apt-jelly-users] getting closer to the jaxb problem
Brought to you by:
stoicflame
|
From: Ryan H. <sto...@gm...> - 2007-01-29 16:46:25
|
A quick google search on the error found this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=3D6432333 Sounds a lot like what you're encountering. This would imply that the jaxb-2.0-api.jar isn't on your APT classpath when you invoke APT. -Ryan On 1/29/07, Ryan Heaton <sto...@gm...> wrote: > > I've looked into this a bit more, but I'm still stumped. My suspicions > lean towards something awry in your environment, but I'm about as far as = I > can go without more information. If you can reproduce it in a test case = (or > give me a way to reproduce it in a test case), I'd be able to figure out > what's going on. More information about your environment might also be > helpful: > > -It's a long shot, but do you happen to have another class that is named > "XmlAttribute" in either your source base or your classpath? > -What's does the executable look like when executing APT? (try ant -v) > Are you sure the jaxb-2.0-api.jar is on the classpath when invoking APT? > > -Ryan > > > > On 1/28/07, Ryan Heaton < sto...@us...> wrote: > > > > Thanks for the report, Brian. > > > > It's an elusive one. I can tell you that I'm using JAXB 2.0 annotation= s > > with APT-Jelly, and I've never seen this one. There really shouldn't b= e > > anything special about JAXB 2.0 annotations; they're the same as any > > other annotation. > > > > I'd really like to be able to reproduce it in a test. Can you send me > > more of the stack trace? > > > > -Ryan > > > > > > > > On 1/27/07, Brian Greene <br...@st...> wrote: > > > > > So this is a segment of the output from running apt when using one o= f > > > the JAXB annotations. Just got it to appear (turned off forking the = apt > > > exec task =96 yes still in ant 1.6.x). Haven't dissected it yet, but > > > I'm hoping it will be more meaningful to a user on the list or Ryan. > > > > > > > > > > > > symbol : class XmlAttribute > > > > > > [* exec*] location: class com.bob.corp.scn.model.SourceCustomer > > > > > > [* exec*] @XmlAttribute(name=3D"foo") > > > > > > [* exec*] ^ > > > > > > [* exec*] error: Could not create declaration for annotation typ= e > > > XmlAttribute > > > > > > [* exec*] Problem encountered during annotation processing; > > > > > > [* exec*] see stacktrace below for more information. > > > > > > [* exec*] * java.lang.ClassCastException*: > > > com.sun.tools.apt.mirror.type.ClassTypeImpl > > > > > > [* exec*] at > > > com.sun.tools.apt.mirror.declaration.AnnotationMirrorImpl.getAnnotati= onType > > > (*AnnotationMirrorImpl.java:82 *) > > > > > > [*exec* ] at > > > net.sf.jelly.apt.decorations.declaration.DecoratedAnnotationMirror > > > .<init>(*DecoratedAnnotationMirror.java:47 *) > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Brian > > > > > > -- > > > No virus found in this outgoing message. > > > Checked by AVG Free Edition. > > > Version: 7.5.432 / Virus Database: 268.17.12/654 - Release Date: > > > 1/27/2007 5:02 PM > > > > > > > > > ---------------------------------------------------------------------= ---- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to > > > share your > > > opinions on IT & business topics through brief surveys - and earn cas= h > > > > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV > > > > > > _______________________________________________ > > > Apt-jelly-users mailing list > > > Apt...@li... > > > https://lists.sourceforge.net/lists/listinfo/apt-jelly-users > > > > > > > > > > > > |