You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Derek Lac <dl...@konaware.com> on 2006/06/16 22:47:21 UTC

using svn to checkout the code; compiling tomcat

Hi,
 I've downloaded various versions of the 5.5 sources, and they all failed
with different reason. 



When I use svn to checkout the code, I get the following error:

 

svn: Can't check path
'tomcat\watchdog\branches\other\tc3.x\Apache_Jakarta\src\c

lients\org\apache\jcheck\jsp\client\.:': The filename, directory name, or
volume

 label syntax is incorrect.

When I got the build.xml containing the svn to download the sources from the
source control, it immediately failed with the following error:
checkout:

checkout:
     [echo] If the checkout fails, - todo -
     [exec] Error validating server certificate for '
<https://svn.apache.org:443> https://svn.apache.org:443'
:
     [exec]  - The certificate is not issued by a trusted authority. Use the
     [exec]    fingerprint to validate the certificate manually!
     [exec] Certificate information:
     [exec]  - Hostname: svn.apache.org
     [exec]  - Valid: from Jan 26 14:18:55 2005 GMT until Jan 26 14:18:55
2007 G
MT
     [exec]  - Issuer:  <http://www.starfieldtech.com/repository>
http://www.starfieldtech.com/repository, Starfield Techno
logies, Inc., Scottsdale, Arizona, US
     [exec]  - Fingerprint:
19:51:6b:9b:03:78:2b:4b:0f:02:77:ed:2a:85:ef:93:ed:b
6:ff:95
     [exec] (R)eject, accept (t)emporarily or accept (p)ermanently? svn:
PROPFIN
D request failed on '/repos/asf/tomcat/build/tc5.5.x'
     [exec] svn: PROPFIND of '/repos/asf/tomcat/build/tc5.5.x': Server
