Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Eclipse, JWS Tutorial, and Ant
Eclipse, JWS Tutorial, and Ant [message #20284] Thu, 22 April 2004 23:21 Go to next message
Eclipse UserFriend
Originally posted by: frankmans.hotmail.com

I am running through the java web services tutorial, using eclipse, but my
build file from chapter 2 fails with the following error:

taskdef class org.apache.catalina.ant.ListTask cannot be found

I have traced the task definitions to the
\jwstutorial13\examples\common\targets.xml file, but I cannot figure out
why this and other classes used by the task definitions are not found.

I have copyied the catalina-ant.jar to the ant lib directory.
I have added the same catalina-ant.jar to the ANT runtime classpath.
However, I still get the error.

I have searched everywhere but cannot find a solution to this problem. Any
direction would be appreciated.
Re: Eclipse, JWS Tutorial, and Ant [message #20295 is a reply to message #20284] Fri, 23 April 2004 10:19 Go to previous messageGo to next message
Eclipse UserFriend
You add catalina-ant in eclipse ant preferences (preferences - ant -
runtime)

regards
James Frankman wrote:

> I am running through the java web services tutorial, using eclipse, but my
> build file from chapter 2 fails with the following error:
>
> taskdef class org.apache.catalina.ant.ListTask cannot be found
>
> I have traced the task definitions to the
> \jwstutorial13\examples\common\targets.xml file, but I cannot figure out
> why this and other classes used by the task definitions are not found.
>
> I have copyied the catalina-ant.jar to the ant lib directory.
> I have added the same catalina-ant.jar to the ANT runtime classpath.
> However, I still get the error.
>
> I have searched everywhere but cannot find a solution to this problem. Any
> direction would be appreciated.
Re: Eclipse, JWS Tutorial, and Ant [message #20305 is a reply to message #20295] Fri, 23 April 2004 11:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: frankmans.hotmail.com

Thanks for the response, I am at wits end.

I stated that I already had added the catalin-ant.jar:

"I have added the same catalina-ant.jar to the ANT runtime classpath."

Is it possible I did it incorrectly? Here is what I did:

Window->Preferences->Ant->Runtime. I added the jar to ant_Home in the
classpath tab. Is this correct? Any other ideas?

snpe wrote:

> You add catalina-ant in eclipse ant preferences (preferences - ant -
> runtime)

> regards
> James Frankman wrote:

> > I am running through the java web services tutorial, using eclipse, but my
> > build file from chapter 2 fails with the following error:
> >
> > taskdef class org.apache.catalina.ant.ListTask cannot be found
> >
> > I have traced the task definitions to the
> > jwstutorial13examplescommontargets.xml file, but I cannot figure out
> > why this and other classes used by the task definitions are not found.
> >
> > I have copyied the catalina-ant.jar to the ant lib directory.
> > I have added the same catalina-ant.jar to the ANT runtime classpath.
> > However, I still get the error.
> >
> > I have searched everywhere but cannot find a solution to this problem. Any
> > direction would be appreciated.
Re: Eclipse, JWS Tutorial, and Ant [message #20314 is a reply to message #20305] Fri, 23 April 2004 16:07 Go to previous messageGo to next message
Eclipse UserFriend
You check classpath tab for ant-run ant - You must have add task entry for
this libraries

regards
James Frankman wrote:

> Thanks for the response, I am at wits end.
>
> I stated that I already had added the catalin-ant.jar:
>
> "I have added the same catalina-ant.jar to the ANT runtime classpath."
>
> Is it possible I did it incorrectly? Here is what I did:
>
> Window->Preferences->Ant->Runtime. I added the jar to ant_Home in the
> classpath tab. Is this correct? Any other ideas?
>
> snpe wrote:
>
>> You add catalina-ant in eclipse ant preferences (preferences - ant -
>> runtime)
>
>> regards
>> James Frankman wrote:
>
>> > I am running through the java web services tutorial, using eclipse, but
>> > my build file from chapter 2 fails with the following error:
>> >
>> > taskdef class org.apache.catalina.ant.ListTask cannot be found
>> >
>> > I have traced the task definitions to the
>> > jwstutorial13examplescommontargets.xml file, but I cannot figure out
>> > why this and other classes used by the task definitions are not found.
>> >
>> > I have copyied the catalina-ant.jar to the ant lib directory.
>> > I have added the same catalina-ant.jar to the ANT runtime classpath.
>> > However, I still get the error.
>> >
>> > I have searched everywhere but cannot find a solution to this problem.
>> > Any direction would be appreciated.
Re: Eclipse, JWS Tutorial, and Ant [message #20350 is a reply to message #20314] Mon, 26 April 2004 16:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: frankmans.hotmail.com

OK,
I tried your suggestions, and I still cannot get the warnings to
disappear. Out of desperation, I have simply tried running the ant build
which fails of course. However, I am thinking that whatever is caused my
build to fail is also related to why I get the warnings.

When I run the ANT build via command line, it works fine. When I run the
ant build from eclipse, it compiles, but at the point it is creating
directories, it treats the properties in my build.properties files like
literal strings rather than property values. For instance the script
actually creates the following directory:

jwstutorial13\examples\gs\${tutorial.install}

Any idea what would cause ANT to treat a property as an actual literal
value?

In order to solve this I changed the following in my build properties:
buildold=${tutorial.install}/examples/${example}/build

to :
build=build

When I did this, the directories were created correctly, but I still have
the warnings in eclipse. It looks like perhaps my project configuration
might be an issue. Is this possible.



snpe wrote:

> You check classpath tab for ant-run ant - You must have add task entry for
> this libraries

> regards
> James Frankman wrote:

> > Thanks for the response, I am at wits end.
> >
> > I stated that I already had added the catalin-ant.jar:
> >
> > "I have added the same catalina-ant.jar to the ANT runtime classpath."
> >
> > Is it possible I did it incorrectly? Here is what I did:
> >
> > Window->Preferences->Ant->Runtime. I added the jar to ant_Home in the
> > classpath tab. Is this correct? Any other ideas?
> >
> > snpe wrote:
> >
> >> You add catalina-ant in eclipse ant preferences (preferences - ant -
> >> runtime)
> >
> >> regards
> >> James Frankman wrote:
> >
> >> > I am running through the java web services tutorial, using eclipse, but
> >> > my build file from chapter 2 fails with the following error:
> >> >
> >> > taskdef class org.apache.catalina.ant.ListTask cannot be found
> >> >
> >> > I have traced the task definitions to the
> >> > jwstutorial13examplescommontargets.xml file, but I cannot figure out
> >> > why this and other classes used by the task definitions are not found.
> >> >
> >> > I have copyied the catalina-ant.jar to the ant lib directory.
> >> > I have added the same catalina-ant.jar to the ANT runtime classpath.
> >> > However, I still get the error.
> >> >
> >> > I have searched everywhere but cannot find a solution to this problem.
> >> > Any direction would be appreciated.
Re: Eclipse, JWS Tutorial, and Ant [message #20370 is a reply to message #20284] Mon, 26 April 2004 19:00 Go to previous messageGo to next message
Eclipse UserFriend
James:

There are a few things you can do to track this problem down. As snpe
has suggestion, you'll want to look at your Ant Properties for your
build.xml file. You can find this by using the context menu in the Ant view.

In 3.0M8 this is the Run Ant... menu choice. I think in earlier version
this is just properties. You can also get to the Run Ant... by right
click on the build.xml file in you Package Explorer.

What you make sure is that the classpath includes your new task. You can
find this in the Classpath tab. The should be under you Additional Tasks
& Support, but I think it will still work if they are under ANT_HOME.

You can also check your properties in the Properties tab.

One thing to keep in mind is that Eclipse uses it own version Ant,
plugins\org.apache.ant_1.6.1 in 3.0M8, unless you changes this. There is
really no reason to changes this in 3.0, so the important point is that
changes you make in your Ant directory will have not affect unless it is
one Eclipse is looking at.

You can change this by going to Window | Preferences | Ant | Runtime.
Then click on Ant Home...

If you still find that something isn't working, turn on Ant's debugging
messages. Add -Debug in the Arguments field in your Ant Configuration.
You get to your Ant configuration by select selecting Run Ant... | Main.

James Frankman wrote:

> I am running through the java web services tutorial, using eclipse, but my
> build file from chapter 2 fails with the following error:
>
> taskdef class org.apache.catalina.ant.ListTask cannot be found
>
> I have traced the task definitions to the
> \jwstutorial13\examples\common\targets.xml file, but I cannot figure out
> why this and other classes used by the task definitions are not found.
>
> I have copyied the catalina-ant.jar to the ant lib directory.
> I have added the same catalina-ant.jar to the ANT runtime classpath.
> However, I still get the error.
>
> I have searched everywhere but cannot find a solution to this problem. Any
> direction would be appreciated.
>
Re: Eclipse, JWS Tutorial, and Ant [message #20399 is a reply to message #20350] Tue, 27 April 2004 00:37 Go to previous message
Eclipse UserFriend
I don't know - I suggest MyEclipse (www.myeclipseide.com)

regards
James Frankman wrote:

> OK,
> I tried your suggestions, and I still cannot get the warnings to
> disappear. Out of desperation, I have simply tried running the ant build
> which fails of course. However, I am thinking that whatever is caused my
> build to fail is also related to why I get the warnings.
>
> When I run the ANT build via command line, it works fine. When I run the
> ant build from eclipse, it compiles, but at the point it is creating
> directories, it treats the properties in my build.properties files like
> literal strings rather than property values. For instance the script
> actually creates the following directory:
>
> jwstutorial13\examples\gs\${tutorial.install}
>
> Any idea what would cause ANT to treat a property as an actual literal
> value?
>
> In order to solve this I changed the following in my build properties:
> buildold=${tutorial.install}/examples/${example}/build
>
> to :
> build=build
>
> When I did this, the directories were created correctly, but I still have
> the warnings in eclipse. It looks like perhaps my project configuration
> might be an issue. Is this possible.
>
>
>
> snpe wrote:
>
>> You check classpath tab for ant-run ant - You must have add task entry
>> for this libraries
>
>> regards
>> James Frankman wrote:
>
>> > Thanks for the response, I am at wits end.
>> >
>> > I stated that I already had added the catalin-ant.jar:
>> >
>> > "I have added the same catalina-ant.jar to the ANT runtime classpath."
>> >
>> > Is it possible I did it incorrectly? Here is what I did:
>> >
>> > Window->Preferences->Ant->Runtime. I added the jar to ant_Home in the
>> > classpath tab. Is this correct? Any other ideas?
>> >
>> > snpe wrote:
>> >
>> >> You add catalina-ant in eclipse ant preferences (preferences - ant -
>> >> runtime)
>> >
>> >> regards
>> >> James Frankman wrote:
>> >
>> >> > I am running through the java web services tutorial, using eclipse,
>> >> > but my build file from chapter 2 fails with the following error:
>> >> >
>> >> > taskdef class org.apache.catalina.ant.ListTask cannot be found
>> >> >
>> >> > I have traced the task definitions to the
>> >> > jwstutorial13examplescommontargets.xml file, but I cannot figure out
>> >> > why this and other classes used by the task definitions are not
>> >> > found.
>> >> >
>> >> > I have copyied the catalina-ant.jar to the ant lib directory.
>> >> > I have added the same catalina-ant.jar to the ANT runtime classpath.
>> >> > However, I still get the error.
>> >> >
>> >> > I have searched everywhere but cannot find a solution to this
>> >> > problem. Any direction would be appreciated.
Previous Topic:Problems debugging servlets
Next Topic:eclipse Board Meeting, April 15
Goto Forum:
  


Current Time: Mon Jun 02 17:31:00 EDT 2025

Powered by FUDForum. Page generated in 0.04950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top