Re: Reference xdocpath not found

Justin Case <[email protected]> Mon, 15 Jun 2009 03:27:25 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi Sam,

No, it's not the same error. Please compare the two messages - the first co=
mplained 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 t=
hat lib dir I see in the classpath?

I must repeat my suggestion, read please what a classpath is and what Ant g=
enerally does. If you already know that my apologies but it wasn't that obv=
ious...

Best regards,
M

--- On Mon, 6/15/09, Sam Wun <[email protected]> wrote:

> From: Sam Wun <[email protected]>
> 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=3D"portlet" basedir=3D"."
> default=3D"deploy">
> =A0 =A0 =A0 =A0 <import
> file=3D"../build-common-portlet.xml" />
> =

> =A0 =A0 =A0 =A0 <target name=3D"compile">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <mkdir dir=3D"docroot/WEB-INF/classes" />
> =

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <path id=3D"plugin-lib.classpath">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <pathelement
> location=3D"${app.server.classes.portal.dir}" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <fileset
> dir=3D"${app.server.lib.portal.dir}"
> includes=3D"*.jar" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <pathelement
> location=3D"docroot/WEB-INF/classes" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> </path>
> =A0 =A0 <taskdef name=3D"webdoclet"
> =A0 =A0 =A0 =A0
> classname=3D"Xdoclet.modules.web.WebDocletTask"
> =A0 =A0 =A0 =A0
> classpathref=3D"plugin-lib.classpath">
> =A0=A0=A0</taskdef>
> =A0 =A0 <webdoclet destdir=3D"WEB-INF"
> mergedir=3D"metadata/web"
> excludedtags=3D"@version,@author" verbose=3D"true">
> =A0 =A0 =A0 =A0 <fileset
> dir=3D"WEB-INF/src">
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Form.java" />
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Action.java" />
> =A0 =A0 =A0 =A0 =A0 =A0 <include
> name=3D"**/*Servlet.java" />
> =A0 =A0 =A0 =A0 </fileset>
> =A0 =A0 =A0 =A0 <deploymentdescriptor
> validatexml=3D"true"
> =A0 =A0 =A0 =A0 =A0 servletspec=3D"2.3"
> sessiontimeout=3D"60"
> =A0 =A0 =A0 =A0 =A0 destdir=3D"WEB-INF"
> distributable=3D"false">
> =A0 =A0 =A0 =A0 </deploymentdescriptor>
> =A0 =A0 =A0 =A0 <strutsconfigxml
> validatexml=3D"true" version=3D"1.1"/>
> =A0 =A0 =A0 =A0 <strutsvalidationxml/>
> =A0 =A0 </webdoclet>
> =

> =

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <javac
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 classpathref=3D"plugin.classpath"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 compiler=3D"${javac.compiler}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 debug=3D"${javac.debug}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0
> deprecation=3D"${javac.deprecation}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0
> destdir=3D"docroot/WEB-INF/classes"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 nowarn=3D"${javac.nowarn}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 srcdir=3D"docroot/WEB-INF/src3"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> />
> =

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <antcall target=3D"build-common-plugin.compile" />
> =A0 =A0 =A0 =A0 </target>
> =

> =A0 =A0 =A0 =A0 <target
> name=3D"build-lang">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> <antcall target=3D"build-lang-cmd">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <param name=3D"lang.dir"
> value=3D"docroot/WEB-INF/src/content/test" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> =A0 =A0 =A0 =A0 <param name=3D"lang.file"
> value=3D"Language" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> </antcall>
> =A0 =A0 =A0 =A0 </target>
> </project>
> =

>  # ant compile
> Buildfile: build.xml
> =

> compile:
> =

> BUILD FAILED
> /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:1=
6:
> 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