Ho yes, excusue me for this miss
I just replace the xdoclet.jar 1.1 version by the xdoclet.jar 1.1.1 version
and xdoclet don't find log4j. Then I don't think that is the classpath.
This is the outpout from netbeans 3.3 (verbose level for ant)
parsing buildfile H:\DEV\ing\build.xml with URI = file:H:/DEV/ing/build.xml
Project base dir set to: H:\DEV\ing Build sequence for target `ejbdoclet' is
[init, prepare, ejbdoclet] Complete build sequence is [init, prepare,
ejbdoclet, clean, compile-ejbs, webdoclet, compile, web-war, ejb-jar,
appxml, j2ee-ear, deploy, main, clean-build, todo, verify]
init:
prepare:
ejbdoclet:
java.lang.NoClassDefFoundError: org/apache/log4j/Category
at xdoclet.util.Log.getCategory(Log.java:22)
at xdoclet.DocletTask.execute(DocletTask.java:225)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:184)
at org.apache.tools.ant.Target.performTasks(Target.java:202)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at
org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:277)
at
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
BUILD FAILED
Total time: 0 seconds
And this is part of the used build file.
<project basedir="." default="main" name="jescom">
<!-- Don't worry if you don't know the Ant syntax completely or need
help on some tasks! -->
<!-- The standard Ant documentation is bundled. See Help | Help Sets |
Ant 1.4.1 Manual. -->
<!-- set up java.class.path -->
<path id="project.class.path">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<!-- append the external classpath lastly -->
<pathelement path="${java.class.path}"/>
</path>
<target name="init">
<!-- You can set up any variables you want used throughout the
script here. -->
<!-- property name="hello" value="world" -->
<!-- To use e.g. Jikes, uncomment this line. -->
<!-- (Or make the same change in Tools | Options | Ant Settings |
Properties.) -->
<!-- <property name="build.compiler" value="jikes"/> -->
<!-- You might like to set up some overridable paths, etc.: -->
<!-- <property name="mylib" value="../lib/mylib.jar"/> -->
<property name="lib.dir" value="lib"/>
<property name="xdoclet.class.path" value="lib/xdoclet.jar"/>
<property name="log4j.jar.path" value="lib/log4j.jar"/>
<property name="ant.jar.path" value="lib/ant.jar"/>
<property name="Name" value="Jescom" />
<property name="name" value="Jescom" />
<property name="src.dir" value="src"/>
<property name="generated.src.dir" value="gen-src"/>
<property name="web.dir" value="${src.dir}/web"/>
<property name="java.dir" value="${src.dir}/java"/>
<property name="generated.java.dir"
value="${generated.src.dir}/java"/>
<property name="config.dir" value="config"/>
<property name="build.dir" value="build"/>
<property name="dist.dir" value="dist"/>
<property name="classpath" value=""/>
<property name="ejb.dir" value="${build.dir}/ejb"/>
<property name="ejb.classes.dir" value="${ejb.dir}/classes"/>
<property name="ejb.dd.dir" value="${ejb.dir}/META-INF"/>
<property name="ejb.generic.dir" value="${ejb.dir}/generic-ejb"/>
<property name="ejb.generic.file"
value="${ejb.generic.dir}/${name}-ejb.jar"/>
<property name="ejb.orion.dir" value="${ejb.dir}/orion-ejb"/>
<property name="ejb.orion.file"
value="${ejb.orion.dir}/${name}-ejb.jar"/>
<property name="jboss.create.table" value="true"/>
<property name="jboss.remove.table" value="true"/>
<property name="jboss.tuned.updates" value="true"/>
<property name="jboss.read.only" value="false"/>
<property name="xdoclet.force" value="true"/>
</target>
<target depends="init" name="prepare">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir}/ejb"/>
<mkdir dir="${build.dir}/ejb/META-INF"/>
<mkdir dir="${build.dir}/web"/>
<mkdir dir="${build.dir}/web/WEB-INF"/>
<mkdir dir="${build.dir}/web/WEB-INF/tlds"/>
<mkdir dir="${build.dir}/web/WEB-INF/classes"/>
<mkdir dir="${build.dir}/j2ee"/>
<mkdir dir="${build.dir}/j2ee/META-INF"/>
<mkdir dir="${build.dir}/jmx"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${generated.src.dir}"/>
<mkdir dir="${generated.java.dir}"/>
<mkdir dir="${ejb.dd.dir}"/>
<mkdir dir="${ejb.classes.dir}"/>
<mkdir dir="${ejb.generic.dir}"/>
<mkdir dir="${ejb.orion.dir}"/>
</target>
<target depends="prepare" name="ejbdoclet">
<taskdef classname="xdoclet.ejb.EjbDocletTask"
classpath="${xdoclet.class.path};${log4j.jar.path};${ant.jar.path}"
name="ejbdoclet"/>
<ejbdoclet classpathref="project.class.path"
destdir="${generated.java.dir}"
ejbspec="2.0"
excludedtags="@version,@author"
force="true"
sourcepath="${java.dir}">
<!-- It's good practice to put interfaces in a
separate "interfaces" package than in EJB bean
implementations, but if you don't like it or want to apply
another package naming convention, just remove the following
like add as many <packageSubstitution/> as you want to
configure it. -->
<packageSubstitution packages="ejb"
substituteWith="interfaces"/>
<fileset dir="${java.dir}">
<include name="**/*Bean.java"/>
<include name="**/*Session.java"/>
</fileset>
<dataobject/>
<remoteinterface/>
<localinterface/>
<utilobject/>
<localhomeinterface/>
<entitypk/>
<entitycmp>
<!-- packageSubstitution packages="ejb"
substituteWith="ejb.impl"/>
<packageSubstitution packages="ejb.cmr" substituteWith="ejb.cmr.impl"/>
-->
</entitycmp>
<entitybmp/>
<deploymentdescriptor destdir="${ejb.dd.dir}"/>
<jboss destdir="${ejb.dd.dir}" typemapping="Hypersonic SQL"
validatexml="false" version="3.0" xmlencoding="UTF-8"/>
<orion destdir="${ejb.dd.dir}" validatexml="false"/>
<apachesoap destdir="${build.dir}/web"/>
<!-- Have struts form objects generated based on
entity beans' data objects. Will require struts.jar to
compile. -->
<strutsform/>
</ejbdoclet>
</target>
-----Message d'origine-----
De : Jozsa Kristof [mailto:[EMAIL PROTECTED]]
Envoy� : lundi 4 f�vrier 2002 13:17
� : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : Re: [Xdoclet-user] Xdoclet 1.1 VS 1.1.1
What's the error message? A few things has been changed..
Christopher
On Mon, Feb 04, 2002 at 01:13:45PM +0100, [EMAIL PROTECTED] wrote:
>
>
> Hello,
>
> I used xdoclet 1.1 and all work fine.
> After installing the 1.1.1 version, the build process fail. I just
> replace the older xdoclet.jar by the new one. Any idea?
>
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
--
.Digital.Yearning.for.Networked.Assassination.and.Xenocide
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user