You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Christopher Cain <cc...@mhsoftware.com> on 2001/08/10 19:37:15 UTC

Problem (or is it?) building new TC4 beta

Hopefully this isn't one of those brain-dead things like last night :-)

I'm seeing the following during the build process (NT4 w/ Sun 1.3.1):

...

build-static:
  [copy] Copying 9 files to
C:\jakarta\jakarta-tomcat-4.0\catalina\build\bin
  [copy] Copying 5 files to
C:\jakarta\jakarta-tomcat-4.0\catalina\build\conf
  [copy] Could not find file
C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4dist\lib\servlet.jar
to copy
  [copy] Could not find file
C:\jakarta\jakarta-tomcat-4.0\javajndi1.2.1\lib\jndi.jar to copy
  [copy] Could not find file
C:\jakarta\jakarta-tomcat-4.0\javajaxp-1.1\crimson.jar to copy

BUILD FAILED

C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:100
C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-regexpbin not found.

---------------------

It looks like maybe Ant isn't escaping the backslashes in
build.properties, and is in fact treating them AS escape characters. The
relevant parts of my file look like this:

base.path=c:\java

jaxp.home=${base.path}\jaxp-1.1
jaxp.parser.jar=crimson.jar

... (and so on, since all Sun stuff on this box is under c:\java\*)

Now I have all of the jakarta stuff in c:\jakarta\*, so the last three
entries look like this:

regexp.home=c:\jakarta\jakarta-regexp\bin
servletapi.home=c:\jakarta\jakarta-servletapi-4\dist
using.jdk.1.3=true

Do I not have my build.properties set up correctly for Windoze, or is
this a known problem? If so, what's the workaround?

Thanks ...

- Christopher

Re: Problem (or is it?) building new TC4 beta

Posted by Christopher Cain <cc...@mhsoftware.com>.
P.S.  Using double backslashes yeilds:

BUILD FAILED

C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:64 Directory
C:\jakarta\jakarta-tomcat-4.0\catalina\build\server\lib creation was not
successful for an unknown reason

Christopher Cain wrote:
> 
> Hopefully this isn't one of those brain-dead things like last night :-)
> 
> I'm seeing the following during the build process (NT4 w/ Sun 1.3.1):
> 
> ...
> 
> build-static:
>   [copy] Copying 9 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\bin
>   [copy] Copying 5 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\conf
>   [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4dist\lib\servlet.jar
> to copy
>   [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\javajndi1.2.1\lib\jndi.jar to copy
>   [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\javajaxp-1.1\crimson.jar to copy
> 
> BUILD FAILED
> 
> C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:100
> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-regexpbin not found.
> 
> ---------------------
> 
> It looks like maybe Ant isn't escaping the backslashes in
> build.properties, and is in fact treating them AS escape characters. The
> relevant parts of my file look like this:
> 
> base.path=c:\java
> 
> jaxp.home=${base.path}\jaxp-1.1
> jaxp.parser.jar=crimson.jar
> 
> ... (and so on, since all Sun stuff on this box is under c:\java\*)
> 
> Now I have all of the jakarta stuff in c:\jakarta\*, so the last three
> entries look like this:
> 
> regexp.home=c:\jakarta\jakarta-regexp\bin
> servletapi.home=c:\jakarta\jakarta-servletapi-4\dist
> using.jdk.1.3=true
> 
> Do I not have my build.properties set up correctly for Windoze, or is
> this a known problem? If so, what's the workaround?
> 
> Thanks ...
> 
> - Christopher

Re: Problem (or is it?) building new TC4 beta

Posted by Remy Maucherat <re...@betaversion.org>.
Quoting Christopher Cain <cc...@mhsoftware.com>:

> "Craig R. McClanahan" wrote:
> > 
> > Mine is similar to Christopher's -- however, you *do* have to escape
> > backslashes:
> > 
> >   base.path=c:\\java
> 
> Hmmm ... I originally tried that. I got:
> 
> BUILD FAILED
> 
> C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:64 Directory
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\server\lib creation was
> not
> successful for an unknown reason
> 
> > or, you can use unescaped forward slashes like Amy did.
> 
> That worked like a champ =)
> 
> We should probably stick a one-liner comment in the
> build.properties.sample file with a heads-up.
> 
> Amy's soultion works nicely, but it does mean that all of the
> supporting
> libraries would have to be on the same logical drive as the build.

Yes. I tried it (using forward slashes without drive letter, to avoid the usual 
path-related Windows problems) to see what it would do, and I was surprised 
that it actually worked.

So I kept on using it, although it's a bit less flexible.

> I
> don't personally care, since we don't run too much on Win, but I don't
> know if you guys do. If so, I could try to track down the
> aforementioned
> "creation was unsuccess " failure and try to find out why escaping
> didn't work for me. This box is administered by someone who knows
> Windows from a hole in the ground, so it's probably not anything as
> obvious as my goofy home-problem last night ;-)
> 
> Thanks to Rob, Pier (who thought I had a typo :-P ), Amy, Craig. I love
> you guys like my dysfunctional extended family =)

