Re: Reference xdocpath not found

Sam Wun <[email protected]> Tue, 16 Jun 2009 01:51:28 +1000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
OK, the line 16 "plugin-lib.classpath" is wrong,
Now I fixed the classpathref , but it still complain WebXdoclet not found:
....
...
compile:^M
Adding reference: plugin-lib.classpath^M
fileset: Setup scanner in dir
/usr/liferay/liferay-portal-5.2.2/bundles/tomcat-6.0.18/lib/ext with
patternSet{ includes: [*.jar] excludes: [] }^M
fileset: Setup scanner in dir
/usr/liferay/liferay-portal-5.2.2/bundles/tomcat-6.0.18/webapps/ROOT/WEB-IN=
F/lib
with patternSet{ includes: [annotations.jar, comm
ons-logging.jar, log4j.jar, util-bridges.jar, util-java.jar,
util-taglib.jar] excludes: [] }^M
fileset: Setup scanner in dir
/usr/liferay/liferay-portal-5.2.2/dev/lib with patternSet{ includes:
[activation.jar, jsp-api.jar, mail.jar, servlet-api.jar] excl
udes: [] }^M
fileset: Setup scanner in dir
/usr/liferay/liferay-portal-5.2.2/bundles/tomcat-6.0.18/webapps/ROOT/WEB-IN=
F/lib
with patternSet{ includes: [*.jar] excludes: [] }
^M
Finding class xdoclet.modules.web.WebDocletTask^M
^M
BUILD FAILED^M
/usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:16:
taskdef class xdoclet.modules.web.WebDocletTask cannot be found^M
        at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java=
:609)^M
        at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:228)^M
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:=
288)^M
        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)^M
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod=
AccessorImpl.java:25)^M
        at java.lang.reflect.Method.invoke(Method.java:597)^M
...


