Just to be sure. Which version of m2 plugin yre your using? Stacktrace line numbers do not correspond with mine...
( I would highly recomment 2.0.5 available from legacy codehaus repo ) regareds, --- Marco Mistroni <[EMAIL PROTECTED]> wrote: > hi all, > i am experiencing lot of problems in my mvn2 > project that uses XD2 Plugin > background is that i am using following xd2 plugins > - Spring plugin > - XWork plugin > - Web plugin > > now, i found out that the following configuration > works (I use just 2 of > them) > > <configs> > <config> > <components> > <component> > <classname> > org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname> > <params> > > <filename>webapp-xwork.xml</filename> > > <package>com.mm.webwork</package> > > <extends>webwork-default</extends> > > <destdir>${project.build.directory > }/generated-resources/xdoclet</destdir> > </params> > </component> > > <component> > > <classname>org.xdoclet.plugin.web.WebPlugin > </classname> > <params> > > <mergedir>file:${basedir}/src/merge/</mergedir> > > <destdir>${basedir}/src/main/webapp/WEB-INF</destdir> > </params> > </component> > > </components> > </config> > </configs> > > while the following results in a disaster error > <configs> > <config> > <components> > <component> > <classname> > org.xdoclet.plugin.xwork.XWorkXMLPlugin</classname> > <params> > > <filename>webapp-xwork.xml</filename> > > <package>com.mm.webwork</package> > > <extends>webwork-default</extends> > > <destdir>${project.build.directory > }/generated-resources/xdoclet</destdir> > </params> > </component> > > <component> > > <classname>org.xdoclet.plugin.web.WebPlugin > </classname> > <params> > > <mergedir>file:${basedir}/src/merge/</mergedir> > > <destdir>${basedir}/src/main/webapp/WEB-INF</destdir> > </params> > </component> > > </components> > </config> > <config> > <components> > <component> > <classname> > org.xdoclet.plugin.spring.SpringConfigXMLPlugin</classname> > <params> > > <destdir>${project.build.directory > }/generated-resources/xdoclet</destdir> > </params> > </component> > </components> > </config> > </configs> > > resulting in the following exception by XD2 > > Running > org.xdoclet.plugin.spring.SpringConfigXMLPlugin > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD ERROR > [INFO] > ------------------------------------------------------------------------ > [INFO] XDoclet plugin failed: Couldn't generate > content > > /home/marco/WebWorkWebApp/target/generated-resources/xdoclet > (Is a > directory) > [INFO] > ------------------------------------------------------------------------ > [DEBUG] Trace > org.apache.maven.lifecycle.LifecycleExecutionException: > XDoclet plugin > failed: Couldn't generate content > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:559) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:475) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:454) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java:306) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:273) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:140) > at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) > at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) > at > org.apache.maven.cli.MavenCli.main(MavenCli.java:256) > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:585) > at > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java > :315) > at > org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > at > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > at > org.codehaus.classworlds.Launcher.main(Launcher.java:375) > Caused by: > org.apache.maven.plugin.MojoExecutionException: > XDoclet plugin > failed: Couldn't generate content > at > org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:158) > at > org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:412) > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:534) > ... 16 more > Caused by: java.lang.RuntimeException: Couldn't > generate content > at > org.generama.Plugin.start(Plugin.java:287) > at > org.picocontainer.defaults.DefaultPicoContainer.start( > DefaultPicoContainer.java:349) > at > org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart( > LifecycleContainerBuilder.java:52) > at > org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer( > LifecycleContainerBuilder.java:45) > at > org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:149) > ... 18 more > Caused by: java.io.FileNotFoundException: > /home/marco/WebWorkWebApp/target/generated-resources/xdoclet > (Is a > directory) > at java.io.FileOutputStream.open(Native > Method) > at > java.io.FileOutputStream.<init>(FileOutputStream.java:179) > at > java.io.FileOutputStream.<init>(FileOutputStream.java:131) > at > org.generama.defaults.FileWriterMapper.getOutcome( > FileWriterMapper.java:25) > at > org.generama.Plugin.start(Plugin.java:267) > ... 22 more > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 9 seconds > > Now, i am confused as the > target/generated-resources/xdoclet directory has > been generated successfully and i have there the > webapp-xwork.xml file generated by the previous run > of XWOrk plugin > > can anyone help me out? it looks to me like there > are some problems when > using those plugins together.......... > > thanx in advance and regards > marco > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/> _______________________________________________ > xdoclet-plugins-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest > ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ xdoclet-plugins-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest