Hi Ryan,
Have you tried to build the jaxb2 webapp under the examples
folder of the latest xfire download? Might be an idea to get that
working, so that you know that your environment is all fine for
generating jaxb, before moving onto something else?
Assuming you have done that, then I suspect it's because you
might need to manually download the schema, v01-types-messaging.xsd, to
your hard drive and reference it in your classpath as you attempt to run
jaxb via maven? This is how the jaxb2 example works in xfire example
apps. Also note that another xfire example webapp, jaxws-spring, does a
wsgen on a given wsdl file. Again, might be of help to you to get that
working, before moving on?
To possibly get more information on your maven build, you
might want to run the build with the -e switch, gives you more
information about what maven is attempting to do before it faults out.
Also add a log4j configuration file, and add category(s) on jaxb so that
the build spits out more information (e.g. javax.xml.bind)?
To conclude, my 'gut feel' is that your trying to run jaxb
over another company's wsdl? That wsdl refers to a schema that is
probably hosted by them? Hence, you might require some proxy
configuration to be setup for maven to allow that schema to be
accessed/downloaded? If that's the case, then have a look at this url:
http://maven.apache.org/guides/mini/guide-proxies.html
I'll leave it at that, as what we're talking about above is more jaxb
and maven, rather than xfire. Hoping the above is of some help to you
Ryan.
Best of luck,
Conor
________________________________
From: Ryan Moquin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 26 June 2007 5:16 AM
To: [email protected]
Subject: [xfire-user] How to get logging from XFire during generation?
I'm using the XFire Maven plugin to generate jaxb classes for a wsdl. I
keep getting cryptic errors that aren't letting the process finish. I
was hoping that someone could tell me if there is a way to get logging
to find out what the actual error is so I can fix it.
This is the error I'm getting:
[INFO]Executing XFire WsGen task with url: file:/messaging.wsdl
Retrieving schema at 'v01-types-messaging.xsd', relative to
'file:/messaging.wsdl'.
[INFO]------------------------------------------------------------------
------
[ERROR]BUILD ERROR
[INFO]------------------------------------------------------------------
------
[INFO]command execution failed
Embedded error: org.codehaus.xfire.gen.GenerationException: Error
generating JAXB model.
That's all I get about the error... how does one normally troubleshoot
this? The wsdl itself is one to a service that we need to consume, we
don't have any control over their wsdl, but cannot generate an object
model from it... so I'm not sure if we are out of luck using xfire for
this?
Any help would be appreciated!
Thanks!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended
recipient(s) only. If you received this email by mistake, please,
as a courtesy, tell the sender, then delete this email.
The views and opinions are the originator's and do not necessarily
reflect those of the Queensland Studies Authority. All reasonable
precautions have been taken to ensure that this email contained no
viruses at the time it was sent.