You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cifer <ma...@gmail.com> on 2011/11/12 14:08:33 UTC

build.xml:2313: Compile failed; see the compiler error output for details

this is the first time i post a question on mail list
i have googled for my question so much but still get no result
lastly , i find here and here is my last hope

i am sorry for my poor English if you get into trouble with my question

several days ago I downloaded the apache-tomcat-7.0.22-src.tar.gz
then i unpacked it and build the source files followed the BUILDING.txt 
(so i also download the ant,also the lastest version)

i followed the BUILDING.txt

- open the terminal
- cd /usr/local/tomcat7      -------that is where i unpacked my tar in
- and run ant

(i am not using a proxy , i am using my huawei 3G device to connect to 
Internet)

as the console scrolled down
hundred lines of errors rise up
most of them are something like
"PoolingDataSource is not abstract and does not override abstract method 
getParentLogger() in CommonDataSource"

and at the last line ,it shows

BUILD FAILED
/usr/local/tomcat7/build.xml:2211: The following error occurred while 
excuting the line:

/usr/local/tomcat7/build.xml:2313: Compile failed; see the compiler 
error output for details.


i downloaded the 7.0.22 version of tomcat
and i am working on Ubuntu 11.10


thanks for help ....

-- 
------------------------------------
/*send by Cifer*/

Re: build.xml:2313: Compile failed; see the compiler error output for details

Posted by Anisha Karki <ka...@gmail.com>.
hi,

i think you it would be better to follow this tutorial for the start.
http://anupniroula.blogspot.com/



On Sat, Nov 12, 2011 at 7:08 AM, Cifer <ma...@gmail.com> wrote:

> this is the first time i post a question on mail list
> i have googled for my question so much but still get no result
> lastly , i find here and here is my last hope
>
> i am sorry for my poor English if you get into trouble with my question
>
> several days ago I downloaded the apache-tomcat-7.0.22-src.tar.**gz
> then i unpacked it and build the source files followed the BUILDING.txt
> (so i also download the ant,also the lastest version)
>
> i followed the BUILDING.txt
>
> - open the terminal
> - cd /usr/local/tomcat7      -------that is where i unpacked my tar in
> - and run ant
>
> (i am not using a proxy , i am using my huawei 3G device to connect to
> Internet)
>
> as the console scrolled down
> hundred lines of errors rise up
> most of them are something like
> "PoolingDataSource is not abstract and does not override abstract method
> getParentLogger() in CommonDataSource"
>
> and at the last line ,it shows
>
> BUILD FAILED
> /usr/local/tomcat7/build.xml:**2211: The following error occurred while
> excuting the line:
>
> /usr/local/tomcat7/build.xml:**2313: Compile failed; see the compiler
> error output for details.
>
>
> i downloaded the 7.0.22 version of tomcat
> and i am working on Ubuntu 11.10
>
>
> thanks for help ....
>
> --
> ------------------------------**------
> /*send by Cifer*/
>

Re: build.xml:2313: Compile failed; see the compiler error output for details

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 11/13/11 1:13 AM, Caldarale, Charles R wrote:
>> From: Cifer [mailto:mantianyu@gmail.com] Subject: Re:
>> build.xml:2313: Compile failed; see the compiler error output for
>> details
> 
>> why must i use java6 to compile tomcat7
> 
> Because Sun (not Oracle) added methods to an interface class in JDK
> 7 that Tomcat does not implement, resulting in errors during 
> compilation.  Tomcat cannot add the methods in question since
> doing so would make it impossible to run Tomcat on JDK 6.  Sun did
> not think that one through.

Can you give me a reference for that? I'd like to read about it.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7BOk8ACgkQ9CaO5/Lv0PCgnwCcDXRdhYdvMaTkQk6/VDR0rcfL
cK4AoJ2mv/BaIDLQFNf48K3u91M/FCLe
=1jE2
-----END PGP SIGNATURE-----

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


RE: build.xml:2313: Compile failed; see the compiler error output for details

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Cifer [mailto:mantianyu@gmail.com] 
> Subject: Re: build.xml:2313: Compile failed; see the compiler error output for details

> why must i use java6 to compile tomcat7

Because Sun (not Oracle) added methods to an interface class in JDK 7 that Tomcat does not implement, resulting in errors during compilation.  Tomcat cannot add the methods in question since doing so would make it impossible to run Tomcat on JDK 6.  Sun did not think that one through.