On Tue, Jun 16, 2009 at 1:45 AM, Sam Wun<[email protected]> wrote:
> the line 16 where the cause of the error is here in the build.xml file:
>
> classpathref=3D"plugin-lib.classpath">
>
> Here is again my build.xml file:
> <?xml version=3D"1.0"?>
>
> <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<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.serv=
er.lib.portal.dir}"
> includes=3D"*.jar" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<pathelement location=3D"d=
ocroot/WEB-INF/classes" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</path>
>
> =A0 <taskdef name=3D"webdoclet"
> classname=3D"xdoclet.modules.web.WebDocletTask"
> =3D=3D=3D>>>>> =A0classpathref=3D"plugin-lib.classpath"> =A0<<<<<=3D=3D=
=3D=3D=3D
> =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 =A0servletspec=3D"2.3" sessiontimeout=3D"60"
> =A0 =A0 =A0 =A0 =A0destdir=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<mkdir dir=3D"docroot/WEB-INF/classes" />
>
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<javac
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0classpathref=3D"plugin.cla=
sspath"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0compiler=3D"${javac.compil=
er}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0debug=3D"${javac.debug}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0deprecation=3D"${javac.dep=
recation}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0destdir=3D"docroot/WEB-INF=
/classes"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0nowarn=3D"${javac.nowarn}"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0srcdir=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.com=
pile" />
> =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>
>
>
> On Tue, Jun 16, 2009 at 1:44 AM, Sam Wun<[email protected]> wrote:
>> I have a feeling it just can't find the home path of Xdoclet. But =A0not
>> sure how to define the HOME path of Xdoclet for ant.
>> This is what I got when running ant -v -d:
>>
>> ...
>> ...
>>
>> Loaded from /usr/liferay/liferay-portal-5.2.2/dev/lib/antelope.jar
>> ise/antelope/tasks/util/math/Math$Candidate.class^M
>> Class ise.antelope.tasks.util.math.Math$Candidate loaded from ant
>> loader (parentFirst)^M
>> Class java.lang.reflect.Array loaded from parent loader (parentFirst)^M
>> Setting ro project property: plugin.name.beginindex -> 47^M
>> Setting project property: plugin.name -> online-payment^M
>> Property "plugin.version" has not been set^M
>> Setting project property: plugin.file ->
>> ../../dist/online-payment-5.2.3.${plugin.version}.war^M
>> Attempting to create object of type
>> org.apache.tools.ant.helper.DefaultExecutor^M
>> Adding reference: ant.executor^M
>> Build sequence for target(s) `deploy' is [compile, war, deploy]^M
>> Complete build sequence is [compile, war, deploy, setup-eclipse, all,
>> setup-svn-ignores, build-common-plugin.build-javascript-cmd,
>> build-common-plugin.build-ser
>> vice, clean-portal-dependencies, build-common-plugin.clean,
>> build-common-plugin.build-lang-native2ascii, merge,
>> build-common.format-source, build-common.setup-s
>> vn-ignores, print-current-time, build-service,
>> build-common-plugin.build-lang-cmd, build-common.setup-eclipse,
>> format-source, build-lang-native2ascii-all, build
>> -lang-native2ascii, build-lang-cmd,
>> build-common-plugin.clean-portal-dependencies,
>> build-common-plugin.all,
>> build-common-plugin.build-lang-native2ascii-all, bui
>> ld-common-plugin.compile, clean, build-javascript-cmd,
>> build-common-plugin.merge, build-common.print-current-time,
>> build-lang, build-common-plugin.war, build-co
>> mmon-plugin.deploy, ]^M
>> ^M
>> compile:^M
>> Adding reference: plugin-lib.classpath^M
>> fileset: Setup scanner in dir
>> /usr/liferay/liferay-portal-5.2.2/bundles/tomcat-6.0.18/webapps/ROOT/WEB=
-INF/lib
>> with patternSet{ includes: [*.jar] excludes: [] }
>> ^M
>> Finding class xdoclet.modules.web.WebDocletTask^M
>> ^M
>> BUILD FAILED^M
>> /usr/liferay/liferay-portal-5.2.2/dev/portlets/online-payment/build.xml:=
16:
>> taskdef class xdoclet.modules.web.WebDocletTask cannot be found^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.taskdefs.Definer.addDefinition(De=
finer.java:609)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.taskdefs.Definer.execute(Definer.=
java:228)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.UnknownElement.execute(UnknownEle=
ment.java:288)^M
>> =A0 =A0 =A0 =A0at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown So=
urce)^M
>> =A0 =A0 =A0 =A0at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delega=
tingMethodAccessorImpl.java:25)^M
>> =A0 =A0 =A0 =A0at java.lang.reflect.Method.invoke(Method.java:597)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.dispatch.DispatchUtils.execute(Di=
spatchUtils.java:106)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.Task.perform(Task.java:348)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.Target.execute(Target.java:357)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.Target.performTasks(Target.java:3=
85)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.Project.executeSortedTargets(Proj=
ect.java:1337)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.Project.executeTarget(Project.jav=
a:1306)^M
>> =A0 =A0 =A0 =A0at org.apache.tools.ant.helper.DefaultExecutor.executeTar=
gets(DefaultExecutor.java:41)^M
>> ...
>>
>>
>> On Mon, Jun 15, 2009 at 7:31 PM, Justin
>> Case<[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> May I suggest you some bit of Ant reading? It will always help.
>>>
>>> In the meantime take:
>>>
>>> =A0 =A0<taskdef name=3D"webdoclet"
>>> classname=3D"Xdoclet.modules.web.WebDocletTask"
>>> classpathref=3D"xdocpath">
>>> =A0 =A0</taskdef>
>>>
>>> and replace it with
>>>
>>> =A0 =A0<taskdef name=3D"webdoclet"
>>> classname=3D"Xdoclet.modules.web.WebDocletTask"
>>> classpathref=3D"plugin-lib.classpath">
>>> =A0 =A0</taskdef>
>>>
>>> Notice the different classpath reference? I hope you know what a classp=
ath is, if not you should read about that as well - it will save you lots o=
f headaches.
>>>
>>> HTH,
>>> M
>>>
>>>
>>>
>>>
>>>
>>> -----------------------------------------------------------------------=
-------
>>> 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