Remy

Re: Problem (or is it?) building new TC4 beta

Posted by Christopher Cain <cc...@mhsoftware.com>.
"Craig R. McClanahan" wrote:
> 
> Mine is similar to Christopher's -- however, you *do* have to escape
> backslashes:
> 
>   base.path=c:\\java

Hmmm ... I originally tried that. I got:

BUILD FAILED

C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:64 Directory
C:\jakarta\jakarta-tomcat-4.0\catalina\build\server\lib creation was not
successful for an unknown reason

> or, you can use unescaped forward slashes like Amy did.

That worked like a champ =)

We should probably stick a one-liner comment in the
build.properties.sample file with a heads-up.

Amy's soultion works nicely, but it does mean that all of the supporting
libraries would have to be on the same logical drive as the build. I
don't personally care, since we don't run too much on Win, but I don't
know if you guys do. If so, I could try to track down the aforementioned
"creation was unsuccess " failure and try to find out why escaping
didn't work for me. This box is administered by someone who knows
Windows from a hole in the ground, so it's probably not anything as
obvious as my goofy home-problem last night ;-)

Thanks to Rob, Pier (who thought I had a typo :-P ), Amy, Craig. I love
you guys like my dysfunctional extended family =)

- Christopher

Re: Problem (or is it?) building new TC4 beta

Posted by "Craig R. McClanahan" <cr...@apache.org>.
Mine is similar to Christopher's -- however, you *do* have to escape
backslashes:

  base.path=c:\\java

or, you can use unescaped forward slashes like Amy did.

Craig


On Fri, 10 Aug 2001, Amy Roh wrote:

> The below build.properties works fine for me on W2K without any problem.
> Hope this helps.
> 
> Amy
> 
> ******************************************************
> base.path=/jakarta
> 
> jaxp.home=${base.path}/jaxp/jaxp-1.1ea2
> jaxp.parser.jar=crimson.jar
> 
> catalina.jaxp.home=${jaxp.home}
> catalina.jaxp.parser.jar=${jaxp.parser.jar}
> 
> jasper.jaxp.home=${jaxp.home}
> jasper.jaxp.parser.jar=${jaxp.parser.jar}
> 
> jmx.home=${base.path}/jmx
> 
> jndi.home=${base.path}/jndi_1.2.1
> 
> jsse.home=${base.path}/jsse1.0.2
> 
> junit.jar=${base.path}/junit3.7/junit.jar
> 
> regexp.home=${base.path}/jakarta-regexp-1.2
> 
> servletapi.home=${base.path}/jakarta-servletapi-4/dist
> 
> using.jdk.1.3=true
> 
> ----- Original Message -----
> From: "Christopher Cain" <cc...@mhsoftware.com>
> To: <to...@jakarta.apache.org>
> Sent: Friday, August 10, 2001 10:37 AM
> Subject: Problem (or is it?) building new TC4 beta
> 
> 
> > Hopefully this isn't one of those brain-dead things like last night :-)
> >
> > I'm seeing the following during the build process (NT4 w/ Sun 1.3.1):
> >
> > ...
> >
> > build-static:
> >   [copy] Copying 9 files to
> > C:\jakarta\jakarta-tomcat-4.0\catalina\build\bin
> >   [copy] Copying 5 files to
> > C:\jakarta\jakarta-tomcat-4.0\catalina\build\conf
> >   [copy] Could not find file
> >
> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4dist\lib\servlet.ja
> r
> > to copy
> >   [copy] Could not find file
> > C:\jakarta\jakarta-tomcat-4.0\javajndi1.2.1\lib\jndi.jar to copy
> >   [copy] Could not find file
> > C:\jakarta\jakarta-tomcat-4.0\javajaxp-1.1\crimson.jar to copy
> >
> > BUILD FAILED
> >
> > C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:100
> > C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-regexpbin not found.
> >
> > ---------------------
> >
> > It looks like maybe Ant isn't escaping the backslashes in
> > build.properties, and is in fact treating them AS escape characters. The
> > relevant parts of my file look like this:
> >
> > base.path=c:\java
> >
> > jaxp.home=${base.path}\jaxp-1.1
> > jaxp.parser.jar=crimson.jar
> >
> > ... (and so on, since all Sun stuff on this box is under c:\java\*)
> >
> > Now I have all of the jakarta stuff in c:\jakarta\*, so the last three
> > entries look like this:
> >
> > regexp.home=c:\jakarta\jakarta-regexp\bin
> > servletapi.home=c:\jakarta\jakarta-servletapi-4\dist
> > using.jdk.1.3=true
> >
> > Do I not have my build.properties set up correctly for Windoze, or is
> > this a known problem? If so, what's the workaround?
> >
> > Thanks ...
> >
> > - Christopher
> >
> 
> 
> 


Re: Problem (or is it?) building new TC4 beta

Posted by Amy Roh <am...@apache.org>.
The below build.properties works fine for me on W2K without any problem.
Hope this helps.

Amy

******************************************************
base.path=/jakarta

jaxp.home=${base.path}/jaxp/jaxp-1.1ea2
jaxp.parser.jar=crimson.jar

catalina.jaxp.home=${jaxp.home}
catalina.jaxp.parser.jar=${jaxp.parser.jar}

jasper.jaxp.home=${jaxp.home}
jasper.jaxp.parser.jar=${jaxp.parser.jar}

jmx.home=${base.path}/jmx

jndi.home=${base.path}/jndi_1.2.1

jsse.home=${base.path}/jsse1.0.2

junit.jar=${base.path}/junit3.7/junit.jar

regexp.home=${base.path}/jakarta-regexp-1.2

servletapi.home=${base.path}/jakarta-servletapi-4/dist

using.jdk.1.3=true

----- Original Message -----
From: "Christopher Cain" <cc...@mhsoftware.com>
To: <to...@jakarta.apache.org>
Sent: Friday, August 10, 2001 10:37 AM
Subject: Problem (or is it?) building new TC4 beta


> Hopefully this isn't one of those brain-dead things like last night :-)
>
> I'm seeing the following during the build process (NT4 w/ Sun 1.3.1):
>
> ...
>
> build-static:
>   [copy] Copying 9 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\bin
>   [copy] Copying 5 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\conf
>   [copy] Could not find file
>
C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4dist\lib\servlet.ja
r
> to copy
>   [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\javajndi1.2.1\lib\jndi.jar to copy
>   [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\javajaxp-1.1\crimson.jar to copy
>
> BUILD FAILED
>
> C:\jakarta\jakarta-tomcat-4.0\catalina\build.xml:100
> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-regexpbin not found.
>
> ---------------------
>
> It looks like maybe Ant isn't escaping the backslashes in
> build.properties, and is in fact treating them AS escape characters. The
> relevant parts of my file look like this:
>
> base.path=c:\java
>
> jaxp.home=${base.path}\jaxp-1.1
> jaxp.parser.jar=crimson.jar
>
> ... (and so on, since all Sun stuff on this box is under c:\java\*)
>
> Now I have all of the jakarta stuff in c:\jakarta\*, so the last three
> entries look like this:
>
> regexp.home=c:\jakarta\jakarta-regexp\bin
> servletapi.home=c:\jakarta\jakarta-servletapi-4\dist
> using.jdk.1.3=true
>
> Do I not have my build.properties set up correctly for Windoze, or is
> this a known problem? If so, what's the workaround?
>
> Thanks ...
>
> - Christopher
>



Re: Problem (or is it?) building new TC4 beta

Posted by "Pier P. Fumagalli" <pi...@betaversion.org>.
Christopher Cain at ccain@mhsoftware.com wrote:
> 
> Hopefully this isn't one of those brain-dead things like last night :-)

Hmmm... It is :)

> I'm seeing the following during the build process (NT4 w/ Sun 1.3.1):
> 
> ...
> 
> build-static:
> [copy] Copying 9 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\bin
> [copy] Copying 5 files to
> C:\jakarta\jakarta-tomcat-4.0\catalina\build\conf
> [copy] Could not find file
> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4dist\lib\servlet.jar
                                                        ^^^^^^^

Shouldn't it be 

> C:\jakarta\jakarta-tomcat-4.0\jakartajakarta-servletapi-4\dist\lib\servlet.jar
                                                        ^^^^^^^

And so on? I bet you forgot some trailing "\" in some entries of your
build.properties file :)

    Pier