> how could it exist such a incompatible between them..

You will have to find and ask the responsible party who may or may not now work for Oracle.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: build.xml:2313: Compile failed; see the compiler error output for details

Posted by Cifer <ma...@gmail.com>.
On 11/13/2011 03:04 AM, Konstantin Kolinko wrote:
> 2011/11/12 Cifer<ma...@gmail.com>:
>> this is the first time i post a question on mail list
>> i have googled for my question so much but still get no result
>> lastly , i find here and here is my last hope
>>
>> i am sorry for my poor English if you get into trouble with my question
>>
>> several days ago I downloaded the apache-tomcat-7.0.22-src.tar.gz
>> then i unpacked it and build the source files followed the BUILDING.txt (so
>> i also download the ant,also the lastest version)
>>
>> i followed the BUILDING.txt
>>
>> - open the terminal
>> - cd /usr/local/tomcat7      -------that is where i unpacked my tar in
>> - and run ant
>>
>> (i am not using a proxy , i am using my huawei 3G device to connect to
>> Internet)
>>
>> as the console scrolled down
>> hundred lines of errors rise up
>> most of them are something like
>> "PoolingDataSource is not abstract and does not override abstract method
>> getParentLogger() in CommonDataSource"
>>
>> and at the last line ,it shows
>>
>> BUILD FAILED
>> /usr/local/tomcat7/build.xml:2211: The following error occurred while
>> excuting the line:
>>
>> /usr/local/tomcat7/build.xml:2313: Compile failed; see the compiler error
>> output for details.
>>
>>
>> i downloaded the 7.0.22 version of tomcat
>> and i am working on Ubuntu 11.10
>>
> 1. What Java version you are using.
> Look at Ant documentation on how to install and run it.
>
> IIRC you have to set JAVA_HOME and ANT_HOME variables before running it.
>
> To compile Tomcat 7 you need Java 6 SDK.
>
> 2. Do not forget to create build.properties file and redefine
> base.path property there. That is mentioned in RUNNING.txt.
>
> 3. If you just need to run Tomcat, download a binary version of it +
> see RUNNING.txt. Compiling java programs is not necessary to run them,
> because their binaries are cross-platform.
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

thanks for such a fast reply
i am sorry i forget to tell my java version
i am using java7 and i followed your third advice
since there is no need to compile by myself
i got the tomcat started
thanks again

but i still in trouble why must i use java6 to compile tomcat7
how could it exist such a incompatible between them..

-- 
------------------------------------
/*send by Cifer*/

Re: build.xml:2313: Compile failed; see the compiler error output for details

Posted by Konstantin Kolinko <kn...@gmail.com>.
2011/11/12 Cifer <ma...@gmail.com>:
> this is the first time i post a question on mail list
> i have googled for my question so much but still get no result
> lastly , i find here and here is my last hope
>
> i am sorry for my poor English if you get into trouble with my question
>
> several days ago I downloaded the apache-tomcat-7.0.22-src.tar.gz
> then i unpacked it and build the source files followed the BUILDING.txt (so
> i also download the ant,also the lastest version)
>
> i followed the BUILDING.txt
>
> - open the terminal
> - cd /usr/local/tomcat7      -------that is where i unpacked my tar in
> - and run ant
>
> (i am not using a proxy , i am using my huawei 3G device to connect to
> Internet)
>
> as the console scrolled down
> hundred lines of errors rise up
> most of them are something like
> "PoolingDataSource is not abstract and does not override abstract method
> getParentLogger() in CommonDataSource"
>
> and at the last line ,it shows
>
> BUILD FAILED
> /usr/local/tomcat7/build.xml:2211: The following error occurred while
> excuting the line:
>
> /usr/local/tomcat7/build.xml:2313: Compile failed; see the compiler error
> output for details.
>
>
> i downloaded the 7.0.22 version of tomcat
> and i am working on Ubuntu 11.10
>

1. What Java version you are using.
Look at Ant documentation on how to install and run it.

IIRC you have to set JAVA_HOME and ANT_HOME variables before running it.

To compile Tomcat 7 you need Java 6 SDK.

2. Do not forget to create build.properties file and redefine
base.path property there. That is mentioned in RUNNING.txt.

3. If you just need to run Tomcat, download a binary version of it +
see RUNNING.txt. Compiling java programs is not necessary to run them,
because their binaries are cross-platform.

Best regards,
Konstantin Kolinko

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