users@jaxb.java.net

Re: cannot find symbol : variable XmlAccessType

From: <assisr_at_br.ibm.com>
Date: Mon, 22 Sep 2008 11:56:43 -0300

Hey Wolfgang !

You were right (again) :))) I uninstalled "Java Web Services Developer
Pack" (with previous JAXB version) and worked fine !

Thank you very much and have all a good weekend.

Regards,

Rodrigo Oliveira Assis
IT Specialist
IBM Application Management Services
+55 21 2225-4839
assisr_at_br.ibm.com
Rio de Janeiro, Brazil




"Wolfgang Laun" <wolfgang.laun_at_gmail.com>
18/09/2008 16:41
Please respond to
users_at_jaxb.dev.java.net


To
users_at_jaxb.dev.java.net
cc

Subject
Re: cannot find symbol : variable XmlAccessType






The first problem was that XmlAccessType was not visible to the compiler.
But there must be an import statement, from javax.xml.bind.annotation;
probably with *. for all classes. I think that your code WireItem.java is
not generated by some schema compiler but annotated manually.
I'd change the import so that there are individual imports from
javax.xml.bind.annotation for all the Xml... annotations and, of course,
for XmlAccessType as well.

The jaxb_api.jar that comes with JAXB 2.1.8 is compiled with 1.5.0_06, so
this should be OK.

-Wolfgang

On Thu, Sep 18, 2008 at 8:31 PM, <assisr_at_br.ibm.com> wrote:

Hi Wolfgang,

Actually these are the files in my classpath :

C:portalv6\jaxb1-impl.jar
C:portalv6\jaxb-api.jar
C:portalv6\jaxb-impl.jar
C:portalv6\jaxb-xjc.jar
C:portalv6\jsr173_1.0_api.jar
C:portalv6\jaxb-api-doc.zip
C:portalv6\jaxb-api-src.zip
C:portalv6\jaxb-impl.src.zip
C:portalv6\jaxb-xjc.src.zip
c:\program files\Kawa3.51\kawaclasses.zip
c:\program files\java\jdk1.5.0_07\lib\tools.jar
c:\program files\java\jdk1.5.0_07\jre\lib\rt.jar

Do you think JDK 1.5.0_07 is an issue to work with JAXB ?

Didnt find any AccessType.class inside those files.

Thank you !!!

Rodrigo Oliveira Assis
IT Specialist
IBM Application Management Services
+55 21 2225-4839
assisr_at_br.ibm.com
Rio de Janeiro, Brazil