Hmm...I know when Maven starts up two of the command line parameters are -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBu ilderFactoryImpl -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactory Impl
Maybe there is some weird case where they are not being set at execution time? Or perhaps they are not in the classpath. Try running maven with "-X" and check the output. > -----Original Message----- > From: Arthur I. Walker [mailto:[EMAIL PROTECTED] > Sent: Friday, September 26, 2003 10:59 AM > To: Maven Users List > Subject: RE: JUnit Tests > > > My Maven build works then it doesn't . > > I converted my build over from beta 7 to beta 10, and > everything was working. However, after logging off, and then > logging back on to the build machine, the build stops working > (after no changes). Maven keeps complaining about the > javax.xml.parsers.SAXParserFactory. I couldn't find any > reference in the mailing list archives about this. Any > suggestions would be helpful. > > Most some of my goals still work, however many of them fail > after a while with this SaxParserFactory problem. It would > make more sense to me if the problem always existed, but it > didn't. The build actually work several times, before I > logged out. I'm stumped. > > The following is the full exception: > > D:\Builds-LFG\Web-App\buildFiles>buildAppverbose > > maven-out.txt BUILD FAILED File...... file:/C:/Documents and > Settings/lfgdev_gos/.maven/plugins/maven-war-plugin-1.4-SNAPSHOT/ > Element... attainGoal > Line...... 24 > Column.... 40 > Provider for javax.xml.parsers.SAXParserFactory cannot be found > com.werken.werkz.UnattainableGoalException: Unable to obtain > goal [war:init] -- file:/C:/Documents a nd > Settings/lfgdev_gos/.maven/plugins/maven-war-plugin-1.4-SNAPSH > OT/:24:40: > <attainGoal> Provider fo > r javax.xml.parsers.SAXParserFactory cannot be found > at com.werken.werkz.Goal.fire(Goal.java:646) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManage > r.java:434 > ) > at > org.apache.maven.MavenSession.attainGoals(MavenSession.java:348) > at org.apache.maven.cli.App.doMain(App.java:525) > at org.apache.maven.cli.App.main(App.java:1088) > at java.lang.reflect.Method.invoke(Native Method) > at com.werken.forehead.Forehead.run(Forehead.java:543) > at com.werken.forehead.Forehead.main(Forehead.java:573) > org.apache.commons.jelly.JellyTagException: > file:/C:/Documents and Settings/lfgdev_gos/.maven/plugin > s/maven-war-plugin-1.4-SNAPSHOT/:24:40: <attainGoal> Provider > for javax.xml.parsers.SAXParserFactory > cannot be found > at > org.apache.commons.jelly.impl.TagScript.handleException(TagScr > ipt.java:7 > 02) > 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 > com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128) > at com.werken.werkz.Goal.fire(Goal.java:639) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManage > r.java:434 > ) > at > org.apache.maven.MavenSession.attainGoals(MavenSession.java:348) > at org.apache.maven.cli.App.doMain(App.java:525) > at org.apache.maven.cli.App.main(App.java:1088) > at java.lang.reflect.Method.invoke(Native Method) > at com.werken.forehead.Forehead.run(Forehead.java:543) > at com.werken.forehead.Forehead.main(Forehead.java:573) > javax.xml.parsers.FactoryConfigurationError: Provider for > javax.xml.parsers.SAXParserFactory cannot be found > at javax.xml.parsers.SAXParserFactory.newInstance(Unknown > Source) > at > org.apache.maven.jelly.JellyUtils.compileScript(JellyUtils.java:193) > at > org.apache.maven.MavenUtils.getJellyProject(MavenUtils.java:355) > at org.apache.maven.MavenUtils.getProject(MavenUtils.java:243) > at > org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager > .java:694) > at > org.apache.maven.plugin.PluginManager.loadPlugins(PluginManage > r.java:766 > ) > at > org.apache.maven.plugin.PluginManager.prepForCallbacks(PluginM > anager.jav > a:554) > at > org.apache.maven.plugin.PluginManager.prepForGoal(PluginManage > r.java:525 > ) > at > org.apache.maven.MavenSession.prepForGoal(MavenSession.java:248) > at > org.apache.maven.jelly.tags.werkz.LazyAttainGoalTag.doTag(Lazy > AttainGoal > Tag.java:105) > 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 > com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:128) > at com.werken.werkz.Goal.fire(Goal.java:639) > at com.werken.werkz.Goal.attain(Goal.java:575) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at com.werken.werkz.Goal.attainPrecursors(Goal.java:488) > at com.werken.werkz.Goal.attain(Goal.java:573) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManage > r.java:434 > ) > at > org.apache.maven.MavenSession.attainGoals(MavenSession.java:348) > at org.apache.maven.cli.App.doMain(App.java:525) > at org.apache.maven.cli.App.main(App.java:1088) > at java.lang.reflect.Method.invoke(Native Method) > at com.werken.forehead.Forehead.run(Forehead.java:543) > at com.werken.forehead.Forehead.main(Forehead.java:573) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
