You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by hwachung feng <hc...@yahoo.com> on 2010/03/05 03:47:18 UTC

Tomcat 5.5.x build broken?

Hi,

   I am trying to build Tomcat 5.5 following the instructions on the page on 
http://tomcat.apache.org/tomcat-5.5-doc/building.html

  I am running into problems with the main build.xml that is trying to check out Tomcat source from the svn url

http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x

which does not exist anymore.

after changing it to http://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk (or to a specific tag such as 5.5.26, for example) it still runs into other problems further down the road. Apparently some of the dependent components also changed its URLs where the build downloads from. So in general the build is broken.

Is there another main build.xml somewhere else that will lead to a much smoother build for this? Thanks.


      


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


Re: Tomcat 5.5.x build broken?

Posted by hwachung feng <hc...@yahoo.com>.
thanks Mark that does it

I did google it before but didn't find that thread about using java 5 only for building Tomcat 5 -- I was searching for Tomcat 5.5 build problems but wasn't specific about the error messages so that was probably why it didn't find it.



----- Original Message ----
From: Mark Thomas <ma...@apache.org>
To: Tomcat Developers List <de...@tomcat.apache.org>
Sent: Fri, March 5, 2010 8:43:41 AM
Subject: Re: Tomcat 5.5.x build broken?

On 05/03/2010 16:37, hwachung feng wrote:
> did the following (on top of checkout)
> 
> cd build
> ant download
> 
> and it choked when it tries to compile dbcp-1.2.2 as shown in the build output below:

Did you read the bit about not trying to compile with Java 6?

Mark



---------------------------------------------------------------------
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: Tomcat 5.5.x build broken?

Posted by Mark Thomas <ma...@apache.org>.
On 05/03/2010 16:37, hwachung feng wrote:
> did the following (on top of checkout)
> 
> cd build
> ant download
> 
> and it choked when it tries to compile dbcp-1.2.2 as shown in the build output below:

Did you read the bit about not trying to compile with Java 6?

Mark



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


Re: Tomcat 5.5.x build broken?

Posted by hwachung feng <hc...@yahoo.com>.
did the following (on top of checkout)

cd build
ant download

and it choked when it tries to compile dbcp-1.2.2 as shown in the build output below:


downloadgz:
      [get] Getting: http://archive.apache.org/dist/commons/dbcp/source/commons-
dbcp-1.2.2-src.tar.gz
      [get] To: C:\usr\share\java\file.tar.gz
   [gunzip] Expanding C:\usr\share\java\file.tar.gz to C:\usr\share\java\file.ta
r
    [untar] Expanding: C:\usr\share\java\file.tar into C:\usr\share\java
   [delete] Deleting: C:\usr\share\java\file.tar
   [delete] Deleting: C:\usr\share\java\file.tar.gz

build-tomcat-dbcp:
    [mkdir] Created dir: C:\usr\share\java\tomcat-deps\dbcp

-build-tomcat-dbcp:
     [copy] Copying 67 files to C:\usr\share\java\tomcat-deps\dbcp
    [mkdir] Created dir: C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\
tomcat\dbcp
     [move] Moving 63 files to C:\usr\share\java\tomcat-deps\dbcp\src\java\org\a
pache\tomcat\dbcp
    [mkdir] Created dir: C:\usr\share\java\tomcat-deps\dbcp\classes
    [javac] C:\work\tomcatbuild\build\build.xml:786: warning: 'includeantruntime
' was not set, defaulting to build.sysclasspath=last; set to false for repeatabl
e builds
    [javac] Compiling 63 source files to C:\usr\share\java\tomcat-deps\dbcp\clas
