users@jaxb.java.net

Re: cannot find symbol : variable XmlAccessType

From: <assisr_at_br.ibm.com>
Date: Thu, 18 Sep 2008 12:48:26 -0300

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)
@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