You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ronald Haring <ro...@siennax.com> on 2000/07/13 12:54:21 UTC

Another try, build failed error

Hi,
using windows2000, jdk122 and tree structure
e:\tomcat
    e:\tomcat\jakarta-tomcat, version 3.1
    e:\tomcat\jakarta-ant
    e:\tomcat\jakarta-tools
when I try to build tomcat I get the following error:

E:\tomcat\jakarta-tomcat>build
Buildfile: build.xml
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.
    [Chmod] The src attribute is deprecated. Please use the file attribute.

init:

prepare:
    [Mkdir] Created dir: E:\tomcat\build\tomcat
    [Mkdir] Created dir: E:\tomcat\build\tomcat\classes
    [Mkdir] Created dir: E:\tomcat\build\tomcat\conf
    [Mkdir] Created dir: E:\tomcat\build\tomcat\src
    [Mkdir] Created dir: E:\tomcat\build\tomcat\lib
    [Mkdir] Created dir: E:\tomcat\build\tomcat\logs
    [Mkdir] Created dir: E:\tomcat\build\tomcat\bin
    [Mkdir] Created dir: E:\tomcat\build\tomcat\doc
    [Mkdir] Created dir: E:\tomcat\build\tomcat\webapps
  [Copydir] Copying 9 files to E:\tomcat\build\tomcat\bin
  [Copydir] Copying 14 files to E:\tomcat\build\tomcat\conf
  [Copydir] Copying 25 files to E:\tomcat\build\tomcat\doc
    [Mkdir] Created dir: E:\tomcat\build\tomcat\lib\test
    [Mkdir] Created dir: E:\tomcat\build\tomcat\lib\test\Golden
  [Copydir] Copying 34 files to E:\tomcat\build\tomcat\lib\test\Golden
  [Copydir] Copying 3 files to E:\tomcat\build\tomcat\bin

tomcat:
    [Javac] Compiling 260 source files to E:\tomcat\build\tomcat\classes
    [Javac] Note:
E:\tomcat\jakarta-tomcat\src\share\org\apache\tomcat\util\xml\
XmlMapper.java uses or overrides a deprecated API.  Recompile with
"-deprecation
" for details.
    [Javac] 1 warning
    [Javac] The implicit copying of support files by javac has been
deprecated.
Use the copydir task to copy support files explicitly.
    [Javac] Copying 24 support files to E:\tomcat\build\tomcat\classes
    [Javac] Compiling 82 source files to E:\tomcat\build\tomcat\classes
    [Javac] Note: 5 files use or override a deprecated API.  Recompile with
"-de
precation" for details.
    [Javac] 1 warning
    [Javac] The implicit copying of support files by javac has been
deprecated.
Use the copydir task to copy support files explicitly.
    [Javac] Copying 11 support files to E:\tomcat\build\tomcat\classes

BUILD FAILED

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java, Compiled Code)
        at org.apache.tools.ant.taskdefs.Rmic.shouldCompile(Rmic.java,
Compiled
Code)
        at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java, Compiled
Code)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:708)
        at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Cod
e)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Co
de)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 1 minutes 35 seconds

E:\tomcat\jakarta-tomcat>


Gr
Ronald
--------------------------------------------
Give a man a fish and he will eat for a day.
Teach him how to fish and he will sit in a boat and drink beer all day.



Re: Tomcat - Apache

Posted by Arion Yu <ar...@stt.com.hk>.
Hi!

Change this line:
ApJServMount /examples /root

to:
ApJServMount /examples/servlet /root

then only the URL matches /examples/servlet would be forwarded to Tomcat.

Arion

Ivan Plajh wrote:

> Can someone give me examples how to configure Context in tomcat.conf to
> allow apache serve static files? This example in Minimalistic UG is not
> working...
> I'm using RH Linux 6.2 jdk1.2.2
>
> thanx
> Ivan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org

--
[This email and any files transmitted with it are confidential and may
contain information that is legally privileged. They are intended solely
for the addressee(s). Access to this email by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify the
sender by email immediately; you should not copy or use it for any purpose,
nor disclose its contents to any other person. Thank you.]



