tomcat 6 build from source-code

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

tomcat 6 build from source-code

by Vishwa Chary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tomcat Gurus,
   Appreciated if you can help me with the following :

I'm trying to build tomcat server from the source code.  After downloading
the source code, "ant " command was successful in executing the deploy
task. It created a folder "build" under "output" folder . The "build" folder
contains bin,conf,lib,temp,webapps directories.
 i)I was under the impression  that executing ant would build a jar-file or
file-structure similar to bin-download on tomcats website
ii)Even with the current structure,  I cannot see any startup/shutdown
scripts under this build folder.

Please let me know if I'm missing any step!

Thanks,
Chary

Re: tomcat 6 build from source-code

by Vishwa Chary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

To add..
I also tried "ant dist " but it fails

----------------------------------------------------------------------------------
$ ant dist
Buildfile: build.xml

BUILD FAILED
Target "dist" does not exist in the project "Tomcat 6.0".

Total time: 0 seconds
----------------------------------------------------------------------------------


- Chary

On Thu, May 15, 2008 at 2:50 PM, Vishwa Chary <vcharyos@...> wrote:

> Hi Tomcat Gurus,
>    Appreciated if you can help me with the following :
>
> I'm trying to build tomcat server from the source code.  After downloading
> the source code, "ant " command was successful in executing the deploy
> task. It created a folder "build" under "output" folder . The "build" folder
> contains bin,conf,lib,temp,webapps directories.
>  i)I was under the impression  that executing ant would build a jar-file or
> file-structure similar to bin-download on tomcats website
> ii)Even with the current structure,  I cannot see any startup/shutdown
> scripts under this build folder.
>
> Please let me know if I'm missing any step!
>
> Thanks,
> Chary
>

Re: tomcat 6 build from source-code

by Johnny Kewl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

---- Original Message -----
From: "Vishwa Chary" <vcharyos@...>
To: <users@...>
Sent: Thursday, May 15, 2008 11:50 PM
Subject: tomcat 6 build from source-code


> Hi Tomcat Gurus,
>   Appreciated if you can help me with the following :
>
> I'm trying to build tomcat server from the source code.  After downloading
> the source code, "ant " command was successful in executing the deploy
> task. It created a folder "build" under "output" folder . The "build"
> folder
> contains bin,conf,lib,temp,webapps directories.
> i)I was under the impression  that executing ant would build a jar-file or
> file-structure similar to bin-download on tomcats website
> ii)Even with the current structure,  I cannot see any startup/shutdown
> scripts under this build folder.
>
> Please let me know if I'm missing any step!

I think its
    ant download
    ant

but I dont have the same version...
when you unpack the source, actually I think you must SVN it, but anyway,
when its there, there is a BUILD.TXT  file somewhere, and in there it will
have the details.

If I remember correctly I had to go onto the ant script and set the
directory for the
ant download.

Its quite an amazine thing to watch... it goes off to eclipse sites and half
the universe and gets all the dependent stuff... like JSP compilers and
stuff... when all that stuff is there it will build.

Also if you on NB... there is a NB article somewhere where some guy shows
you how to get all that going in Netbeans as well.

Enjoy


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat 6 build from source-code

by Vishwa Chary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Johnny for the reply but I have completed all those steps
i)getting the source code
ii)updating build.properties
iii)downloading dependencies (ant download)
iv)executing ant command (ant deploy)

I guess there is one more step to execute "dist" task for distributed-copy
format which  I'm missing!

Thanks,
Chary

On Thu, May 15, 2008 at 3:07 PM, Johnny Kewl <john@...> wrote:

> ---- Original Message ----- From: "Vishwa Chary" <vcharyos@...>
> To: <users@...>
> Sent: Thursday, May 15, 2008 11:50 PM
> Subject: tomcat 6 build from source-code
>
>
>
>  Hi Tomcat Gurus,
>>  Appreciated if you can help me with the following :
>>
>> I'm trying to build tomcat server from the source code.  After downloading
>> the source code, "ant " command was successful in executing the deploy
>> task. It created a folder "build" under "output" folder . The "build"
>> folder
>> contains bin,conf,lib,temp,webapps directories.
>> i)I was under the impression  that executing ant would build a jar-file or
>> file-structure similar to bin-download on tomcats website
>> ii)Even with the current structure,  I cannot see any startup/shutdown
>> scripts under this build folder.
>>
>> Please let me know if I'm missing any step!
>>
>
> I think its
>   ant download
>   ant
>
> but I dont have the same version...
> when you unpack the source, actually I think you must SVN it, but anyway,
> when its there, there is a BUILD.TXT  file somewhere, and in there it will
> have the details.
>
> If I remember correctly I had to go onto the ant script and set the
> directory for the
> ant download.
>
> Its quite an amazine thing to watch... it goes off to eclipse sites and
> half the universe and gets all the dependent stuff... like JSP compilers and
> stuff... when all that stuff is there it will build.
>
> Also if you on NB... there is a NB article somewhere where some guy shows
> you how to get all that going in Netbeans as well.
>
> Enjoy
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: tomcat 6 build from source-code

