You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Installe <pi...@yahoo.com> on 2000/06/06 15:06:53 UTC

BUILD CONFIG ERROR

I am trying to configure a standalone tomcat server on a win98 (fr) with jdk-1.2.2-w
The server is ok for servlet and jsp :-)
but I can't setup correctly the developping part :-(
N.B. I have add the lib directory already.

This is the message I got running the build.bat

---------------
Buildfile: build.xml
BUILD CONFIG ERROR: Can't open config file: build.xml due to: org.xml.sax.SAXPar
seException: com.sun.xml.parser/P-031 <
org.apache.tools.ant.BuildException: Can't open config file: build.xml due to: o
rg.xml.sax.SAXParseException: com.sun.xml.parser/P-031 <
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:93)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
-----------------

Any pointer ?

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

Re: BUILD CONFIG ERROR

Posted by Yun Sang Jung <na...@channeli.net>.
Use below build.xml, this file is a lastes version of build.xml from jakarata-tomcat
Follow this link: http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/appdev/sample/build.xml?rev=1.5&content-type=text/vnd.viewcvs-markup

I got below file above url. 

build.xml---------------------------

<project name="Hello, World" default="compile" basedir=".">

<!-- Simple "Hello, World" project to provide a concrete example of
     the recommendations in the Application Developer's Guide.

     NOTE:  Before using this file as is, you should review the
     values for the properties that are defined below.
     In particular, it is assumed that you wish to install this
     application under context path "/myapp" in the Tomcat installation
     defined by your TOMCAT_HOME environment variable.
-->

  <property name="app.name"       value="myapp"/>
  <property name="deploy.home"    value="${tomcat.home}/webapps/${app.name}"/>
  <property name="dist.home"      value="${deploy.home}"/>
  <property name="dist.src"       value="${app.name}.jar"/>
  <property name="dist.war"       value="${app.name}.war"/>
  <property name="javadoc.home"   value="${deploy.home}/javadoc"/>


  <target name="prepare">
    <mkdir dir="${deploy.home}"/>
    <copydir src="web" dest="${deploy.home}"/>
    <mkdir dir="${deploy.home}/WEB-INF"/>
    <copyfile src="etc/web.xml" dest="${deploy.home}/WEB-INF/web.xml"/>
    <mkdir dir="${deploy.home}/WEB-INF/classes"/>
    <mkdir dir="${deploy.home}/WEB-INF/lib"/>
    <copydir src="lib" dest="${deploy.home}/WEB-INF/lib"/>
    <mkdir dir="${javadoc.home}"/>
  </target>


  <target name="clean">
    <deltree dir="${deploy.home}"/>
  </target>


  <target name="compile" depends="prepare">
    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
           classpath="${deploy.home}/WEB-INF/classes"
           debug="on" optimize="off" deprecation="off"/>
  </target>


  <target name="javadoc" depends="prepare">
    <!-- TODO -->
  </target>


  <target name="all" depends="clean,prepare,compile,javadoc"/>


  <target name="dist" depends="prepare,compile">
    <jar jarfile="${dist.home}/${dist.src}"
         basedir="." includes="*"/>
    <jar jarfile="${dist.home}/${dist.war}"
         basedir="${deploy.home}" includes="*"/>
  </target>


</project>

Re: BUILD CONFIG ERROR

Posted by Benedicte Luet <lu...@db.erau.edu>.
Patrick,

Did you create or customize build.xml for you development directory structure? There is
an example of such a file in the (TOMCAT_HOME)/doc/appdev directory (build.xml.txt).

Benedicte

---------------------------
Benedicte Luet
Information Technology
Embry-Riddle Aeronautical University


Patrick Installe wrote:

> I am trying to configure a standalone tomcat server on a win98 (fr) with jdk-1.2.2-w
> The server is ok for servlet and jsp :-)
> but I can't setup correctly the developping part :-(
> N.B. I have add the lib directory already.
>
> This is the message I got running the build.bat
>
> ---------------
> Buildfile: build.xml
> BUILD CONFIG ERROR: Can't open config file: build.xml due to: org.xml.sax.SAXPar
> seException: com.sun.xml.parser/P-031 <
> org.apache.tools.ant.BuildException: Can't open config file: build.xml due to: o
> rg.xml.sax.SAXParseException: com.sun.xml.parser/P-031 <
>         at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
> a:93)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
> -----------------
>
> Any pointer ?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos -- now, 100 FREE prints!
> http://photos.yahoo.com
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org