Re: [gwt-contrib] Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2018-12-14 Thread Michael Joyner

Try removing sources

On 12/14/18 6:04 AM, Mehrdad Bozorg wrote:
Hi guys, I am new with Java and restful API, I have a similar problem 
and I have added this snippet in my pom.xml, but still, it does not 
recognize the @XmlRootElement. Do you have any solution for this?


On Monday, 23 October 2017 17:10:28 UTC+2, Michael Joyner wrote:

Thanks!

Adding gwt 'javax.xml.bind:jaxb-api:2.3.+' to our build.gradle
fixed it.


On 10/20/2017 03:54 PM, Slava Pankov wrote:

Try to add dependency to your pom.xml:


      javax.xml.bind
      jaxb-api
      2.3.0
sources
      provided
    

On Friday, October 20, 2017 at 8:32:02 AM UTC-7, Michael Joyner
wrote:

Eh...

I changed my gradle build config to use 2.8.2 and started
getting import annotation errors (below).

Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type
'me.pubz.sitemap.SitemapIndex'
  [ERROR] Errors in

'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'
 [ERROR] Line 15: XmlRootElement cannot be resolved
to a type
 [ERROR] Line 45: XmlElement cannot be resolved to a type
 [ERROR] Line 22: XmlAttribute cannot be resolved to
a type
 [ERROR] Line 8: The import javax.xml.bind cannot be
resolved
 [ERROR] Line 32: XmlAttribute cannot be resolved to
a type
 [ERROR] Line 7: The import javax.xml.bind cannot be
resolved
 [ERROR] Line 9: The import javax.xml.bind cannot be
resolved
 [ERROR] Line 27: XmlAttribute cannot be resolved to
a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List sitemaps;
    private String elapsed;

    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
    return xmlns;
    }

    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }

    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
    this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List getSitemaps() {
    return sitemaps;
    }

    public void setSitemaps(List sitemaps) {
    this.sitemaps = sitemaps;
    }
}

-- 
You received this message because you are subscribed to the

Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to
google-web-toolkit-contributors+unsubscr...@googlegroups.com
.
To view this discussion on the web visit

https://groups.google.com/d/msgid/google-web-toolkit-contributors/9df8d586-90cc-4443-8cfe-94b53942d2a7%40googlegroups.com

.
For more options, visit https://groups.google.com/d/optout
.


--
You received this message because you are subscribed to the Google 
Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to 
google-web-toolkit-contributors+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/0d59e66f-15f9-4c9f-881d-63d928c9235b%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" 

Re: [gwt-contrib] Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2018-12-14 Thread Mehrdad Bozorg
Hi guys, I am new with Java and restful API, I have a similar problem and I 
have added this snippet in my pom.xml, but still, it does not recognize 
the @XmlRootElement. Do you have any solution for this?

On Monday, 23 October 2017 17:10:28 UTC+2, Michael Joyner wrote:
>
> Thanks!
>
> Adding gwt 'javax.xml.bind:jaxb-api:2.3.+' to our build.gradle fixed it.
>
> On 10/20/2017 03:54 PM, Slava Pankov wrote:
>
> Try to add dependency to your pom.xml: 
>
> 
>   javax.xml.bind
>   jaxb-api
>   2.3.0
>   sources
>   provided
> 
>
> On Friday, October 20, 2017 at 8:32:02 AM UTC-7, Michael Joyner wrote: 
>>
>> Eh...
>>
>> I changed my gradle build config to use 2.8.2 and started getting import 
>> annotation errors (below).
>>
>> Switching back 2.8.1 and the errors go away.
>>
>> The annotations are imports from:
>>
>> import javax.xml.bind.annotation.XmlAttribute;
>> import javax.xml.bind.annotation.XmlElement;
>> import javax.xml.bind.annotation.XmlRootElement;
>>
>> > Task :compileGwt
>> Compiling module selenium.RestyGwtCodecTester
>>Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
>>   [ERROR] Errors in '
>> jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java
>> '
>>  [ERROR] Line 15: XmlRootElement cannot be resolved to a type
>>  [ERROR] Line 45: XmlElement cannot be resolved to a type
>>  [ERROR] Line 22: XmlAttribute cannot be resolved to a type
>>  [ERROR] Line 8: The import javax.xml.bind cannot be resolved
>>  [ERROR] Line 32: XmlAttribute cannot be resolved to a type
>>  [ERROR] Line 7: The import javax.xml.bind cannot be resolved
>>  [ERROR] Line 9: The import javax.xml.bind cannot be resolved
>>  [ERROR] Line 27: XmlAttribute cannot be resolved to a type
>> offending code:
>>
>> package me.pubz.sitemap;
>>
>>
>> import java.util.Date;
>> import java.util.List;
>>
>> import javax.xml.bind.annotation.XmlAttribute;
>> import javax.xml.bind.annotation.XmlElement;
>> import javax.xml.bind.annotation.XmlRootElement;
>>
>> /**
>>  * Created by AmitG on 20-03-2014.
>>  */
>>
>> @XmlRootElement(name = "sitemapindex")
>> public class SitemapIndex {
>>
>> private String xmlns;
>> private List sitemaps;
>> private String elapsed;
>> 
>> @XmlAttribute()
>> public Date getGenerated(){
>> return new java.util.Date();
>> }
>>
>> @XmlAttribute()
>> public String getXmlns() {
>> return xmlns;
>> }
>> 
>> @XmlAttribute()
>> public String getElapsed(){
>> return elapsed;
>> }
>> 
>> public void setElapsed(String elapsed){
>> this.elapsed=elapsed;
>> }
>>
>> public void setXmlns(String xmlns) {
>> this.xmlns = xmlns;
>> }
>>
>> @XmlElement(name = "sitemap")
>> public List getSitemaps() {
>> return sitemaps;
>> }
>>
>> public void setSitemaps(List sitemaps) {
>> this.sitemaps = sitemaps;
>> }
>> }
>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/9df8d586-90cc-4443-8cfe-94b53942d2a7%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/0d59e66f-15f9-4c9f-881d-63d928c9235b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-23 Thread Michael Joyner