ses
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\BasicDataSource.java:44: org.apache.tomcat.dbcp.dbcp.BasicDataSource is not
abstract and does not override abstract method isWrapperFor(java.lang.Class) in
java.sql.Wrapper
    [javac] public class BasicDataSource implements DataSource {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingStatement.java:46: org.apache.tomcat.dbcp.dbcp.DelegatingStatement
 is not abstract and does not override abstract method isPoolable() in java.sql.
Statement
    [javac] public class DelegatingStatement extends AbandonedTrace implements S
tatement {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingStatement.java:131: isClosed() in org.apache.tomcat.dbcp.dbcp.Dele
gatingStatement cannot implement isClosed() in java.sql.Statement; attempting to
 assign weaker access privileges; was public
    [javac]     protected boolean isClosed() {
    [javac]                       ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingPreparedStatement.java:50: org.apache.tomcat.dbcp.dbcp.DelegatingP
reparedStatement is not abstract and does not override abstract method setNClob(
int,java.io.Reader) in java.sql.PreparedStatement
    [javac] public class DelegatingPreparedStatement extends DelegatingStatement

    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingCallableStatement.java:53: org.apache.tomcat.dbcp.dbcp.DelegatingC
allableStatement is not abstract and does not override abstract method setNClob(
java.lang.String,java.io.Reader) in java.sql.CallableStatement
    [javac] public class DelegatingCallableStatement extends DelegatingPreparedS
tatement
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingConnection.java:51: org.apache.tomcat.dbcp.dbcp.DelegatingConnecti
on is not abstract and does not override abstract method createStruct(java.lang.
String,java.lang.Object[]) in java.sql.Connection
    [javac] public class DelegatingConnection extends AbandonedTrace
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\DelegatingResultSet.java:55: org.apache.tomcat.dbcp.dbcp.DelegatingResultSet
 is not abstract and does not override abstract method updateNClob(java.lang.Str
ing,java.io.Reader) in java.sql.ResultSet
    [javac] public class DelegatingResultSet extends AbandonedTrace implements R
esultSet {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\PoolablePreparedStatement.java:41: org.apache.tomcat.dbcp.dbcp.PoolablePrepa
redStatement is not abstract and does not override abstract method setNClob(int,
java.io.Reader) in java.sql.PreparedStatement
    [javac] public class PoolablePreparedStatement extends DelegatingPreparedSta
tement implements PreparedStatement {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\PoolingConnection.java:42: org.apache.tomcat.dbcp.dbcp.PoolingConnection is
not abstract and does not override abstract method createStruct(java.lang.String
,java.lang.Object[]) in java.sql.Connection
    [javac] public class PoolingConnection extends DelegatingConnection implemen
ts Connection, KeyedPoolableObjectFactory {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\PoolingDataSource.java:45: org.apache.tomcat.dbcp.dbcp.PoolingDataSource is
not abstract and does not override abstract method isWrapperFor(java.lang.Class)
 in java.sql.Wrapper
    [javac] public class PoolingDataSource implements DataSource {
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\cpdsadapter\ConnectionImpl.java:41: org.apache.tomcat.dbcp.dbcp.cpdsadapter.
ConnectionImpl is not abstract and does not override abstract method createStruc
t(java.lang.String,java.lang.Object[]) in java.sql.Connection
    [javac] class ConnectionImpl implements Connection {
    [javac] ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\cpdsadapter\PooledConnectionImpl.java:43: org.apache.tomcat.dbcp.dbcp.cpdsad
apter.PooledConnectionImpl is not abstract and does not override abstract method
 removeStatementEventListener(javax.sql.StatementEventListener) in javax.sql.Poo
ledConnection
    [javac] class PooledConnectionImpl
    [javac] ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\cpdsadapter\PoolablePreparedStatementStub.java:34: isClosed() in org.apache.
tomcat.dbcp.dbcp.DelegatingStatement cannot implement isClosed() in java.sql.Sta
tement; attempting to assign weaker access privileges; was public
    [javac] class PoolablePreparedStatementStub extends PoolablePreparedStatemen
t {
    [javac] ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\datasources\PerUserPoolDataSource.java:52: org.apache.tomcat.dbcp.dbcp.datas
ources.PerUserPoolDataSource is not abstract and does not override abstract meth
od isWrapperFor(java.lang.Class) in java.sql.Wrapper
    [javac] public class PerUserPoolDataSource
    [javac]        ^
    [javac] C:\usr\share\java\tomcat-deps\dbcp\src\java\org\apache\tomcat\dbcp\d
bcp\datasources\SharedPoolDataSource.java:45: org.apache.tomcat.dbcp.dbcp.dataso
urces.SharedPoolDataSource is not abstract and does not override abstract method
 isWrapperFor(java.lang.Class) in java.sql.Wrapper
    [javac] public class SharedPoolDataSource
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 15 errors

BUILD FAILED
C:\work\tomcatbuild\build\build.xml:2097: The following error occurred while exe
cuting this line:
C:\work\tomcatbuild\build\build.xml:727: The following error occurred while exec
uting this line:
C:\work\tomcatbuild\build\build.xml:739: The following error occurred while exec
uting this line:
C:\work\tomcatbuild\build\build.xml:786: Compile failed; see the compiler error
output for details.


----- Original Message ----
From: Mark Thomas <ma...@apache.org>
To: Tomcat Developers List <de...@tomcat.apache.org>
Sent: Fri, March 5, 2010 12:46:30 AM
Subject: Re: Tomcat 5.5.x build broken?

On 05/03/2010 02:47, hwachung feng wrote:
> Hi,
> 
>    I am trying to build Tomcat 5.5 following the instructions on the page on 
> http://tomcat.apache.org/tomcat-5.5-doc/building.html
> 
>   I am running into problems with the main build.xml that is trying to check out Tomcat source from the svn url
> 
> http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
> 
> which does not exist anymore.

Yep. This is a side effect of changing things around to avoid externals.
I'll take a look at the doc and see if we mised anythgn that should have
been changed.

> after changing it to http://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk (or to a specific tag such as 5.5.26, for example) it still runs into other problems further down the road. Apparently some of the dependent components also changed its URLs where the build downloads from. So in general the build is broken.
> 
> Is there another main build.xml somewhere else that will lead to a much smoother build for this? Thanks.

Building from this URL works without problem for me.

Assuming you have checked out that URL and have changed directory to the
top of that checkout:
cd build
ant download
ant

Of course, if you had showed us the error message you were getting we'd
be able to provide more specific advice.

Mark



---------------------------------------------------------------------
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: Tomcat 5.5.x build broken?

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/3/5 Mark Thomas <ma...@apache.org>:
> On 05/03/2010 02:47, hwachung feng wrote:
>> Hi,
>>
>>    I am trying to build Tomcat 5.5 following the instructions on the page on
>> http://tomcat.apache.org/tomcat-5.5-doc/building.html
>>
>>   I am running into problems with the main build.xml that is trying to check out Tomcat source from the svn url
>>
>> http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
>>
>> which does not exist anymore.
>

Take a look at
http://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk/build/BUILDING.txt

> Yep. This is a side effect of changing things around to avoid externals.
> I'll take a look at the doc and see if we mised anythgn that should have
> been changed.
>

Looking at the current building.html of not-yet-released 5.5.29, it
appears to be too complicated. (Still using downloadable
docs/build.xml to bootstrap the build. That is not necessary anymore).

>> Is there another main build.xml somewhere else that will lead to a much smoother build for this? Thanks.

build/build.xml  in the sources.

> Of course, if you had showed us the error message you were getting we'd
> be able to provide more specific advice.

Note, that you can use build/build.properties file to redefine the
download URLs.
Please let us know if some of them are not working.

Best regards,
Konstantin Kolinko

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


Re: Tomcat 5.5.x build broken?

Posted by Mark Thomas <ma...@apache.org>.
On 05/03/2010 10:36, Bill Barker wrote:
> 
> 
> "Mark Thomas" <ma...@apache.org> wrote in message
> news:4B90C4E6.2040409@apache.org...
>> On 05/03/2010 02:47, hwachung feng wrote:
>>> Hi,
>>>
>>>    I am trying to build Tomcat 5.5 following the instructions on the
>>> page on
>>> http://tomcat.apache.org/tomcat-5.5-doc/building.html
>>>
>>>   I am running into problems with the main build.xml that is trying
>>> to check out Tomcat source from the svn url
>>>
>>> http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
>>>
>>> which does not exist anymore.
>>
>> Yep. This is a side effect of changing things around to avoid externals.
>> I'll take a look at the doc and see if we mised anythgn that should have
>> been changed.
> 
> Yeah, trying to check out TC 3.3 to answer a question on the user list
> fails as well.  It looks like anything less than 6.0.x is a total CF.

5.5.x/trunk should be fine. It certainly works for me. The docs on the
web are out of date because we haven't done a 5.5.x release since the
svn move.

Earlier versions should build from a checkout of trunk but I don't think
I tested anything earlier than 4.1.x. Any combined checkout and build
script is going to be broken since the svn move.

Gump was complaining about a 3.something build a while ago and I think
that was fixed so it should be possible to build at least one 3.x
version via one route.

Archive was voted commit then review so if moving things around /
changing build scripts helps go for it.

Mark



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


Re: Tomcat 5.5.x build broken?

Posted by Bill Barker <bi...@verizon.net>.

"Mark Thomas" <ma...@apache.org> wrote in message 
news:4B90C4E6.2040409@apache.org...
> On 05/03/2010 02:47, hwachung feng wrote:
>> Hi,
>>
>>    I am trying to build Tomcat 5.5 following the instructions on the page 
>> on
>> http://tomcat.apache.org/tomcat-5.5-doc/building.html
>>
>>   I am running into problems with the main build.xml that is trying to 
>> check out Tomcat source from the svn url
>>
>> http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
>>
>> which does not exist anymore.
>
> Yep. This is a side effect of changing things around to avoid externals.
> I'll take a look at the doc and see if we mised anythgn that should have
> been changed.

Yeah, trying to check out TC 3.3 to answer a question on the user list fails 
as well.  It looks like anything less than 6.0.x is a total CF.
>
>> after changing it to http://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk 
>> (or to a specific tag such as 5.5.26, for example) it still runs into 
>> other problems further down the road. Apparently some of the dependent 
>> components also changed its URLs where the build downloads from. So in 
>> general the build is broken.
>>
>> Is there another main build.xml somewhere else that will lead to a much 
>> smoother build for this? Thanks.
>
> Building from this URL works without problem for me.
>
> Assuming you have checked out that URL and have changed directory to the
> top of that checkout:
> cd build
> ant download
> ant
>
> Of course, if you had showed us the error message you were getting we'd
> be able to provide more specific advice.
>
> Mark 



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


Re: Tomcat 5.5.x build broken?

Posted by Mark Thomas <ma...@apache.org>.
On 05/03/2010 02:47, hwachung feng wrote:
> Hi,
> 
>    I am trying to build Tomcat 5.5 following the instructions on the page on 
> http://tomcat.apache.org/tomcat-5.5-doc/building.html
> 
>   I am running into problems with the main build.xml that is trying to check out Tomcat source from the svn url
> 
> http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
> 
> which does not exist anymore.

Yep. This is a side effect of changing things around to avoid externals.
I'll take a look at the doc and see if we mised anythgn that should have
been changed.

> after changing it to http://svn.apache.org/repos/asf/tomcat/tc5.5.x/trunk (or to a specific tag such as 5.5.26, for example) it still runs into other problems further down the road. Apparently some of the dependent components also changed its URLs where the build downloads from. So in general the build is broken.
> 
> Is there another main build.xml somewhere else that will lead to a much smoother build for this? Thanks.

Building from this URL works without problem for me.

Assuming you have checked out that URL and have changed directory to the
top of that checkout:
cd build
ant download
ant

Of course, if you had showed us the error message you were getting we'd
be able to provide more specific advice.

Mark



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