ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From teoman teoman <teoman...@yahoo.com>
Subject little help please...Exception:Class org.apache.tools.ant.UnknownElement doesn't support the "name" attribute
Date Thu, 18 Sep 2003 15:55:40 GMT
hi all,
 
I am calling an ant build file from a java class...first I am loading the build file into
my project object:
           
           Project oProject  = new AntTarget();
           File    buildFile = new File(file); 
           oProject.setUserProperty("ant.file",buildFile.getAbsolutePath());
           ProjectHelper.configureProject(oProject,buildFile);
           oProject.executeTarget(target);//executes the specified target
 
and I am getting exception like that:
Sep 18, 2003 10:47:12 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/59  config=/export/home/amustaco/jakarta-tomcat-4.1.18/conf/jk2.properties
runTarget Exception:Class org.apache.tools.ant.UnknownElement doesn't support the "name" attribute.
Class org.apache.tools.ant.UnknownElement doesn't support the "name" attribute.
 at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:422)
 at org.apache.tools.ant.ProjectHelper.configure(ProjectHelper.java:306)
 at org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.init(ProjectHelperImpl.java:812)
 at org.apache.tools.ant.helper.ProjectHelperImpl$ProjectHandler.handleProperty(ProjectHelperImpl.java:566)
 at org.apache.tools.ant.helper.ProjectHelperImpl$ProjectHandler.startElement(ProjectHelperImpl.java:510)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:419)
 at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
 at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
 at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
 at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)
 at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
 at anttarget.AntTarget.runTarget(AntTarget.java:33)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:372)
 at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:292)
 at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:276)
 at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
 at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
 at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
 at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
 at org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
 at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:335)
 at javax.servlet.http.HttpServlet.service(HttpServlet.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:260)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
 at java.lang.Thread.run(Thread.java:534)

 
thank you so much in advance..
teoman


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message