certifica
te verification failed: issuer is not trusted ( <https://svn.apache.org>
https://svn.apache.org)

     [exec] Fetching external item into 'C:\dev\tom3\tomcat-dev\build'




When I get the jakarta-tomcat-5.0.28 (assumed to be the stable vesion), I
get the following errors:
Buildfile: build.xml

check.source:

check.source.depends:

get.source:

get.source.depends:

checkout.depends:
      [cvs] cvs [checkout aborted]: connect to
cvs.apache.org(140.211.166.113):2
401 failed: Connection reset by peer


Finally when I've downloaded the beta sources, I've gotten a bit more
further. After compiling for 10 minutes, I get the following error:

build-catalina-core:
    [javac] Compiling 318 source files to
C:\dev\tom3\apache-tomcat-5.5.17-src\b
uild\build\classes
    [javac]
C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
g\apache\catalina\ant\BaseRedirectorHelperTask.java:29: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: package org.apache.tools.ant.types
    [javac] import org.apache.tools.ant.types.RedirectorElement;
    [javac]                                   ^
    [javac]
C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
g\apache\catalina\ant\BaseRedirectorHelperTask.java:60: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
    [javac]     protected RedirectorElement redirectorElement = null;
    [javac]               ^
    [javac]
C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
g\apache\catalina\ant\BaseRedirectorHelperTask.java:216: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
    [javac]     public void addConfiguredRedirector(RedirectorElement
redirector
Element) {
    [javac]                                         ^
    [javac]
C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
g\apache\catalina\ant\BaseRedirectorHelperTask.java:208: cannot find symbol
    [javac] symbol  : method setCreateEmptyFiles(boolean)
    [javac] location: class org.apache.tools.ant.taskdefs.Redirector
    [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 errors







My objective is to compile Tomcat and get it running, so I can add a new
debug statement to solve the authentication problem for my work. Any help
out be appreciated. Thanks.

-Derek

 


RE: using svn to checkout the code; compiling tomcat

Posted by Derek Lac <dl...@konaware.com>.
I've upgraded my ant from 1.6.1 to 1.6.5. That fixed it. Thanks to all!


-Derek

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
> My ant version is 1.6.1. My java version is 1.5.0.
>
>
>
> -Derek
>
>
> C:\dev\svn\tc5.5.x\build>java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>
> C:\dev\svn\tc5.5.x\build>ant -version
> Apache Ant version 1.6.1 compiled on February 12 2004
> C:\dev\svn\tc5.5.x\build>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: using svn to checkout the code; compiling tomcat

Posted by Yoav Shapira <yo...@apache.org>.
Hi,
Then I just can't reproduce what you're seeing.  Clean builds from
scratch work for me all the time, using JDK 1.5 and 1.4, Ant version
1.6.5, both Windows XP and FreeBSD.

Yoav

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
> My ant version is 1.6.1. My java version is 1.5.0.
>
>
>
> -Derek
>
>
> C:\dev\svn\tc5.5.x\build>java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>
> C:\dev\svn\tc5.5.x\build>ant -version
> Apache Ant version 1.6.1 compiled on February 12 2004
> C:\dev\svn\tc5.5.x\build>
>
>
>
> -----Original Message-----
> From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
> Shapira
> Sent: Friday, June 16, 2006 3:32 PM
> To: Tomcat Developers List
> Subject: Re: using svn to checkout the code; compiling tomcat
>
> Hola,
> What Ant version are you using?  Tomcat requires Ant v1.5 or later.
>
> Yoav
>
> On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
> >
> > After using svn to get tc5.5.x, using 'ant download', and running 'ant', I
> > get the following compile error. This is the same compile error I get when
> I
> > attempt to download the beta sources and compiling directly.
> >
> > -Derek
> >
> >
> >     [mkdir] Created dir: C:\dev\svn\tc5.5.x\build\build\server\classes
> >
> > build-catalina-core:
> >     [javac] Compiling 318 source files to
> > C:\dev\svn\tc5.5.x\build\build\classes
> >
> >     [javac]
> > C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> > ant\BaseRedirectorHelperTask.java:29: cannot find symbol
> >     [javac] symbol  : class RedirectorElement
> >     [javac] location: package org.apache.tools.ant.types
> >     [javac] import org.apache.tools.ant.types.RedirectorElement;
> >     [javac]                                   ^
> >     [javac]
> > C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> > ant\BaseRedirectorHelperTask.java:60: cannot find symbol
> >     [javac] symbol  : class RedirectorElement
> >     [javac] location: class
> org.apache.catalina.ant.BaseRedirectorHelperTask
> >     [javac]     protected RedirectorElement redirectorElement = null;
> >     [javac]               ^
> >     [javac]
> > C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> > ant\BaseRedirectorHelperTask.java:216: cannot find symbol
> >     [javac] symbol  : class RedirectorElement
> >     [javac] location: class
> org.apache.catalina.ant.BaseRedirectorHelperTask
> >     [javac]     public void addConfiguredRedirector(RedirectorElement
> > redirector
> > Element) {
> >     [javac]                                         ^
> >     [javac]
> > C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> > ant\BaseRedirectorHelperTask.java:208: cannot find symbol
> >     [javac] symbol  : method setCreateEmptyFiles(boolean)
> >     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
> >     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
> >     [javac]                   ^
> >     [javac] Note: Some input files use or override a deprecated API.
> >     [javac] Note: Recompile with -Xlint:deprecation for details.
> >     [javac] 4 errors
> >
> >
> >
> >
> > -----Original Message-----
> > From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of
> Yoav
> > Shapira
> > Sent: Friday, June 16, 2006 3:06 PM
> > To: Tomcat Developers List
> > Subject: Re: using svn to checkout the code; compiling tomcat
> >
> > Hi,
> > Slight scramble of your message:
> >
> > >Obviously, I need to get check the jsp code to build as well. Checking on
> > > the web, I realize I also need the following modules:
> > >
> > >
> > >     * /build/tc5.5.x
> > >     * /container/tc5.5.x
> > >     * /connectors/trunk
> > >     * /jasper/tc5.5.x
> > >     * /servletapi/servlet2.4-jsp2.0-tc5.x
> >
> > These modules are checked out automatically (they're SVN externals)
> > when you check out current/tc5.5.x.  If your SVN client doesn't follow
> > externals, well, get a decent SVN client ;)
> >
> > The "ant download" command I mentioned to do before "ant" itself will
> > download the dependencies and build those required for the main build,
> > including the servlet and JSP APIs.
> >
> > Yoav
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: dev-help@tomcat.apache.org
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: dev-help@tomcat.apache.org
> >
> >
>
>
> --
> Yoav Shapira
> Nimalex LLC
> 1 Mifflin Place, Suite 310
> Cambridge, MA, USA
> yoavs@computer.org / www.yoavshapira.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: using svn to checkout the code; compiling tomcat

Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
use the latest version of ant, then run this script, and you probably 
forgot to run "ant download" first

#!/bin/sh
#############################################################################
# This is a quickie helper script to  easily build tomcat 5 from source.
# This will create a subdirectory called tc5build and build
# tomcat 5 into it.
#
# Here are the requirements to get this to run
# 1) Set JAVA_HOME to a 1.4 compliant JDK
#     ex: /opt/java1.4
# 2) Set ANT_HOME to your ant installation (You need ant 1.6 or better)
#     ex: /opt/jakarta/jakarta-ant-1.6
# 3) Make sure svn is in your path
# 4) Make sure NetComponents.jar is installed in $ANT_HOME/lib
#    which can be found at http://www.savarese.org/oro/index.html
#    [Not sure if this step is still required for Ant to download things.]
#############################################################################
export JAVA_HOME=/app/java1.5
export ANT_HOME=/app/ant
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH

#############################################################################
# Some help functions
#############################################################################
TC_ECHO() {
  echo INFO: `date '+%H:%M:%S'` - $1
}

TC_DOH() {
  echo ERROR: `date '+%H:%M:%S'` - $1
}


#############################################################################
# cygwin - The UI of unix and the stability of windows.
#############################################################################
cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac


#############################################################################
# Check for JAVA_HOME
#############################################################################
if [ "Z" = "Z$JAVA_HOME" ] ;
then
   TC_DOH "Where is JAVA_HOME!"
   exit 1
fi



#############################################################################
# Check for ANT_HOME
#############################################################################
if [ "Z" = "Z$ANT_HOME" ] ;
then
  TC_DOH "Where is ANT_HOME! Please set it."
  exit 1
fi



############################################
# It seems like the environment is set
############################################
TC_ECHO  "Using ANT_HOME=$ANT_HOME"
TC_ECHO  "Using JAVA_HOME=$JAVA_HOME"
TC_ECHO  "Putting everything in `pwd`/tc5build"
TC_ECHO  "Downloaded dependencies go into `pwd`/tc5build/includes"


mkdir -p tc5build/includes
if [ 0 != $? ];
then
  TC_DOH "Making subdir tc5build/includes failed!"
  exit 1
fi

BASE_PATH=`pwd`/tc5build/includes
if $cygwin; then
  BASE_PATH=`cygpath --path --mixed "$BASE_PATH"`
fi


cd tc5build
TC_ECHO "Getting https://svn.apache.org/repos/asf/tomcat/current/tc5.5.x/"


svn co https://svn.apache.org/repos/asf/tomcat/current/tc5.5.x/
if [ 0 != $? ];
then
  TC_DOH "Checkout failed. Hopefully there is a reason above."
  exit 1
fi

cd tc5.5.x/build
echo "base.path=$BASE_PATH" > build.properties

############################################
# Now do the build
############################################
TC_ECHO "Now performing the build"
$ANT_HOME/bin/ant clean
$ANT_HOME/bin/ant download deploy

TC_ECHO "All done!"




Derek Lac wrote:
> My ant version is 1.6.1. My java version is 1.5.0.
>
>
>
> -Derek
>
>
> C:\dev\svn\tc5.5.x\build>java -version
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
>
> C:\dev\svn\tc5.5.x\build>ant -version
> Apache Ant version 1.6.1 compiled on February 12 2004
> C:\dev\svn\tc5.5.x\build>
>
>
>
> -----Original Message-----
> From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
> Shapira
> Sent: Friday, June 16, 2006 3:32 PM
> To: Tomcat Developers List
> Subject: Re: using svn to checkout the code; compiling tomcat
>
> Hola,
> What Ant version are you using?  Tomcat requires Ant v1.5 or later.
>
> Yoav
>
> On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
>   
>> After using svn to get tc5.5.x, using 'ant download', and running 'ant', I
>> get the following compile error. This is the same compile error I get when
>>     
> I
>   
>> attempt to download the beta sources and compiling directly.
>>
>> -Derek
>>
>>
>>     [mkdir] Created dir: C:\dev\svn\tc5.5.x\build\build\server\classes
>>
>> build-catalina-core:
>>     [javac] Compiling 318 source files to
>> C:\dev\svn\tc5.5.x\build\build\classes
>>
>>     [javac]
>> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
>> ant\BaseRedirectorHelperTask.java:29: cannot find symbol
>>     [javac] symbol  : class RedirectorElement
>>     [javac] location: package org.apache.tools.ant.types
>>     [javac] import org.apache.tools.ant.types.RedirectorElement;
>>     [javac]                                   ^
>>     [javac]
>> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
>> ant\BaseRedirectorHelperTask.java:60: cannot find symbol
>>     [javac] symbol  : class RedirectorElement
>>     [javac] location: class
>>     
> org.apache.catalina.ant.BaseRedirectorHelperTask
>   
>>     [javac]     protected RedirectorElement redirectorElement = null;
>>     [javac]               ^
>>     [javac]
>> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
>> ant\BaseRedirectorHelperTask.java:216: cannot find symbol
>>     [javac] symbol  : class RedirectorElement
>>     [javac] location: class
>>     
> org.apache.catalina.ant.BaseRedirectorHelperTask
>   
>>     [javac]     public void addConfiguredRedirector(RedirectorElement
>> redirector
>> Element) {
>>     [javac]                                         ^
>>     [javac]
>> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
>> ant\BaseRedirectorHelperTask.java:208: cannot find symbol
>>     [javac] symbol  : method setCreateEmptyFiles(boolean)
>>     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
>>     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
>>     [javac]                   ^
>>     [javac] Note: Some input files use or override a deprecated API.
>>     [javac] Note: Recompile with -Xlint:deprecation for details.
>>     [javac] 4 errors
>>
>>
>>
>>
>> -----Original Message-----
>> From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of
>>     
> Yoav
>   
>> Shapira
>> Sent: Friday, June 16, 2006 3:06 PM
>> To: Tomcat Developers List
>> Subject: Re: using svn to checkout the code; compiling tomcat
>>
>> Hi,
>> Slight scramble of your message:
>>
>>     
>>> Obviously, I need to get check the jsp code to build as well. Checking on
>>> the web, I realize I also need the following modules:
>>>
>>>
>>>     * /build/tc5.5.x
>>>     * /container/tc5.5.x
>>>     * /connectors/trunk
>>>     * /jasper/tc5.5.x
>>>     * /servletapi/servlet2.4-jsp2.0-tc5.x
>>>       
>> These modules are checked out automatically (they're SVN externals)
>> when you check out current/tc5.5.x.  If your SVN client doesn't follow
>> externals, well, get a decent SVN client ;)
>>
>> The "ant download" command I mentioned to do before "ant" itself will
>> download the dependencies and build those required for the main build,
>> including the servlet and JSP APIs.
>>
>> Yoav
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>>     
>
>
>   


-- 


Filip Hanik

RE: using svn to checkout the code; compiling tomcat

Posted by Derek Lac <dl...@konaware.com>.
My ant version is 1.6.1. My java version is 1.5.0.



-Derek


C:\dev\svn\tc5.5.x\build>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

C:\dev\svn\tc5.5.x\build>ant -version
Apache Ant version 1.6.1 compiled on February 12 2004
C:\dev\svn\tc5.5.x\build>



-----Original Message-----
From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
Shapira
Sent: Friday, June 16, 2006 3:32 PM
To: Tomcat Developers List
Subject: Re: using svn to checkout the code; compiling tomcat

Hola,
What Ant version are you using?  Tomcat requires Ant v1.5 or later.

Yoav

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
>
> After using svn to get tc5.5.x, using 'ant download', and running 'ant', I
> get the following compile error. This is the same compile error I get when
I
> attempt to download the beta sources and compiling directly.
>
> -Derek
>
>
>     [mkdir] Created dir: C:\dev\svn\tc5.5.x\build\build\server\classes
>
> build-catalina-core:
>     [javac] Compiling 318 source files to
> C:\dev\svn\tc5.5.x\build\build\classes
>
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:29: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: package org.apache.tools.ant.types
>     [javac] import org.apache.tools.ant.types.RedirectorElement;
>     [javac]                                   ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:60: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     protected RedirectorElement redirectorElement = null;
>     [javac]               ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:216: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     public void addConfiguredRedirector(RedirectorElement
> redirector
> Element) {
>     [javac]                                         ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:208: cannot find symbol
>     [javac] symbol  : method setCreateEmptyFiles(boolean)
>     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
>     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
>     [javac]                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 4 errors
>
>
>
>
> -----Original Message-----
> From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of
Yoav
> Shapira
> Sent: Friday, June 16, 2006 3:06 PM
> To: Tomcat Developers List
> Subject: Re: using svn to checkout the code; compiling tomcat
>
> Hi,
> Slight scramble of your message:
>
> >Obviously, I need to get check the jsp code to build as well. Checking on
> > the web, I realize I also need the following modules:
> >
> >
> >     * /build/tc5.5.x
> >     * /container/tc5.5.x
> >     * /connectors/trunk
> >     * /jasper/tc5.5.x
> >     * /servletapi/servlet2.4-jsp2.0-tc5.x
>
> These modules are checked out automatically (they're SVN externals)
> when you check out current/tc5.5.x.  If your SVN client doesn't follow
> externals, well, get a decent SVN client ;)
>
> The "ant download" command I mentioned to do before "ant" itself will
> download the dependencies and build those required for the main build,
> including the servlet and JSP APIs.
>
> Yoav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: using svn to checkout the code; compiling tomcat

Posted by Yoav Shapira <yo...@apache.org>.
Hola,
What Ant version are you using?  Tomcat requires Ant v1.5 or later.

Yoav

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
>
> After using svn to get tc5.5.x, using 'ant download', and running 'ant', I
> get the following compile error. This is the same compile error I get when I
> attempt to download the beta sources and compiling directly.
>
> -Derek
>
>
>     [mkdir] Created dir: C:\dev\svn\tc5.5.x\build\build\server\classes
>
> build-catalina-core:
>     [javac] Compiling 318 source files to
> C:\dev\svn\tc5.5.x\build\build\classes
>
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:29: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: package org.apache.tools.ant.types
>     [javac] import org.apache.tools.ant.types.RedirectorElement;
>     [javac]                                   ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:60: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     protected RedirectorElement redirectorElement = null;
>     [javac]               ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:216: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     public void addConfiguredRedirector(RedirectorElement
> redirector
> Element) {
>     [javac]                                         ^
>     [javac]
> C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
> ant\BaseRedirectorHelperTask.java:208: cannot find symbol
>     [javac] symbol  : method setCreateEmptyFiles(boolean)
>     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
>     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
>     [javac]                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 4 errors
>
>
>
>
> -----Original Message-----
> From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
> Shapira
> Sent: Friday, June 16, 2006 3:06 PM
> To: Tomcat Developers List
> Subject: Re: using svn to checkout the code; compiling tomcat
>
> Hi,
> Slight scramble of your message:
>
> >Obviously, I need to get check the jsp code to build as well. Checking on
> > the web, I realize I also need the following modules:
> >
> >
> >     * /build/tc5.5.x
> >     * /container/tc5.5.x
> >     * /connectors/trunk
> >     * /jasper/tc5.5.x
> >     * /servletapi/servlet2.4-jsp2.0-tc5.x
>
> These modules are checked out automatically (they're SVN externals)
> when you check out current/tc5.5.x.  If your SVN client doesn't follow
> externals, well, get a decent SVN client ;)
>
> The "ant download" command I mentioned to do before "ant" itself will
> download the dependencies and build those required for the main build,
> including the servlet and JSP APIs.
>
> Yoav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


RE: using svn to checkout the code; compiling tomcat

Posted by Derek Lac <dl...@konaware.com>.
After using svn to get tc5.5.x, using 'ant download', and running 'ant', I
get the following compile error. This is the same compile error I get when I
attempt to download the beta sources and compiling directly.

-Derek


    [mkdir] Created dir: C:\dev\svn\tc5.5.x\build\build\server\classes

build-catalina-core:
    [javac] Compiling 318 source files to
C:\dev\svn\tc5.5.x\build\build\classes

    [javac]
C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
ant\BaseRedirectorHelperTask.java:29: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: package org.apache.tools.ant.types
    [javac] import org.apache.tools.ant.types.RedirectorElement;
    [javac]                                   ^
    [javac]
C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
ant\BaseRedirectorHelperTask.java:60: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
    [javac]     protected RedirectorElement redirectorElement = null;
    [javac]               ^
    [javac]
C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
ant\BaseRedirectorHelperTask.java:216: cannot find symbol
    [javac] symbol  : class RedirectorElement
    [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
    [javac]     public void addConfiguredRedirector(RedirectorElement
redirector
Element) {
    [javac]                                         ^
    [javac]
C:\dev\svn\tc5.5.x\container\catalina\src\share\org\apache\catalina\
ant\BaseRedirectorHelperTask.java:208: cannot find symbol
    [javac] symbol  : method setCreateEmptyFiles(boolean)
    [javac] location: class org.apache.tools.ant.taskdefs.Redirector
    [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
    [javac]                   ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 4 errors




-----Original Message-----
From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
Shapira
Sent: Friday, June 16, 2006 3:06 PM
To: Tomcat Developers List
Subject: Re: using svn to checkout the code; compiling tomcat

Hi,
Slight scramble of your message:

>Obviously, I need to get check the jsp code to build as well. Checking on
> the web, I realize I also need the following modules:
>
>
>     * /build/tc5.5.x
>     * /container/tc5.5.x
>     * /connectors/trunk
>     * /jasper/tc5.5.x
>     * /servletapi/servlet2.4-jsp2.0-tc5.x

These modules are checked out automatically (they're SVN externals)
when you check out current/tc5.5.x.  If your SVN client doesn't follow
externals, well, get a decent SVN client ;)

The "ant download" command I mentioned to do before "ant" itself will
download the dependencies and build those required for the main build,
including the servlet and JSP APIs.

Yoav

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: using svn to checkout the code; compiling tomcat

Posted by Yoav Shapira <yo...@apache.org>.
Hi,
Slight scramble of your message:

>Obviously, I need to get check the jsp code to build as well. Checking on
> the web, I realize I also need the following modules:
>
>
>     * /build/tc5.5.x
>     * /container/tc5.5.x
>     * /connectors/trunk
>     * /jasper/tc5.5.x
>     * /servletapi/servlet2.4-jsp2.0-tc5.x

These modules are checked out automatically (they're SVN externals)
when you check out current/tc5.5.x.  If your SVN client doesn't follow
externals, well, get a decent SVN client ;)

The "ant download" command I mentioned to do before "ant" itself will
download the dependencies and build those required for the main build,
including the servlet and JSP APIs.

Yoav

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


RE: using svn to checkout the code; compiling tomcat

Posted by Derek Lac <dl...@konaware.com>.
 Sorry for being a newcomer and spaming the list with newbie question,
but...

I've used svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
tomcat.
Edit the build.properties to point to c:\dev\svn
When I compile tomcat/build by running 'ant', I get the following error:


BUILD FAILED
C:\dev\svn\tc5.5.x\build\build.xml:146: Warning: Could not find file
C:\dev\svn\
java\jsp-api-2.0\lib\jsp-api.jar to copy.

Obviously, I need to get check the jsp code to build as well. Checking on
the web, I realize I also need the following modules:


    * /build/tc5.5.x
    * /container/tc5.5.x
    * /connectors/trunk
    * /jasper/tc5.5.x
    * /servletapi/servlet2.4-jsp2.0-tc5.x


Question: Since I edit my base.path to be c:/dev/svn/java and my tomcat
directory is c:/dev/svn/tomcat. How do I check out the other modules to
complete my tomcat build?

Thanks.
-Derek Lac



-----Original Message-----
From: yoavshapira@gmail.com [mailto:yoavshapira@gmail.com] On Behalf Of Yoav
Shapira
Sent: Friday, June 16, 2006 1:58 PM
To: Tomcat Developers List
Subject: Re: using svn to checkout the code; compiling tomcat

Hi,
I haven't tried to build 4.x or 5.0 in a while, but 5.5 works fine.  I
just did a clean build from scratch, no problems.  Here's how:

svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x tomcat
cd tomcat/build
// customize your build.properties if/as needed
ant download
ant

Yoav

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
> Hi,
>  I've downloaded various versions of the 5.5 sources, and they all failed
> with different reason.
>
>
>
> When I use svn to checkout the code, I get the following error:
>
>
>
> svn: Can't check path
> 'tomcat\watchdog\branches\other\tc3.x\Apache_Jakarta\src\c
>
> lients\org\apache\jcheck\jsp\client\.:': The filename, directory name, or
> volume
>
>  label syntax is incorrect.
>
> When I got the build.xml containing the svn to download the sources from
the
> source control, it immediately failed with the following error:
> checkout:
>
> checkout:
>      [echo] If the checkout fails, - todo -
>      [exec] Error validating server certificate for '
> <https://svn.apache.org:443> https://svn.apache.org:443'
> :
>      [exec]  - The certificate is not issued by a trusted authority. Use
the
>      [exec]    fingerprint to validate the certificate manually!
>      [exec] Certificate information:
>      [exec]  - Hostname: svn.apache.org
>      [exec]  - Valid: from Jan 26 14:18:55 2005 GMT until Jan 26 14:18:55
> 2007 G
> MT
>      [exec]  - Issuer:  <http://www.starfieldtech.com/repository>
> http://www.starfieldtech.com/repository, Starfield Techno
> logies, Inc., Scottsdale, Arizona, US
>      [exec]  - Fingerprint:
> 19:51:6b:9b:03:78:2b:4b:0f:02:77:ed:2a:85:ef:93:ed:b
> 6:ff:95
>      [exec] (R)eject, accept (t)emporarily or accept (p)ermanently? svn:
> PROPFIN
> D request failed on '/repos/asf/tomcat/build/tc5.5.x'
>      [exec] svn: PROPFIND of '/repos/asf/tomcat/build/tc5.5.x': Server
> certifica
> te verification failed: issuer is not trusted ( <https://svn.apache.org>
> https://svn.apache.org)
>
>      [exec] Fetching external item into 'C:\dev\tom3\tomcat-dev\build'
>
>
>
>
> When I get the jakarta-tomcat-5.0.28 (assumed to be the stable vesion), I
> get the following errors:
> Buildfile: build.xml
>
> check.source:
>
> check.source.depends:
>
> get.source:
>
> get.source.depends:
>
> checkout.depends:
>       [cvs] cvs [checkout aborted]: connect to
> cvs.apache.org(140.211.166.113):2
> 401 failed: Connection reset by peer
>
>
> Finally when I've downloaded the beta sources, I've gotten a bit more
> further. After compiling for 10 minutes, I get the following error:
>
> build-catalina-core:
>     [javac] Compiling 318 source files to
> C:\dev\tom3\apache-tomcat-5.5.17-src\b
> uild\build\classes
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:29: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: package org.apache.tools.ant.types
>     [javac] import org.apache.tools.ant.types.RedirectorElement;
>     [javac]                                   ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:60: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     protected RedirectorElement redirectorElement = null;
>     [javac]               ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:216: cannot find
symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     public void addConfiguredRedirector(RedirectorElement
> redirector
> Element) {
>     [javac]                                         ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:208: cannot find
symbol
>     [javac] symbol  : method setCreateEmptyFiles(boolean)
>     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
>     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
>     [javac]                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 4 errors
>
>
>
>
>
>
>
> My objective is to compile Tomcat and get it running, so I can add a new
> debug statement to solve the authentication problem for my work. Any help
> out be appreciated. Thanks.
>
> -Derek
>
>
>
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: using svn to checkout the code; compiling tomcat

Posted by Yoav Shapira <yo...@apache.org>.
Hi,
I haven't tried to build 4.x or 5.0 in a while, but 5.5 works fine.  I
just did a clean build from scratch, no problems.  Here's how:

svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x tomcat
cd tomcat/build
// customize your build.properties if/as needed
ant download
ant

Yoav

On 6/16/06, Derek Lac <dl...@konaware.com> wrote:
> Hi,
>  I've downloaded various versions of the 5.5 sources, and they all failed
> with different reason.
>
>
>
> When I use svn to checkout the code, I get the following error:
>
>
>
> svn: Can't check path
> 'tomcat\watchdog\branches\other\tc3.x\Apache_Jakarta\src\c
>
> lients\org\apache\jcheck\jsp\client\.:': The filename, directory name, or
> volume
>
>  label syntax is incorrect.
>
> When I got the build.xml containing the svn to download the sources from the
> source control, it immediately failed with the following error:
> checkout:
>
> checkout:
>      [echo] If the checkout fails, - todo -
>      [exec] Error validating server certificate for '
> <https://svn.apache.org:443> https://svn.apache.org:443'
> :
>      [exec]  - The certificate is not issued by a trusted authority. Use the
>      [exec]    fingerprint to validate the certificate manually!
>      [exec] Certificate information:
>      [exec]  - Hostname: svn.apache.org
>      [exec]  - Valid: from Jan 26 14:18:55 2005 GMT until Jan 26 14:18:55
> 2007 G
> MT
>      [exec]  - Issuer:  <http://www.starfieldtech.com/repository>
> http://www.starfieldtech.com/repository, Starfield Techno
> logies, Inc., Scottsdale, Arizona, US
>      [exec]  - Fingerprint:
> 19:51:6b:9b:03:78:2b:4b:0f:02:77:ed:2a:85:ef:93:ed:b
> 6:ff:95
>      [exec] (R)eject, accept (t)emporarily or accept (p)ermanently? svn:
> PROPFIN
> D request failed on '/repos/asf/tomcat/build/tc5.5.x'
>      [exec] svn: PROPFIND of '/repos/asf/tomcat/build/tc5.5.x': Server
> certifica
> te verification failed: issuer is not trusted ( <https://svn.apache.org>
> https://svn.apache.org)
>
>      [exec] Fetching external item into 'C:\dev\tom3\tomcat-dev\build'
>
>
>
>
> When I get the jakarta-tomcat-5.0.28 (assumed to be the stable vesion), I
> get the following errors:
> Buildfile: build.xml
>
> check.source:
>
> check.source.depends:
>
> get.source:
>
> get.source.depends:
>
> checkout.depends:
>       [cvs] cvs [checkout aborted]: connect to
> cvs.apache.org(140.211.166.113):2
> 401 failed: Connection reset by peer
>
>
> Finally when I've downloaded the beta sources, I've gotten a bit more
> further. After compiling for 10 minutes, I get the following error:
>
> build-catalina-core:
>     [javac] Compiling 318 source files to
> C:\dev\tom3\apache-tomcat-5.5.17-src\b
> uild\build\classes
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:29: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: package org.apache.tools.ant.types
>     [javac] import org.apache.tools.ant.types.RedirectorElement;
>     [javac]                                   ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:60: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     protected RedirectorElement redirectorElement = null;
>     [javac]               ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:216: cannot find symbol
>     [javac] symbol  : class RedirectorElement
>     [javac] location: class org.apache.catalina.ant.BaseRedirectorHelperTask
>     [javac]     public void addConfiguredRedirector(RedirectorElement
> redirector
> Element) {
>     [javac]                                         ^
>     [javac]
> C:\dev\tom3\apache-tomcat-5.5.17-src\container\catalina\src\share\or
> g\apache\catalina\ant\BaseRedirectorHelperTask.java:208: cannot find symbol
>     [javac] symbol  : method setCreateEmptyFiles(boolean)
>     [javac] location: class org.apache.tools.ant.taskdefs.Redirector
>     [javac]         redirector.setCreateEmptyFiles(createEmptyFiles);
>     [javac]                   ^
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] 4 errors
>
>
>
>
>
>
>
> My objective is to compile Tomcat and get it running, so I can add a new
> debug statement to solve the authentication problem for my work. Any help
> out be appreciated. Thanks.
>
> -Derek
>
>
>
>
>


-- 
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org