Tomcat - Apache

Posted by Ivan Plajh <pi...@abit.hr>.
Can someone give me examples how to configure Context in tomcat.conf to
allow apache serve static files? This example in Minimalistic UG is not
working...
I'm using RH Linux 6.2 jdk1.2.2

thanx
Ivan


Re: Another try, build failed error

Posted by Ronald Haring <ro...@siennax.com>.
Thank you so much, that indeed was the problem.

Gr
Ronald
--------------------------------------------
The Top 50+ Geek T-Shirt Slogans
Hidden DOS secret: add BUGS=OFF to your CONFIG.SYS

----- Original Message -----
From: "Craig R. McClanahan" <Cr...@eng.sun.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, July 13, 2000 7:22 PM
Subject: Re: Another try, build failed error


> It looks like you are trying to build Tomcat 3.1 with a recent version of
Ant,
> which isn't going to work.  You will need the Ant that was released when
Tomcat
> 3.1 was to do this:



Re: Another try, build failed error

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
It looks like you are trying to build Tomcat 3.1 with a recent version of Ant,
which isn't going to work.  You will need the Ant that was released when Tomcat
3.1 was to do this:

    http://jakarta.apache.org/builds/ant/release/v3.1

Craig McClanahan


Ronald Haring wrote:

> Hi,
> using windows2000, jdk122 and tree structure
> e:\tomcat
>     e:\tomcat\jakarta-tomcat, version 3.1
>     e:\tomcat\jakarta-ant
>     e:\tomcat\jakarta-tools
> when I try to build tomcat I get the following error:
>
> E:\tomcat\jakarta-tomcat>build
> Buildfile: build.xml
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>     [Chmod] The src attribute is deprecated. Please use the file attribute.
>
> init:
>
> prepare:
>     [Mkdir] Created dir: E:\tomcat\build\tomcat
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\classes
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\conf
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\src
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\lib
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\logs
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\bin
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\doc
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\webapps
>   [Copydir] Copying 9 files to E:\tomcat\build\tomcat\bin
>   [Copydir] Copying 14 files to E:\tomcat\build\tomcat\conf
>   [Copydir] Copying 25 files to E:\tomcat\build\tomcat\doc
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\lib\test
>     [Mkdir] Created dir: E:\tomcat\build\tomcat\lib\test\Golden
>   [Copydir] Copying 34 files to E:\tomcat\build\tomcat\lib\test\Golden
>   [Copydir] Copying 3 files to E:\tomcat\build\tomcat\bin
>
> tomcat:
>     [Javac] Compiling 260 source files to E:\tomcat\build\tomcat\classes
>     [Javac] Note:
> E:\tomcat\jakarta-tomcat\src\share\org\apache\tomcat\util\xml\
> XmlMapper.java uses or overrides a deprecated API.  Recompile with
> "-deprecation
> " for details.
>     [Javac] 1 warning
>     [Javac] The implicit copying of support files by javac has been
> deprecated.
> Use the copydir task to copy support files explicitly.
>     [Javac] Copying 24 support files to E:\tomcat\build\tomcat\classes
>     [Javac] Compiling 82 source files to E:\tomcat\build\tomcat\classes
>     [Javac] Note: 5 files use or override a deprecated API.  Recompile with
> "-de
> precation" for details.
>     [Javac] 1 warning
>     [Javac] The implicit copying of support files by javac has been
> deprecated.
> Use the copydir task to copy support files explicitly.
>     [Javac] Copying 11 support files to E:\tomcat\build\tomcat\classes
>
> BUILD FAILED
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java, Compiled Code)
>         at org.apache.tools.ant.taskdefs.Rmic.shouldCompile(Rmic.java,
> Compiled
> Code)
>         at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java, Compiled
> Code)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java:708)
>         at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
> Cod
> e)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Co
> de)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:107)
>
> Total time: 1 minutes 35 seconds
>
> E:\tomcat\jakarta-tomcat>
>
> Gr
> Ronald
> --------------------------------------------
> Give a man a fish and he will eat for a day.
> Teach him how to fish and he will sit in a boat and drink beer all day.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org