|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
EJBDoclet running from Ant dependencies problemHi,
I'm really stucked in problem with running EJBDoclet task from Ant. I'm running version xdoclet-plugins-dist-1.0.4 and I get this error: org.picocontainer.defaults.UnsatisfiableDependenciesException: org.xdoclet.plugi n.ejb.interfaces.RemoteInterfacePlugin doesn't have any satisfiable constructors . Unsatisfiable dependencies: [[class org.generama.MergeableVelocityTemplateEngi ne, interface org.generama.WriterMapper, class org.xdoclet.plugin.ejb.EjbConfig] ] Can anyone help me please. Tomas Studva My build-file is: <?xml version="1.0" encoding="UTF-8"?> <project name="xdoclet" default="ejbDoclet"> <!--<property file="xdoclet-build.properties" />--> <property name="xdoclet.plugin.lib.dir" value="G:/Wisam/xdoclet-plugins-dist-1.0.4/lib" /> <property name="jboss.basedir" value="G:/Wisam/jboss-4.2.3.GA" /> <property name="generate-dir" value="${basedir}/gen" /> <!-- <property name="ejb.version" value="2.0" /> --> <!-- xdoclet2 classpath--> <path id="xdoclet.task.classpath"> <fileset dir="${xdoclet.plugin.lib.dir}"> <include name="*.jar" /> </fileset> <!-- J2EE Jars <fileset dir="${jboss.basedir}/client"> <include name="*.jar" /> </fileset>--> </path> <!-- Define xdoclet task --> <taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask" classpathref="xdoclet.task.classpath" /> <target name="ejbDoclet"> <xdoclet> <fileset dir="${basedir}/src"> <include name="**/*.java" /> </fileset> <component classname="org.xdoclet.plugin.ejb.EjbConfig" destdir="${generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.RemoteInterfacePlugin" destdir="${generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.RemoteHomeInterfacePlugin" destdir="${generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin" destdir="${generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.interfaces.LocalHomeInterfacePlugin" destdir="${generate-dir}" /> <component classname="org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin" destdir="${generate-dir}/META-INF" /> </xdoclet> </target> </project> |
|
|
Re: EJBDoclet running from Ant dependencies problem----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Sun, 11/9/08, Tomas Studva <tstudva@...> wrote: > From: Tomas Studva <tstudva@...> > Subject: [xdoclet-user] EJBDoclet running from Ant dependencies problem > To: user@... > Date: Sunday, November 9, 2008, 3:02 PM > Hi, > I'm really stucked in problem with running EJBDoclet > task from Ant. I'm > running version xdoclet-plugins-dist-1.0.4 and I get this > error: > > org.picocontainer.defaults.UnsatisfiableDependenciesException: > org.xdoclet.plugi > n.ejb.interfaces.RemoteInterfacePlugin doesn't have any > satisfiable > constructors > . Unsatisfiable dependencies: [[class > org.generama.MergeableVelocityTemplateEngi > ne, interface org.generama.WriterMapper, class > org.xdoclet.plugin.ejb.EjbConfig] > ] > > Can anyone help me please. > your config looks good - did you tried to grab latest versions of xdoclet and generama? regards, --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: EJBDoclet running from Ant dependencies problemOK, this could be bug in 1.0.4 ( ant build is not really popular anymore,
almost everybody uses XD2 with maven ) Coud you try to add another component to xdoclet tag: <component classname="org.generama.MergeableVelocityTemplateEngine" /> and see what happens? sorry for the delay... ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Sun, 11/9/08, Tomas Studva <tstudva@...> wrote: > From: Tomas Studva <tstudva@...> > Subject: [xdoclet-user] EJBDoclet running from Ant dependencies problem > To: user@... > Date: Sunday, November 9, 2008, 3:02 PM > Hi, > I'm really stucked in problem with running EJBDoclet > task from Ant. I'm > running version xdoclet-plugins-dist-1.0.4 and I get this > error: > > org.picocontainer.defaults.UnsatisfiableDependenciesException: > org.xdoclet.plugi > n.ejb.interfaces.RemoteInterfacePlugin doesn't have any > satisfiable > constructors > . Unsatisfiable dependencies: [[class > org.generama.MergeableVelocityTemplateEngi > ne, interface org.generama.WriterMapper, class > org.xdoclet.plugin.ejb.EjbConfig] > ] > > Can anyone help me please. > > Tomas Studva > > My build-file is: > > <?xml version="1.0" > encoding="UTF-8"?> > <project name="xdoclet" > default="ejbDoclet"> > <!--<property > file="xdoclet-build.properties" />--> > <property name="xdoclet.plugin.lib.dir" > value="G:/Wisam/xdoclet-plugins-dist-1.0.4/lib" > /> > <property name="jboss.basedir" > value="G:/Wisam/jboss-4.2.3.GA" /> > <property name="generate-dir" > value="${basedir}/gen" /> > <!-- <property name="ejb.version" > value="2.0" /> --> > > <!-- xdoclet2 classpath--> > <path id="xdoclet.task.classpath"> > <fileset dir="${xdoclet.plugin.lib.dir}"> > <include name="*.jar" /> > </fileset> > > <!-- J2EE Jars > <fileset dir="${jboss.basedir}/client"> > <include name="*.jar" /> > </fileset>--> > </path> > > <!-- Define xdoclet task --> > <taskdef name="xdoclet" > classname="org.xdoclet.ant.XDocletTask" > classpathref="xdoclet.task.classpath" /> > > <target name="ejbDoclet"> > <xdoclet> > <fileset dir="${basedir}/src"> > <include name="**/*.java" /> > </fileset> > > <component > classname="org.xdoclet.plugin.ejb.EjbConfig" > destdir="${generate-dir}" /> > <component > classname="org.xdoclet.plugin.ejb.interfaces.RemoteInterfacePlugin" > destdir="${generate-dir}" /> > <component > classname="org.xdoclet.plugin.ejb.interfaces.RemoteHomeInterfacePlugin" > destdir="${generate-dir}" /> > <component > classname="org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin" > destdir="${generate-dir}" /> > <component > classname="org.xdoclet.plugin.ejb.interfaces.LocalHomeInterfacePlugin" > destdir="${generate-dir}" /> > <component > classname="org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin" > destdir="${generate-dir}/META-INF" /> > </xdoclet> > </target> > </project> > > > > > -- > View this message in context: > http://www.nabble.com/EJBDoclet-running-from-Ant-dependencies-problem-tp20406132p20406132.html > Sent from the xdoclet - user mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: EJBDoclet running from Ant dependencies problemejbDoclet: [xdoclet] log4j:WARN No appenders could be found for logger (org.xdoclet.plugi n.ejb.interfaces.RemoteInterfacePlugin). [xdoclet] log4j:WARN Please initialize the log4j system properly. [xdoclet] Running org.xdoclet.plugin.ejb.EjbConfig [xdoclet] Running org.xdoclet.plugin.ejb.interfaces.RemoteInterfacePlugin [xdoclet] Running org.xdoclet.plugin.ejb.interfaces.RemoteHomeInterfacePlugin [xdoclet] Running org.xdoclet.plugin.ejb.interfaces.LocalInterfacePlugin [xdoclet] Running org.xdoclet.plugin.ejb.interfaces.LocalHomeInterfacePlugin [xdoclet] Running org.xdoclet.plugin.ejb.descriptor.EjbJarXmlPlugin Super, looks good, you've solved my problem, thanks. Hmm yes, I was also considering to migrate to maven, but it is a bit of work and at this point, it would bring us no improvement (we don't have much dependecies). At first look at maven repos, there are a bit different jar-files for the same XDoclet 1.0.4 version (I was just trying to force maven to download it and then use it by ant - now don't need). I have one more question. Is there any ejb Jboss-specific plugin? Am I totaly wrong trying to use xdoclet 2 with Jboss, probably everyone uses Hibernate or JBoss Tools has some other Ejb support? Tomas
|
|
|
Re: EJBDoclet running from Ant dependencies problem----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Tue, 11/11/08, Tomas Studva <tstudva@...> wrote: > Super, looks good, you've solved my problem, thanks. FIne, Imust admit that and isnot that popular - so it was overseen. Actually when we introduced merge feature, we created another one velocity engine, and old one is still used in default setup. I think non mergea bleshallbe deprecated and removed from default setup. > Hmm yes, I was also considering to migrate to maven, but it > is a bit of work > and at this point, it would bring us no improvement (we > don't have much > dependecies). At first look at maven repos, there are a bit > different > jar-files for the same XDoclet 1.0.4 version (I was just > trying to force > maven to download it and then use it by ant - now don't > need). That is possible... I would consider official codehaus repos as primarysource of xdoclet artifacts,but I can not urle out that ibiblio synched some bullshit... > I have one more question. Is there any ejb Jboss-specific > plugin? Am I > totaly wrong trying to use xdoclet 2 with Jboss, probably > everyone uses > Hibernate or JBoss Tools has some other Ejb support? At the moment there is none. But contribuion would be welcome. (it's not that dificult to create new plugin ) If you can use annotations, then you do not need xdoclet. But if you are stuck with EJB2 or xml hibernate mappings - it is a good option. regards, --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: EJBDoclet running from Ant dependencies problemYes in EJB 3.x there are annotations directly supported by J2EE server, but I'm on version 2.x. I don't have much spare time, I cannot develop whole plugin myself. And at first it is a question to community if it is worthy enough. I will explore this area.
Wish you best business, Tomas Studva
|
|
|
Re: EJBDoclet running from Ant dependencies problemYou do not have to develop whole plugin yourself . Just
some artifacts you need will do for starters. If there is a real demand, contributors will follow. regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Thu, 11/13/08, Tomas Studva <tstudva@...> wrote: > From: Tomas Studva <tstudva@...> > Subject: Re: [xdoclet-user] EJBDoclet running from Ant dependencies problem > To: user@... > Date: Thursday, November 13, 2008, 1:18 PM > Yes in EJB 3.x there are annotations directly supported by > J2EE server, but > I'm on version 2.x. I don't have much spare time, I > cannot develop whole > plugin myself. And at first it is a question to community > if it is worthy > enough. I will explore this area. > > Wish you best business, Tomas Studva > > > Konstantin Priblouda wrote: > > > > ----[ Konstantin Pribluda http://www.pribluda.de > ]---------------- > > JTec quality components: > http://www.pribluda.de/projects/ > > > >> I have one more question. Is there any ejb > Jboss-specific > >> plugin? Am I > >> totaly wrong trying to use xdoclet 2 with Jboss, > probably > >> everyone uses > >> Hibernate or JBoss Tools has some other Ejb > support? > > > > At the moment there is none. But contribuion would be > welcome. > > (it's not that dificult to create new plugin ) > > > > If you can use annotations, then you do not need > xdoclet. But if you > > are stuck > > with EJB2 or xml hibernate mappings - it is a good > option. > > > > regards, > > > > -- > View this message in context: > http://www.nabble.com/EJBDoclet-running-from-Ant-dependencies-problem-tp20406132p20478871.html > Sent from the xdoclet - user mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |