Discussion:
[Middlegen-user] Build issue - newbie
Michael Bushe
2003-02-18 14:47:09 UTC
Permalink
Howdy,

I'm having trouble building the latest. This may be an Ant problem, as
I am fairly inexperienced with Ant, and new to Middlegen, but I figured
I'd try here first. I'm using Ant 1.5 on XP. In short, if I let the
ant script figure out the classpath, the build doesn't work. However,
if I set the same classpath in the shell and then run ant, it works. I
do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as the
home page says), then ran ant.

The build told me to run the download-deps target from the samples,
which I did (How cool is that! I owe a beer to whoever checked that
in). I copied the files from the samples lib to the Middlegen lib. (I
did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2". This
comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was there. To
prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell, set the
classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right? I'm not
sure if this is right, shouldn't it be there anyway? Well, to test I
added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class xdoclet.modules.ejb.EjbDocletTask to
set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the class. I
proved it by opening another shell, set the classpath to the output'ed
classpath, and ran javap again. This time it worked (the signature for
the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking classpath
and then run ant. If I do that, it builds successfully. Can someone
tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on various
lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.
Eivind Waaler
2003-02-18 15:03:16 UTC
Permalink
Hi, don't copy the downloaded files anywhere. Just leave them in the
samples/lib directory. The main ant task will load them from there.

I just tried with ant 1.5.1:

1. Get middlegen from cvs
2. Run 'ant download-deps' from samples dir (also get two files not found
just like you)
3. Run 'ant' on the main middlegen directory (builds fine)

Also, please try to avoid HTML in your mail. Use plain text if possible.

.eivind
Post by Michael Bushe
Howdy,
I'm having trouble building the latest. This may be an Ant problem, as
I am fairly inexperienced with Ant, and new to Middlegen, but I figured
I'd try here first. I'm using Ant 1.5 on XP. In short, if I let the
ant script figure out the classpath, the build doesn't work. However,
if I set the same classpath in the shell and then run ant, it works. I
do have ANT_HOME set in my environment.
I pulled Middlegen from the CVS, set my classpath to nothing (as the
home page says), then ran ant.
The build told me to run the download-deps target from the samples,
which I did (How cool is that! I owe a beer to whoever checked that
in). I copied the files from the samples lib to the Middlegen lib. (I
did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).
I ran the build again and it failed on "fail-if-no-xdoclet-1.2". This
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath"/>
The build told me to re-download the libs, but I knew it was there. To
<property name="classpath" refid="classpath"/>
<echo message=" classpath =${ classpath }"/>
The next build output a huge classpath. I opened a new shell, set the
classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.
So, the remedy is to stick the Ant jar in the classpath, right? I'm not
sure if this is right, shouldn't it be there anyway? Well, to test I
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>
[available] Unable to load class xdoclet.modules.ejb.EjbDocletTask to
set proper
ty xdoclet1.2+
However, I'm sure the classpath had enough info to resolve the class. I
proved it by opening another shell, set the classpath to the output'ed
classpath, and ran javap again. This time it worked (the signature for
the xdoclet.modules.ejb.EjbDocletTask was output.
My lame workaround is to set the classpath to this big honking classpath
and then run ant. If I do that, it builds successfully. Can someone
tell me what I'm doing wrong?
I've done a lot of looking around in the Ant book I have and on various
lists, but I'm not seeing the issue.
Much Thanks In Advance!
Michael Bushe
Bushe Enterprises, Inc.
Rod Macpherson
2003-02-18 21:26:02 UTC
Permalink
I installed j2ee.jar ( http://java.sun.com/downloads/ ) and placed my
oracle driver ( classes12.jar ) in the task's classpath path. Also
download xdoclet and put the jar(s) in /xdoclet/lib in the task's
classpath. Though jboss-common.jar or weblogic.jar or your appservers
core jar in the task's classpath for grins (I think you need that.
-----Original Message-----
From: Michael Bushe [mailto:***@Bushe.com]
Sent: Monday, February 17, 2003 8:17 PM
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] Build issue - newbie


Howdy,

I'm having trouble building the latest. This may be an Ant
problem, as I am fairly inexperienced with Ant, and new to Middlegen,
but I figured I'd try here first. I'm using Ant 1.5 on XP. In short,
if I let the ant script figure out the classpath, the build doesn't
work. However, if I set the same classpath in the shell and then run
ant, it works. I do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as
the home page says), then ran ant.

The build told me to run the download-deps target from the
samples, which I did (How cool is that! I owe a beer to whoever checked
that in). I copied the files from the samples lib to the Middlegen lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2".
This comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was
there. To prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell,
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right?
I'm not sure if this is right, shouldn't it be there anyway? Well, to
test I added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the
class. I proved it by opening another shell, set the classpath to the
output'ed classpath, and ran javap again. This time it worked (the
signature for the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking
classpath and then run ant. If I do that, it builds successfully. Can
someone tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on
various lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.
Michael Bushe
2003-02-18 22:12:08 UTC
Permalink
Thanks.

When you say "task's classpath", do you mean the path that is built by
the
<path id="lib.class.path"> tag in the ant script?

If not, then please explain - sorry to be pain!

If so, then that's what I'm doing, but something is wrong. When I echo
that path I have the whole world in it (I have 31 jars in Middlegen\lib,
including all the xdoclet ones). The trouble is, when it gets to:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>

then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in the path.
Now I'm no Java dummy, I've been doing it solid since '95. I tested
whether that class is in that path and it's there! It's like ant isn't
passing the class properly to the task.

Thanks Again!

Michael

-----Original Message-----
From: Rod Macpherson <***@ve...>
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie



I installed j2ee.jar ( http://java.sun.com/downloads/ ) and placed my
oracle driver ( classes12.jar ) in the task's classpath path. Also
download xdoclet and put the jar(s) in /xdoclet/lib in the task's
classpath. Though jboss-common.jar or weblogic.jar or your appservers
core jar in the task's classpath for grins (I think you need that.
-----Original Message-----
From: Michael Bushe [mailto:***@Bu...]
Sent: Monday, February 17, 2003 8:17 PM
To: middlegen-***@li...
Subject: [Middlegen-user] Build issue - newbie


Howdy,

I'm having trouble building the latest. This may be an Ant
problem, as I am fairly inexperienced with Ant, and new to Middlegen,
but I figured I'd try here first. I'm using Ant 1.5 on XP. In short,
if I let the ant script figure out the classpath, the build doesn't
work. However, if I set the same classpath in the shell and then run
ant, it works. I do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as
the home page says), then ran ant.

The build told me to run the download-deps target from the
samples, which I did (How cool is that! I owe a beer to whoever
checked
that in). I copied the files from the samples lib to the Middlegen
lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2".
This comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was
there. To prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell,
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of
reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right?
I'm not sure if this is right, shouldn't it be there anyway? Well, to
test I added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the
class. I proved it by opening another shell, set the classpath to the
output'ed classpath, and ran javap again. This time it worked (the
signature for the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking
classpath and then run ant. If I do that, it builds successfully. Can
someone tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on
various lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.
Rod Macpherson
2003-02-19 01:36:04 UTC
Permalink
When you say "task's classpath...
Yes, I mean the classpath you supply to the middlegen ant task.
do you mean the path that is built by the <path id="lib.class.path"> tag in the ant script?
Well, "THE ant script" is your ant script. The one you use for building. Do you have a path element called lib.class.path that you specify as middlegen's classpath? If so then, yeah, that's the one I mean. I have my own ant script. I have not even looked at the demo script in months.

Here's a sample classpath:

<path id="classpath">
<pathelement path="${j2ee.jar}"/>
<pathelement path="${database.driver.classpath}"/>
<pathelement path="${jboss.lib}"/>
<fileset dir="${xdoclet.lib}">
<include name="*.jar"/>
</fileset>
... your jars if you need them ...
</path>

Here's a sample usage. ...

<target name="run-middlegen">

<taskdef name="middlegen" classname="middlegen.MiddlegenTask" classpathref="classpath"/>

<middlegen
appname="${title}"
prefsdir="${config}"
gui="false"
databaseurl="${database.url}"
datasourceJNDIName="OracleDSX"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
initialContextFactory="nop"
providerURL="nop"
... BLAH BLAH BLAH ...


-----Original Message-----
From: Michael Bushe [mailto:***@Bushe.com]
Sent: Tue 2/18/2003 4:10 PM
To: middlegen-***@lists.sourceforge.net
Cc:
Subject: [Middlegen-user] Build issue - newbie



Thanks.

When you say "task's classpath", do you mean the path that is built by
the
<path id="lib.class.path"> tag in the ant script?

If not, then please explain - sorry to be pain!

If so, then that's what I'm doing, but something is wrong. When I echo
that path I have the whole world in it (I have 31 jars in Middlegen\lib,
including all the xdoclet ones). The trouble is, when it gets to:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>

then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in the path.
Now I'm no Java dummy, I've been doing it solid since '95. I tested
whether that class is in that path and it's there! It's like ant isn't
passing the class properly to the task.

Thanks Again!

Michael

-----Original Message-----
From: Rod Macpherson <***@ve...>
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie



I installed j2ee.jar ( http://java.sun.com/downloads/ ) and placed my
oracle driver ( classes12.jar ) in the task's classpath path. Also
download xdoclet and put the jar(s) in /xdoclet/lib in the task's
classpath. Though jboss-common.jar or weblogic.jar or your appservers
core jar in the task's classpath for grins (I think you need that.
-----Original Message-----
From: Michael Bushe [mailto:***@Bu...]
Sent: Monday, February 17, 2003 8:17 PM
To: middlegen-***@li...
Subject: [Middlegen-user] Build issue - newbie


Howdy,

I'm having trouble building the latest. This may be an Ant
problem, as I am fairly inexperienced with Ant, and new to Middlegen,
but I figured I'd try here first. I'm using Ant 1.5 on XP. In short,
if I let the ant script figure out the classpath, the build doesn't
work. However, if I set the same classpath in the shell and then run
ant, it works. I do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as
the home page says), then ran ant.

The build told me to run the download-deps target from the
samples, which I did (How cool is that! I owe a beer to whoever
checked
that in). I copied the files from the samples lib to the Middlegen
lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2".
This comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was
there. To prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell,
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of
reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right?
I'm not sure if this is right, shouldn't it be there anyway? Well, to
test I added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the
class. I proved it by opening another shell, set the classpath to the
output'ed classpath, and ran javap again. This time it worked (the
signature for the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking
classpath and then run ant. If I do that, it builds successfully. Can
someone tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on
various lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Michael Bushe
2003-02-19 02:20:01 UTC
Permalink
I AM talking about THE Ant script! :-) Not the one for my project (I
haven't gotten that far yet), I'm talking about the one in CVS I pulled to
build Middlegen itself from the CVS source. This is why I'm surprised it is
not working. I figured pretty much I could run ant and the build.xml for
Middlegen would build Middlegen. But it didn't work because it kept telling
me it couldn't find xdoclet. I modified the build.xml for Middlegen to echo
the classpath it was using to find xdoclet. It was in the classpath! So why
couldn't the ant task it find it? I don't know. Interestingly, if I set
that same honking 31 jar classpath on my shell and then ran ant, then the
build gets further, so I know the libs are in the right place, but I know
this is a bad idea.

I didn't see a binary created after October. I figured a lot of good stuff
must have gone on since then, no? I tried to look again, but sourceforge is
down. Anywhere else I can find a later binary? I checked
ibiblio.org/maven, but I don't see it there.

Thanks Again,

Michael Bushe
Bushe Enterprises, Inc.

-----Original Message-----
From: Rod Macpherson [mailto:middlegen-user-***@lists.sourceforge.net] On
Behalf Of Rod Macpherson
Sent: Tuesday, February 18, 2003 10:37 PM
To: middlegen-***@lists.sourceforge.net
Subject: RE: [Middlegen-user] Build issue - newbie
When you say "task's classpath...
Yes, I mean the classpath you supply to the middlegen ant task.
do you mean the path that is built by the <path id="lib.class.path"> tag
in the ant script?

Well, "THE ant script" is your ant script. The one you use for building. Do
you have a path element called lib.class.path that you specify as
middlegen's classpath? If so then, yeah, that's the one I mean. I have my
own ant script. I have not even looked at the demo script in months.

Here's a sample classpath:

<path id="classpath">
<pathelement path="${j2ee.jar}"/>
<pathelement path="${database.driver.classpath}"/>
<pathelement path="${jboss.lib}"/>
<fileset dir="${xdoclet.lib}">
<include name="*.jar"/>
</fileset>
... your jars if you need them ...
</path>

Here's a sample usage. ...

<target name="run-middlegen">

<taskdef name="middlegen" classname="middlegen.MiddlegenTask"
classpathref="classpath"/>

<middlegen
appname="${title}"
prefsdir="${config}"
gui="false"
databaseurl="${database.url}"
datasourceJNDIName="OracleDSX"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
initialContextFactory="nop"
providerURL="nop"
... BLAH BLAH BLAH ...


-----Original Message-----
From: Michael Bushe [mailto:***@Bushe.com]
Sent: Tue 2/18/2003 4:10 PM
To: middlegen-***@lists.sourceforge.net
Cc:
Subject: [Middlegen-user] Build issue - newbie
Thanks.

When you say "task's classpath", do you mean the path that is built by
the
<path id="lib.class.path"> tag in the ant script?

If not, then please explain - sorry to be pain!

If so, then that's what I'm doing, but something is wrong. When I echo
that path I have the whole world in it (I have 31 jars in Middlegen\lib,
including all the xdoclet ones). The trouble is, when it gets to:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>

then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in the path.
Now I'm no Java dummy, I've been doing it solid since '95. I tested
whether that class is in that path and it's there! It's like ant isn't
passing the class properly to the task.

Thanks Again!

Michael

-----Original Message-----
From: Rod Macpherson <***@ve...>
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie



I installed j2ee.jar ( http://java.sun.com/downloads/ ) and placed my
oracle driver ( classes12.jar ) in the task's classpath path. Also
download xdoclet and put the jar(s) in /xdoclet/lib in the task's
classpath. Though jboss-common.jar or weblogic.jar or your appservers
core jar in the task's classpath for grins (I think you need that.
-----Original Message-----
From: Michael Bushe [mailto:***@Bu...]
Sent: Monday, February 17, 2003 8:17 PM
To: middlegen-***@li...
Subject: [Middlegen-user] Build issue - newbie


Howdy,

I'm having trouble building the latest. This may be an Ant
problem, as I am fairly inexperienced with Ant, and new to Middlegen,
but I figured I'd try here first. I'm using Ant 1.5 on XP. In short,
if I let the ant script figure out the classpath, the build doesn't
work. However, if I set the same classpath in the shell and then run
ant, it works. I do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as
the home page says), then ran ant.

The build told me to run the download-deps target from the
samples, which I did (How cool is that! I owe a beer to whoever
checked
that in). I copied the files from the samples lib to the Middlegen
lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2".
This comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was
there. To prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell,
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of
reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right?
I'm not sure if this is right, shouldn't it be there anyway? Well, to
test I added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the
class. I proved it by opening another shell, set the classpath to the
output'ed classpath, and ran javap again. This time it worked (the
signature for the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking
classpath and then run ant. If I do that, it builds successfully. Can
someone tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on
various lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Rod Macpherson
2003-02-19 02:23:07 UTC
Permalink
Well, putting xdoclet and junit and stuff like that in /ant/lib isn't a bad idea and it will eliminate any path issue. If you have a -classpath in ANT_OPTS that will screw you up so don't go there in case you were thinking about that.
-----Original Message-----
From: middlegen-user-***@lists.sourceforge.net on behalf of Michael Bushe
Sent: Tue 2/18/2003 8:18 PM
To: middlegen-***@lists.sourceforge.net
Cc:
Subject: RE: [Middlegen-user] Build issue - newbie


I AM talking about THE Ant script! :-) Not the one for my project (I haven’t gotten that far yet), I’m talking about the one in CVS I pulled to build Middlegen itself from the CVS source. This is why I’m surprised it is not working. I figured pretty much I could run ant and the build.xml for Middlegen would build Middlegen. But it didn’t work because it kept telling me it couldn’t find xdoclet. I modified the build.xml for Middlegen to echo the classpath it was using to find xdoclet. It was in the classpath! So why couldn’t the ant task it find it? I don’t know. Interestingly, if I set that same honking 31 jar classpath on my shell and then ran ant, then the build gets further, so I know the libs are in the right place, but I know this is a bad idea.

I didn’t see a binary created after October. I figured a lot of good stuff must have gone on since then, no? I tried to look again, but sourceforge is down. Anywhere else I can find a later binary? I checked ibiblio.org/maven, but I don’t see it there.

Thanks Again,

Michael Bushe
Bushe Enterprises, Inc.

-----Original Message-----
From: Rod Macpherson [mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of Rod Macpherson
Sent: Tuesday, February 18, 2003 10:37 PM
To: middlegen-***@lists.sourceforge.net
Subject: RE: [Middlegen-user] Build issue - newbie
When you say "task's classpath...
Yes, I mean the classpath you supply to the middlegen ant task.
do you mean the path that is built by the <path id="lib.class.path"> tag in the ant script?
Well, "THE ant script" is your ant script. The one you use for building. Do you have a path element called lib.class.path that you specify as middlegen's classpath? If so then, yeah, that's the one I mean. I have my own ant script. I have not even looked at the demo script in months.

Here's a sample classpath:

<path id="classpath">
<pathelement path="${j2ee.jar}"/>
<pathelement path="${database.driver.classpath}"/>
<pathelement path="${jboss.lib}"/>
<fileset dir="${xdoclet.lib}">
<include name="*.jar"/>
</fileset>
... your jars if you need them ...
</path>

Here's a sample usage. ...

<target name="run-middlegen">

<taskdef name="middlegen" classname="middlegen.MiddlegenTask" classpathref="classpath"/>

<middlegen
appname="${title}"
prefsdir="${config}"
gui="false"
databaseurl="${database.url}"
datasourceJNDIName="OracleDSX"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
initialContextFactory="nop"
providerURL="nop"
... BLAH BLAH BLAH ...


-----Original Message-----
From: Michael Bushe [mailto:***@Bushe.com]
Sent: Tue 2/18/2003 4:10 PM
To: middlegen-***@lists.sourceforge.net
Cc:
Subject: [Middlegen-user] Build issue - newbie
Thanks.

When you say "task's classpath", do you mean the path that is built by
the
<path id="lib.class.path"> tag in the ant script?

If not, then please explain - sorry to be pain!

If so, then that's what I'm doing, but something is wrong. When I echo
that path I have the whole world in it (I have 31 jars in Middlegen\lib,
including all the xdoclet ones). The trouble is, when it gets to:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>

then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in the path.
Now I'm no Java dummy, I've been doing it solid since '95. I tested
whether that class is in that path and it's there! It's like ant isn't
passing the class properly to the task.

Thanks Again!

Michael

-----Original Message-----
From: Rod Macpherson <***@ve...>
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie



I installed j2ee.jar ( http://java.sun.com/downloads/ ) and placed my
oracle driver ( classes12.jar ) in the task's classpath path. Also
download xdoclet and put the jar(s) in /xdoclet/lib in the task's
classpath. Though jboss-common.jar or weblogic.jar or your appservers
core jar in the task's classpath for grins (I think you need that.
-----Original Message-----
From: Michael Bushe [mailto:***@Bu...]
Sent: Monday, February 17, 2003 8:17 PM
To: middlegen-***@li...
Subject: [Middlegen-user] Build issue - newbie


Howdy,

I'm having trouble building the latest. This may be an Ant
problem, as I am fairly inexperienced with Ant, and new to Middlegen,
but I figured I'd try here first. I'm using Ant 1.5 on XP. In short,
if I let the ant script figure out the classpath, the build doesn't
work. However, if I set the same classpath in the shell and then run
ant, it works. I do have ANT_HOME set in my environment.

In Long:
I pulled Middlegen from the CVS, set my classpath to nothing (as
the home page says), then ran ant.

The build told me to run the download-deps target from the
samples, which I did (How cool is that! I owe a beer to whoever
checked
that in). I copied the files from the samples lib to the Middlegen
lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's not my
problem, but if you know where I should get these, let me know. My
guess is Sun's j2ee kit?).

I ran the build again and it failed on "fail-if-no-xdoclet-1.2".
This comes from the line:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>

The build told me to re-download the libs, but I knew it was
there. To prove it, I added this to the build.xml:
<property name="classpath" refid="classpath"/>
and added in the init task:
<echo message=" classpath =${ classpath }"/>

The next build output a huge classpath. I opened a new shell,
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler that
comes with the JDK. Most folks don't know about it, but it's a great
way to solve classpath problems - better than JWhich, because of
reasons
below). javap output "Error: No binary file 'Task'" This means that
EjbDoclet is on the classpath (otherwise a ClassNotFound error would
appear), but, most likely, it's parent class or related class could not
be resolved.

So, the remedy is to stick the Ant jar in the classpath, right?
I'm not sure if this is right, shouldn't it be there anyway? Well, to
test I added this:
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
and this:
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>

But this didn't help the build! Using ant -verbose I got:
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+

However, I'm sure the classpath had enough info to resolve the
class. I proved it by opening another shell, set the classpath to the
output'ed classpath, and ran javap again. This time it worked (the
signature for the xdoclet.modules.ejb.EjbDocletTask was output.

My lame workaround is to set the classpath to this big honking
classpath and then run ant. If I do that, it builds successfully. Can
someone tell me what I'm doing wrong?

I've done a lot of looking around in the Ant book I have and on
various lists, but I'm not seeing the issue.

Much Thanks In Advance!

Michael Bushe
Bushe Enterprises, Inc.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Eivind Waaler
2003-02-19 05:16:12 UTC
Permalink
Did any of you guys just try what I suggested?

1. Get middlegen from cvs
2. Run 'ant download-deps' from samples dir
3. Run 'ant' from middlegen dir

No messing with the classpath, no copying of files. Make sure you have a
blank classpath before you start.. Also make sure you don't have any
xdoclet stuff in your ant lib dir.

This works for me, with ant 1.5.1 and jdk 1.4.1.

=2Eeivind
Well, putting xdoclet and junit and stuff like that in /ant/lib isn't a b=
ad idea and it will eliminate any path issue. If you have a -classpath in A=
NT_OPTS that will screw you up so don't go there in case you were thinking =
about that.=20
=09-----Original Message-----=20
Bushe=20
=09Sent: Tue 2/18/2003 8:18 PM=20
=09Cc:=20
=09Subject: RE: [Middlegen-user] Build issue - newbie
=09
=09
=09I AM talking about THE Ant script! :-) Not the one for my project (=
I haven=92t gotten that far yet), I=92m talking about the one in CVS I pull=
ed to build Middlegen itself from the CVS source. This is why I=92m surpri=
sed it is not working. I figured pretty much I could run ant and the build=
=2Exml for Middlegen would build Middlegen. But it didn=92t work because i=
t kept telling me it couldn=92t find xdoclet. I modified the build.xml for=
Middlegen to echo the classpath it was using to find xdoclet. It was in th=
e classpath! So why couldn=92t the ant task it find it? I don=92t know. =
Interestingly, if I set that same honking 31 jar classpath on my shell and =
then ran ant, then the build gets further, so I know the libs are in the ri=
ght place, but I know this is a bad idea.
=09=20
=09I didn=92t see a binary created after October. I figured a lot of goo=
d stuff must have gone on since then, no? I tried to look again, but sourc=
eforge is down. Anywhere else I can find a later binary? I checked ibibli=
o.org/maven, but I don=92t see it there.
=09=20
=09Thanks Again,
=09=20
=09Michael Bushe
=09Bushe Enterprises, Inc.
=09=20
=09-----Original Message-----
t] On Behalf Of Rod Macpherson
=09Sent: Tuesday, February 18, 2003 10:37 PM
=09Subject: RE: [Middlegen-user] Build issue - newbie
=09=20
=09>> When you say "task's classpath...
=09=20
=09Yes, I mean the classpath you supply to the middlegen ant task.=20
=09=20
=09>> do you mean the path that is built by the <path id=3D"lib.class.pat=
h"> tag in the ant script?
=09=20
=09Well, "THE ant script" is your ant script. The one you use for buildin=
g. Do you have a path element called lib.class.path that you specify as mid=
dlegen's classpath? If so then, yeah, that's the one I mean. I have my own =
ant script. I have not even looked at the demo script in months.=20
=09=20
=09=20
=09 <path id=3D"classpath">
=09 <pathelement path=3D"${j2ee.jar}"/>
=09 <pathelement path=3D"${database.driver.classpath}"/>
=09 <pathelement path=3D"${jboss.lib}"/>
=09 <fileset dir=3D"${xdoclet.lib}">
=09 <include name=3D"*.jar"/>
=09 </fileset>
=09 ... your jars if you need them ...
=09 </path>
=09=20
=09Here's a sample usage. ...
=09=20
=09 <target name=3D"run-middlegen">
=09=20
=09 <taskdef name=3D"middlegen" classname=3D"middlegen.MiddlegenTask" =
classpathref=3D"classpath"/>
=09=20
=09 <middlegen
=09 appname=3D"${title}"
=09 prefsdir=3D"${config}"
=09 gui=3D"false"
=09 databaseurl=3D"${database.url}"
=09 datasourceJNDIName=3D"OracleDSX"
=09 driver=3D"${database.driver}"
=09 username=3D"${database.userid}"
=09 password=3D"${database.password}"
=09 schema=3D"${database.schema}"
=09 initialContextFactory=3D"nop"
=09 providerURL=3D"nop"
=09 >
=09 ... BLAH BLAH BLAH ...
=09=20
=09=20
=09-----Original Message-----=20
=09Sent: Tue 2/18/2003 4:10 PM=20
=09Cc:=20
=09Subject: [Middlegen-user] Build issue - newbie
=09=09Thanks.=20
=09=09
=09=09When you say "task's classpath", do you mean the path that is built=
by
=09=09the =20
=09=09<path id=3D"lib.class.path"> tag in the ant script?=20
=09=09
=09=09If not, then please explain - sorry to be pain!
=09=09
=09=09If so, then that's what I'm doing, but something is wrong. When I =
echo
=09=09that path I have the whole world in it (I have 31 jars in Middlegen=
\lib,
=09=09<available property=3D"xdoclet1.2+"
=09=09classname=3D"xdoclet.modules.ejb.EjbDocletTask"
=09=09classpathref=3D"lib.class.path"/>
=09=09
=09=09then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in the pa=
th.
=09=09Now I'm no Java dummy, I've been doing it solid since '95. I teste=
d
=09=09whether that class is in that path and it's there! It's like ant i=
sn't
=09=09passing the class properly to the task.
=09=09
=09=09Thanks Again!
=09=09
=09=09Michael
=09=09
=09=09-----Original Message-----
=09=09Sent: Tuesday, February 18, 2003 6:25 PM
=09=09Subject: [Middlegen-user] Build issue - newbie
=09=09
=09=09
=09=09
=09=09 I installed j2ee.jar ( http://java.sun.com/downloads/ ) and place=
d my
=09=09 oracle driver ( classes12.jar ) in the task's classpath path. Also
=09=09 download xdoclet and put the jar(s) in /xdoclet/lib in the task's
=09=09 classpath. Though jboss-common.jar or weblogic.jar or your appserv=
ers
=09=09 core jar in the task's classpath for grins (I think you need that.=
=20
=09=09 -----Original Message-----
=09=09 Sent: Monday, February 17, 2003 8:17 PM
=09=09 Subject: [Middlegen-user] Build issue - newbie
=09=09 =20
=09=09 =20
=09=09 Howdy,
=09=09 =20
=09=09 I'm having trouble building the latest. This may be an Ant
=09=09 problem, as I am fairly inexperienced with Ant, and new to Middleg=
en,
=09=09 but I figured I'd try here first. I'm using Ant 1.5 on XP. In sh=
ort,
=09=09 if I let the ant script figure out the classpath, the build doesn'=
t
=09=09 work. However, if I set the same classpath in the shell and then =
run
=09=09 ant, it works. I do have ANT_HOME set in my environment.
=09=09 =20
=09=09 I pulled Middlegen from the CVS, set my classpath to nothin=
g (as
=09=09 the home page says), then ran ant.=20
=09=09 =20
=09=09 The build told me to run the download-deps target from the
=09=09 samples, which I did (How cool is that! I owe a beer to whoever
=09=09checked
=09=09 that in). I copied the files from the samples lib to the Middlege=
n
=09=09lib.
=09=09 (I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar. That's n=
ot my
=09=09 problem, but if you know where I should get these, let me know. M=
y
=09=09 guess is Sun's j2ee kit?).
=09=09 =20
=09=09 I ran the build again and it failed on "fail-if-no-xdoclet-=
1.2".
=09=09 <available property=3D"xdoclet1.2+"
=09=09 classname=3D"xdoclet.modules.ejb.EjbDocletTask"
=09=09classpathref=3D"classpath"/>
=09=09 =20
=09=09 The build told me to re-download the libs, but I knew it wa=
s
=09=09 <property name=3D"classpath" refid=3D"classpath"/>
=09=09 <echo message=3D" classpath =3D${ classpath }"/>
=09=09 =20
=09=09 The next build output a huge classpath. I opened a new she=
ll,
=09=09 set the classpath to the output and ran "javap
=09=09 xdoclet.modules.ejb.EjbDocletTask" (javap is a handy disassembler=
that
=09=09 comes with the JDK. Most folks don't know about it, but it's a gr=
eat
=09=09 way to solve classpath problems - better than JWhich, because of
=09=09reasons
=09=09 below). javap output "Error: No binary file 'Task'" This means t=
hat
=09=09 EjbDoclet is on the classpath (otherwise a ClassNotFound error wou=
ld
=09=09 appear), but, most likely, it's parent class or related class coul=
d not
=09=09 be resolved.
=09=09 =20
=09=09 So, the remedy is to stick the Ant jar in the classpath, ri=
ght?
=09=09 I'm not sure if this is right, shouldn't it be there anyway? Well=
, to
=09=09 <property name=3D"antlib.dir"
=09=09 value=3D"C:\java\jakarta-ant-1.5.1\lib"/>
=09=09 <path id=3D"classpath">
=09=09 <fileset dir=3D"${antlib.dir}">
=09=09 <include name=3D"*.jar"/>
=09=09 </fileset>
=09=09 =20
=09=09 [available] Unable to load class
=09=09 xdoclet.modules.ejb.EjbDocletTask to set proper
=09=09 ty xdoclet1.2+
=09=09 =20
=09=09 However, I'm sure the classpath had enough info to resolve =
the
=09=09 class. I proved it by opening another shell, set the classpath to=
the
=09=09 output'ed classpath, and ran javap again. This time it worked (th=
e
=09=09 signature for the xdoclet.modules.ejb.EjbDocletTask was output.
=09=09 =20
=09=09 My lame workaround is to set the classpath to this big honk=
ing
=09=09 classpath and then run ant. If I do that, it builds successfully.=
Can
=09=09 someone tell me what I'm doing wrong?
=09=09 =20
=09=09 I've done a lot of looking around in the Ant book I have an=
d on
=09=09 various lists, but I'm not seeing the issue.
=09=09 =20
=09=09 Much Thanks In Advance!
=09=09 =20
=09=09 Michael Bushe
=09=09 Bushe Enterprises, Inc.
=09=09 =20
=09=09 =20
=09=09 =20
=09=09
=09=09
=09=09
=09=09
=09=09-------------------------------------------------------
=09=09This sf.net email is sponsored by:ThinkGeek
=09=09Welcome to geek heaven.
=09=09http://thinkgeek.com/sf
=09=09_______________________________________________
=09=09middlegen-user mailing list
=09=09https://lists.sourceforge.net/lists/listinfo/middlegen-user
=20
Michael Bushe
2003-02-19 12:55:19 UTC
Permalink
I FIGURED IT OUT! THANKS FOR ALL YOUR HELP!

The problem was there was an xdoclet.jar in my ant/lib directory. I got
deleted it, ran ant again, and it built.

Below is the email I was going to send that shows what I did to figure
it out. For prosperity's sake.

Thanks Again!

Michael

Steps I took while figuring it out, for kicks:

OK, I tried your simple steps. I created a new Middlegen directory. I
pulled the project from CVS. I opened a new shell.

1. set CLASSPATH=
2. cd samples
I got a couple of errors. ejb-2.0.jar and jdbc-2.0.jar got
FileNotFounds. Continuing anyway
3. cd ..
4. ant
Buildfile: build.xml

init:

pretty:

prepare:
[mkdir] Created dir: C:\java\Middlegen\CVSws\middlegen\build\src
[mkdir] Created dir: C:\java\Middlegen\CVSws\middlegen\build\classes
[copy] Copying 85 files to
C:\java\Middlegen\CVSws\middlegen\build\src
[copy] Copying 2 files to
C:\java\Middlegen\CVSws\middlegen\build\src
[copy] Copying 16 files to
C:\java\Middlegen\CVSws\middlegen\build\classes
[copy] Copied 6 empty directories to
C:\java\Middlegen\CVSws\middlegen\buil
d\classes

fail-if-old-xdoclet:

fail-if-no-xdoclet-1.2:

BUILD FAILED
file:C:/java/Middlegen/CVSws/middlegen/build.xml:124:
You must download several jar files before you can build
Middlegen.
Cd to the samples dir and execute the "download-deps" target.
Then try to build again.

If you are behind a proxy, you should define the properties
http.proxyHost and http.proxyPort. Example:

ant -Dhttp.proxyHost=foo -Dhttp.proxyPort=bar

It's also possible to download the jars manually.


Total time: 3 seconds
C:\java\Middlegen\CVSws\middlegen>

Line 124 of build.xml is:
<target name="fail-if-no-xdoclet-1.2" unless="xdoclet1.2+">
Which is related to line 55:
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="classpath"/>


Just a few more things:
C:\java\Middlegen\CVSws\middlegen>echo %PATH%
C:\APPS\MKS\bin;C:\APPS\MKS\bin\x11;c:\apps\mks\mksnt;c:\oracle\ora90\bi
n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;c:\progra~1\ul
trae~1;C:\Program Files\Rational\common;C:\Program
Files\Rational\Rose\TopLink\;C:\java\jakarta-
ant-1.5.1\bin;C:\java\jikes-1.18\bin;c:\j2sdk1.4.1\bin;C:\java\jakarta-a
nt-1.5.1\bin;C:\Program Files\SSH Communications Security\SSH Secure
Shell

C:\java\Middlegen\CVSws\middlegen>echo %ANT_HOME%
C:\java\jakarta-ant-1.5.1

C:\java\Middlegen\CVSws\middlegen>

Then just for kicks, I added this to the build.xml:
<property name="cp" refid="classpath"/>
and
<echo message=" classpath =${cp}"/>
in the init task.

The output of the classpath is as follows:
init:
[echo] classpath
=C:\java\Middlegen\CVSws\middlegen\lib\ConfigLog4j.jar;C:
\java\Middlegen\CVSws\middlegen\lib\j2h.jar;C:\java\Middlegen\CVSws\midd
legen\lib\jrefactory.jar;C:\java\Middlegen\CVSws\middlegen\lib\junit.jar
;C:\java\Middlegen\CVSws\middlegen\lib\netcomponents.jar;C:\java\Middleg
en\CVSws\middlegen\lib\xalan.jar;C:\java\Middlegen\CVSws\middlegen\sampl
es\lib\commons-collections-2.1.jar;C:\java\Middlegen\CVSws\middlegen\sam
ples\lib\commons-logging-1.1-dev.jar;C:\java\Middlegen\CVSws\middlegen\s
amples\lib\hsqldb-1.7.1.jar;C:\java\Middlegen\CVSws\middlegen\samples\li
b\jdo-1.0.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\log4j-1.2.7.
jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\mysql-connecto
r-java-3.0.0-beta-bin.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\
postgresql.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\servletapi-
2.3.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\struts-1.0.2.jar;C
:\java\Middlegen\CVSws\middlegen\samples\lib\velocity-1.4-dev.jar;C:\jav
a\Middlegen\CVSws\middlegen\samples\lib\xdoclet-1.2b2.jar;C:\java\Middle
gen\CVSws\middlegen\samples\lib\xdoclet-
apache-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xd
oclet-be
a-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoclet
-ejb-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoc
let-hibernate-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples
\lib\xdoclet-jboss-modul
e-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoclet-jdo-mo
dule-1.2
b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoclet-jmx-module-
1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoclet-libelis-
module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xdoclet-m
vcsoft-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\samples\lib\xd
oclet-solarmetric-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen\sam
ples\lib\xdoclet-tjdo-module-1.2b2.jar;C:\java\Middlegen\CVSws\middlegen
\samples\lib\xdoclet-web-module-1.2b2.jar;C:\java\Middlegen\CVSws\middle
gen\samples\lib\xdoclet-xdoclet-module-1.2b2.jar;C:\java\Middlegen\CVSws
\middlegen\samples\lib\xdoclet-xjavadoc-1.2b2.jar;C:\java\Middlegen\CVSw
s\middlegen\build\classes

If I call set CLASSPATH=(that big honking classpath above). Then do
this:
C:\Documents and Settings\Michael Bushe>javap
xdoclet.modules.ejb.EjbDocletTask
Error: No binary file 'Task'

Despite the error, this means the class EjbDocletTask is in the
classpath. If a class is not in the classpath you get a different error
like so:
C:\Documents and Settings\Michael Bushe>javap
xdoclet.modules.ejb.EjbDocletTaskB
LAH
Class 'xdoclet.modules.ejb.EjbDocletTaskBLAH' not found

The "Error: No binary file 'Task'" indicates that javap is looking for a
Ant's Task class (which it needs to disassemble EjbDocletTask).

So the problem may be that the script isn't considering Ant's jar.
Is this an Ant problem? When inside the script Ant's jar should be
automatically added to the classpath, no?

If in the shell, I do this:
C:\Documents and Settings\Michael Bushe>set
CLASSPATH=%CLASSPATH%;C:\java\jakarta-ant-1.5.1\lib\ant.jar

I get a good result:
C:\Documents and Settings\Michael Bushe>javap
xdoclet.modules.ejb.EjbDocletTask
Compiled from EjbDocletTask.java
public class xdoclet.modules.ejb.EjbDocletTask extends
xdoclet.DocletTask {
public xdoclet.modules.ejb.EjbDocletTask();
public java.lang.String getEjbSpec();
public java.lang.String getEjbClassNameSuffix();
public void
setEjbSpec(xdoclet.modules.ejb.EjbDocletTask.EjbSpecVersion);
public void setEjbClassNameSuffix(java.lang.String);
protected void validateOptions() throws
org.apache.tools.ant.BuildException;

public static class xdoclet.modules.ejb.EjbDocletTask.
EjbSpecVersion extend
s org.apache.tools.ant.types.EnumeratedAttribute
/* ACC_SUPER bit NOT set */
{
public static final java.lang.String EJB_1_1;
public static final java.lang.String EJB_2_0;
public xdoclet.modules.ejb.EjbDocletTask.EjbSpecVersion();
public java.lang.String getValues()[];
}
}

Looking in the ant lib dir, I see ant.jar is there. Hmmm. So is
xdoclet.jar! What happens when I get rid of that!

Michael Bushe
President/Chief Software Architect
Bushe Enterprises, Inc.
***@bushe.com
508-625-1235 phone
10 Valleywood Road
Hopkinton, MA 01748
Post by Rod Macpherson
-----Original Message-----
[mailto:middlegen-user-
Post by Rod Macpherson
Sent: Wednesday, February 19, 2003 2:15 AM
Subject: RE: [Middlegen-user] Build issue - newbie
Did any of you guys just try what I suggested?
1. Get middlegen from cvs
2. Run 'ant download-deps' from samples dir
3. Run 'ant' from middlegen dir
No messing with the classpath, no copying of files. Make sure you have
a
Post by Rod Macpherson
blank classpath before you start.. Also make sure you don't have any
xdoclet stuff in your ant lib dir.
This works for me, with ant 1.5.1 and jdk 1.4.1.
.eivind
Post by Rod Macpherson
Well, putting xdoclet and junit and stuff like that in /ant/lib
isn't a
Post by Rod Macpherson
bad idea and it will eliminate any path issue. If you have a
-classpath in
Post by Rod Macpherson
ANT_OPTS that will screw you up so don't go there in case you were
thinking about that.
Post by Rod Macpherson
-----Original Message-----
Michael Bushe
Post by Rod Macpherson
Sent: Tue 2/18/2003 8:18 PM
Subject: RE: [Middlegen-user] Build issue - newbie
I AM talking about THE Ant script! :-) Not the one for my
project
Post by Rod Macpherson
(I haven't gotten that far yet), I'm talking about the one in CVS I
pulled
Post by Rod Macpherson
to build Middlegen itself from the CVS source. This is why I'm
surprised
Post by Rod Macpherson
it is not working. I figured pretty much I could run ant and the
build.xml for Middlegen would build Middlegen. But it didn't work
because
Post by Rod Macpherson
it kept telling me it couldn't find xdoclet. I modified the build.xml
for
Post by Rod Macpherson
Middlegen to echo the classpath it was using to find xdoclet. It was
in
Post by Rod Macpherson
the classpath! So why couldn't the ant task it find it? I don't
know.
Post by Rod Macpherson
Interestingly, if I set that same honking 31 jar classpath on my shell
and
Post by Rod Macpherson
then ran ant, then the build gets further, so I know the libs are in
the
Post by Rod Macpherson
right place, but I know this is a bad idea.
Post by Rod Macpherson
I didn't see a binary created after October. I figured a lot of
good stuff must have gone on since then, no? I tried to look again,
but
Post by Rod Macpherson
sourceforge is down. Anywhere else I can find a later binary? I
checked
Post by Rod Macpherson
ibiblio.org/maven, but I don't see it there.
Post by Rod Macpherson
Thanks Again,
Michael Bushe
Bushe Enterprises, Inc.
-----Original Message-----
From: Rod Macpherson [mailto:middlegen-user-
Sent: Tuesday, February 18, 2003 10:37 PM
Subject: RE: [Middlegen-user] Build issue - newbie
When you say "task's classpath...
Yes, I mean the classpath you supply to the middlegen ant task.
do you mean the path that is built by the <path
id="lib.class.path"> tag in the ant script?
Post by Rod Macpherson
Well, "THE ant script" is your ant script. The one you use for
building. Do you have a path element called lib.class.path that you
specify as middlegen's classpath? If so then, yeah, that's the one I
mean.
Post by Rod Macpherson
I have my own ant script. I have not even looked at the demo script in
months.
Post by Rod Macpherson
<path id="classpath">
<pathelement path="${j2ee.jar}"/>
<pathelement path="${database.driver.classpath}"/>
<pathelement path="${jboss.lib}"/>
<fileset dir="${xdoclet.lib}">
<include name="*.jar"/>
</fileset>
... your jars if you need them ...
</path>
Here's a sample usage. ...
<target name="run-middlegen">
<taskdef name="middlegen"
classname="middlegen.MiddlegenTask"
Post by Rod Macpherson
classpathref="classpath"/>
Post by Rod Macpherson
<middlegen
appname="${title}"
prefsdir="${config}"
gui="false"
databaseurl="${database.url}"
datasourceJNDIName="OracleDSX"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
initialContextFactory="nop"
providerURL="nop"
... BLAH BLAH BLAH ...
-----Original Message-----
Sent: Tue 2/18/2003 4:10 PM
Subject: [Middlegen-user] Build issue - newbie
Thanks.
When you say "task's classpath", do you mean the path
that is
Post by Rod Macpherson
built by
Post by Rod Macpherson
the
<path id="lib.class.path"> tag in the ant script?
If not, then please explain - sorry to be pain!
If so, then that's what I'm doing, but something is
wrong.
Post by Rod Macpherson
When I echo
Post by Rod Macpherson
that path I have the whole world in it (I have 31 jars
in
Post by Rod Macpherson
Middlegen\lib,
Post by Rod Macpherson
including all the xdoclet ones). The trouble is, when
it gets
Post by Rod Macpherson
Post by Rod Macpherson
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>
then it acts like xdoclet.modules.ejb.EjbDocletTask
isn't in
Post by Rod Macpherson
the path.
Post by Rod Macpherson
Now I'm no Java dummy, I've been doing it solid since
'95. I
Post by Rod Macpherson
tested
Post by Rod Macpherson
whether that class is in that path and it's there! It's
like
Post by Rod Macpherson
ant isn't
Post by Rod Macpherson
passing the class properly to the task.
Thanks Again!
Michael
-----Original Message-----
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie
I installed j2ee.jar ( http://java.sun.com/downloads/
) and
Post by Rod Macpherson
placed my
Post by Rod Macpherson
oracle driver ( classes12.jar ) in the task's classpath
path.
Post by Rod Macpherson
Also
Post by Rod Macpherson
download xdoclet and put the jar(s) in /xdoclet/lib in
the
Post by Rod Macpherson
task's
Post by Rod Macpherson
classpath. Though jboss-common.jar or weblogic.jar or
your
Post by Rod Macpherson
appservers
Post by Rod Macpherson
core jar in the task's classpath for grins (I think you
need
Post by Rod Macpherson
that.
Post by Rod Macpherson
-----Original Message-----
Sent: Monday, February 17, 2003 8:17 PM
Subject: [Middlegen-user] Build issue - newbie
Howdy,
I'm having trouble building the latest. This
may be
Post by Rod Macpherson
an Ant
Post by Rod Macpherson
problem, as I am fairly inexperienced with Ant, and new
to
Post by Rod Macpherson
Middlegen,
Post by Rod Macpherson
but I figured I'd try here first. I'm using Ant 1.5 on
XP.
Post by Rod Macpherson
In short,
Post by Rod Macpherson
if I let the ant script figure out the classpath, the
build
Post by Rod Macpherson
doesn't
Post by Rod Macpherson
work. However, if I set the same classpath in the
shell and
Post by Rod Macpherson
then run
Post by Rod Macpherson
ant, it works. I do have ANT_HOME set in my
environment.
Post by Rod Macpherson
Post by Rod Macpherson
I pulled Middlegen from the CVS, set my
classpath to
Post by Rod Macpherson
nothing (as
Post by Rod Macpherson
the home page says), then ran ant.
The build told me to run the download-deps
target from
Post by Rod Macpherson
the
Post by Rod Macpherson
samples, which I did (How cool is that! I owe a beer
to
Post by Rod Macpherson
whoever
Post by Rod Macpherson
checked
that in). I copied the files from the samples lib to
the
Post by Rod Macpherson
Middlegen
Post by Rod Macpherson
lib.
(I did have two FileNotFounds - ejb.jar and
jdbc-2.0.jar.
Post by Rod Macpherson
That's not my
Post by Rod Macpherson
problem, but if you know where I should get these, let
me
Post by Rod Macpherson
know. My
Post by Rod Macpherson
guess is Sun's j2ee kit?).
I ran the build again and it failed on
"fail-if-no-
Post by Rod Macpherson
xdoclet-1.2".
Post by Rod Macpherson
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>
The build told me to re-download the libs, but I
knew
Post by Rod Macpherson
it was
Post by Rod Macpherson
<property name="classpath"
refid="classpath"/>
Post by Rod Macpherson
Post by Rod Macpherson
<echo message=" classpath =${ classpath
}"/>
Post by Rod Macpherson
Post by Rod Macpherson
The next build output a huge classpath. I
opened a
Post by Rod Macpherson
new shell,
Post by Rod Macpherson
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy
disassembler that
Post by Rod Macpherson
comes with the JDK. Most folks don't know about it,
but it's
Post by Rod Macpherson
a great
Post by Rod Macpherson
way to solve classpath problems - better than JWhich,
because
Post by Rod Macpherson
of
Post by Rod Macpherson
reasons
below). javap output "Error: No binary file 'Task'"
This
Post by Rod Macpherson
means that
Post by Rod Macpherson
EjbDoclet is on the classpath (otherwise a
ClassNotFound
Post by Rod Macpherson
error would
Post by Rod Macpherson
appear), but, most likely, it's parent class or related
class
Post by Rod Macpherson
could not
Post by Rod Macpherson
be resolved.
So, the remedy is to stick the Ant jar in the
classpath, right?
Post by Rod Macpherson
I'm not sure if this is right, shouldn't it be there
anyway?
Post by Rod Macpherson
Well, to
Post by Rod Macpherson
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>
But this didn't help the build! Using ant
-verbose I
Post by Rod Macpherson
Post by Rod Macpherson
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+
However, I'm sure the classpath had enough info
to
Post by Rod Macpherson
resolve the
Post by Rod Macpherson
class. I proved it by opening another shell, set the
classpath to the
Post by Rod Macpherson
output'ed classpath, and ran javap again. This time it
worked (the
Post by Rod Macpherson
signature for the xdoclet.modules.ejb.EjbDocletTask was
output.
Post by Rod Macpherson
My lame workaround is to set the classpath to
this big
Post by Rod Macpherson
honking
Post by Rod Macpherson
classpath and then run ant. If I do that, it builds
successfully. Can
Post by Rod Macpherson
someone tell me what I'm doing wrong?
I've done a lot of looking around in the Ant
book I
Post by Rod Macpherson
have and on
Post by Rod Macpherson
various lists, but I'm not seeing the issue.
Much Thanks In Advance!
Michael Bushe
Bushe Enterprises, Inc.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Post by Rod Macpherson
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Kuntz, Tim
2003-02-20 21:11:12 UTC
Permalink
Eivind,

Just a note, I pulled the latest from CVS today and the
"download-deps" isn't able to get /maven/ejb/* and /maven/jdbc/* because
they don't appear to exist anymore. So step 3 fails if the needed classes
are not added. No big deal, just not as easy as 1-2-3.

tim

-----Original Message-----
From: Eivind Waaler [mailto:***@tihlde.org]
Sent: Wednesday, February 19, 2003 1:15 AM
To: middlegen-***@lists.sourceforge.net
Subject: RE: [Middlegen-user] Build issue - newbie


Did any of you guys just try what I suggested?

1. Get middlegen from cvs
2. Run 'ant download-deps' from samples dir
3. Run 'ant' from middlegen dir

No messing with the classpath, no copying of files. Make sure you have a
blank classpath before you start.. Also make sure you don't have any
xdoclet stuff in your ant lib dir.

This works for me, with ant 1.5.1 and jdk 1.4.1.

.eivind
Post by Rod Macpherson
Well, putting xdoclet and junit and stuff like that in /ant/lib isn't a
bad idea and it will eliminate any path issue. If you have a -classpath in
ANT_OPTS that will screw you up so don't go there in case you were thinking
about that.
Post by Rod Macpherson
-----Original Message-----
Michael Bushe
Post by Rod Macpherson
Sent: Tue 2/18/2003 8:18 PM
Subject: RE: [Middlegen-user] Build issue - newbie
I AM talking about THE Ant script! :-) Not the one for my project
(I haven't gotten that far yet), I'm talking about the one in CVS I pulled
to build Middlegen itself from the CVS source. This is why I'm surprised it
is not working. I figured pretty much I could run ant and the build.xml for
Middlegen would build Middlegen. But it didn't work because it kept telling
me it couldn't find xdoclet. I modified the build.xml for Middlegen to echo
the classpath it was using to find xdoclet. It was in the classpath! So why
couldn't the ant task it find it? I don't know. Interestingly, if I set
that same honking 31 jar classpath on my shell and then ran ant, then the
build gets further, so I know the libs are in the right place, but I know
this is a bad idea.
Post by Rod Macpherson
I didn't see a binary created after October. I figured a lot of
good stuff must have gone on since then, no? I tried to look again, but
sourceforge is down. Anywhere else I can find a later binary? I checked
ibiblio.org/maven, but I don't see it there.
Post by Rod Macpherson
Thanks Again,
Michael Bushe
Bushe Enterprises, Inc.
-----Original Message-----
From: Rod Macpherson
[mailto:middlegen-user-***@lists.sourceforge.net] On Behalf Of Rod
Macpherson
Post by Rod Macpherson
Sent: Tuesday, February 18, 2003 10:37 PM
Subject: RE: [Middlegen-user] Build issue - newbie
When you say "task's classpath...
Yes, I mean the classpath you supply to the middlegen ant task.
do you mean the path that is built by the <path
id="lib.class.path"> tag in the ant script?
Post by Rod Macpherson
Well, "THE ant script" is your ant script. The one you use for
building. Do you have a path element called lib.class.path that you specify
as middlegen's classpath? If so then, yeah, that's the one I mean. I have my
own ant script. I have not even looked at the demo script in months.
Post by Rod Macpherson
<path id="classpath">
<pathelement path="${j2ee.jar}"/>
<pathelement path="${database.driver.classpath}"/>
<pathelement path="${jboss.lib}"/>
<fileset dir="${xdoclet.lib}">
<include name="*.jar"/>
</fileset>
... your jars if you need them ...
</path>
Here's a sample usage. ...
<target name="run-middlegen">
<taskdef name="middlegen" classname="middlegen.MiddlegenTask"
classpathref="classpath"/>
Post by Rod Macpherson
<middlegen
appname="${title}"
prefsdir="${config}"
gui="false"
databaseurl="${database.url}"
datasourceJNDIName="OracleDSX"
driver="${database.driver}"
username="${database.userid}"
password="${database.password}"
schema="${database.schema}"
initialContextFactory="nop"
providerURL="nop"
... BLAH BLAH BLAH ...
-----Original Message-----
Sent: Tue 2/18/2003 4:10 PM
Subject: [Middlegen-user] Build issue - newbie
Thanks.
When you say "task's classpath", do you mean the path that
is built by
Post by Rod Macpherson
the
<path id="lib.class.path"> tag in the ant script?
If not, then please explain - sorry to be pain!
If so, then that's what I'm doing, but something is wrong.
When I echo
Post by Rod Macpherson
that path I have the whole world in it (I have 31 jars in
Middlegen\lib,
Post by Rod Macpherson
including all the xdoclet ones). The trouble is, when it
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="lib.class.path"/>
then it acts like xdoclet.modules.ejb.EjbDocletTask isn't in
the path.
Post by Rod Macpherson
Now I'm no Java dummy, I've been doing it solid since '95.
I tested
Post by Rod Macpherson
whether that class is in that path and it's there! It's
like ant isn't
Post by Rod Macpherson
passing the class properly to the task.
Thanks Again!
Michael
-----Original Message-----
Sent: Tuesday, February 18, 2003 6:25 PM
Subject: [Middlegen-user] Build issue - newbie
I installed j2ee.jar ( http://java.sun.com/downloads/ )
and placed my
Post by Rod Macpherson
oracle driver ( classes12.jar ) in the task's classpath
path. Also
Post by Rod Macpherson
download xdoclet and put the jar(s) in /xdoclet/lib in the
task's
Post by Rod Macpherson
classpath. Though jboss-common.jar or weblogic.jar or your
appservers
Post by Rod Macpherson
core jar in the task's classpath for grins (I think you
need that.
Post by Rod Macpherson
-----Original Message-----
Sent: Monday, February 17, 2003 8:17 PM
Subject: [Middlegen-user] Build issue - newbie
Howdy,
I'm having trouble building the latest. This may be
an Ant
Post by Rod Macpherson
problem, as I am fairly inexperienced with Ant, and new to
Middlegen,
Post by Rod Macpherson
but I figured I'd try here first. I'm using Ant 1.5 on XP.
In short,
Post by Rod Macpherson
if I let the ant script figure out the classpath, the build
doesn't
Post by Rod Macpherson
work. However, if I set the same classpath in the shell
and then run
Post by Rod Macpherson
ant, it works. I do have ANT_HOME set in my environment.
I pulled Middlegen from the CVS, set my classpath to
nothing (as
Post by Rod Macpherson
the home page says), then ran ant.
The build told me to run the download-deps target
from the
Post by Rod Macpherson
samples, which I did (How cool is that! I owe a beer to
whoever
Post by Rod Macpherson
checked
that in). I copied the files from the samples lib to the
Middlegen
Post by Rod Macpherson
lib.
(I did have two FileNotFounds - ejb.jar and jdbc-2.0.jar.
That's not my
Post by Rod Macpherson
problem, but if you know where I should get these, let me
know. My
Post by Rod Macpherson
guess is Sun's j2ee kit?).
I ran the build again and it failed on
"fail-if-no-xdoclet-1.2".
Post by Rod Macpherson
<available property="xdoclet1.2+"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="classpath"/>
The build told me to re-download the libs, but I
knew it was
Post by Rod Macpherson
<property name="classpath" refid="classpath"/>
<echo message=" classpath =${ classpath }"/>
The next build output a huge classpath. I opened a
new shell,
Post by Rod Macpherson
set the classpath to the output and ran "javap
xdoclet.modules.ejb.EjbDocletTask" (javap is a handy
disassembler that
Post by Rod Macpherson
comes with the JDK. Most folks don't know about it, but
it's a great
Post by Rod Macpherson
way to solve classpath problems - better than JWhich,
because of
Post by Rod Macpherson
reasons
below). javap output "Error: No binary file 'Task'" This
means that
Post by Rod Macpherson
EjbDoclet is on the classpath (otherwise a ClassNotFound
error would
Post by Rod Macpherson
appear), but, most likely, it's parent class or related
class could not
Post by Rod Macpherson
be resolved.
So, the remedy is to stick the Ant jar in the
classpath, right?
Post by Rod Macpherson
I'm not sure if this is right, shouldn't it be there
anyway? Well, to
Post by Rod Macpherson
<property name="antlib.dir"
value="C:\java\jakarta-ant-1.5.1\lib"/>
<path id="classpath">
<fileset dir="${antlib.dir}">
<include name="*.jar"/>
</fileset>
But this didn't help the build! Using ant -verbose
[available] Unable to load class
xdoclet.modules.ejb.EjbDocletTask to set proper
ty xdoclet1.2+
However, I'm sure the classpath had enough info to
resolve the
Post by Rod Macpherson
class. I proved it by opening another shell, set the
classpath to the
Post by Rod Macpherson
output'ed classpath, and ran javap again. This time it
worked (the
Post by Rod Macpherson
signature for the xdoclet.modules.ejb.EjbDocletTask was
output.
Post by Rod Macpherson
My lame workaround is to set the classpath to this
big honking
Post by Rod Macpherson
classpath and then run ant. If I do that, it builds
successfully. Can
Post by Rod Macpherson
someone tell me what I'm doing wrong?
I've done a lot of looking around in the Ant book I
have and on
Post by Rod Macpherson
various lists, but I'm not seeing the issue.
Much Thanks In Advance!
Michael Bushe
Bushe Enterprises, Inc.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge

Loading...