You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Holger Wiechert <Ho...@coconet.de> on 2000/08/01 17:06:24 UTC

FW: ant in tomcat3.1 release gives parse exception on sample buil d.xml

Sorry, I forgot the build.xml. I put it at the end.

Holger


-----Ursprüngliche Nachricht-----
Von:	Holger Wiechert 
Gesendet am:	Dienstag, 1. August 2000 16:43
An:	'ant-user@jakarta.apache.org'
Betreff:	ant in tomcat3.1 release gives parse exception on sample
build.xml

Hi,

I'm just trying to get the first steps done in deploying a web app. I
started with the sample delivered with Tomcat 3.1. When running the
build.bat form the dir

<tomcat_home>\doc\appdev\sample


I get the following error message:

---------------------
C:\Programme\tomcat\doc\appdev\sample>build
Buildfile: build.xml
BUILD CONFIG ERROR: Can't open config file: build.xml due to:
org.xml.sax.SAXParseException: com.sun.xml.parser/P-031 <
org.apache.tools.ant.BuildException: Can't open config file: build.xml due
to: org.xml.sax.SAXParseException:
com.sun.xml.parser/P-031 <
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
        at org.apache.tools.ant.Main.runBuild(Main.java:223)
        at org.apache.tools.ant.Main.main(Main.java:191)
---------------------

Can anybody tell me please, what's going wrong?

Thanks in advance, Holger



*********************************************
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" init="init">
    <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}/lib"/>
    <mkdir dir="${javadoc.home}"/>
  </target>


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


  <target name="compile" depends="prepare" init="init">
    <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" init="init">
    <!-- TODO -->
  </target>


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


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


</project>

Re: FW: ant in tomcat3.1 release gives parse exception on sample buil d.xml

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "HW" == Holger Wiechert <Ho...@coconet.de> writes:

 HW> Sorry, I forgot the build.xml.

The first <property is missing the closing />. That's after only quick
glance.

Stefan