by Johnny Kewl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


----- Original Message -----
From: "Vishwa Chary" <vcharyos@...>
To: "Tomcat Users List" <users@...>
Sent: Friday, May 16, 2008 12:12 AM
Subject: Re: tomcat 6 build from source-code


> Thanks Johnny for the reply but I have completed all those steps
> i)getting the source code
> ii)updating build.properties
> iii)downloading dependencies (ant download)
> iv)executing ant command (ant deploy)
>
> I guess there is one more step to execute "dist" task for distributed-copy
> format which  I'm missing!

No the dist stuff is just Javadoc, and samples

Those scripts should be there...
The version I know that works is... SVN 6.013

An easy way to check is that after the SVN...(before any ants)... if you
look at the folders, the BIN folder already has all those scripts.
All the ant does is copy them to output/bin

After the
ant

it should be looking just like the BIN version, without samples

If its not there, perhaps the SVN is a work in progress, just drop back a
version

---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
---------------------------------------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat 6 build from source-code

by Johnny Kewl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Heres the SVN address that I know works

http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_13

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat 6 build from source-code

by Vishwa Chary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks John,
   This one from SVN works correctly. The one I downloaded as src-zip file
from apache had problems in the final distribution.

Thanks again,
Chary

On Thu, May 15, 2008 at 4:11 PM, Johnny Kewl <john@...> wrote:

> Heres the SVN address that I know works
>
> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_13
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@...
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

Re: tomcat 6 build from source-code

by Filip Hanik - Dev Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ant download
ant
ant -f extras.xml
ant -f dist.xml release

Filip

Vishwa Chary wrote:

> Thanks John,
>    This one from SVN works correctly. The one I downloaded as src-zip file
> from apache had problems in the final distribution.
>
> Thanks again,
> Chary
>
> On Thu, May 15, 2008 at 4:11 PM, Johnny Kewl <john@...> wrote:
>
>  
>> Heres the SVN address that I know works
>>
>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_13
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@...
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>    
>
>  
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.16/1433 - Release Date: 5/14/2008 4:44 PM
>  


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Tomcat suddenly dies without a whisper

by redcoat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We are running Tomcat 5.5 on a powerful VM Server.  MS Sql Server is also
on the VM.  It is fronted by an apache web server on another box.

When under load (heavy but not excessive) we suddenly find tomcat dies,
without any error messages we can find.  Memory looks good.

We are a little perplexed as to where to look next.  Any ideas?

cheers,

David

RE: Tomcat suddenly dies without a whisper

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: dhay@... [mailto:dhay@...]
> Subject: Tomcat suddenly dies without a whisper
>
> When under load (heavy but not excessive) we suddenly find
> tomcat dies, without any error messages we can find.

Sounds like the Linux OOM killer (if the guest OS that Tomcat's on is
Linux, of course).

> Memory looks good.

What memory are you referring to?  Java heap?  Linux RAM + swap?  VM
allocation?

 - 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by redcoat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chuck,

I did see reference to that OOM killer, but the VM we are running on is 64
bit Windows.

I was referring to the heap memory usage.

any suggestions on where else to look?

cheers,

David
x54680



"Caldarale, Charles R" <Chuck.Caldarale@...>
05/15/2008 11:53 PM
Please respond to
"Tomcat Users List" <users@...>


To
"Tomcat Users List" <users@...>
cc

Subject
RE: Tomcat suddenly dies without a whisper





> From: dhay@... [mailto:dhay@...]
> Subject: Tomcat suddenly dies without a whisper
>
> When under load (heavy but not excessive) we suddenly find
> tomcat dies, without any error messages we can find.

Sounds like the Linux OOM killer (if the guest OS that Tomcat's on is
Linux, of course).

> Memory looks good.

What memory are you referring to?  Java heap?  Linux RAM + swap?  VM
allocation?

- 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: dhay@... [mailto:dhay@...]
> Subject: RE: Tomcat suddenly dies without a whisper
>
> I did see reference to that OOM killer, but the VM we are
> running on is 64 bit Windows.

I'm a bit confused by your terminology.  I took your first message to
imply that you were running in a virtualized environment, but your most
recent message seems to indicate otherwise.  Does "VM" in your messages
really mean JVM?  What JVM version are you using?  Which version of
Windows?

Have you checked *all* of the Tomcat logs?  Are you perhaps getting a
normal shutdown?

Are you running Tomcat as a service?  If so, try running it with the
startup.bat script instead; you may get some more information out of
that.

If running as a service, is someone or some periodic maintenance task
terminating that service?

 - 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by redcoat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Sorry - didn't mean to be confusing.  We are indeed running in a
virtualized environment, and the OS of the image we are running on is 64
bit Windows Server 2003.  The JVM on that image is Java 6.

>Have you checked *all* of the Tomcat logs?  Are you perhaps getting a
>normal shutdown?
Yes, we've checked all the Tomcat logs.  There is no indication of any
kind of normal shutdown.

> Are you running Tomcat as a service?  If so, try running it with the
> startup.bat script instead; you may get some more information out of
> that.
Yes, Tomcat is running as a service.  I'll try running it from the
commandline.

> If running as a service, is someone or some periodic maintenance task
> terminating that service?
we have checked with the IT department that hosts this that nothing of
that sort is taking place.

cheers,

David




"Caldarale, Charles R" <Chuck.Caldarale@...>
05/16/2008 12:06 AM
Please respond to
"Tomcat Users List" <users@...>


To
"Tomcat Users List" <users@...>
cc

Subject
RE: Tomcat suddenly dies without a whisper





> From: dhay@... [mailto:dhay@...]
> Subject: RE: Tomcat suddenly dies without a whisper
>
> I did see reference to that OOM killer, but the VM we are
> running on is 64 bit Windows.

I'm a bit confused by your terminology.  I took your first message to
imply that you were running in a virtualized environment, but your most
recent message seems to indicate otherwise.  Does "VM" in your messages
really mean JVM?  What JVM version are you using?  Which version of
Windows?

Have you checked *all* of the Tomcat logs?  Are you perhaps getting a
normal shutdown?

Are you running Tomcat as a service?  If so, try running it with the
startup.bat script instead; you may get some more information out of
that.

If running as a service, is someone or some periodic maintenance task
terminating that service?

- 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by Caldarale, Charles R :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: dhay@... [mailto:dhay@...]
> Subject: RE: Tomcat suddenly dies without a whisper
>
> Yes, we've checked all the Tomcat logs.

Do you have access to the Windows event logs?  Might be something buried
in there, but they're frequently voluminous and not particularly easy to
decipher.

 - 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by redcoat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yep, we've trauled through them, and not found anything that corresponds
to when tomcat dies.

cheers,

David




"Caldarale, Charles R" <Chuck.Caldarale@...>
05/16/2008 12:25 AM
Please respond to
"Tomcat Users List" <users@...>


To
"Tomcat Users List" <users@...>
cc

Subject
RE: Tomcat suddenly dies without a whisper





> From: dhay@... [mailto:dhay@...]
> Subject: RE: Tomcat suddenly dies without a whisper
>
> Yes, we've checked all the Tomcat logs.

Do you have access to the Windows event logs?  Might be something buried
in there, but they're frequently voluminous and not particularly easy to
decipher.

- 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 start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Tomcat suddenly dies without a whisper

by Yuval Perlov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you check the Java heap?
What is the max heap defined.
It would be good to add gc logging.

Yuval Perlov
www.r-u-on.com

On May 16, 2008, at 6:38 AM, dhay@... wrote:

Hi,

We are running Tomcat 5.5 on a powerful VM Server.  MS Sql Server is  
also
on the VM.  It is fronted by an apache web server on another box.

When under load (heavy but not excessive) we suddenly find tomcat dies,
without any error messages we can find.  Memory looks good.

We are a little perplexed as to where to look next.  Any ideas?

cheers,

David


---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


RE: Tomcat suddenly dies without a whisper

by Peter Crowther :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> From: dhay@... [mailto:dhay@...]
> When under load (heavy but not excessive) we suddenly find
> tomcat dies, without any error messages we can find.

I assume you've done the really obvious thing of checking the code for constructs of the form:

if (some involved condition the programmer doesn't know how to handle)
        System.exit(1);

?  Some coders have a distressing habit of putting such things in.

                - Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@...
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: tomcat 6 build from source-code

by Vishwa Chary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Filip for the intructions.

Chary

On Thu, May 15, 2008 at 6:46 PM, Filip Hanik - Dev Lists <devlists@...>
wrote:

> ant download
> ant
> ant -f extras.xml
> ant -f dist.xml release
>
> Filip
>
> Vishwa Chary wrote:
>
>> Thanks John,
>>   This one from SVN works correctly. The one I downloaded as src-zip file
>> from apache had problems in the final distribution.
>>
>> Thanks again,
>> Chary
>>
>> On Thu, May 15, 2008 at 4:11 PM, Johnny Kewl <john@...>
>> wrote:
>>
>>
>>
>>> Heres the SVN address that I know works
>>>
>>> http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_13
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic