XD2/MVN2/ webplugin does not include taglibs.jsp from mergedir
"Marco Mistroni" <[email protected]> Sun, 15 Apr 2007 18:57:31 +0100
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <[email protected]> |
hi all, i noticed couple of small problems with webplugin for xd2/mvn2... i am building web.xml by using mergedir.. and i found out that the <mergedir>\taglibs.jsp does not get include din the final web.xml, and servlet mappings file name should be servlet-mapings.xml.. just couple of minor things to report if none else has found them... regards marco On 4/15/07, Marco Mistroni <[email protected]> wrote: > > Hello, > mm if you are referring to maven version, i am on 2.0.4. > if you are referring at xd2 plugin version, i am not specifying it, but > when i am declaring > dependencies i use version 1.0.4-SNAPSHOT..... > > > <plugin> > <groupId>xdoclet</groupId> > <artifactId>maven2-xdoclet2-plugin</artifactId> > <executions> > <execution> > <id>generateSources</id> > <phase>generate-sources</phase> > <goals> > <goal>xdoclet</goal> > </goals> > </execution> > </executions> > <dependencies> > <dependency> > <groupId>xdoclet-plugins</groupId> > <artifactId>xdoclet-plugin-xwork</artifactId> > <version>1.0.4-SNAPSHOT</version> > </dependency> > <dependency> > <groupId>xdoclet-plugins</groupId> > <artifactId>xdoclet-plugin-web</artifactId> > <version>1.0.4-SNAPSHOT</version> > </dependency> > > > regards > marco > > On 4/15/07, Konstantin Priblouda <kpriblouda-/[email protected]> wrote: > > > > 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 > > > xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > > > > 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 > > xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > > https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest > > > > ------------------------------------------------------------------------- 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 xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest