ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zsolt Koppany <zkopp...@web.de>
Subject Error: Could not create datatype of type: path due to java.lang.NoSuchMethodException
Date Mon, 20 May 2002 12:28:29 GMT
Hi,

I have written a class that uses the API of ant-1.4.1 that I start from 
tomcat-4.0.3. Actualy it works pretty good but when I have a "<path..." 
instruction in the build file I get an exception like below:

Could not create datatype of type: path due to java.lang.NoSuchMethodException

When I start "ant" from a console I don't get this problem. How can I fix the 
problem?


Here is my build file:

<project name="MyProject" default="dist" basedir=".">

    <path id="project.class.path"/>
  <!-- set global properties for this build -->
  <property name="src" value="."/>

  <target name="dist">

    <echo message="${CB_PROJ_ID}"/>
    <echo message="${CB_PROJECT_NAME}"/>
    <echo message="${CB_SRCDIR}"/>
<!--
    <delete file="${CB_SRCDIR}/se/java/utils/CVSData.java"/>
-->

    <sql
           driver="${CB_JDBC_DRIVER}"
           url="${CB_JDBC_URL}"
           userid="${CB_JDBC_USER}"
           password="${CB_JDBC_PASSWORD}">
        <transaction  src="x.sql" />
        <transaction>
            select * from files
        </transaction>
    </sql>

  </target>
</project>


BUILD FAILED /home/zk/tmp/ant/build.xml:3: Could not create datatype of type:
 path due to java.lang.NoSuchMethodE
xception: <init> at
 org.apache.tools.ant.Project.createDataType(Project.java:552) at 
org.apache.tools.ant.ProjectHelper$DataTypeHand
ler.init(ProjectHelper.java:608) at
 
org.apache.tools.ant.ProjectHelper$TargetHandler.startElement(ProjectHelper.java:430) 
at
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
at org.apache.crimson.parser.Parser
2.maybeElement(Parser2.java(Compiled
 Code)) at org.apache.crimson.parser.Parser2.content(Parser2.java(Compiled 
Code)) at
 org.apache.crimson.parser.Parser2.maybeElement(Parser2.java(Compiled Code)) 
at org.apache.crimson.parser.Parser2
.content(Parser2.java(Compiled Code))
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java(Compiled 
Code)) at org.apache.crimson.parser.Pars
er2.parseInternal(Parser2.java:500) at
 org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at 
org.apache.crimson.parser.XMLReaderImpl.parse(XMLRe
aderImpl.java:433) at
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at 
javax.xml.parsers.SAXParser.parse(SAXPa
rser.java:326) at
 org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117) at 
org.apache.tools.ant.ProjectHelper.configure
Project(ProjectHelper.java:85) at
 cv.servlet.build.AntProject.<init>(AntProject.java:243) at 
cv.servlet.build.RunBuild.process(RunBuild.java:92) a
t
 cv.servlet.build.RunBuild.exec(RunBuild.java:72) at 
cv.servlet.build.RunBuild.doGet(RunBuild.java:31) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at 
javax.servlet.http.HttpServlet.service(HttpServl
et.java:853) at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343) at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 
at
 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java(Compiled 
Code)) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) 
at org.apache.catalina.core.Containe
rBase.invoke(ContainerBase.java:943) at
 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012) 
at
 org.apache
~
                                                                                         
     
1,1

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message