You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by S Ahmed <sa...@gmail.com> on 2012/01/08 23:39:05 UTC

ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Hi,
Exciting to get the source working locally!

I'm on Mac osx lion.

1. I did a git clone from:https://github.com/apache/tomcat70
2. sudo ant
And I got:

compile-prepare:

BUILD FAILED
/Users/me/dev/sources/tomcat70/build.xml:493: Warning: Could not find file
/Users/me/dev/sources/tomcat70/modules/jdbc-pool/doc/jdbc-pool.xml to copy.

Total time: 1 second


I don't see the modules folder in the repo.


Also, does the tomcat source import smoothly into IntelliJ 9?  Are you guys
using IntelliJ or Eclipse?

Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by S Ahmed <sa...@gmail.com>.
Agreed.

The file was building.txt not readme sorry, thanks for the tips.

So any help on importing the project into eclipse?

On Sun, Jan 8, 2012 at 11:09 PM, Konstantin Kolinko
<kn...@gmail.com>wrote:

> 2012/1/9 S Ahmed <sa...@gmail.com>:
> > Well the readme said it may fail on mac osx because it tries to write to
> > /usr/share/java to store the libraries etc.
>
> Eh, which readme?
> It is a bad idea to let them been written to /usr/share/java. That is
> just a default value.
>
> You should really reconfigure it to use some other place (as
> documented in BUILDING.txt).
>
> You should not run any random things with "sudo", unless you
> understand the consequences.
>
> >
> > When I ran ant, the build didn't work, running sudo allowed it continue
> > (but from now on running just ant w/o sudo is fine, I guess it was just
> > initially to write to that folder).
> >
> > Anyhow, I'll try the svn then thanks.
> >
> > On Sun, Jan 8, 2012 at 5:52 PM, Konstantin Kolinko
> > <kn...@gmail.com>wrote:
> >
> >> 2012/1/9 S Ahmed <sa...@gmail.com>:
> >> > 2. sudo ant
> >>
> >> Just curious regarding the above command:  you do not need root rights
> >> to build Tomcat!
> >>
> >> Actually you should never be using root rights when building, testing
> >> and using Tomcat.
> >>
> >> (The only exception is running it with jsvc service wrapper).
> >>
> >> http://xkcd.com/149/
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/1/9 S Ahmed <sa...@gmail.com>:
> Well the readme said it may fail on mac osx because it tries to write to
> /usr/share/java to store the libraries etc.

Eh, which readme?
It is a bad idea to let them been written to /usr/share/java. That is
just a default value.

You should really reconfigure it to use some other place (as
documented in BUILDING.txt).

You should not run any random things with "sudo", unless you
understand the consequences.

>
> When I ran ant, the build didn't work, running sudo allowed it continue
> (but from now on running just ant w/o sudo is fine, I guess it was just
> initially to write to that folder).
>
> Anyhow, I'll try the svn then thanks.
>
> On Sun, Jan 8, 2012 at 5:52 PM, Konstantin Kolinko
> <kn...@gmail.com>wrote:
>
>> 2012/1/9 S Ahmed <sa...@gmail.com>:
>> > 2. sudo ant
>>
>> Just curious regarding the above command:  you do not need root rights
>> to build Tomcat!
>>
>> Actually you should never be using root rights when building, testing
>> and using Tomcat.
>>
>> (The only exception is running it with jsvc service wrapper).
>>
>> http://xkcd.com/149/

Best regards,
Konstantin Kolinko

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


Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by S Ahmed <sa...@gmail.com>.
svn worked fine.

Sorry about this, but I'm new to Eclipse kinda.

So I when to file, import, general | existing projects into workspace.

Now which is the root folder in the source?


On Sun, Jan 8, 2012 at 6:44 PM, S Ahmed <sa...@gmail.com> wrote:

> Well the readme said it may fail on mac osx because it tries to write to
> /usr/share/java to store the libraries etc.
>
> When I ran ant, the build didn't work, running sudo allowed it continue
> (but from now on running just ant w/o sudo is fine, I guess it was just
> initially to write to that folder).
>
> Anyhow, I'll try the svn then thanks.
>
>
> On Sun, Jan 8, 2012 at 5:52 PM, Konstantin Kolinko <knst.kolinko@gmail.com
> > wrote:
>
>> 2012/1/9 S Ahmed <sa...@gmail.com>:
>> > 2. sudo ant
>>
>> Just curious regarding the above command:  you do not need root rights
>> to build Tomcat!
>>
>> Actually you should never be using root rights when building, testing
>> and using Tomcat.
>>
>> (The only exception is running it with jsvc service wrapper).
>>
>> http://xkcd.com/149/
>>
>> Best regards,
>> Konstantin Kolinko
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: dev-help@tomcat.apache.org
>>
>>
>

Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by S Ahmed <sa...@gmail.com>.
Well the readme said it may fail on mac osx because it tries to write to
/usr/share/java to store the libraries etc.

When I ran ant, the build didn't work, running sudo allowed it continue
(but from now on running just ant w/o sudo is fine, I guess it was just
initially to write to that folder).

Anyhow, I'll try the svn then thanks.

On Sun, Jan 8, 2012 at 5:52 PM, Konstantin Kolinko
<kn...@gmail.com>wrote:

> 2012/1/9 S Ahmed <sa...@gmail.com>:
> > 2. sudo ant
>
> Just curious regarding the above command:  you do not need root rights
> to build Tomcat!
>
> Actually you should never be using root rights when building, testing
> and using Tomcat.
>
> (The only exception is running it with jsvc service wrapper).
>
> http://xkcd.com/149/
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/1/9 S Ahmed <sa...@gmail.com>:
> 2. sudo ant

Just curious regarding the above command:  you do not need root rights
to build Tomcat!

Actually you should never be using root rights when building, testing
and using Tomcat.

(The only exception is running it with jsvc service wrapper).

http://xkcd.com/149/

Best regards,
Konstantin Kolinko

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


Re: ant build failing: could not find file modules/jdbc-pool/doc/jdbc-pool.xml to copy

Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/1/9 S Ahmed <sa...@gmail.com>:
> Hi,
> Exciting to get the source working locally!
>
> I'm on Mac osx lion.
>
> 1. I did a git clone from:https://github.com/apache/tomcat70
> 2. sudo ant
> And I got:
>
> compile-prepare:
>
> BUILD FAILED
> /Users/me/dev/sources/tomcat70/build.xml:493: Warning: Could not find file
> /Users/me/dev/sources/tomcat70/modules/jdbc-pool/doc/jdbc-pool.xml to copy.
>
> Total time: 1 second

jdbc-pool sources belong to tomcat-trunk and are pulled into tc7.0.x
using an svn:externals property.

Unfortunately Git does not support svn:externals (AFAIK), so the
sources you are using are not complete, and little could be done with
that.

You can either:
a) use svn client to get the source
b) use tomcat trunk (the jdbc-pool sources should be present there).


> Also, does the tomcat source import smoothly into IntelliJ 9?  Are you guys
> using IntelliJ or Eclipse?

Most of us are using Eclipse IDE.

The building.html page in the docs has some useful instructions (for
Eclipse). There are also some useful files in res/ide-support

Best regards,
Konstantin Kolinko

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