ant gets ClassNotFoundException

Bug #231454 reported by Rick Coupland
4
Affects Status Importance Assigned to Milestone
ant (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: ant

When executing a mapper task with type="regexp", ant gets a ClassNotFoundException attempting to load class
org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher. I am using Kubuntu 8.04 and and java 1.5.0.15 and ant version 1.7.0-3.
The follow error message is displayed by ant:

/b2/eldo/javalina/jv/build.xml:85: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpMatcher

I downloaded built and installed the source package for ant and did not get the error. It seems to be only in the binary package.

The problem appears to be that RegexpMatcherFactory is attempting to return an instance of Jdk14RegexpMatcher even though
that class is not even in the jar file.

Tags: ant regexp
Revision history for this message
RdeWit (rdewit) wrote :

Hi Rick,

Couldn't it be that you did not install ant-optional? That package has a regexp matcher in it (ant-apache-regexp).

Cheers, Roald

Matthias Klose (doko)
Changed in ant:
status: New → Incomplete
Revision history for this message
gasdia73 (gasdia73) wrote :

yes, by installing ant-optional the error disappears.
Thanx!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.