Bug 498421 - Ant Xdoclet - Fedora 10 RPM provided --> WebDocletTask cannot be found
Summary: Ant Xdoclet - Fedora 10 RPM provided --> WebDocletTask cannot be found
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xdoclet
Version: 10
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Matt Wringe
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-30 12:37 UTC by Frederic Hornain
Modified: 2009-05-04 07:29 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-04 07:29:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.