File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes can't create java objects from schemas using xjc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "can Watch "can New topic
Author

can't create java objects from schemas using xjc

sanat
Ranch Hand

Joined: Dec 08, 2004
Posts: 111

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
Paulo Salgado
Ranch Hand

Joined: Jan 18, 2002
Posts: 98
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can't create java objects from schemas using xjc
 
Similar Threads
[JAXB] Not able to generate IMPL file using xjc
[schema] Allow an element to have any content
JAXB XJC compiling Issue
Jaxb marshalling exception
Creating a JMS TextMessage From XML