users@jaxb.java.net

Re: cannot find symbol : variable XmlAccessType

From: <assisr_at_br.ibm.com>
Date: Thu, 18 Sep 2008 15:31:43 -0300

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




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


To
users_at_jaxb.dev.java.net
cc

Subject
Re: cannot find symbol : variable XmlAccessType






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

hey Wolfgang, TX a lot !

You re right, it was missing a JAR on the classpath :(((

Now I am getting following error :

portalv6\jaxb\WireItem.java:54: incompatible types
found : javax.xml.bind.annotation.XmlAccessType
required: javax.xml.bind.annotation.AccessType
@XmlAccessorType(XmlAccessType.FIELD)
  ^

Under this code :

@XmlAccessorType(XmlAccessType.FIELD)

This error would occur if the compiler sees a definition of
the annotation XmlAccessorType where its value element is
not XmlAccessType but only AccessType. Is it possible
that you have some old or odd jar files in your classpath?

-W
 

@XmlType(name = "wireItem", propOrder = {
    "localedata"
})
public class WireItem {

    protected List<LocaleData> localedata;
    @XmlAttribute
    protected String user;


I was using a previous JAXB version, and now I am using this JAXB RI 2.1.8
fcs.

Do I need to change all my code, coz I am also getting :

portalv6\jaxb\ContextData.java:63: cannot find symbol
symbol : method required()


TX a lot all !

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 12:00


Please respond to
users_at_jaxb.dev.java.net


To
users_at_jaxb.dev.java.net
cc

Subject
Re: cannot find symbol : variable XmlAccessType








Most likely, the import of this Enum type from javax.xml.bind.annotation
is missing.
-W

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

Hi all !

H R U ?

I am using JAXB RI 2.1.8 fcs and jre1.6.0_07. and getting the following
error :

portalv6\jaxb\PortalItem.java:66: cannot find symbol symbol: variable
XmlAccessType @XmlAccessorType(XmlAccessType.FIELD)

On the following piece of code

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "portalItem", propOrder = {
   "globalSettings",


Does anyone have an idea ?

TX in advance !


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