Thanks!

Adding gwt 'javax.xml.bind:jaxb-api:2.3.+' to our build.gradle fixed it.


On 10/20/2017 03:54 PM, Slava Pankov wrote:

Try to add dependency to your pom.xml:


      javax.xml.bind
      jaxb-api
      2.3.0
sources
      provided
    

On Friday, October 20, 2017 at 8:32:02 AM UTC-7, Michael Joyner wrote:

Eh...

I changed my gradle build config to use 2.8.2 and started getting
import annotation errors (below).

Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type
'me.pubz.sitemap.SitemapIndex'
  [ERROR] Errors in

'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'
 [ERROR] Line 15: XmlRootElement cannot be resolved to a type
 [ERROR] Line 45: XmlElement cannot be resolved to a type
 [ERROR] Line 22: XmlAttribute cannot be resolved to a type
 [ERROR] Line 8: The import javax.xml.bind cannot be resolved
 [ERROR] Line 32: XmlAttribute cannot be resolved to a type
 [ERROR] Line 7: The import javax.xml.bind cannot be resolved
 [ERROR] Line 9: The import javax.xml.bind cannot be resolved
 [ERROR] Line 27: XmlAttribute cannot be resolved to a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List sitemaps;
    private String elapsed;

    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
    return xmlns;
    }

    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }

    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
    this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List getSitemaps() {
    return sitemaps;
    }

    public void setSitemaps(List sitemaps) {
    this.sitemaps = sitemaps;
    }
}

--
You received this message because you are subscribed to the Google 
Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to 
google-web-toolkit-contributors+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/9df8d586-90cc-4443-8cfe-94b53942d2a7%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/7b4bc583-7518-0eeb-5752-127e95fcfb73%40newsrx.com.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-23 Thread Michael Joyner

Thanks!

Adding gwt 'javax.xml.bind:jaxb-api:2.3.+' to our build.gradle fixed it.


On 10/20/2017 03:53 PM, Slava Pankov wrote:

Try to add dependency to your pom.xml:

    
      javax.xml.bind
      jaxb-api
      2.3.0
sources
      provided
    


On Friday, October 20, 2017 at 8:32:20 AM UTC-7, Michael Joyner wrote:

Eh...

I changed my gradle build config to use 2.8.2 and started getting
import annotation errors (below).

Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type
'me.pubz.sitemap.SitemapIndex'
  [ERROR] Errors in

'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'
 [ERROR] Line 15: XmlRootElement cannot be resolved to a type
 [ERROR] Line 45: XmlElement cannot be resolved to a type
 [ERROR] Line 22: XmlAttribute cannot be resolved to a type
 [ERROR] Line 8: The import javax.xml.bind cannot be resolved
 [ERROR] Line 32: XmlAttribute cannot be resolved to a type
 [ERROR] Line 7: The import javax.xml.bind cannot be resolved
 [ERROR] Line 9: The import javax.xml.bind cannot be resolved
 [ERROR] Line 27: XmlAttribute cannot be resolved to a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List sitemaps;
    private String elapsed;

    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
    return xmlns;
    }

    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }

    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
    this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List getSitemaps() {
    return sitemaps;
    }

    public void setSitemaps(List sitemaps) {
    this.sitemaps = sitemaps;
    }
}

--
You received this message because you are subscribed to the Google 
Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to google-web-toolkit+unsubscr...@googlegroups.com 
.
To post to this group, send email to 
google-web-toolkit@googlegroups.com 
.

Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-20 Thread Slava Pankov
Try to add dependency to your pom.xml:


  javax.xml.bind
  jaxb-api
  2.3.0
  sources
  provided


On Friday, October 20, 2017 at 8:32:02 AM UTC-7, Michael Joyner wrote:
>
> Eh...
>
> I changed my gradle build config to use 2.8.2 and started getting import 
> annotation errors (below).
>
> Switching back 2.8.1 and the errors go away.
>
> The annotations are imports from:
>
> import javax.xml.bind.annotation.XmlAttribute;
> import javax.xml.bind.annotation.XmlElement;
> import javax.xml.bind.annotation.XmlRootElement;
>
> > Task :compileGwt
> Compiling module selenium.RestyGwtCodecTester
>Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
>   [ERROR] Errors in '
> jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java
> '
>  [ERROR] Line 15: XmlRootElement cannot be resolved to a type
>  [ERROR] Line 45: XmlElement cannot be resolved to a type
>  [ERROR] Line 22: XmlAttribute cannot be resolved to a type
>  [ERROR] Line 8: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 32: XmlAttribute cannot be resolved to a type
>  [ERROR] Line 7: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 9: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 27: XmlAttribute cannot be resolved to a type
> offending code:
>
> package me.pubz.sitemap;
>
>
> import java.util.Date;
> import java.util.List;
>
> import javax.xml.bind.annotation.XmlAttribute;
> import javax.xml.bind.annotation.XmlElement;
> import javax.xml.bind.annotation.XmlRootElement;
>
> /**
>  * Created by AmitG on 20-03-2014.
>  */
>
> @XmlRootElement(name = "sitemapindex")
> public class SitemapIndex {
>
> private String xmlns;
> private List sitemaps;
> private String elapsed;
> 
> @XmlAttribute()
> public Date getGenerated(){
> return new java.util.Date();
> }
>
> @XmlAttribute()
> public String getXmlns() {
> return xmlns;
> }
> 
> @XmlAttribute()
> public String getElapsed(){
> return elapsed;
> }
> 
> public void setElapsed(String elapsed){
> this.elapsed=elapsed;
> }
>
> public void setXmlns(String xmlns) {
> this.xmlns = xmlns;
> }
>
> @XmlElement(name = "sitemap")
> public List getSitemaps() {
> return sitemaps;
> }
>
> public void setSitemaps(List sitemaps) {
> this.sitemaps = sitemaps;
> }
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/9df8d586-90cc-4443-8cfe-94b53942d2a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-20 Thread Slava Pankov
Try to add dependency to your pom.xml:


  javax.xml.bind
  jaxb-api
  2.3.0
  sources
  provided



On Friday, October 20, 2017 at 8:32:20 AM UTC-7, Michael Joyner wrote:
>
> Eh...
>
> I changed my gradle build config to use 2.8.2 and started getting import 
> annotation errors (below).
>
> Switching back 2.8.1 and the errors go away.
>
> The annotations are imports from:
>
> import javax.xml.bind.annotation.XmlAttribute;
> import javax.xml.bind.annotation.XmlElement;
> import javax.xml.bind.annotation.XmlRootElement;
>
> > Task :compileGwt
> Compiling module selenium.RestyGwtCodecTester
>Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
>   [ERROR] Errors in '
> jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java
> '
>  [ERROR] Line 15: XmlRootElement cannot be resolved to a type
>  [ERROR] Line 45: XmlElement cannot be resolved to a type
>  [ERROR] Line 22: XmlAttribute cannot be resolved to a type
>  [ERROR] Line 8: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 32: XmlAttribute cannot be resolved to a type
>  [ERROR] Line 7: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 9: The import javax.xml.bind cannot be resolved
>  [ERROR] Line 27: XmlAttribute cannot be resolved to a type
> offending code:
>
> package me.pubz.sitemap;
>
>
> import java.util.Date;
> import java.util.List;
>
> import javax.xml.bind.annotation.XmlAttribute;
> import javax.xml.bind.annotation.XmlElement;
> import javax.xml.bind.annotation.XmlRootElement;
>
> /**
>  * Created by AmitG on 20-03-2014.
>  */
>
> @XmlRootElement(name = "sitemapindex")
> public class SitemapIndex {
>
> private String xmlns;
> private List sitemaps;
> private String elapsed;
> 
> @XmlAttribute()
> public Date getGenerated(){
> return new java.util.Date();
> }
>
> @XmlAttribute()
> public String getXmlns() {
> return xmlns;
> }
> 
> @XmlAttribute()
> public String getElapsed(){
> return elapsed;
> }
> 
> public void setElapsed(String elapsed){
> this.elapsed=elapsed;
> }
>
> public void setXmlns(String xmlns) {
> this.xmlns = xmlns;
> }
>
> @XmlElement(name = "sitemap")
> public List getSitemaps() {
> return sitemaps;
> }
>
> public void setSitemaps(List sitemaps) {
> this.sitemaps = sitemaps;
> }
> }
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-20 Thread Michael Joyner

Eh...

I changed my gradle build config to use 2.8.2 and started getting import 
annotation errors (below).


Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
  [ERROR] Errors in 
'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'

 [ERROR] Line 15: XmlRootElement cannot be resolved to a type
 [ERROR] Line 45: XmlElement cannot be resolved to a type
 [ERROR] Line 22: XmlAttribute cannot be resolved to a type
 [ERROR] Line 8: The import javax.xml.bind cannot be resolved
 [ERROR] Line 32: XmlAttribute cannot be resolved to a type
 [ERROR] Line 7: The import javax.xml.bind cannot be resolved
 [ERROR] Line 9: The import javax.xml.bind cannot be resolved
 [ERROR] Line 27: XmlAttribute cannot be resolved to a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List sitemaps;
    private String elapsed;

    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
    return xmlns;
    }

    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }

    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
    this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List getSitemaps() {
    return sitemaps;
    }

    public void setSitemaps(List sitemaps) {
    this.sitemaps = sitemaps;
    }
}

--
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/6f9cf5f1-0f75-9e55-3ddf-9d489d979249%40newsrx.com.
For more options, visit https://groups.google.com/d/optout.


GWT 2.8.2 release => [ERROR] ... XmlRootElement ... XmlElement ... cannot be resolved to a type

2017-10-20 Thread Michael Joyner

Eh...

I changed my gradle build config to use 2.8.2 and started getting import 
annotation errors (below).


Switching back 2.8.1 and the errors go away.

The annotations are imports from:

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

> Task :compileGwt
Compiling module selenium.RestyGwtCodecTester
   Tracing compile failure path for type 'me.pubz.sitemap.SitemapIndex'
  [ERROR] Errors in 
'jar:file:/home/michael/git/SHARED-POJOS/SHARED-POJOS/build/libs/SHARED-POJOS-20170711.jar!/me/pubz/sitemap/SitemapIndex.java'

 [ERROR] Line 15: XmlRootElement cannot be resolved to a type
 [ERROR] Line 45: XmlElement cannot be resolved to a type
 [ERROR] Line 22: XmlAttribute cannot be resolved to a type
 [ERROR] Line 8: The import javax.xml.bind cannot be resolved
 [ERROR] Line 32: XmlAttribute cannot be resolved to a type
 [ERROR] Line 7: The import javax.xml.bind cannot be resolved
 [ERROR] Line 9: The import javax.xml.bind cannot be resolved
 [ERROR] Line 27: XmlAttribute cannot be resolved to a type

offending code:

package me.pubz.sitemap;


import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by AmitG on 20-03-2014.
 */

@XmlRootElement(name = "sitemapindex")
public class SitemapIndex {

    private String xmlns;
    private List sitemaps;
    private String elapsed;

    @XmlAttribute()
    public Date getGenerated(){
        return new java.util.Date();
    }

    @XmlAttribute()
    public String getXmlns() {
    return xmlns;
    }

    @XmlAttribute()
    public String getElapsed(){
        return elapsed;
    }

    public void setElapsed(String elapsed){
        this.elapsed=elapsed;
    }

    public void setXmlns(String xmlns) {
    this.xmlns = xmlns;
    }

    @XmlElement(name = "sitemap")
    public List getSitemaps() {
    return sitemaps;
    }

    public void setSitemaps(List sitemaps) {
    this.sitemaps = sitemaps;
    }
}

--
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.