AFAIR, webdoclet also requires servlet api somewhere on c lasspath... I would enable debugging output from ant, and look for errors in detail
regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Mon, 6/15/09, Sam Wun <swun2...@gmail.com> wrote: > From: Sam Wun <swun2...@gmail.com> > Subject: Re: [Xdoclet-user] Reference xdocpath not found > To: "End-user support for the XDoclet code generator" > <xdoclet-user@lists.sourceforge.net> > Date: Monday, June 15, 2009, 3:47 PM > I also defined a XDOCLET_HOME > enviornment variable and all xdoclet jar > files are in that path: > > twp1:online-payment # echo $XDOCLET_HOME > /usr/local/share/java/classes > twp1:online-payment # ls -l $XDOCLET_HOME/ > total 1642 > drwxr-xr-x 2 root wheel 2048 Jun > 14 21:44 ./ > drwxr-xr-x 6 root wheel > 512 Jun 11 19:20 ../ > -r--r--r-- 1 root wheel 46165 > Jun 14 21:44 maven-xdoclet-plugin-1.2.3.jar > -r--r--r-- 1 root wheel 148932 Jun 14 > 21:44 xdoclet-1.2.3.jar > -r--r--r-- 1 root wheel 97002 > Jun 14 21:44 xdoclet-apache-module-1.2.3.jar > -r--r--r-- 1 root wheel 105781 Jun 14 > 21:44 xdoclet-bea-module-1.2.3.jar > -r--r--r-- 1 root wheel 11340 > Jun 14 21:44 xdoclet-borland-module-1.2.3.jar > -r--r--r-- 1 root wheel 18846 > Jun 14 21:44 xdoclet-caucho-module-1.2.3.jar > -r--r--r-- 1 root wheel 1268 Jun > 14 21:44 xdoclet-de-locale-1.2.3.jar > -r--r--r-- 1 root wheel 255185 Jun 14 > 21:44 xdoclet-ejb-module-1.2.3.jar > -r--r--r-- 1 root wheel 9994 Jun > 14 21:44 xdoclet-exolab-module-1.2.3.jar > -r--r--r-- 1 root wheel 2517 Jun > 14 21:44 xdoclet-fr_FR-locale-1.2.3.jar > -r--r--r-- 1 root wheel 57251 > Jun 14 21:44 > xdoclet-hibernate-module-1.2.3.jar > -r--r--r-- 1 root wheel 6705 Jun > 14 21:44 xdoclet-hp-module-1.2.3.jar > -r--r--r-- 1 root wheel 18930 > Jun 14 21:44 xdoclet-ibm-module-1.2.3.jar > -r--r--r-- 1 root wheel 17060 > Jun 14 21:44 xdoclet-java-module-1.2.3.jar > -r--r--r-- 1 root wheel 118436 Jun 14 > 21:44 xdoclet-jboss-module-1.2.3.jar > -r--r--r-- 1 root wheel 28698 > Jun 14 21:44 xdoclet-jdo-module-1.2.3.jar > -r--r--r-- 1 root wheel 11781 > Jun 14 21:44 xdoclet-jmx-module-1.2.3.jar > -r--r--r-- 1 root wheel 16806 > Jun 14 21:44 xdoclet-jsf-module-1.2.3.jar > -r--r--r-- 1 root wheel 5371 Jun > 14 21:44 xdoclet-libelis-module-1.2.3.jar > -r--r--r-- 1 root wheel 15218 > Jun 14 21:44 > xdoclet-macromedia-module-1.2.3.jar > -r--r--r-- 1 root wheel 12695 > Jun 14 21:44 > xdoclet-mockobjects-module-1.2.3.jar > -r--r--r-- 1 root wheel 15376 > Jun 14 21:44 xdoclet-mvcsoft-module-1.2.3.jar > -r--r--r-- 1 root wheel 4399 Jun > 14 21:44 xdoclet-mx4j-module-1.2.3.jar > -r--r--r-- 1 root wheel 22834 > Jun 14 21:44 > xdoclet-objectweb-module-1.2.3.jar > -r--r--r-- 1 root wheel 4883 Jun > 14 21:44 xdoclet-openejb-module-1.2.3.jar > -r--r--r-- 1 root wheel 16847 > Jun 14 21:44 xdoclet-oracle-module-1.2.3.jar > -r--r--r-- 1 root wheel 13086 > Jun 14 21:44 xdoclet-orion-module-1.2.3.jar > -r--r--r-- 1 root wheel 5801 Jun > 14 21:44 xdoclet-portlet-module-1.2.3.jar > -r--r--r-- 1 root wheel 5972 Jun > 14 21:44 xdoclet-pramati-module-1.2.3.jar > -r--r--r-- 1 root wheel 21784 > Jun 14 21:44 xdoclet-pt_BR-locale-1.2.3.jar > -r--r--r-- 1 root wheel 9272 Jun > 14 21:44 > xdoclet-solarmetric-module-1.2.3.jar > -r--r--r-- 1 root wheel 18821 > Jun 14 21:44 xdoclet-spring-module-1.2.3.jar > -r--r--r-- 1 root wheel 32440 > Jun 14 21:44 xdoclet-sun-module-1.2.3.jar > -r--r--r-- 1 root wheel 8524 Jun > 14 21:44 xdoclet-sybase-module-1.2.3.jar > -r--r--r-- 1 root wheel 4891 Jun > 14 21:44 xdoclet-tjdo-module-1.2.3.jar > -r--r--r-- 1 root wheel 74736 > Jun 14 21:44 xdoclet-web-module-1.2.3.jar > -r--r--r-- 1 root wheel 9258 Jun > 14 21:44 xdoclet-webwork-module-1.2.3.jar > -r--r--r-- 1 root wheel 20119 > Jun 14 21:44 xdoclet-wsee-module-1.2.3.jar > -r--r--r-- 1 root wheel 56047 > Jun 14 21:44 xdoclet-xdoclet-module-1.2.3.jar > -r--r--r-- 1 root wheel 231133 Jun 14 > 21:44 xjavadoc-1.1.jar > > however ant still failed: > twp1:online-payment # ant > Buildfile: build.xml > > compile: > > BUILD FAILED > /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:16: > taskdef class xdoclet.modules.web.WebDocletTask cannot be > found > > Total time: 1 second > twp1:online-payment # > > When I built struts project in this path: > /usr/liferay/liferay-portal-5.2.2/dev/portlets/my-project/ > I didn't have a CLASSPATH. It is defined by the local > build.xml and > its ../build-common-portlet.xml file. > Perhaps, I need to look into the > ../build-common-portlet.xml file as well. > > Thanks > > > On Mon, Jun 15, 2009 at 10:33 PM, Sam Wun<swun2...@gmail.com> > wrote: > > Hi, > > > > > > On Mon, Jun 15, 2009 at 8:27 PM, Justin > > Case<send_lotsa_spam_h...@yahoo.com> > wrote: > >> > >> Hi Sam, > >> > >> No, it's not the same error. Please compare the > two messages - the first complained about a classpathref not > found, now about a class not found. Your XDoclet jars (or at > least the web ones) are seemingly not in that classpath > defined in build.xml, so they cannot be found. How about > placing them in that lib dir I see in the classpath? > >> > > It seems there are confused "classpath" defined in the > build.xml files. > > app.server.classes.portal.dir or plugin-lib.classpath, > or something else? > > I didn't define an java CLASSPATH environment variable > in the system. > > Please further show me which variable I should look > into? Any example? > > > > Thanks > > > >> I must repeat my suggestion, read please what a > classpath is and what Ant generally does. If you already > know that my apologies but it wasn't that obvious... > >> > >> Best regards, > >> M > >> > >> --- On Mon, 6/15/09, Sam Wun <swun2...@gmail.com> > wrote: > >> > >>> From: Sam Wun <swun2...@gmail.com> > >>> Subject: Re: [Xdoclet-user] Reference xdocpath > not found > >>> To: "End-user support for the XDoclet code > generator" <xdoclet-user@lists.sourceforge.net> > >>> Date: Monday, June 15, 2009, 2:53 AM > >>> Not good. > >>> It still failed with the same error. > >>> Here is the modified build.xml file: > >>> > >>> <project name="portlet" basedir="." > >>> default="deploy"> > >>> <import > >>> file="../build-common-portlet.xml" /> > >>> > >>> <target name="compile"> > >>> > >>> <mkdir dir="docroot/WEB-INF/classes" /> > >>> > >>> > >>> <path id="plugin-lib.classpath"> > >>> > >>> <pathelement > >>> location="${app.server.classes.portal.dir}" > /> > >>> > >>> <fileset > >>> dir="${app.server.lib.portal.dir}" > >>> includes="*.jar" /> > >>> > >>> <pathelement > >>> location="docroot/WEB-INF/classes" /> > >>> > >>> </path> > >>> <taskdef name="webdoclet" > >>> > >>> classname="Xdoclet.modules.web.WebDocletTask" > >>> > >>> classpathref="plugin-lib.classpath"> > >>> </taskdef> > >>> <webdoclet destdir="WEB-INF" > >>> mergedir="metadata/web" > >>> excludedtags="@version,@author" > verbose="true"> > >>> <fileset > >>> dir="WEB-INF/src"> > >>> <include > >>> name="**/*Form.java" /> > >>> <include > >>> name="**/*Action.java" /> > >>> <include > >>> name="**/*Servlet.java" /> > >>> </fileset> > >>> <deploymentdescriptor > >>> validatexml="true" > >>> servletspec="2.3" > >>> sessiontimeout="60" > >>> destdir="WEB-INF" > >>> distributable="false"> > >>> </deploymentdescriptor> > >>> <strutsconfigxml > >>> validatexml="true" version="1.1"/> > >>> <strutsvalidationxml/> > >>> </webdoclet> > >>> > >>> > >>> > >>> <javac > >>> > >>> classpathref="plugin.classpath" > >>> > >>> compiler="${javac.compiler}" > >>> > >>> debug="${javac.debug}" > >>> > >>> > >>> deprecation="${javac.deprecation}" > >>> > >>> > >>> destdir="docroot/WEB-INF/classes" > >>> > >>> nowarn="${javac.nowarn}" > >>> > >>> srcdir="docroot/WEB-INF/src3" > >>> > >>> /> > >>> > >>> > >>> <antcall > target="build-common-plugin.compile" /> > >>> </target> > >>> > >>> <target > >>> name="build-lang"> > >>> > >>> <antcall target="build-lang-cmd"> > >>> > >>> <param name="lang.dir" > >>> value="docroot/WEB-INF/src/content/test" > /> > >>> > >>> <param name="lang.file" > >>> value="Language" /> > >>> > >>> </antcall> > >>> </target> > >>> </project> > >>> > >>> # ant compile > >>> Buildfile: build.xml > >>> > >>> compile: > >>> > >>> BUILD FAILED > >>> > /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:16: > >>> taskdef class > Xdoclet.modules.web.WebDocletTask cannot be > >>> found > >>> > >>> Total time: 1 second > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Crystal Reports - New Free Runtime and 30 Day > Trial > >> Check out the new simplified licensing option that > enables unlimited > >> royalty-free distribution of the report engine for > externally facing > >> server and web deployment. > >> http://p.sf.net/sfu/businessobjects > >> _______________________________________________ > >> xdoclet-user mailing list > >> xdoclet-user@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/xdoclet-user > >> > > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited > royalty-free distribution of the report engine for > externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > xdoclet-user mailing list > xdoclet-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user