tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@dimonieta.udg.es (Raul Perez Justicia)
Subject Re: Running the build script
Date Thu, 15 Jun 2000 20:31:28 GMT
On Thu, Jun 15, 2000 at 03:02:51PM +0200, Erwin Ambrosch wrote:
> Hi All!
> 
> No way for me to run the build script (located int
> /usr/local/tomcat3.1/doc/appdev/sample) OK.
> After invoking the build script I always get the following output.
> 
> #####################################################################
> [erwin@halva 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,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
> ./build: -Dtomcat.home=/usr/local/tomcat3.1: Datei oder Verzeichnis nicht
> gefunden
> 
> [ ..... ]

Seems that you have an error on build.xml file.

> [ .... ] 
>
> ##############
> My build.xml file#
> ####################################################################
> <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"

Ops ! 
That's your error.

This line should be: 

<property name="app.name"       value="myapp"/>


Perhaps you installed tomcat from rpm package?

I think that's an error on this file on rpm package.


-- 
Raul Perez, raul@dimonieta.udg.es
-----------------------------------------------------------------------
pub  1024D/1A30E655 2000-02-19 Raul Perez (RpJ) <raul@dimonieta.udg.es>
   Key fingerprint = B201 E9DF ED7C E044 3C67  8C37 B59C 78A9 1A30 E655

Mime
View raw message