I wrote a patch for the JAXB plugin and submitted it that upgrades the plugin to JAXB 1.0.2. You can find it on the sourceforge site. It does require you to include all the JAXB jars in your project.xml, though, which is a mistake on my part. I should have picked them up in the plugin. Of course, you'll need some of the dependencies to run your code after you've compiled it anyway. I can't remember all the dependencies off the top of my head, but some of them are:
relaxngDatatype xml-apis xerces jaxb-api jaxb-impl jaxb-libs jaxb-xjc You can find all these jars and more in the JWSDP. That being said, I have no idea where to find the 1.0.0 version of JAXB, except searching the sun archives. I believe JAXB 1.0.0 files are compatible with 1.0.2, but I know 1.0.2 files can not be used with 1.0.0. Personally, I've moved away from JAXB and towards Castor. Castor generated objects can be easily integrated into web services, while JAXB objects currently can not. Of course, the Castor plugin for maven doesn't work very well either, so pick your poison. HTH, WM PS, I searched high and low on the sun archives and couldn't find the old version of the JWSDP, I've had that problem before, but eventually found it, good luck! --- Rakesh Arora <[EMAIL PROTECTED]> wrote: > I am getting the following error when using maven jaxb plugin to generate > source code from the xsd files. Any idea? > > Note that I am trying to use this plgin with JAXB 1.0.2, since i couldn't > find a way to download JAXB 1.0.0 from the sun site. Any idea how i can > obtain JAXB 1.0.0? > > Thanks, > -Rakesh > > ;----------------------------------------------------- > BUILD FAILED > File...... > D:\Profiles\rakmoh\.maven\plugins\maven-jaxb-plugin-1.0\plugin.jelly > Element... xjc > Line...... 34 > Column.... 49 > org/relaxng/datatype/ValidationContext > com.werken.werkz.UnattainableGoalException: Unable to obtain goal > [jaxb:generate > ] -- > D:\Profiles\rakmoh\.maven\plugins\maven-jaxb-plugin-1.0\plugin.jelly:34:49: > <xjc> org/relaxng/datatype/ValidationContext > at com.werken.werkz.Goal.fire(Goal.java:646) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: > 610) > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) > at org.apache.maven.cli.App.doMain(App.java:485) > at org.apache.maven.cli.App.main(App.java:1214) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at com.werken.forehead.Forehead.run(Forehead.java:551) > at com.werken.forehead.Forehead.main(Forehead.java:581) > org.apache.commons.jelly.JellyTagException: > D:\Profiles\rakmoh\.maven\plugins\ma > ven-jaxb-plugin-1.0\plugin.jelly:34:49: <xjc> > org/relaxng/datatype/ValidationCon > text > at > org.apache.commons.jelly.impl.TagScript.handleException(TagScript.jav > a:702) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:296) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233) > at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135) > at > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTa > g.java:79) > at > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.perfor > mAction(MavenGoalTag.java:110) > at com.werken.werkz.Goal.fire(Goal.java:639) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java: > 610) > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) > at org.apache.maven.cli.App.doMain(App.java:485) > at org.apache.maven.cli.App.main(App.java:1214) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]