Re: Reference xdocpath not found

Konstantin Priblouda <[email protected]> Mon, 15 Jun 2009 07:07:49 -0700 (PDT)
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
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 <[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, 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=A0 2 root=A0 wheel=A0 =A0 2048 Jun
> 14 21:44 ./
> drwxr-xr-x=A0 6 root=A0 wheel=A0
> =A0=A0=A0512 Jun 11 19:20 ../
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A046165
> Jun 14 21:44 maven-xdoclet-plugin-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 148932 Jun 14
> 21:44 xdoclet-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A097002
> Jun 14 21:44 xdoclet-apache-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 105781 Jun 14
> 21:44 xdoclet-bea-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A011340
> Jun 14 21:44 xdoclet-borland-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A018846
> Jun 14 21:44 xdoclet-caucho-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 1268 Jun
> 14 21:44 xdoclet-de-locale-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 255185 Jun 14
> 21:44 xdoclet-ejb-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 9994 Jun
> 14 21:44 xdoclet-exolab-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 2517 Jun
> 14 21:44 xdoclet-fr_FR-locale-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A057251
> Jun 14 21:44
> xdoclet-hibernate-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 6705 Jun
> 14 21:44 xdoclet-hp-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A018930
> Jun 14 21:44 xdoclet-ibm-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A017060
> Jun 14 21:44 xdoclet-java-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 118436 Jun 14
> 21:44 xdoclet-jboss-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A028698
> Jun 14 21:44 xdoclet-jdo-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A011781
> Jun 14 21:44 xdoclet-jmx-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A016806
> Jun 14 21:44 xdoclet-jsf-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 5371 Jun
> 14 21:44 xdoclet-libelis-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A015218
> Jun 14 21:44
> xdoclet-macromedia-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A012695
> Jun 14 21:44
> xdoclet-mockobjects-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A015376
> Jun 14 21:44 xdoclet-mvcsoft-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 4399 Jun
> 14 21:44 xdoclet-mx4j-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A022834
> Jun 14 21:44
> xdoclet-objectweb-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 4883 Jun
> 14 21:44 xdoclet-openejb-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A016847
> Jun 14 21:44 xdoclet-oracle-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A013086
> Jun 14 21:44 xdoclet-orion-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 5801 Jun
> 14 21:44 xdoclet-portlet-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 5972 Jun
> 14 21:44 xdoclet-pramati-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A021784
> Jun 14 21:44 xdoclet-pt_BR-locale-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 9272 Jun
> 14 21:44
> xdoclet-solarmetric-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A018821
> Jun 14 21:44 xdoclet-spring-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A032440
> Jun 14 21:44 xdoclet-sun-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 8524 Jun
> 14 21:44 xdoclet-sybase-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 4891 Jun
> 14 21:44 xdoclet-tjdo-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A074736
> Jun 14 21:44 xdoclet-web-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 =A0 9258 Jun
> 14 21:44 xdoclet-webwork-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A020119
> Jun 14 21:44 xdoclet-wsee-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0=A0=A056047
> Jun 14 21:44 xdoclet-xdoclet-module-1.2.3.jar
> -r--r--r--=A0 1 root=A0 wheel=A0 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:1=
6:
> taskdef class xdoclet.modules.web.WebDocletTask cannot be
> found
> =

> Total time: 1 second
> twp1:online-payment #
> =

> When I built struts=A0 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<[email protected]>
> wrote:
> > 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. 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 <[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" <[email protected]>
> >>> 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: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
> >> _______________________________________________
> >> 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
> _______________________________________________
> 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