Re: Reference xdocpath not found

Sam Wun <[email protected]> Mon, 15 Jun 2009 22:33:41 +1000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Hi,


On Mon, Jun 15, 2009 at 8:27 PM, Justin
Case<[email protected]> 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. You=
r XDoclet jars (or at least the web ones) are seemingly not in that classpa=
th 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 o=
bvious...
>
> 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@list=
s.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">
>>
>> <mkdir dir=3D"docroot/WEB-INF/classes" />
>>
>>
>> <path id=3D"plugin-lib.classpath">
>>
>> =A0 =A0 =A0 =A0 <pathelement
>> location=3D"${app.server.classes.portal.dir}" />
>>
>> =A0 =A0 =A0 =A0 <fileset
>> dir=3D"${app.server.lib.portal.dir}"
>> includes=3D"*.jar" />
>>
>> =A0 =A0 =A0 =A0 <pathelement
>> location=3D"docroot/WEB-INF/classes" />
>>
>> </path>
>> =A0 =A0 <taskdef name=3D"webdoclet"
>>
>> classname=3D"Xdoclet.modules.web.WebDocletTask"
>>
>> 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>
>>
>>
>>
>> <javac
>>
>> =A0 =A0 =A0 =A0 classpathref=3D"plugin.classpath"
>>
>> =A0 =A0 =A0 =A0 compiler=3D"${javac.compiler}"
>>
>> =A0 =A0 =A0 =A0 debug=3D"${javac.debug}"
>>
>>
>> deprecation=3D"${javac.deprecation}"
>>
>>
>> destdir=3D"docroot/WEB-INF/classes"
>>
>> =A0 =A0 =A0 =A0 nowarn=3D"${javac.nowarn}"
>>
>> =A0 =A0 =A0 =A0 srcdir=3D"docroot/WEB-INF/src3"
>>
>> />
>>
>>
>> <antcall target=3D"build-common-plugin.compile" />
>> =A0 =A0 =A0 =A0 </target>
>>
>> =A0 =A0 =A0 =A0 <target
>> name=3D"build-lang">
>>
>> <antcall target=3D"build-lang-cmd">
>>
>> =A0 =A0 =A0 =A0 <param name=3D"lang.dir"
>> value=3D"docroot/WEB-INF/src/content/test" />
>>
>> =A0 =A0 =A0 =A0 <param name=3D"lang.file"
>> value=3D"Language" />
>>
>> </antcall>
>> =A0 =A0 =A0 =A0 </target>
>> </project>
>>
>> =A0# 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
> [email protected]
> 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