You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wa...@toyota-europe.com on 2014/02/03 10:34:21 UTC

Tomcat and "Chunked Transfer-Encoding"

Hi,

We have some weird behaviopur with one of our applications using 
apache-tomcat-6.0.37.

This is the report of the newtork engineer:

The application (or app server - apache/coyote) is returning a response 
with "Chunked Transfer-Encoding", but is sending the first chunks before 
giving the http headers (that defines the chunk-encoding).

The result is that the client receives a response stating by the 
definition on the chunk lenght (7a5), and as the header "Content-Encoding" 
has not been received, that length definition is interpreted as response 
characters.

Here is a dump of the communication between TARS Reverse Proxy and the 
Back-end. (You may notice the response headers - 200 OK - after the first 
chunk (in blue, starting by "7a5", the length in HEX )


See attached screenshot tcpstream.jpg.



Regards
Walter




This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

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

Walter,

On 2/5/14, 4:41 AM, Walter.Heestermans@toyota-europe.com wrote:
> Is there something we can enable on the tomcat level to have more
> logging for this issue, to be able to see if the problem is related
> to application or the tomcat?

It sounds like Tomcat is not even starting. If Tomcat isn't in
control, it can't call for help.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS8purAAoJEBzwKT+lPKRYSkkP/iSud3GvJ17b2m62LazIONAv
gr9Nh5OaSA15jir28NS6ZKNvqLiDhVWejKAZICvg3utGaqSELddh8x8Penxahh/w
JmqvEyzk4ZvgS6t/9oPk5petKQkeXAKooBb9OSnk2yKskuwJI3py4tvhpOcTiB1H
4D1dIXJZ2n6u+LKBEzOHEQnd+KDv5iuXgKud0ldrgGKc8HZnRqwAOpiBOim5+hNm
sf1Vk+yksrwQn80U/f5meFXMGZu5El7wApVN3j+1uGyuMc5hHdmFyBVRHhtB3Inz
XCCfh5VrQU7Cd6zrKMQhFDJP5wM4iFcKbVhjW6ivOIQeqn8V2VGONHDP5RnxqkTw
HCsC0SQUHRk13gDYJTaQg6+hWl8TJXvk9ehWo87RMjFFIlNKOVveN554rm+SRH6C
AwnYsulSgDUUyzdBg1689RdzdiHKDmjt1sPjJEAruKjUgEEyli2ajBBvGIlOZV87
Ld1buRHp1mEeAn5za+9bXyF8tSiyZalHEAzATTnGqz4nIVOdLhDCbzHkSkr/L20i
lZhqYrXizf+T4qEhpTq5rITOxiIjx0owgKBxA0oIkeQCIZaDQ9zZjWR5nAHsBJXj
H3C1TMnif6AivxjReoOF6tU7F+u3SACwl3LwM8m8Qzos5jZvCVuV5sQINyWIYfH1
e1t2v3X1YzW3ISojJ+jp
=3aYs
-----END PGP SIGNATURE-----

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


Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
Hi,

Is there something we can enable on the tomcat level to have more logging 
for this issue, to be able to see if the problem is related to application 
or the tomcat?

Regards
Walter




From:   Walter.Heestermans@toyota-europe.com
To:     "Tomcat Users List" <us...@tomcat.apache.org>, 
Date:   03/02/2014 14:12
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



We don't have the source code
Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 13:50
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
> I can't reproduce it with simple web application, it happens in one of 
our 
> applications, SDL WorldServer application which we bought for 
> translations. Even there the issue is random.

Do the affected requests pass through any filters? Do you have the
source code for those filters?

Mark


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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this 
message, you should not use, copy, disclose or take any action based on 
this e-mail. 
If you have received this e-mail in error, please inform the sender 
promptly and delete this message and any attachments immediately.




This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
We don't have the source code
Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 13:50
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
> I can't reproduce it with simple web application, it happens in one of 
our 
> applications, SDL WorldServer application which we bought for 
> translations. Even there the issue is random.

Do the affected requests pass through any filters? Do you have the
source code for those filters?

Mark


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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
Added 

apache.catalina.connector.RECYCLE_FACADES=true

Let's see what this gives.

Walter




From:   Konstantin Kolinko <kn...@gmail.com>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 19:58
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



2014-02-03 Mark Thomas <ma...@apache.org>:
> On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
>> I can't reproduce it with simple web application, it happens in one of 
our
>> applications, SDL WorldServer application which we bought for
>> translations. Even there the issue is random.

1. When response mixups happen, the first thing I would recommend is
to set the following system property (you can add it to
catalina.properties file):

apache.catalina.connector.RECYCLE_FACADES=true

Documentation:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security

That will make your configuration more secure (at price of some
performance) and will raise the chances that meddling with
requests/response objects outside of their lifecycle would not go
unnoticed.

Then look for any odd messages in the log files. E.g. attempts to write to 
a
closed stream, or an IllegalStateException, etc

A known culprit is javax.imageio.ImageIO API
http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues

So far it looks like an application issue, as Mark mentioned.

2. The convention on this mailing list is to do not top-post.
http://tomcat.apache.org/lists.html#tomcat-users
-> 6.

3. What connector implementation are you using?

HTTP/AJP?
BIO/NIO/APR?

I guess that you use HTTP and are behind an HTTP proxy.

4. Do you use any Asynchronous IO, Comet, WebSockets (e.g. via
Atmosphere framework)?

5. In your traffic snippet,
does that HTML response match the request, or a previous request?

What generates those "scrollTo"  script fragments?

6. Note that you can configure AccessLogValve to log your thread name 
(%I),
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

Best regards,
Konstantin Kolinko

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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
Hi,

We still have this issue open. The problem is happening from time to time. 
I have some wireshark logging. can this help you to further investigate?

Walter




From:   Konstantin Kolinko <kn...@gmail.com>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 19:58
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



2014-02-03 Mark Thomas <ma...@apache.org>:
> On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
>> I can't reproduce it with simple web application, it happens in one of 
our
>> applications, SDL WorldServer application which we bought for
>> translations. Even there the issue is random.

1. When response mixups happen, the first thing I would recommend is
to set the following system property (you can add it to
catalina.properties file):

apache.catalina.connector.RECYCLE_FACADES=true

Documentation:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security

That will make your configuration more secure (at price of some
performance) and will raise the chances that meddling with
requests/response objects outside of their lifecycle would not go
unnoticed.

Then look for any odd messages in the log files. E.g. attempts to write to 
a
closed stream, or an IllegalStateException, etc

A known culprit is javax.imageio.ImageIO API
http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues

So far it looks like an application issue, as Mark mentioned.

2. The convention on this mailing list is to do not top-post.
http://tomcat.apache.org/lists.html#tomcat-users
-> 6.

3. What connector implementation are you using?

HTTP/AJP?
BIO/NIO/APR?

I guess that you use HTTP and are behind an HTTP proxy.

4. Do you use any Asynchronous IO, Comet, WebSockets (e.g. via
Atmosphere framework)?

5. In your traffic snippet,
does that HTML response match the request, or a previous request?

What generates those "scrollTo"  script fragments?

6. Note that you can configure AccessLogValve to log your thread name 
(%I),
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

Best regards,
Konstantin Kolinko

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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-02-03 Mark Thomas <ma...@apache.org>:
> On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
>> I can't reproduce it with simple web application, it happens in one of our
>> applications, SDL WorldServer application which we bought for
>> translations. Even there the issue is random.

1. When response mixups happen, the first thing I would recommend is
to set the following system property (you can add it to
catalina.properties file):

apache.catalina.connector.RECYCLE_FACADES=true

Documentation:
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security

That will make your configuration more secure (at price of some
performance) and will raise the chances that meddling with
requests/response objects outside of their lifecycle would not go
unnoticed.

Then look for any odd messages in the log files. E.g. attempts to write to a
closed stream, or an IllegalStateException, etc

A known culprit is javax.imageio.ImageIO API
http://wiki.apache.org/tomcat/FAQ/KnownIssues#ImageIOIssues

So far it looks like an application issue, as Mark mentioned.

2. The convention on this mailing list is to do not top-post.
http://tomcat.apache.org/lists.html#tomcat-users
-> 6.

3. What connector implementation are you using?

HTTP/AJP?
BIO/NIO/APR?

I guess that you use HTTP and are behind an HTTP proxy.

4. Do you use any Asynchronous IO, Comet, WebSockets (e.g. via
Atmosphere framework)?

5. In your traffic snippet,
does that HTML response match the request, or a previous request?

What generates those "scrollTo"  script fragments?

6. Note that you can configure AccessLogValve to log your thread name (%I),
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html

Best regards,
Konstantin Kolinko

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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Mark Thomas <ma...@apache.org>.
On 03/02/2014 12:46, Walter.Heestermans@toyota-europe.com wrote:
> I can't reproduce it with simple web application, it happens in one of our 
> applications, SDL WorldServer application which we bought for 
> translations. Even there the issue is random.

Do the affected requests pass through any filters? Do you have the
source code for those filters?

Mark


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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
I can't reproduce it with simple web application, it happens in one of our 
applications, SDL WorldServer application which we bought for 
translations. Even there the issue is random.

Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 13:43
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 11:21, Walter.Heestermans@toyota-europe.com wrote:
> If it can't be disabled, who is then generating the issue, can it be 
> tomcat issue or issue application relatd, not using correct response?

As per my original response, this is most likely an application issue.

Can you reproduce this with a simple web application (ideally a single
Servlet or JSP) that demonstrates the issue on a clean Tomcat 
installation?

Mark

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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Mark Thomas <ma...@apache.org>.
On 03/02/2014 11:21, Walter.Heestermans@toyota-europe.com wrote:
> If it can't be disabled, who is then generating the issue, can it be 
> tomcat issue or issue application relatd, not using correct response?

As per my original response, this is most likely an application issue.

Can you reproduce this with a simple web application (ideally a single
Servlet or JSP) that demonstrates the issue on a clean Tomcat installation?

Mark

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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
If it can't be disabled, who is then generating the issue, can it be 
tomcat issue or issue application relatd, not using correct response?

Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 12:10
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 10:47, Walter.Heestermans@toyota-europe.com wrote:
> Hi,
> 
> I have requested the trext format. In the meantime, how can I disable 
the 
> 'Chunked Transfer-Encoding' inside Tomcat server?

You can't.

Mark


> 
> Regards
> Walter
> 
> 
> 
> 
> From:   Mark Thomas <ma...@apache.org>
> To:     Tomcat Users List <us...@tomcat.apache.org>, 
> Date:   03/02/2014 11:15
> Subject:        Re: Tomcat and "Chunked Transfer-Encoding"
> 
> 
> 
> On 03/02/2014 09:34, Walter.Heestermans@toyota-europe.com wrote:
>> Hi,
>>
>> We have some weird behaviopur with one of our applications using
>> apache-tomcat-6.0.37.
>>
>> This is the report of the newtork engineer:
>> /The application (or app server - apache/coyote) is returning a 
response
>> with "Chunked Transfer-Encoding", but is sending the first chunks 
before
>> giving the http headers (that defines the chunk-encoding).
> 
> That strikes me as pretty unlikely given the length of time 6.0.x has
> been released and the lack of similar reports.
> 
> It may be possible if the application is doing something it shouldn't,
> like holding on to a reference to a response object and re-using it
> across multiple requests.
> 
>> The result is that the client receives a response stating by the
>> definition on the chunk lenght (7a5), and as the header
>> "Content-Encoding" has not been received, that length definition is
>> interpreted as response characters.
>>
>> Here is a dump of the communication between TARS Reverse Proxy and the
>> Back-end. (You may notice the response headers - 200 OK - after the
>> first chunk (in blue, starting by "7a5", the length in HEX )/
>>
>>
>> See attached screenshot tcpstream.jpg.
> 
> This list strips most attachments. Just put the plain text of the HTTP
> request and response headers in the body of your e-mail.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 
> 
> 
> This e-mail may contain confidential information.
> If you are not an addressee or otherwise authorised to receive this 
message, you should not use, copy, disclose or take any action based on 
this e-mail. 
> If you have received this e-mail in error, please inform the sender 
promptly and delete this message and any attachments immediately.
> 


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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
The entry in the Event Viewer just before the Error entry says "The tomcat7
service entered the stopped state."

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	"Howard W. Smith, Jr." <sm...@gmail.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/06/2014 08:09 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel



On Wed, Feb 5, 2014 at 2:09 PM, <ja...@hna.honda.com> wrote:

> OK, this is what I see in the Event Viewer under General tab
> "The tomcat7 service terminated with service-specific error Incorrect
> function.."
>
> Under Details tab, I see the following in XML view
> - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
>       - <System>
>         <Provider Name="Service Control Manager" Guid="
>         {555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service
>         Control Manager" />
>         <EventID Qualifiers="49152">7024</EventID>
>         <Version>0</Version>
>         <Level>2</Level>
>         <Task>0</Task>
>         <Opcode>0</Opcode>
>         <Keywords>0x8080000000000000</Keywords>
>         <TimeCreated SystemTime="2014-02-05T19:04:06.253413900Z" />
>         <EventRecordID>67562</EventRecordID>
>         <Correlation />
>         <Execution ProcessID="872" ThreadID="6044" />
>         <Channel>System</Channel>
>         <Computer>TORAHMLF3DTKX1.am.mds.honda.com</Computer>
>         <Security />
>     </System>
>       - <EventData>
>         <Data Name="param1">tomcat7</Data>
>         <Data Name="param2">%%1</Data>
>     </EventData>
>   </Event>
>
>   Can anyone tell me what that is trying to tell me?
>
>   Thank you
>

did you see anything else in the Event Viewer that occurred around the same
time that this event occurred (in Event Viewer)?

also, i wonder if he following can help solve this issue?

      - <EventData>
        <Data Name="param1">tomcat7</Data>
        <Data Name="param2">%%1</Data>
    </EventData>



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


RE: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
Oh good.  I am glad that I was not alone.

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	"Hyde, Howard" <ho...@bankofamerica.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/06/2014 02:27 PM
Subject:	RE: unable to start Tomcat through the Windows Services panel



Javier,
Thank you for being my guinea pig today.  I've been having all the same
problems as you, on the same day, with the same resolution. Following this
thread finally seems to have provided the breakthrough.
-Howard

-----Original Message-----
From: javier_espana@hna.honda.com [mailto:javier_espana@hna.honda.com]
Sent: Thursday, February 06, 2014 2:12 PM
To: Tomcat Users List
Subject: Re: unable to start Tomcat through the Windows Services panel

That did it.  It works fine now.

Thank you very much Thomas

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***



----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only,
may contain information that is privileged, confidential and/or proprietary
and subject to important terms and conditions available at
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended
recipient, please delete this message.

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




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


RE: unable to start Tomcat through the Windows Services panel

Posted by "Hyde, Howard" <ho...@bankofamerica.com>.
Javier,
Thank you for being my guinea pig today.  I've been having all the same problems as you, on the same day, with the same resolution. Following this thread finally seems to have provided the breakthrough.
-Howard

-----Original Message-----
From: javier_espana@hna.honda.com [mailto:javier_espana@hna.honda.com] 
Sent: Thursday, February 06, 2014 2:12 PM
To: Tomcat Users List
Subject: Re: unable to start Tomcat through the Windows Services panel

That did it.  It works fine now.

Thank you very much Thomas

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***



----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may contain information that is privileged, confidential and/or proprietary and subject to important terms and conditions available at http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended recipient, please delete this message.

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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
That did it.  It works fine now.

Thank you very much Thomas

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	Mark Thomas <ma...@apache.org>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/06/2014 11:57 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel



On 06/02/2014 19:51, javier_espana@hna.honda.com wrote:
> In some other part of the documentation it says to
> download the binary version and expand it in its own directory, which I
> did, but I can not find a Windows program that will install it and set it
> up as a service.

Try the download page:
http://tomcat.apache.org/download-70.cgi

Then look for the "32-bit/64-bit Windows Service Installer"

Is it really that hard to find?

Mark


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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by Mark Thomas <ma...@apache.org>.
On 06/02/2014 19:51, javier_espana@hna.honda.com wrote:
> In some other part of the documentation it says to
> download the binary version and expand it in its own directory, which I
> did, but I can not find a Windows program that will install it and set it
> up as a service.

Try the download page:
http://tomcat.apache.org/download-70.cgi

Then look for the "32-bit/64-bit Windows Service Installer"

Is it really that hard to find?

Mark


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


Re: unable to start Tomcat through the Windows Services panel

Posted by Mark Eggers <it...@yahoo.com>.
Replies inline.

On 2/6/2014 11:51 AM, javier_espana@hna.honda.com wrote:
> I remember installing an older version of Tomcat some years ago and it had
> a Setup.exe or Install.exe program in its library which invoked the Windows
> installer and installed it as a service.  Some of the documentation for
> version 7 mentions the Windows installer but does not provide a link or
> gives an actual name.  In some other part of the documentation it says to
> download the binary version and expand it in its own directory, which I
> did, but I can not find a Windows program that will install it and set it
> up as a service.
> I am running Windows 7  64 bit and I did download the Tomcat 64 bit binary
> version
>
> I also tried at the command prompt the following to install it as a
> service, which I did, but it still will not start through the Windows
> Services panel.
> tomcat7 //IS//Tomcat7 --DisplayName="Apache Tomcat 7"
> --Install="C:\Tomcat7042\bin\tomcat7.exe" --Jvm=auto --StartMode=jvm
> --StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap
> --StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap
> --StopParams=stop
>
> Thank you
>

The installer is on the download page:

http://tomcat.apache.org/download-70.cgi

It's under Binary Distributions, and it's the last link before Full 
Documentation:

The link title is:

32-bit/64-bit Windows Service Installer (pgp, md5)

This should auto-detect which JVM you have installed on your machine.

As additional points of interest, could you open up a command line 
window and type:

java -version
echo %JRE_HOME%
echo %JAVA_HOME%

and paste the output into a response on the list?

. . . . just my two cents.
/mde/

>
> From:	André Warnier <aw...@ice-sa.com>
> To:	Tomcat Users List <us...@tomcat.apache.org>,
> Date:	02/06/2014 11:14 AM
> Subject:	Re: unable to start Tomcat through the Windows Services panel
>
>
>
> javier_espana@hna.honda.com wrote:
>> Andre:
>> I used the batch file "SERVICE.BAT INSTALL"  without any additional
>> parameters.  Was I missing some parameter?
>
> Possibly.  Depending on your particulat case, you may have needed to
> specifiy some option,
> and because you did not, it may have placed a wrong parameter somewhere, or
> used the wrong
> version of some module.
> I don't really now, this is just speculation.  But obviously there is
> something wrong with
> the way your Service is defined.
>
> Or is there a better way of
>> installing Tomcat?
>>
>
> If all you want is to run Tomcat as a Service, then yes there is an easier
> way : download
> the "installer" version from the Tomcat website, and run it.
>
> I am a bit unfamiliar with the SERVICE.BAT file, but I would guess that it
> can also be run
> to uninstall the Service that you have already installed now.  If it does
> offer that, then
> run the "SERVICE.BAT uninstall" first, and then run the "installer" that
> you downloaded.
> You can install it in the same directory as before, and it will just
> overwrite some files.
>
> As others have testified before, the installer version works fine and does
> the right thing
> automatically.
>
> Note that the "installer" version does not install all the files which are
> contained in
> the zip version, only the subset of them needed to run the Service version.
> It does not
> for example install the BAT files, since they are not needed to run the
> Service.



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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
I remember installing an older version of Tomcat some years ago and it had
a Setup.exe or Install.exe program in its library which invoked the Windows
installer and installed it as a service.  Some of the documentation for
version 7 mentions the Windows installer but does not provide a link or
gives an actual name.  In some other part of the documentation it says to
download the binary version and expand it in its own directory, which I
did, but I can not find a Windows program that will install it and set it
up as a service.
I am running Windows 7  64 bit and I did download the Tomcat 64 bit binary
version

I also tried at the command prompt the following to install it as a
service, which I did, but it still will not start through the Windows
Services panel.
tomcat7 //IS//Tomcat7 --DisplayName="Apache Tomcat 7"
--Install="C:\Tomcat7042\bin\tomcat7.exe" --Jvm=auto --StartMode=jvm
--StopMode=jvm --StartClass=org.apache.catalina.startup.Bootstrap
--StartParams=start --StopClass=org.apache.catalina.startup.Bootstrap
--StopParams=stop

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	André Warnier <aw...@ice-sa.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/06/2014 11:14 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel



javier_espana@hna.honda.com wrote:
> Andre:
> I used the batch file "SERVICE.BAT INSTALL"  without any additional
> parameters.  Was I missing some parameter?

Possibly.  Depending on your particulat case, you may have needed to
specifiy some option,
and because you did not, it may have placed a wrong parameter somewhere, or
used the wrong
version of some module.
I don't really now, this is just speculation.  But obviously there is
something wrong with
the way your Service is defined.

Or is there a better way of
> installing Tomcat?
>

If all you want is to run Tomcat as a Service, then yes there is an easier
way : download
the "installer" version from the Tomcat website, and run it.

I am a bit unfamiliar with the SERVICE.BAT file, but I would guess that it
can also be run
to uninstall the Service that you have already installed now.  If it does
offer that, then
run the "SERVICE.BAT uninstall" first, and then run the "installer" that
you downloaded.
You can install it in the same directory as before, and it will just
overwrite some files.

As others have testified before, the installer version works fine and does
the right thing
automatically.

Note that the "installer" version does not install all the files which are
contained in
the zip version, only the subset of them needed to run the Service version.
It does not
for example install the BAT files, since they are not needed to run the
Service.


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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by André Warnier <aw...@ice-sa.com>.
javier_espana@hna.honda.com wrote:
> Andre:
> I used the batch file "SERVICE.BAT INSTALL"  without any additional
> parameters.  Was I missing some parameter? 

Possibly.  Depending on your particulat case, you may have needed to specifiy some option, 
and because you did not, it may have placed a wrong parameter somewhere, or used the wrong 
version of some module.
I don't really now, this is just speculation.  But obviously there is something wrong with 
the way your Service is defined.

Or is there a better way of
> installing Tomcat?
> 

If all you want is to run Tomcat as a Service, then yes there is an easier way : download 
the "installer" version from the Tomcat website, and run it.

I am a bit unfamiliar with the SERVICE.BAT file, but I would guess that it can also be run 
to uninstall the Service that you have already installed now.  If it does offer that, then 
run the "SERVICE.BAT uninstall" first, and then run the "installer" that you downloaded. 
You can install it in the same directory as before, and it will just overwrite some files.

As others have testified before, the installer version works fine and does the right thing 
automatically.

Note that the "installer" version does not install all the files which are contained in 
the zip version, only the subset of them needed to run the Service version.  It does not 
for example install the BAT files, since they are not needed to run the Service.


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


RE: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
Andre:
I used the batch file "SERVICE.BAT INSTALL"  without any additional
parameters.  Was I missing some parameter? Or is there a better way of
installing Tomcat?

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	Jeffrey Janner <Je...@PolyDyne.com>
To:	"'Tomcat Users List'" <us...@tomcat.apache.org>, "'Tomcat Users
            List'" <us...@tomcat.apache.org>,
Date:	02/06/2014 08:43 AM
Subject:	RE: unable to start Tomcat through the Windows Services panel



> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com]
> Sent: Thursday, February 06, 2014 10:33 AM
> To: Tomcat Users List
> Subject: Re: unable to start Tomcat through the Windows Services panel
>
> Hi.
>
> javier_espana@hna.honda.com wrote:
> > OK, this is what I see in the Event Viewer under General tab "The
> > tomcat7 service terminated with service-specific error Incorrect
> > function.."
> >
>
> Let's start from the beginning.
>
> If you don't get logfiles in the Tomcat/logs directory, then chances
> are that Windows does not even begin to run Tomcat, and that there is
> an error right at the start, when it tries to run it.
>
> So first read this : http://wiki.apache.org/tomcat/FAQ/Windows#Q11
>
> That will explain /what/ you are actually running, when you (try to)
> run Tomcat as a Service in Windows, and why it is different from
> running Tomcat in a command window.
> Go ahead, read it, we'll wait right here.
>
> ... some time later :
>
> Now you know
> - that tomcat7.exe is a Windows executable program
> - it is the program which the Windows Service Manager tries to start,
> when you start the
> Tomcat7 Service
> - but tomcat7.exe is not really Tomcat; it is a "wrapper" program that
> runs the Java JVM which in turn runs Tomcat.
>
> And to start the Java JVM, and pass to this java JVM the appropriate
> parameters, tomcat7.exe reads these parameters from the Windows
> Registry somewhere.
>
> And to be nice, the Tomcat developers have even provided a specialised
> GUI editor, that allows you to view, set or modify these Tomcat
> Registry parameters that are used by tomcat7.exe.
> And that is the program tomcat7w.exe.  So go ahead now, double-click on
> tomcat7w.exe, and look at the information it shows in the various tabs.
> That is probably where something is wrong.
>
> Or else what is wrong, is that the version of tomcat7.exe that you have
> installed, does not match the version of Windows that you are running.
> For example, tomcat7.exe is a 32-bit program, but your Windows PC runs
> a 64-bit version of Windows.  Or vice-versa.
>
> Or that in the Service definition of the Tomcat7 Service, the path to
> tomcat7.exe is incorrect.
> You see that path in the first tab of the GUI.
>

André -
Good points. I'd been following this thread out of curiosity and was just
beginning to think that it was obviously a service configuration error.  I
don't have the entire thread handy, and haven't looked at MarkMail, but I
don't remember anyone asking the OP exactly *how* he installed the service.
One would assume he used the bat file that is designed to do this, since he
mentions running tomcat from the console using startup.bat (a clear
giveaway that he's not using the fine Windows installer package that
someone spent a lot of time crafting).
Personally, I only use the installer, and never run into startup problems
unless I've set some optional parameter to an invalid value, e.g. setting a
heap size > than 1.5GB on a 32-bit machine, etc.
As you said, if you're not seeing any log files generated, then the java
isn't even getting started, so it could be several factors, not the least
of which is an invalid path to the JVM or the Tomcat jar files, etc.
Jeff


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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Wed, Feb 5, 2014 at 2:09 PM, <ja...@hna.honda.com> wrote:

> OK, this is what I see in the Event Viewer under General tab
> "The tomcat7 service terminated with service-specific error Incorrect
> function.."
>
> Under Details tab, I see the following in XML view
> - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
>       - <System>
>         <Provider Name="Service Control Manager" Guid="
>         {555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service
>         Control Manager" />
>         <EventID Qualifiers="49152">7024</EventID>
>         <Version>0</Version>
>         <Level>2</Level>
>         <Task>0</Task>
>         <Opcode>0</Opcode>
>         <Keywords>0x8080000000000000</Keywords>
>         <TimeCreated SystemTime="2014-02-05T19:04:06.253413900Z" />
>         <EventRecordID>67562</EventRecordID>
>         <Correlation />
>         <Execution ProcessID="872" ThreadID="6044" />
>         <Channel>System</Channel>
>         <Computer>TORAHMLF3DTKX1.am.mds.honda.com</Computer>
>         <Security />
>     </System>
>       - <EventData>
>         <Data Name="param1">tomcat7</Data>
>         <Data Name="param2">%%1</Data>
>     </EventData>
>   </Event>
>
>   Can anyone tell me what that is trying to tell me?
>
>   Thank you
>

did you see anything else in the Event Viewer that occurred around the same
time that this event occurred (in Event Viewer)?

also, i wonder if he following can help solve this issue?

      - <EventData>
        <Data Name="param1">tomcat7</Data>
        <Data Name="param2">%%1</Data>
    </EventData>

Re: unable to start Tomcat through the Windows Services panel

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Thu, Feb 6, 2014 at 11:42 AM, Jeffrey Janner <Jeffrey.Janner@polydyne.com
> wrote:

> > -----Original Message-----
> > From: André Warnier [mailto:aw@ice-sa.com]
> > Sent: Thursday, February 06, 2014 10:33 AM
> > To: Tomcat Users List
> > Subject: Re: unable to start Tomcat through the Windows Services panel
> >
> > Hi.
> >
> > javier_espana@hna.honda.com wrote:
> > > OK, this is what I see in the Event Viewer under General tab "The
> > > tomcat7 service terminated with service-specific error Incorrect
> > > function.."
> > >
> >
> > Let's start from the beginning.
> >
> > If you don't get logfiles in the Tomcat/logs directory, then chances
> > are that Windows does not even begin to run Tomcat, and that there is
> > an error right at the start, when it tries to run it.
> >
> > So first read this : http://wiki.apache.org/tomcat/FAQ/Windows#Q11
> >
> > That will explain /what/ you are actually running, when you (try to)
> > run Tomcat as a Service in Windows, and why it is different from
> > running Tomcat in a command window.
> > Go ahead, read it, we'll wait right here.
> >
> > ... some time later :
> >
> > Now you know
> > - that tomcat7.exe is a Windows executable program
> > - it is the program which the Windows Service Manager tries to start,
> > when you start the
> > Tomcat7 Service
> > - but tomcat7.exe is not really Tomcat; it is a "wrapper" program that
> > runs the Java JVM which in turn runs Tomcat.
> >
> > And to start the Java JVM, and pass to this java JVM the appropriate
> > parameters, tomcat7.exe reads these parameters from the Windows
> > Registry somewhere.
> >
> > And to be nice, the Tomcat developers have even provided a specialised
> > GUI editor, that allows you to view, set or modify these Tomcat
> > Registry parameters that are used by tomcat7.exe.
> > And that is the program tomcat7w.exe.  So go ahead now, double-click on
> > tomcat7w.exe, and look at the information it shows in the various tabs.
> > That is probably where something is wrong.
> >
> > Or else what is wrong, is that the version of tomcat7.exe that you have
> > installed, does not match the version of Windows that you are running.
> > For example, tomcat7.exe is a 32-bit program, but your Windows PC runs
> > a 64-bit version of Windows.  Or vice-versa.
> >
> > Or that in the Service definition of the Tomcat7 Service, the path to
> > tomcat7.exe is incorrect.
> > You see that path in the first tab of the GUI.
> >
>
> André -
> Good points. I'd been following this thread out of curiosity and was just
> beginning to think that it was obviously a service configuration error.


Agreed, and I was following this thread for the same reason.


> I don't have the entire thread handy, and haven't looked at MarkMail, but
> I don't remember anyone asking the OP exactly *how* he installed the
> service.


I had the same thought.


> One would assume he used the bat file that is designed to do this, since
> he mentions running tomcat from the console using startup.bat (a clear
> giveaway that he's not using the fine Windows installer package that
> someone spent a lot of time crafting).
>

Honestly, I forgot all the specific details of how/when I installed
tomcat/tomee as a Windows service, but I found it quite intuitive...using
the .bat file approach via Windows Command Prompt. The .bat file informed
me of the proper 'usage', and I easily installed tomcat/tomee as a Windows
Service, via command line (or .bat file), accordingly.

And I do use the tomcat7w.exe to modify java options, etc... I never have
to open Windows 'Services' to start/stop tomcat/tomee.

RE: unable to start Tomcat through the Windows Services panel

Posted by Jeffrey Janner <Je...@PolyDyne.com>.
> -----Original Message-----
> From: André Warnier [mailto:aw@ice-sa.com]
> Sent: Thursday, February 06, 2014 10:33 AM
> To: Tomcat Users List
> Subject: Re: unable to start Tomcat through the Windows Services panel
> 
> Hi.
> 
> javier_espana@hna.honda.com wrote:
> > OK, this is what I see in the Event Viewer under General tab "The
> > tomcat7 service terminated with service-specific error Incorrect
> > function.."
> >
> 
> Let's start from the beginning.
> 
> If you don't get logfiles in the Tomcat/logs directory, then chances
> are that Windows does not even begin to run Tomcat, and that there is
> an error right at the start, when it tries to run it.
> 
> So first read this : http://wiki.apache.org/tomcat/FAQ/Windows#Q11
> 
> That will explain /what/ you are actually running, when you (try to)
> run Tomcat as a Service in Windows, and why it is different from
> running Tomcat in a command window.
> Go ahead, read it, we'll wait right here.
> 
> ... some time later :
> 
> Now you know
> - that tomcat7.exe is a Windows executable program
> - it is the program which the Windows Service Manager tries to start,
> when you start the
> Tomcat7 Service
> - but tomcat7.exe is not really Tomcat; it is a "wrapper" program that
> runs the Java JVM which in turn runs Tomcat.
> 
> And to start the Java JVM, and pass to this java JVM the appropriate
> parameters, tomcat7.exe reads these parameters from the Windows
> Registry somewhere.
> 
> And to be nice, the Tomcat developers have even provided a specialised
> GUI editor, that allows you to view, set or modify these Tomcat
> Registry parameters that are used by tomcat7.exe.
> And that is the program tomcat7w.exe.  So go ahead now, double-click on
> tomcat7w.exe, and look at the information it shows in the various tabs.
> That is probably where something is wrong.
> 
> Or else what is wrong, is that the version of tomcat7.exe that you have
> installed, does not match the version of Windows that you are running.
> For example, tomcat7.exe is a 32-bit program, but your Windows PC runs
> a 64-bit version of Windows.  Or vice-versa.
> 
> Or that in the Service definition of the Tomcat7 Service, the path to
> tomcat7.exe is incorrect.
> You see that path in the first tab of the GUI.
> 

André -
Good points. I'd been following this thread out of curiosity and was just beginning to think that it was obviously a service configuration error.  I don't have the entire thread handy, and haven't looked at MarkMail, but I don't remember anyone asking the OP exactly *how* he installed the service. One would assume he used the bat file that is designed to do this, since he mentions running tomcat from the console using startup.bat (a clear giveaway that he's not using the fine Windows installer package that someone spent a lot of time crafting).
Personally, I only use the installer, and never run into startup problems unless I've set some optional parameter to an invalid value, e.g. setting a heap size > than 1.5GB on a 32-bit machine, etc.
As you said, if you're not seeing any log files generated, then the java isn't even getting started, so it could be several factors, not the least of which is an invalid path to the JVM or the Tomcat jar files, etc.
Jeff


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


Re: unable to start Tomcat through the Windows Services panel

Posted by André Warnier <aw...@ice-sa.com>.
André Warnier wrote:
> Hi.
> 
> javier_espana@hna.honda.com wrote:
>> OK, this is what I see in the Event Viewer under General tab
>> "The tomcat7 service terminated with service-specific error Incorrect
>> function.."
>>
> 
> Let's start from the beginning.
> 
> If you don't get logfiles in the Tomcat/logs directory, then chances are 
> that Windows does not even begin to run Tomcat, and that there is an 
> error right at the start, when it tries to run it.
> 
> So first read this : http://wiki.apache.org/tomcat/FAQ/Windows#Q11
> 
> That will explain /what/ you are actually running, when you (try to) run 
> Tomcat as a Service in Windows, and why it is different from running 
> Tomcat in a command window.
> Go ahead, read it, we'll wait right here.
> 
> ... some time later :
> 
> Now you know
> - that tomcat7.exe is a Windows executable program
> - it is the program which the Windows Service Manager tries to start, 
> when you start the Tomcat7 Service
> - but tomcat7.exe is not really Tomcat; it is a "wrapper" program that 
> runs the Java JVM which in turn runs Tomcat.
> 
> And to start the Java JVM, and pass to this java JVM the appropriate 
> parameters, tomcat7.exe reads these parameters from the Windows Registry 
> somewhere.
> 
> And to be nice, the Tomcat developers have even provided a specialised 
> GUI editor, that allows you to view, set or modify these Tomcat Registry 
> parameters that are used by tomcat7.exe.
> And that is the program tomcat7w.exe.  So go ahead now, double-click on 
> tomcat7w.exe, and look at the information it shows in the various tabs.
> That is probably where something is wrong.
> 
> Or else what is wrong, is that the version of tomcat7.exe that you have 
> installed, does not match the version of Windows that you are running.  
> For example, tomcat7.exe is a 32-bit program, but your Windows PC runs a 
> 64-bit version of Windows.  Or vice-versa.
> 
> Or that in the Service definition of the Tomcat7 Service, the path to 
> tomcat7.exe is incorrect.
> You see that path in the first tab of the GUI.
> 
> 
Correction :
(it's correct in the FAQ, but wrong above)

The tomcat7.exe 32- or 64-bit version must match the 32- or 64-bit version *of the JVM* 
that you are running, not the version of Windows.

Of course, on a 32-bit Windows you can only run a 32-bit JVM, but I suppose that's not 
your case.
You /could/ be running a 64-bit JVM, and be trying to start it with a 32-bit tomcat7.exe, 
and that would not work.

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


Re: unable to start Tomcat through the Windows Services panel

Posted by André Warnier <aw...@ice-sa.com>.
Hi.

javier_espana@hna.honda.com wrote:
> OK, this is what I see in the Event Viewer under General tab
> "The tomcat7 service terminated with service-specific error Incorrect
> function.."
> 

Let's start from the beginning.

If you don't get logfiles in the Tomcat/logs directory, then chances are that Windows does 
not even begin to run Tomcat, and that there is an error right at the start, when it tries 
to run it.

So first read this : http://wiki.apache.org/tomcat/FAQ/Windows#Q11

That will explain /what/ you are actually running, when you (try to) run Tomcat as a 
Service in Windows, and why it is different from running Tomcat in a command window.
Go ahead, read it, we'll wait right here.

... some time later :

Now you know
- that tomcat7.exe is a Windows executable program
- it is the program which the Windows Service Manager tries to start, when you start the 
Tomcat7 Service
- but tomcat7.exe is not really Tomcat; it is a "wrapper" program that runs the Java JVM 
which in turn runs Tomcat.

And to start the Java JVM, and pass to this java JVM the appropriate parameters, 
tomcat7.exe reads these parameters from the Windows Registry somewhere.

And to be nice, the Tomcat developers have even provided a specialised GUI editor, that 
allows you to view, set or modify these Tomcat Registry parameters that are used by 
tomcat7.exe.
And that is the program tomcat7w.exe.  So go ahead now, double-click on tomcat7w.exe, and 
look at the information it shows in the various tabs.
That is probably where something is wrong.

Or else what is wrong, is that the version of tomcat7.exe that you have installed, does 
not match the version of Windows that you are running.  For example, tomcat7.exe is a 
32-bit program, but your Windows PC runs a 64-bit version of Windows.  Or vice-versa.

Or that in the Service definition of the Tomcat7 Service, the path to tomcat7.exe is 
incorrect.
You see that path in the first tab of the GUI.




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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
OK, this is what I see in the Event Viewer under General tab
"The tomcat7 service terminated with service-specific error Incorrect
function.."

Under Details tab, I see the following in XML view
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      - <System>
        <Provider Name="Service Control Manager" Guid="
        {555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service
        Control Manager" />
        <EventID Qualifiers="49152">7024</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8080000000000000</Keywords>
        <TimeCreated SystemTime="2014-02-05T19:04:06.253413900Z" />
        <EventRecordID>67562</EventRecordID>
        <Correlation />
        <Execution ProcessID="872" ThreadID="6044" />
        <Channel>System</Channel>
        <Computer>TORAHMLF3DTKX1.am.mds.honda.com</Computer>
        <Security />
    </System>
      - <EventData>
        <Data Name="param1">tomcat7</Data>
        <Data Name="param2">%%1</Data>
    </EventData>
  </Event>

  Can anyone tell me what that is trying to tell me?

  Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	chris derham <ch...@derham.me.uk>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/05/2014 10:37 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel
Sent by:	cjderham@gmail.com



On 5 February 2014 16:34,  <ja...@hna.honda.com> wrote:
> How do I get to the Windows Event Viewer in Windows 7?

http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7

> Thanks

Your welcome. Anytime you want something from google, please ask here first

Chris

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




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


Re: unable to start Tomcat through the Windows Services panel

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

Chris,

On 2/5/14, 1:36 PM, chris derham wrote:
> On 5 February 2014 16:34,  <ja...@hna.honda.com> wrote:
>> How do I get to the Windows Event Viewer in Windows 7?
> 
> http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7
>
> 
>> Thanks
> 
> Your welcome. Anytime you want something from google, please ask
> here first

Feel free to end your snarkiness after the LMGTFY response. There's no
need to be outright rude.

And you misspelled "you're".

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS8ptDAAoJEBzwKT+lPKRYiQoP/jVre3pcj2Cf+1DiXPHCXfkU
ZTP1Y4cTTqFEYaA0fWzEXkybQI9VsWVqPdzd9lLXznRZgsZxOCj71TCVcT0PHPz+
CKDzLE5c1cLaUG9HSGbkT8Zu7mmV+aO02AOgZgV1A0UgqrMZX3v1D8MIrnKJAw9W
a5T6CBf7z8sIMTjhYvzjq+p7xbNcw7lVcNIVXKhQly3mjaPoAZBV1CiRRlJ+mRqY
uuvnRlgTfTtWRRuL/S+EApytckvh/Aa2XFbDjdL+FWwETfKVjgl/XTxrCo7YbBMM
lGRdrS8r43fGjx/mRu3TisnezXngBk+CAUsgV5ET1Bt75LLO1xVyqQBoRVdBFwoq
ZuvYgdTa3LuAA0aoJM59qB38nV1Voq+GjcDairxj3qrhUoC4d20BDo2NfyzZw7t8
C//24yEykg+ixWtURdgjQJqFagXIS1hojQj2KeiKmGISzLkp8Aenw5mkqrgxzG7J
gfSLs0+qX/hKKAsuh0GKR05RvykwCSEbAPRsQRF/aw9JRDYW7x+fY7wvKDpH9s1m
tJbutfTnxylJQrZYstUjZR26k0Pvk+tu27pJjEWR8SOnj6WVF2zeSQ5Pqhp70tqg
L0e0L1Y+HBgZ2hR+KtfTaNKwj3jvbRRvqul3SMikTUer64l4+Zn50WK8aWCCvKoa
mmY0IUP3de/aryj/Hi0o
=JmDl
-----END PGP SIGNATURE-----

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


Re: unable to start Tomcat through the Windows Services panel

Posted by chris derham <ch...@derham.me.uk>.
On 5 February 2014 16:34,  <ja...@hna.honda.com> wrote:
> How do I get to the Windows Event Viewer in Windows 7?

http://lmgtfy.com/?q=How+do+I+get+to+the+Windows+Event+Viewer+in+Windows+7

> Thanks

Your welcome. Anytime you want something from google, please ask here first

Chris

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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
How do I get to the Windows Event Viewer in Windows 7?

Thanks

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	David kerber <dc...@verizon.net>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/05/2014 10:07 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel



On 2/5/2014 1:01 PM, javier_espana@hna.honda.com wrote:
> Nothing gets logged within Tomcat when I attempt to start it through the
> Windows Services panel

As Andre asked, what about Windows Event viewer?


>
> Javier España
> Sr. Technical Analyst
> Honda North American Services, LLC.
> Information Services Division
> ISD Applications
> 1919 Torrance Blvd.,
> Torrance, CA 90501
> (310) 781-4514
> Email: javier_espana@hna.honda.com
> www.honda.com
>
> ***Beginning April 1, 2013 my email changed to
javier_espana@hna.honda.com.
> Please update your contact information.
> Thank you.***
>
>
>
>
>
> From:		 Cédric Couralet <ce...@gmail.com>
> To:		 Tomcat Users List <us...@tomcat.apache.org>,
> Date:		 02/04/2014 09:31 PM
> Subject:		 Re: unable to start Tomcat through the Windows Services
panel
>
>
>
> 2014-02-04  <ja...@hna.honda.com>:
>> Thank you Mark, but it did not make a difference.  Any other idea?
>>
>
> Do you have anything in the log directory of your tomcat installation?
> There should be log for commons-daemon (used to launch the service)
> and maybe for tomcat.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by David kerber <dc...@verizon.net>.
On 2/5/2014 1:01 PM, javier_espana@hna.honda.com wrote:
> Nothing gets logged within Tomcat when I attempt to start it through the
> Windows Services panel

As Andre asked, what about Windows Event viewer?


>
> Javier España
> Sr. Technical Analyst
> Honda North American Services, LLC.
> Information Services Division
> ISD Applications
> 1919 Torrance Blvd.,
> Torrance, CA 90501
> (310) 781-4514
> Email: javier_espana@hna.honda.com
> www.honda.com
>
> ***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
> Please update your contact information.
> Thank you.***
>
>
>
>
>
> From:	Cédric Couralet <ce...@gmail.com>
> To:	Tomcat Users List <us...@tomcat.apache.org>,
> Date:	02/04/2014 09:31 PM
> Subject:	Re: unable to start Tomcat through the Windows Services panel
>
>
>
> 2014-02-04  <ja...@hna.honda.com>:
>> Thank you Mark, but it did not make a difference.  Any other idea?
>>
>
> Do you have anything in the log directory of your tomcat installation?
> There should be log for commons-daemon (used to launch the service)
> and maybe for tomcat.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
Nothing gets logged within Tomcat when I attempt to start it through the
Windows Services panel

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	Cédric Couralet <ce...@gmail.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/04/2014 09:31 PM
Subject:	Re: unable to start Tomcat through the Windows Services panel



2014-02-04  <ja...@hna.honda.com>:
> Thank you Mark, but it did not make a difference.  Any other idea?
>

Do you have anything in the log directory of your tomcat installation?
There should be log for commons-daemon (used to launch the service)
and maybe for tomcat.

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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by Cédric Couralet <ce...@gmail.com>.
2014-02-04  <ja...@hna.honda.com>:
> Thank you Mark, but it did not make a difference.  Any other idea?
>

Do you have anything in the log directory of your tomcat installation?
There should be log for commons-daemon (used to launch the service)
and maybe for tomcat.

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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
Thank you Mark, but it did not make a difference.  Any other idea?

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	Mark Eggers <it...@yahoo.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/04/2014 01:14 PM
Subject:	Re: unable to start Tomcat through the Windows Services panel



On 2/4/2014 11:25 AM, javier_espana@hna.honda.com wrote:
> Sorry for my previous attempt.
>
> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
> When I attempt to start it, I get the following message
>
> "Windows could not start the Tomcat7 on Local Computer. For more
> information, review the System Event Log. If this is a non-Microsoft
> service, contact the service vendor, and refer to service-specific error
> code 4."
>
> If I run the STARTUP.BAT batch file, it starts OK.
>
> Any help would be greatly appreciated.
>
> Thank you

I suspect that you're logged into a domain and the service is trying to
use the domain service account for which you don't have access.

I'm not a Windows person, so the above may be a bit muddled.

At any rate, go into the services properties and try running the service
with your user account and password.

The change is made on the Log On tab by clicking the "This account"
radio button and filling in the appropriate text fields.

. . . . just my two cents.
/mde/


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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by Mark Eggers <it...@yahoo.com>.
On 2/4/2014 11:25 AM, javier_espana@hna.honda.com wrote:
> Sorry for my previous attempt.
>
> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
> When I attempt to start it, I get the following message
>
> "Windows could not start the Tomcat7 on Local Computer. For more
> information, review the System Event Log. If this is a non-Microsoft
> service, contact the service vendor, and refer to service-specific error
> code 4."
>
> If I run the STARTUP.BAT batch file, it starts OK.
>
> Any help would be greatly appreciated.
>
> Thank you

I suspect that you're logged into a domain and the service is trying to 
use the domain service account for which you don't have access.

I'm not a Windows person, so the above may be a bit muddled.

At any rate, go into the services properties and try running the service 
with your user account and password.

The change is made on the Log On tab by clicking the "This account" 
radio button and filling in the appropriate text fields.

. . . . just my two cents.
/mde/


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


Re: unable to start Tomcat through the Windows Services panel

Posted by David kerber <dc...@verizon.net>.
On 2/5/2014 1:24 PM, javier_espana@hna.honda.com wrote:
> I tried changing the logon setup to use my ID and password but it did not
> make a difference.
>
> How do I get to the "System Event Log" in Windows 7?

It's in Administrative Tools | Computer Management, in the System Tools 
branch.  There are a bunch of different logs there.


>
> Thank you
>
> Javier España
> Sr. Technical Analyst
> Honda North American Services, LLC.
> Information Services Division
> ISD Applications
> 1919 Torrance Blvd.,
> Torrance, CA 90501
> (310) 781-4514
> Email: javier_espana@hna.honda.com
> www.honda.com
>
> ***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
> Please update your contact information.
> Thank you.***
>
>
>
>
>
> From:	André Warnier <aw...@ice-sa.com>
> To:	Tomcat Users List <us...@tomcat.apache.org>,
> Date:	02/05/2014 01:29 AM
> Subject:	Re: unable to start Tomcat through the Windows Services panel
>
>
>
> javier_espana@hna.honda.com wrote:
>> Sorry for my previous attempt.
>>
>> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
>> When I attempt to start it, I get the following message
>>
>> "Windows could not start the Tomcat7 on Local Computer. For more
>> information, review the System Event Log.
>
> and did you review it, and what does it say ?
>
>
> If this is a non-Microsoft
>> service, contact the service vendor, and refer to service-specific error
>> code 4."
>>
>> If I run the STARTUP.BAT batch file, it starts OK.
>>
>
> See Mark's previous answer.
>
> In a nutshell :
>
> When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
> - under your own logged-in user-id
> - using the parameters present in the various BAT files present in
> Tomcat/bin
>
> When you run Tomcat as a Service, it starts up :
> - under whatever user-id the Service is configured to run under
> - using parameters in the Registry (it does not use the BAT files at all)
> (The Registry parameters can be edited via the GUI editor tomcat7w.exe,
> also in Tomcat/bin)
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


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


Re: unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
I tried changing the logon setup to use my ID and password but it did not
make a difference.

How do I get to the "System Event Log" in Windows 7?

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***





From:	André Warnier <aw...@ice-sa.com>
To:	Tomcat Users List <us...@tomcat.apache.org>,
Date:	02/05/2014 01:29 AM
Subject:	Re: unable to start Tomcat through the Windows Services panel



javier_espana@hna.honda.com wrote:
> Sorry for my previous attempt.
>
> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
> When I attempt to start it, I get the following message
>
> "Windows could not start the Tomcat7 on Local Computer. For more
> information, review the System Event Log.

and did you review it, and what does it say ?


If this is a non-Microsoft
> service, contact the service vendor, and refer to service-specific error
> code 4."
>
> If I run the STARTUP.BAT batch file, it starts OK.
>

See Mark's previous answer.

In a nutshell :

When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
- under your own logged-in user-id
- using the parameters present in the various BAT files present in
Tomcat/bin

When you run Tomcat as a Service, it starts up :
- under whatever user-id the Service is configured to run under
- using parameters in the Registry (it does not use the BAT files at all)
(The Registry parameters can be edited via the GUI editor tomcat7w.exe,
also in Tomcat/bin)





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




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


Re: unable to start Tomcat through the Windows Services panel

Posted by André Warnier <aw...@ice-sa.com>.
javier_espana@hna.honda.com wrote:
> Sorry for my previous attempt.
> 
> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
> When I attempt to start it, I get the following message
> 
> "Windows could not start the Tomcat7 on Local Computer. For more
> information, review the System Event Log. 

and did you review it, and what does it say ?


If this is a non-Microsoft
> service, contact the service vendor, and refer to service-specific error
> code 4."
> 
> If I run the STARTUP.BAT batch file, it starts OK.
> 

See Mark's previous answer.

In a nutshell :

When you run Tomcat via STARTUP.BAT in a command window, Tomcat starts up :
- under your own logged-in user-id
- using the parameters present in the various BAT files present in Tomcat/bin

When you run Tomcat as a Service, it starts up :
- under whatever user-id the Service is configured to run under
- using parameters in the Registry (it does not use the BAT files at all)
(The Registry parameters can be edited via the GUI editor tomcat7w.exe, also in Tomcat/bin)





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


unable to start Tomcat through the Windows Services panel

Posted by ja...@hna.honda.com.
Sorry for my previous attempt.

I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
When I attempt to start it, I get the following message

"Windows could not start the Tomcat7 on Local Computer. For more
information, review the System Event Log. If this is a non-Microsoft
service, contact the service vendor, and refer to service-specific error
code 4."

If I run the STARTUP.BAT batch file, it starts OK.

Any help would be greatly appreciated.

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***


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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Mark Eggers <it...@yahoo.com>.
On 2/4/2014 10:59 AM, javier_espana@hna.honda.com wrote:
>
> I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
> When I attempt to start it, I get the following message
> (Embedded image moved to file: pic54835.gif)
>
> If I run the STARTUP.BAT batch file, it starts OK.
>
> Has anyone run into that situation before?
>
> Any help would be greatly appreciated.
>
> Thank you
>
> Javier España
> Sr. Technical Analyst
> Honda North American Services, LLC.
> Information Services Division
> ISD Applications
> 1919 Torrance Blvd.,
> Torrance, CA 90501
> (310) 781-4514
> Email: javier_espana@hna.honda.com
> www.honda.com
>
> ***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
> Please update your contact information.
> Thank you.***

Don't hijack threads. Instead of hitting 'reply' to start a new message, 
write a new message with a new subject.

The list strips most attachments, so it's difficult to tell what's going on.

Could be that you're trying to authenticate against a domain service 
account? I'm just guessing since we cannot see your image.

. . . . just my two cents.
/mde/

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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by ja...@hna.honda.com.
I installed Tomcat v7.0.42 as a Windows server (I am running Windows 7).
When I attempt to start it, I get the following message
(Embedded image moved to file: pic54835.gif)

If I run the STARTUP.BAT batch file, it starts OK.

Has anyone run into that situation before?

Any help would be greatly appreciated.

Thank you

Javier España
Sr. Technical Analyst
Honda North American Services, LLC.
Information Services Division
ISD Applications
1919 Torrance Blvd.,
Torrance, CA 90501
(310) 781-4514
Email: javier_espana@hna.honda.com
www.honda.com

***Beginning April 1, 2013 my email changed to javier_espana@hna.honda.com.
Please update your contact information.
Thank you.***

Re: Tomcat and "Chunked Transfer-Encoding"

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

Walter,

On 2/3/14, 6:31 AM, Walter.Heestermans@toyota-europe.com wrote:
> Here the text format of the traffic
> 
> GET 
> /ws/ws_ext?servlet=upload_file_project_attributes&fileAttr=CompletedDTPCaptionKit&project=30452&token=1358616358&random=0.5308450920567584
>  HTTP/1.1 Host: td3worldserverlb.toyota-europe.com Accept:
> text/html, application/xhtml+xml, */* Accept-Language: nl-NL 
> User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1;
> WOW64; Trident/6.0) Accept-Encoding: gzip, deflate DNT: 1 Cookie:
> ACE_COOKIE=R660302447; TD3World=R760446058 SM_TRANSACTIONID: 
> =?UTF-8?B?MGE2NDA2MDEtNDAzMy01MjdjYzlkMy0wMDBhLTJjMWI0NjJi?= 
> SM_AUTHTYPE: =?UTF-8?B?QXV0bw==?= SM_SDOMAIN:
> =?UTF-8?B?LnRveW90YS1ldXJvcGUuY29t?= X-Forwarded-For: 77.60.99.113 
> X-Forwarded-Host: mytechdoc.toyota-europe.com X-Forwarded-Server:
> mytechdoc.toyota-europe.com Connection: Keep-Alive
> 
> 7a5

Just curious... does the response end up being 1957 bytes? I'm not
going to count them (nor can I... I don't know what newline style was
in use when the data was sent).

> <html> <head> <title>Idiom WorldServer - File Upload Page</title> 
> <link rel='stylesheet' href='style.css' type='text/css'> <script
> language=JavaScript src='general.js'></script> <script
> language=JavaScript src='ips.js'></script> <script
> language=JavaScript 
> src='ws_ext?servlet=include_proxy&fileName=ips.js&token=1358616358'></script>
>
> 
<script
> language=JavaScript>location.href=location.href+'&customopenertoken='+
>  getOpenerToken();</script> </head>
> 
> <body onload="requestFocus('uploadedFile')"> <form
> style="width:100%; height: 100%" method=post> <table width="100%"
> height="100%" cellpadding=5><tr height="1%"><td 
> class=popup_dialog_header>File Upload</td></tr><tr
> height="100%"><td valign=top> <i>Click on Browse button to browse
> and select the file to upload. </i><p><input name="uploadedFile"
> value=""  type="file" ><input name="fileAttr"
> value="CompletedDTPCaptionKit"  type="hidden" ><input name="token"
> value="1358616358"  type="hidden" ><input name="nextStep" 
> value="upload"  type="hidden" > <script language=Javascript> 
> document.forms[0].encoding='multipart/form-data'; </script> 
> </td></tr> <tr height="1%"><td><input name="ok"
> value="&nbsp;&nbsp;OK&nbsp;&nbsp;" onclick="javascript: disabled=1;
> doSubmit('ok');"  type="button"
>> &nbsp;<input name="cancel"  value="Cancel"
>> onclick="self.close();"
> type="button" ></td></tr></table><script 
> language=javascript>self.focus()</script><input type=hidden 
> name=formAction 
> value="ws_ext?servlet=upload_file_project_attributes&amp;fileAttr=CompletedDTPCaptionKit&amp;project=30452&amp;token=1358616358&amp;random=6674">
>
> 
<input type=hidden name=submittedBy value="">
> <input type=hidden name=methodUsed value=GET> <script
> language="javascript"> function doSubmit(name) { 
> document.forms[0].action=document.forms[0].formAction.value; 
> document.forms[0].target='_self'; 
> document.forms[0].submittedBy.value=name; 
> document.forms[0].submit(); } </script> </form> </body> </html>
> 
> 0
> 
> HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Transfer-Encoding:
> chunked Date: Fri, 08 Nov 2013 11:24:05 GMT
> 
> 45 . <script language=javascript>window.scrollTo(0,
> 100000000);</script> 45 . <script
> language=javascript>window.scrollTo(0, 100000000);</script> 45 .
> <script language=javascript>window.scrollTo(0,
> 100000000);</script> 45 . <script
> language=javascript>window.scrollTo(0, 100000000);</script> 45 .
> <script language=javascript>window.scrollTo(0,
> 100000000);</script> 45 . <script
> language=javascript>window.scrollTo(0, 100000000);</script> 45 .
> <script language=javascript>window.scrollTo(0,
> 100000000);</script> 45 . <script
> language=javascript>window.scrollTo(0, 100000000);</script> 45 .
> <script language=javascript>window.scrollTo(0,
> 100000000);</script> 45 . <script
> language=javascript>window.scrollTo(0, 100000000);</script>

That's odd. If you really are getting chunk #0 before the initial
headers, then what is chunk #1 supposed to include? Chunk #0 looks
like it's got a completely self-contained HTML document. Where would
the "other" chunk go into it?

What <Connector> are you using? Are you fronting the application
server with a web server like httpd, etc.? If so, how do you connect
the two of them (e.g. mod_jk, etc.)?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS79hlAAoJEBzwKT+lPKRY+A4P/3jgV6eqK2ccdL4wlhJcld94
h8mlyDXoyUDfuggi48SYNGAuqvh9QOqYz8FvEIZhc41iaghziW7BkrhVvh0u7vbv
wv7MEyYYTh2jjXvrzkKp8UIttQa8W5nvInzCG3ykIB82LFH5RwnTnezGBAtPtOp4
VVJxS+chL0XiRI/JqYm0bCOpWiKz5Xb+IV5TwrE5xcBYGB5Fi9waTrPZ6Ugm4Pdc
2e9RkcOVBefQDXDk2JeD+34B2um4J2e0xsS+irL9dSPBhXMhl8ai141/dkeRkJiF
vJ5/ET9umWoCjEb468K8hz/xHsiQ9mAxaBeMfu75eHhf/UZgcpdH933gXnJbJJGT
yCVYPuTWas/eLL9EiF0tBzrFthwgzFwiheSEk0ghi6shp3U8/IEk4AlVaA5lG09s
4f3qhSmwqFW+ITUkAOeGZAAlXLB6N8lH3D7o46KYq+Oqe9+2ogqXkTQq8R9gNQgF
CS3jaoRymWayNnGGGt+v/b2mHzc0Tt07l0i6QayhPmchWtM1W7wIuBIM3R6iyvod
8ZyOL4bAWfqGzgsfTV9gXS6gvA12Jii6fNqd72l5gPSf6GmCr5VPyWsCeAiu0CyW
ZBLN/dCyAxdLuqNF3Me8c1vWOi/VxQ6TsgI8k/1EmWTQUxOeiajaY5Aup0jPjjpe
cbfzmMBH7/ib5IKg9Hgp
=bIhK
-----END PGP SIGNATURE-----

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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
Here the text format of the traffic

GET 
/ws/ws_ext?servlet=upload_file_project_attributes&fileAttr=CompletedDTPCaptionKit&project=30452&token=1358616358&random=0.5308450920567584 
HTTP/1.1
Host: td3worldserverlb.toyota-europe.com
Accept: text/html, application/xhtml+xml, */*
Accept-Language: nl-NL
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; 
Trident/6.0)
Accept-Encoding: gzip, deflate
DNT: 1
Cookie: ACE_COOKIE=R660302447; TD3World=R760446058
SM_TRANSACTIONID: 
=?UTF-8?B?MGE2NDA2MDEtNDAzMy01MjdjYzlkMy0wMDBhLTJjMWI0NjJi?=
SM_AUTHTYPE: =?UTF-8?B?QXV0bw==?=
SM_SDOMAIN: =?UTF-8?B?LnRveW90YS1ldXJvcGUuY29t?=
X-Forwarded-For: 77.60.99.113
X-Forwarded-Host: mytechdoc.toyota-europe.com
X-Forwarded-Server: mytechdoc.toyota-europe.com
Connection: Keep-Alive

7a5
<html>
<head>
<title>Idiom WorldServer - File Upload Page</title>
<link rel='stylesheet' href='style.css' type='text/css'>
<script language=JavaScript src='general.js'></script>
<script language=JavaScript src='ips.js'></script>
<script language=JavaScript 
src='ws_ext?servlet=include_proxy&fileName=ips.js&token=1358616358'></script>
<script 
language=JavaScript>location.href=location.href+'&customopenertoken='+ 
getOpenerToken();</script>
</head>

<body onload="requestFocus('uploadedFile')">
<form style="width:100%; height: 100%" method=post>
<table width="100%" height="100%" cellpadding=5><tr height="1%"><td 
class=popup_dialog_header>File Upload</td></tr><tr height="100%"><td 
valign=top>
<i>Click on Browse button to browse and select the file to upload. 
</i><p><input name="uploadedFile"  value=""  type="file" ><input 
name="fileAttr"  value="CompletedDTPCaptionKit"  type="hidden" ><input 
name="token"  value="1358616358"  type="hidden" ><input name="nextStep" 
value="upload"  type="hidden" >
 <script language=Javascript>
  document.forms[0].encoding='multipart/form-data';
 </script>
</td></tr>
<tr height="1%"><td><input name="ok"  value="&nbsp;&nbsp;OK&nbsp;&nbsp;" 
onclick="javascript: disabled=1; doSubmit('ok');"  type="button" 
>&nbsp;<input name="cancel"  value="Cancel"  onclick="self.close();" 
type="button" ></td></tr></table><script 
language=javascript>self.focus()</script><input type=hidden 
name=formAction 
value="ws_ext?servlet=upload_file_project_attributes&amp;fileAttr=CompletedDTPCaptionKit&amp;project=30452&amp;token=1358616358&amp;random=6674">
<input type=hidden name=submittedBy value="">
<input type=hidden name=methodUsed value=GET>
<script language="javascript">
function doSubmit(name) {
 document.forms[0].action=document.forms[0].formAction.value;
 document.forms[0].target='_self';
 document.forms[0].submittedBy.value=name;
 document.forms[0].submit();
}
</script>
</form>
</body>
</html>

0

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Fri, 08 Nov 2013 11:24:05 GMT

45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>
45
. <script language=javascript>window.scrollTo(0, 100000000);</script>

Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 12:10
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 10:47, Walter.Heestermans@toyota-europe.com wrote:
> Hi,
> 
> I have requested the trext format. In the meantime, how can I disable 
the 
> 'Chunked Transfer-Encoding' inside Tomcat server?

You can't.

Mark


> 
> Regards
> Walter
> 
> 
> 
> 
> From:   Mark Thomas <ma...@apache.org>
> To:     Tomcat Users List <us...@tomcat.apache.org>, 
> Date:   03/02/2014 11:15
> Subject:        Re: Tomcat and "Chunked Transfer-Encoding"
> 
> 
> 
> On 03/02/2014 09:34, Walter.Heestermans@toyota-europe.com wrote:
>> Hi,
>>
>> We have some weird behaviopur with one of our applications using
>> apache-tomcat-6.0.37.
>>
>> This is the report of the newtork engineer:
>> /The application (or app server - apache/coyote) is returning a 
response
>> with "Chunked Transfer-Encoding", but is sending the first chunks 
before
>> giving the http headers (that defines the chunk-encoding).
> 
> That strikes me as pretty unlikely given the length of time 6.0.x has
> been released and the lack of similar reports.
> 
> It may be possible if the application is doing something it shouldn't,
> like holding on to a reference to a response object and re-using it
> across multiple requests.
> 
>> The result is that the client receives a response stating by the
>> definition on the chunk lenght (7a5), and as the header
>> "Content-Encoding" has not been received, that length definition is
>> interpreted as response characters.
>>
>> Here is a dump of the communication between TARS Reverse Proxy and the
>> Back-end. (You may notice the response headers - 200 OK - after the
>> first chunk (in blue, starting by "7a5", the length in HEX )/
>>
>>
>> See attached screenshot tcpstream.jpg.
> 
> This list strips most attachments. Just put the plain text of the HTTP
> request and response headers in the body of your e-mail.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 
> 
> 
> This e-mail may contain confidential information.
> If you are not an addressee or otherwise authorised to receive this 
message, you should not use, copy, disclose or take any action based on 
this e-mail. 
> If you have received this e-mail in error, please inform the sender 
promptly and delete this message and any attachments immediately.
> 


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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Mark Thomas <ma...@apache.org>.
On 03/02/2014 10:47, Walter.Heestermans@toyota-europe.com wrote:
> Hi,
> 
> I have requested the trext format. In the meantime, how can I disable the 
> 'Chunked Transfer-Encoding' inside Tomcat server?

You can't.

Mark


> 
> Regards
> Walter
> 
> 
> 
> 
> From:   Mark Thomas <ma...@apache.org>
> To:     Tomcat Users List <us...@tomcat.apache.org>, 
> Date:   03/02/2014 11:15
> Subject:        Re: Tomcat and "Chunked Transfer-Encoding"
> 
> 
> 
> On 03/02/2014 09:34, Walter.Heestermans@toyota-europe.com wrote:
>> Hi,
>>
>> We have some weird behaviopur with one of our applications using
>> apache-tomcat-6.0.37.
>>
>> This is the report of the newtork engineer:
>> /The application (or app server - apache/coyote) is returning a response
>> with "Chunked Transfer-Encoding", but is sending the first chunks before
>> giving the http headers (that defines the chunk-encoding).
> 
> That strikes me as pretty unlikely given the length of time 6.0.x has
> been released and the lack of similar reports.
> 
> It may be possible if the application is doing something it shouldn't,
> like holding on to a reference to a response object and re-using it
> across multiple requests.
> 
>> The result is that the client receives a response stating by the
>> definition on the chunk lenght (7a5), and as the header
>> "Content-Encoding" has not been received, that length definition is
>> interpreted as response characters.
>>
>> Here is a dump of the communication between TARS Reverse Proxy and the
>> Back-end. (You may notice the response headers - 200 OK - after the
>> first chunk (in blue, starting by "7a5", the length in HEX )/
>>
>>
>> See attached screenshot tcpstream.jpg.
> 
> This list strips most attachments. Just put the plain text of the HTTP
> request and response headers in the body of your e-mail.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 
> 
> 
> This e-mail may contain confidential information.
> If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
> If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.
> 


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


Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Wa...@toyota-europe.com.
Hi,

I have requested the trext format. In the meantime, how can I disable the 
'Chunked Transfer-Encoding' inside Tomcat server?

Regards
Walter




From:   Mark Thomas <ma...@apache.org>
To:     Tomcat Users List <us...@tomcat.apache.org>, 
Date:   03/02/2014 11:15
Subject:        Re: Tomcat and "Chunked Transfer-Encoding"



On 03/02/2014 09:34, Walter.Heestermans@toyota-europe.com wrote:
> Hi,
> 
> We have some weird behaviopur with one of our applications using
> apache-tomcat-6.0.37.
> 
> This is the report of the newtork engineer:
> /The application (or app server - apache/coyote) is returning a response
> with "Chunked Transfer-Encoding", but is sending the first chunks before
> giving the http headers (that defines the chunk-encoding).

That strikes me as pretty unlikely given the length of time 6.0.x has
been released and the lack of similar reports.

It may be possible if the application is doing something it shouldn't,
like holding on to a reference to a response object and re-using it
across multiple requests.

> The result is that the client receives a response stating by the
> definition on the chunk lenght (7a5), and as the header
> "Content-Encoding" has not been received, that length definition is
> interpreted as response characters.
> 
> Here is a dump of the communication between TARS Reverse Proxy and the
> Back-end. (You may notice the response headers - 200 OK - after the
> first chunk (in blue, starting by "7a5", the length in HEX )/
> 
> 
> See attached screenshot tcpstream.jpg.

This list strips most attachments. Just put the plain text of the HTTP
request and response headers in the body of your e-mail.

Mark

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






This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. 
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.

Re: Tomcat and "Chunked Transfer-Encoding"

Posted by Mark Thomas <ma...@apache.org>.
On 03/02/2014 09:34, Walter.Heestermans@toyota-europe.com wrote:
> Hi,
> 
> We have some weird behaviopur with one of our applications using
> apache-tomcat-6.0.37.
> 
> This is the report of the newtork engineer:
> /The application (or app server - apache/coyote) is returning a response
> with "Chunked Transfer-Encoding", but is sending the first chunks before
> giving the http headers (that defines the chunk-encoding).

That strikes me as pretty unlikely given the length of time 6.0.x has
been released and the lack of similar reports.

It may be possible if the application is doing something it shouldn't,
like holding on to a reference to a response object and re-using it
across multiple requests.

> The result is that the client receives a response stating by the
> definition on the chunk lenght (7a5), and as the header
> "Content-Encoding" has not been received, that length definition is
> interpreted as response characters.
> 
> Here is a dump of the communication between TARS Reverse Proxy and the
> Back-end. (You may notice the response headers - 200 OK - after the
> first chunk (in blue, starting by "7a5", the length in HEX )/
> 
> 
> See attached screenshot tcpstream.jpg.

This list strips most attachments. Just put the plain text of the HTTP
request and response headers in the body of your e-mail.

Mark

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