• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

can't create java objects from schemas using xjc

 
Ranch Hand
Posts: 111
Mac Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i'm new to web services, i was just trying to generate java classes from my schemas, using xjc ant task. but it always complains.

schema
------


ant task
--------


error
-----


i have really no idea what's wrong here. any help would be appreciated. thanks in advance.

-sanat
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sanat.

It looks like you have a conflict between the element name and the type name. JAXB will generate interfaces and classes for both, so they can't have the same name. Try renaming either one of them. For instance, rename the element on your XML Schema like this:



Regards.
reply
    Bookmark Topic Watch Topic
  • New Topic