Bug 498421

Summary: Ant Xdoclet - Fedora 10 RPM provided --> WebDocletTask cannot be found
Product: [Fedora] Fedora Reporter: Frederic Hornain <fhornain>
Component: xdocletAssignee: Matt Wringe <mwringe>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: mwringe
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-05-04 07:29:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Frederic Hornain 2009-04-30 12:37:30 UTC
Description of problem:

Hi all,
I'm currently developping a J2EE web application on a JBOSS Server on Linux
Fedora 10.

Since I'm beginning to learn this technology, I'm using a book ("JBOSS at
Work") which provides somes examples and codes to learn. Those examples are
using XDOCLET 1.2.3 and ANT.

You can download the sources here :
http://www.jbossatwork.com/downloads.html

I'm getting into trouble the 1st time XDOCLET is used : in the example
chp03/ 3c

The ant-built is failing and the output error is :
jbossatwork-1.0.2/ch03/03c-webdoclet/webapp/build.xml:111: taskdef class
xdoclet.modules.web.WebDocletTask cannot be found

I haven't modified anything in the source codes of the book that's why I
beleive that something hasn't been properly installed.

Do you know where could this come from ? I've been trying to fix this for a
couple of days.
Thanks for your help. 



Version-Release number of selected component (if applicable):
xdoclet-javadoc-1.2.3-9.4.fc10.i386
ant-1.7.1-7.2.fc10.i386

How reproducible:
Read above

Steps to Reproduce:
Read above
  
Actual results:
Buildfile: build.xml

clean:

compile:
     [echo] ##### Building common #####

clean:
   [delete] Deleting directory /home/jboss/ch03/03c-webdoclet/common/build

compile:
    [mkdir] Created dir: /home/jboss/ch03/03c-webdoclet/common/build
    [mkdir] Created dir: /home/jboss/ch03/03c-webdoclet/common/build/classes
    [javac] Compiling 2 source files to /home/jboss/ch03/03c-webdoclet/common/build/classes
    [javac] Note: /home/jboss/ch03/03c-webdoclet/common/src/com/jbossatwork/dao/CarDAO.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

jar:
    [mkdir] Created dir: /home/jboss/ch03/03c-webdoclet/common/build/distribution
      [jar] Building jar: /home/jboss/ch03/03c-webdoclet/common/build/distribution/common.jar

all:
     [echo] ##### Building webapp #####

clean:

generate-web:

BUILD FAILED
/home/jboss/ch03/03c-webdoclet/build.xml:62: The following error occurred while executing this line:
/home/jboss/ch03/03c-webdoclet/webapp/build.xml:111: taskdef A class needed by class xdoclet.modules.web.WebDocletTask cannot be found: xjavadoc/ant/XJavadocTask

Total time: 1 second


Expected results:
N/A

Additional info:
export XDOCLET_HOME=/usr/share/java/xdoclet/

Comment 1 Frederic Hornain 2009-04-30 12:47:01 UTC
Forgotten detail.

Well I only change the following variable in build.xml :
from 
<property name="xdoclet.lib.dir" value="${env.XDOCLET_HOME}/lib"/>
to
<property name="xdoclet.lib.dir" value="${env.XDOCLET_HOME}"/>

Thanks in advance

Comment 2 Frederic Hornain 2009-05-04 07:29:54 UTC
Hi,

Well, sorry for have disturbed you but that was related to a bug.

I resolved my problem by changing the XDOCLET_HOME environment varaiable from  
XDOCLET_HOME=/usr/share/java/xdoclet
to
XDOCLET_HOME=/usr/share/java/


Sorry again.

BR
Frederic