Fw: Catalina.log not exist

2014-01-08 Thread hassan elzhar
 
Hi,
 
I have Jakarta tomcat version 3.3.2. I wonder that Catalina.log is not exist. I 
searched about Catalina.sh which is not found also. can any one help me why 
this log file is not exist and if there is way to enable.
 
thanks for your time
hassan

RE: Packet misses in Tomcat

2014-01-08 Thread Divyaprakash Y
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: 08 January 2014 02:52
To: Tomcat Users List
Subject: Re: Packet misses in Tomcat

Christopher,

Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 André,

 On 1/7/14, 5:09 AM, André Warnier wrote:
 I do not pretend to know your system, nor your application, nor that
 the following is a definite explanation.  But on the base of the
 currently available data, I would say : - it is quite unlikely that
 Tomcat 7 is randomly dropping requests. If it was, then I would
 imagine that this list would be overflowing with cries for help.
 There is quite a bit of traffic on this list related to Tomcat 7, but
 I don't recall seeing any significant number of issues mentioning
 dropped requests. - it also doesn't seem, from your
 wireshark-related observations, that the requests are being lost
 outside of Tomcat. - so I would say at this point, that the most
 likely place for requests to disappear is in your own application.

 It seems that Tomcat is not logging the request in its access log, so
 it's more likely that the request is either malformed to such an
 extent that Tomcat rejects the request altogether or that the request
 never reaches Tomcat.

...
Hi. Of course I am going essentially by what the OP provided earlier as 
information, and he has not provided much details on the disappearing 
requests themselves, or on the channel through which these requests were 
reaching Tomcat.
But one thing that he did mention, is that these requests are similar - and 
even in general the same - as other requests which do get processed normally.
As per his own words :

For the query regarding All requests, all requests do not disappear. More 
importantly, sometimes all requests  reach the application when I POST same set 
of requests. To give a rough picture, 1-2 requests fail in a set of 45-50 
requests and this behaviour varies [The request which failed in my one test 
cycle succeeds in another cycle].

If we take this at face value, then it should not be so that these requests are 
so malformed that Tomcat discards them without further ado.
Also - but maybe I'm wrong there - I would expect, if Tomcat discards a request 
for being malformed - that something would appear in the Tomcat error log.  But 
according to the OP it doesn't.
Finally - and there is a bit of an assumption on my part here - I assume that 
when the OP says that he sees the request with Wireshark (prior to it 
disappearing in Tomcat), he was running Wireshark on the Tomcat host itself.  
That would make it unlikely that another external component is at play.

All of the above led me to suspect that something in the application itself may 
be playing a role here.

Of course, that all does not necessarily prove that some other component than 
Tomcat is not dropping some packets/requests.

--

Clarifications for the missed information:
- Wireshark runs on the same machine where Tomcat runs
- Channel through which these requests were reaching Tomcat
- HTTP Chanel
- Can you describe your deployment? Are you accessing Tomcat directly via HTTP? 
What networking components are between your test client(s) and Tomcat
- A war file with a servlet to POST the requests.
- There are 2 machines (LAN) where client and servers are installed. Client is 
used to send the requests to Server.
- Disabled the firewall in the server machine
- Tomcat will be accessed directly via HTTP
- This issue occurs even if I use loopback address/localhost instead of Server 
IP Address in the request URL (Install both client and server in the same 
machine).
- Tested with both apache-tomcat-7.0.27.exe and  
apache-tomcat-7.0.42-windows-x86.zip
- Also, Windows event logs will not have any entries when the requests getting 
missed.

Strange that this is happening only to me.

Overnight run of my application with Jetty Server(1167 requests) did not miss 
any requests. So I am hoping that application is not contributing to the 
missing requests. I may be wrong here.

Is there any way to get more logs on request processing in Tomcat?

Thanks.

-
DISCLAIMER: This electronic message and any attachments to this electronic 
message is intended for the exclusive use of the addressee(s) named herein and 
may contain legally privileged and confidential information. It is the property 
of Celstream Systems Private Limited. If you are not the intended recipient, 
you are hereby strictly notified not to copy, forward, distribute or use this 
message or any attachments thereto. If you have received this message in error, 
please delete it and all copies thereof, from your system and notify the sender 
at Celstream Systems or administrat...@celstream.com immediately.

SocketException when using localhost

2014-01-08 Thread Nancee Riehl
Hi all,

I'm writing a JUNIT-Test to test a connection to tomcat 7.0.47 over
HTTPS/TLSv1.1 with a corrupted Client-Certificate.

When I run my test against a remote tomcat everything works fine, I get an
SSLHandshakeException.

When I run the same test against a local tomcat I get this error:
java.net.SocketException: Software caused connection abort: socket write
error

Do you have an idea why there are diffrent Exceptions? The configurations
and versions of both tomcats are the same.

Is this the right mailing-list for my question?

Best regards
Nancee


Re: Catalina.log not exist

2014-01-08 Thread Daniel Mikusa
On Jan 8, 2014, at 3:20 AM, hassan elzhar hassan_elz...@yahoo.com wrote:

  
 Hi,
  
 I have Jakarta tomcat version 3.3.2. I wonder that Catalina.log is not exist. 
 I searched about Catalina.sh which is not found also. can any one help me why 
 this log file is not exist and if there is way to enable.

Are you absolutely sure that you're running 3.3.2?  That version is incredibly 
old and has not been supported for a very long time.  If you're actually 
running that version, you should immediately upgrade to a newer version.

Dan


  
 thanks for your time
 hassan


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



How to read time from a Tomcat server?

2014-01-08 Thread Bradley Rogers
HI
Is there a command i can issue to get the exact system time that the remote
Tomcat server is using?

and then is there a command or some way (with applicable admin rights) to
set the remote time?

the idea is the sync'ing of the different PC's im hoping to use, if there
is some other way used I am grateful to hear it.  im setting up a
distributed system thats running in linux.  thanks


Re: How to read time from a Tomcat server?

2014-01-08 Thread André Warnier

Bradley Rogers wrote:

HI
Is there a command i can issue to get the exact system time that the remote
Tomcat server is using?

and then is there a command or some way (with applicable admin rights) to
set the remote time?

the idea is the sync'ing of the different PC's im hoping to use, if there
is some other way used I am grateful to hear it.  im setting up a
distributed system thats running in linux.  thanks



This is far from being a Tomcat question..
But since this is Linux, check the web for the ntpd daemon and/or the ntpdate 
commands.  You may also need hwclock.


As for getting/setting the time remotely, you need some access to the server 
for that.
If you have command-line access, date is your friend.
If not, create a Tomcat webapp using any of the multiple date/time java classes to achieve 
this.


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



Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-01-08 Thread Yann Simon
Hi,

I am trying to write a servlet that asynchronously read data from the
servlet request input stream.
I tested my servlet with tomcat 8.0.0-RC5.

the symptoms:
- I must synchronously read the input stream in onDataAvailable() so
that the upload works

what I expected:
I want to be more reactive (buzzword of the moment) and not read the
input stream until I am ready (=until the previous chunk is processed)
I though I could return from onDataAvailable() before having read all
the data, read the data in another thread. I expected
onDataAvailable() to be called again when I consumed all the data
(servletInputStream.isReady becomes false)
That way, I could implement back pressure on the browser as long as my
servlet has not finished its work with the actual chunk

But if I do that, neither onDataAvailable() nor onAllDataRead() is called again.

When I consume the input stream synchronously in onDataAvailable(), it
works as expected.

Am I misunderstanding the asynchron IO in Tomcat 8?

Thanks in advance for any ideas!
Yann

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



Status of mod_jk-1.2.38

2014-01-08 Thread Martin Knoblauch
Hi,

 happy New year. Should be still early enough for this :-)

I have one short question: what is the status of mod_jk-1.2.38? It has been
over a year since 1.2.37 and I am just curious. I am specially interested
in an official fix for *Bug
53762*https://issues.apache.org/bugzilla/show_bug.cgi?id=53762.
The patch mentioned there works, but cannot be used due to an only
official releases policy at the customer site.

On a related note: is mod_jk still the preferred way for HA and
load-balancing tomcats? Are there better ways? Our environment is currently
httpd/mod_jk/tomcat on Linux.

Cheers
Martin
-- 
--
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www: http://www.knobisoft.de


Re: How to read time from a Tomcat server?

2014-01-08 Thread Tim Funk
Depending on how you look at it - use the HTTP spec and look at the Date
response header

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.18

The above technique doesn't require shell access and is an easy way to
get the date of ANY webserver. (read the spec for caveats)




On Wed, Jan 8, 2014 at 11:39 AM, Bradley Rogers 
bradley.rogers.engin...@gmail.com wrote:

 HI
 Is there a command i can issue to get the exact system time that the remote
 Tomcat server is using?

 and then is there a command or some way (with applicable admin rights) to
 set the remote time?

 the idea is the sync'ing of the different PC's im hoping to use, if there
 is some other way used I am grateful to hear it.  im setting up a
 distributed system thats running in linux.  thanks



Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-01-08 Thread Daniel Mikusa
On Jan 8, 2014, at 12:04 PM, Yann Simon yann.simon...@gmail.com wrote:

 Hi,
 
 I am trying to write a servlet that asynchronously read data from the
 servlet request input stream.
 I tested my servlet with tomcat 8.0.0-RC5.

If possible, you might want to try 8.0.0-RC10 or trunk and see if you're 
getting the same behavior.

 
 the symptoms:
 - I must synchronously read the input stream in onDataAvailable() so
 that the upload works
 
 what I expected:
 I want to be more reactive (buzzword of the moment) and not read the
 input stream until I am ready (=until the previous chunk is processed)
 I though I could return from onDataAvailable() before having read all
 the data, read the data in another thread.

Do you have a code sample?  It would help to see what you're doing.

 I expected onDataAvailable() to be called again when I consumed all the data
 (servletInputStream.isReady becomes false)

Generally this sounds OK.  When you call ServletInputStream.isReady() and it 
returns false, that should trigger the container to call onDataAvailable() when 
more data is available to be read.  If you return from onDataAvailable() and 
ServletInputStream.isReady() is still true the container won't call 
onDataAvailable() again.  You'll be responsible for calling it when you're 
ready to read more.

 That way, I could implement back pressure on the browser as long as my
 servlet has not finished its work with the actual chunk
 
 But if I do that, neither onDataAvailable() nor onAllDataRead() is called 
 again.

Again, a code sample would be helpful.  Debugging non-blocking IO is tricky.  
If you can include a sample Servlet or test case, it would greatly increase 
your chance of getting feedback.

Dan

 
 When I consume the input stream synchronously in onDataAvailable(), it
 works as expected.
 
 Am I misunderstanding the asynchron IO in Tomcat 8?
 
 Thanks in advance for any ideas!
 Yann
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


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



Re: Status of mod_jk-1.2.38

2014-01-08 Thread Rainer Jung
On 08.01.2014 18:25, Martin Knoblauch wrote:
 Hi,
 
  happy New year. Should be still early enough for this :-)
 
 I have one short question: what is the status of mod_jk-1.2.38? It has been
 over a year since 1.2.37 and I am just curious. I am specially interested
 in an official fix for *Bug
 53762*https://issues.apache.org/bugzilla/show_bug.cgi?id=53762.
 The patch mentioned there works, but cannot be used due to an only
 official releases policy at the customer site.

I did some more changes lately due to a user request which need some
more testing. I expect that we'll do the 1.2.38 release during the next
4-8 weeks. I have to ask Mladen about the status of his IPv6 changes though.

 On a related note: is mod_jk still the preferred way for HA and
 load-balancing tomcats? Are there better ways? Our environment is currently
 httpd/mod_jk/tomcat on Linux.

Better or worse depend on your requirements. I think mod_jk is still
working very well and has some unique advantages.

Regards,

Rainer


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



Re: Tomcat 8.0.0-RC5: asynchron IO and back pressure with ReadListener

2014-01-08 Thread Yann Simon
2014/1/8 Daniel Mikusa dmik...@gopivotal.com:
 On Jan 8, 2014, at 12:04 PM, Yann Simon yann.simon...@gmail.com wrote:

 Hi,

 I am trying to write a servlet that asynchronously read data from the
 servlet request input stream.
 I tested my servlet with tomcat 8.0.0-RC5.

 If possible, you might want to try 8.0.0-RC10 or trunk and see if you're 
 getting the same behavior.


 the symptoms:
 - I must synchronously read the input stream in onDataAvailable() so
 that the upload works

 what I expected:
 I want to be more reactive (buzzword of the moment) and not read the
 input stream until I am ready (=until the previous chunk is processed)
 I though I could return from onDataAvailable() before having read all
 the data, read the data in another thread.

 Do you have a code sample?  It would help to see what you're doing.

 I expected onDataAvailable() to be called again when I consumed all the data
 (servletInputStream.isReady becomes false)

 Generally this sounds OK.  When you call ServletInputStream.isReady() and it 
 returns false, that should trigger the container to call onDataAvailable() 
 when more data is available to be read.  If you return from onDataAvailable() 
 and ServletInputStream.isReady() is still true the container won't call 
 onDataAvailable() again.  You'll be responsible for calling it when you're 
 ready to read more.

 That way, I could implement back pressure on the browser as long as my
 servlet has not finished its work with the actual chunk

 But if I do that, neither onDataAvailable() nor onAllDataRead() is called 
 again.

 Again, a code sample would be helpful.  Debugging non-blocking IO is tricky.  
 If you can include a sample Servlet or test case, it would greatly increase 
 your chance of getting feedback.

Thanks for the quick answer!

I have a code sample, but it may be too complicated to help debugging
the problem.
It is written in Scala. Its purpose is to provide a servlet that runs
asynchronous action from Playframework (http://www.playframework.com/)

https://github.com/yanns/play2-war-plugin/blob/servlet31/project-code/core/servlet31/src/main/scala/play/core/server/servlet31/RequestHandler31.scala#L74

The line 80 (iteratee = iteratee.pureFlatFold ) use a closure that
consumes the input stream asynchronously in another thread.

I'll try to take the time to write a much simpler code sample in Java.


 Dan


 When I consume the input stream synchronously in onDataAvailable(), it
 works as expected.

 Am I misunderstanding the asynchron IO in Tomcat 8?

 Thanks in advance for any ideas!
 Yann

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



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


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



Error when performing a reset of the server

2014-01-08 Thread Chuck Johnson
Greetings,

I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a service. We 
are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both installed on the 
server). I don't have much of any experience running Tomcat server, so I am at 
the early stages of learning about it... my experience is with Apache web 
server and various versions of IIS.

The issue we are seeing is that the server throws an Error 1053: The service 
did not respond to the start or control request in a timely fashion

I'm sorry if this question has been asked previously, I have searched on-line 
for a solution and found several potential fixes, although I am not sure if one 
is more appropriate than the other. One MS Support article recommends 
installing an update to the Microsoft .NET Framework 1.1 service pack (which I 
would think would be installed already since this is a newer installation), 
this is not a Tomcat/Java specific article. The other solution was to go into 
the Tomcat configuration tool and change the Mode from jvm to java in the 
Shutdown tab. I am also not sure if giving the Tomcat server more memory would 
help resolve the issue, the server has an Initial memory allocation  as well as 
a Maximum memory pool of 1024 MB.

I am curious if there is anyone who has experienced these same problems 
stopping and restarting the server and how it was resolved.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.eduhttp://www.simpson.edu/



Some questions

2014-01-08 Thread CyTG
New to list, if these questions are dumb please bare with me, i've searched
the documentation and googled howtos and questions without finding specific
answers to my questions.. :) .. I've actually been using Tomcat for a while
though interfaced and deployed via Maven and different management plugins.
I am quite fed up with them now, thus I am here.

Question
In the documentation :
 http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html
On Deploying on a running Tomcat server, the last line reads this :
Note that web application reloading can also be configured in the
loader, in which case loaded classes will be tracked for changes.
- To me this sounds brilliant, I can drop in a single class and it will get
reloaded/hotdeployed in a jiff.
Ill make a little filesystem watcher that will copy files around as soon as
they're touched in my development workspace.. sort of a poor-mans-jrebel
loolalike.

The darned thing is i cant find anything on configuring the loader .. I
assume they mean ClassLoader and by the loader I assume it is a built-in
ClassLoader .. such as WebappClassLoader .. but I cant find anything on
cofiguring it towards my needs.
Am I blind ?

Thanks.

/cytg


Re: Some questions

2014-01-08 Thread CyTG
Sorry .. never mind, apparantly it was just under my nose in context.xml ...


On Wed, Jan 8, 2014 at 10:06 PM, CyTG cytg@gmail.com wrote:

 New to list, if these questions are dumb please bare with me, i've
 searched the documentation and googled howtos and questions without finding
 specific answers to my questions.. :) .. I've actually been using Tomcat
 for a while though interfaced and deployed via Maven and different
 management plugins. I am quite fed up with them now, thus I am here.

 Question
 In the documentation :
  http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html
 On Deploying on a running Tomcat server, the last line reads this :
 Note that web application reloading can also be configured in the
 loader, in which case loaded classes will be tracked for changes.
 - To me this sounds brilliant, I can drop in a single class and it will
 get reloaded/hotdeployed in a jiff.
 Ill make a little filesystem watcher that will copy files around as soon
 as they're touched in my development workspace.. sort of a poor-mans-jrebel
 loolalike.

 The darned thing is i cant find anything on configuring the loader .. I
 assume they mean ClassLoader and by the loader I assume it is a built-in
 ClassLoader .. such as WebappClassLoader .. but I cant find anything on
 cofiguring it towards my needs.
 Am I blind ?

 Thanks.

 /cytg




Re: Some questions

2014-01-08 Thread Daniel Mikusa
On Jan 8, 2014, at 4:06 PM, CyTG cytg@gmail.com wrote:

 New to list, if these questions are dumb please bare with me, i've searched
 the documentation and googled howtos and questions without finding specific
 answers to my questions.. :) .. I've actually been using Tomcat for a while
 though interfaced and deployed via Maven and different management plugins.
 I am quite fed up with them now, thus I am here.
 
 Question
 In the documentation :
 http://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html
 On Deploying on a running Tomcat server, the last line reads this :
Note that web application reloading can also be configured in the
 loader, in which case loaded classes will be tracked for changes.
 - To me this sounds brilliant, I can drop in a single class and it will get
 reloaded/hotdeployed in a jiff.
 Ill make a little filesystem watcher that will copy files around as soon as
 they're touched in my development workspace.. sort of a poor-mans-jrebel
 loolalike.
 
 The darned thing is i cant find anything on configuring the loader .. I
 assume they mean ClassLoader and by the loader I assume it is a built-in
 ClassLoader .. such as WebappClassLoader .. but I cant find anything on
 cofiguring it towards my needs.
 Am I blind ?

I believe it's referring to this.  See the reloadable attribute.

  http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html

but you can just set reloadable on your Context / tag.

  http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes

Dan

 
 Thanks.
 
 /cytg


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



RE: Some questions

2014-01-08 Thread Caldarale, Charles R
 From: CyTG [mailto:cytg@gmail.com] 
 Subject: Some questions

 The darned thing is i cant find anything on configuring the loader .. I
 assume they mean ClassLoader and by the loader I assume it is a built-in
 ClassLoader .. such as WebappClassLoader .. but I cant find anything on
 cofiguring it towards my needs.

You might also be interested in the WatchedResource nested element (not 
attribute) of Context.

 - Chuck


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


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



Maximum HTTP parameters

2014-01-08 Thread Dames, Kristopher J
My webapp needs to pass several thousand parameters in an HTTP POST request. I 
am required to use RHEL's tomcat packages (currently on 6.0.24). I figured out 
Red Hat has capped the maximum HTTP parameters at 512 and to get around it, I 
have to add the Java parameter 
-Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=5000 to the JVM. I know 
this isn't strictly a Tomcat issue since the problem is Red Hat's doing, but is 
anyone aware if it is possible to set this value to unlimited? I tried 
setting it to 0 and -1 but they were treated as literal values.

--
Kris Dames

This email contains information which may be PROPRIETARY IN NATURE OR OTHERWISE 
PROTECTED BY LAW FROM DISCLOSURE and is intended only for the use of the 
addresses(s) named above.  If you have received this email in error, please 
contact the sender immediately.

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



Re: Maximum HTTP parameters

2014-01-08 Thread Mark Thomas
On 08/01/2014 21:47, Dames, Kristopher J wrote:
 My webapp needs to pass several thousand parameters in an HTTP POST
 request. I am required to use RHEL's tomcat packages (currently on
 6.0.24). I figured out Red Hat has capped the maximum HTTP parameters
 at 512 and to get around it, I have to add the Java parameter
 -Dorg.apache.tomcat.util.http.Parameters.MAX_COUNT=5000 to the JVM.
 I know this isn't strictly a Tomcat issue since the problem is Red
 Hat's doing, but is anyone aware if it is possible to set this value
 to unlimited? I tried setting it to 0 and -1 but they were treated
 as literal values.

Sorry, you'll have to take that up with RedHat. They opted to apply
their own solution rather than back-port the official fix.

The official fix (the maxParameterCount attribute of the connector) has
a default of 1 and any value less than 0 is treated as unlimited.

There are two security issues here:
1) The Java hash collision issue (CVE-2011-4858)
2) Tomcat parameter processing inefficiencies (CVE-2012-0022)

CVE-2012-0022 may mean that processing thousands of parameters is really
slow. You may see significant performance improvements if you switch to
even the latest 6.0.x

Mark

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



Re: Error when performing a reset of the server

2014-01-08 Thread Filip Hanik
Chuck, does this happen upon startup, restart or shutdown of the service?
That would be the first part of tracking it down.
here is some general configuration options available to you as a service

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html




On Wed, Jan 8, 2014 at 1:57 PM, Chuck Johnson chuck.john...@simpson.eduwrote:

 Greetings,

 I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a
 service. We are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both
 installed on the server). I don't have much of any experience running
 Tomcat server, so I am at the early stages of learning about it... my
 experience is with Apache web server and various versions of IIS.

 The issue we are seeing is that the server throws an Error 1053: The
 service did not respond to the start or control request in a timely fashion

 I'm sorry if this question has been asked previously, I have searched
 on-line for a solution and found several potential fixes, although I am not
 sure if one is more appropriate than the other. One MS Support article
 recommends installing an update to the Microsoft .NET Framework 1.1 service
 pack (which I would think would be installed already since this is a newer
 installation), this is not a Tomcat/Java specific article. The other
 solution was to go into the Tomcat configuration tool and change the Mode
 from jvm to java in the Shutdown tab. I am also not sure if giving the
 Tomcat server more memory would help resolve the issue, the server has an
 Initial memory allocation  as well as a Maximum memory pool of 1024 MB.

 I am curious if there is anyone who has experienced these same problems
 stopping and restarting the server and how it was resolved.

 Thanks,

 Chuck

 Chuck Johnson
 Academic Software Specialist
 Information Technology Services
 Simpson College
 Indianola, Iowa
 direct: 515-961-1866 * optional: 515-961-1681
 www.simpson.eduhttp://www.simpson.edu/




RE: Error when performing a reset of the server

2014-01-08 Thread Chuck Johnson
Hi Filip,

I haven't had the error occur when I have had to restart the Tomcat server, my 
co-worker is the person who has experienced it and my understanding is that it 
happens when she attempts to perform a reset and the only way that she resolves 
it is to reboot the windows server.

I will read through the site that you have sent and see what I can figure out.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist 
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.edu

-Original Message-
From: Filip Hanik [mailto:fi...@hanik.com] 
Sent: Wednesday, January 08, 2014 4:44 PM
To: Tomcat Users List
Subject: Re: Error when performing a reset of the server

Chuck, does this happen upon startup, restart or shutdown of the service?
That would be the first part of tracking it down.
here is some general configuration options available to you as a service

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html




On Wed, Jan 8, 2014 at 1:57 PM, Chuck Johnson chuck.john...@simpson.eduwrote:

 Greetings,

 I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a 
 service. We are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both 
 installed on the server). I don't have much of any experience running 
 Tomcat server, so I am at the early stages of learning about it... my 
 experience is with Apache web server and various versions of IIS.

 The issue we are seeing is that the server throws an Error 1053: The 
 service did not respond to the start or control request in a timely fashion

 I'm sorry if this question has been asked previously, I have searched 
 on-line for a solution and found several potential fixes, although I 
 am not sure if one is more appropriate than the other. One MS Support 
 article recommends installing an update to the Microsoft .NET 
 Framework 1.1 service pack (which I would think would be installed 
 already since this is a newer installation), this is not a Tomcat/Java 
 specific article. The other solution was to go into the Tomcat 
 configuration tool and change the Mode from jvm to java in the 
 Shutdown tab. I am also not sure if giving the Tomcat server more 
 memory would help resolve the issue, the server has an Initial memory 
 allocation  as well as a Maximum memory pool of 1024 MB.

 I am curious if there is anyone who has experienced these same 
 problems stopping and restarting the server and how it was resolved.

 Thanks,

 Chuck

 Chuck Johnson
 Academic Software Specialist
 Information Technology Services
 Simpson College
 Indianola, Iowa
 direct: 515-961-1866 * optional: 515-961-1681 
 www.simpson.eduhttp://www.simpson.edu/




--


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



Re: Error when performing a reset of the server

2014-01-08 Thread David kerber
I see this occasionally when trying to shut down the server, and I 
believe it's the app that has a stuck session or something, though I 
haven't been able to isolate it.  However, it doesn't require a server 
reboot; just killing the tomcat process in task manager and then 
restarting it works fine.




On 1/8/2014 6:58 PM, Chuck Johnson wrote:

Hi Filip,

I haven't had the error occur when I have had to restart the Tomcat server, my 
co-worker is the person who has experienced it and my understanding is that it 
happens when she attempts to perform a reset and the only way that she resolves 
it is to reboot the windows server.

I will read through the site that you have sent and see what I can figure out.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.edu

-Original Message-
From: Filip Hanik [mailto:fi...@hanik.com]
Sent: Wednesday, January 08, 2014 4:44 PM
To: Tomcat Users List
Subject: Re: Error when performing a reset of the server

Chuck, does this happen upon startup, restart or shutdown of the service?
That would be the first part of tracking it down.
here is some general configuration options available to you as a service

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html




On Wed, Jan 8, 2014 at 1:57 PM, Chuck Johnson chuck.john...@simpson.eduwrote:


Greetings,

I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a
service. We are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both
installed on the server). I don't have much of any experience running
Tomcat server, so I am at the early stages of learning about it... my
experience is with Apache web server and various versions of IIS.

The issue we are seeing is that the server throws an Error 1053: The
service did not respond to the start or control request in a timely fashion

I'm sorry if this question has been asked previously, I have searched
on-line for a solution and found several potential fixes, although I
am not sure if one is more appropriate than the other. One MS Support
article recommends installing an update to the Microsoft .NET
Framework 1.1 service pack (which I would think would be installed
already since this is a newer installation), this is not a Tomcat/Java
specific article. The other solution was to go into the Tomcat
configuration tool and change the Mode from jvm to java in the
Shutdown tab. I am also not sure if giving the Tomcat server more
memory would help resolve the issue, the server has an Initial memory 
allocation  as well as a Maximum memory pool of 1024 MB.

I am curious if there is anyone who has experienced these same
problems stopping and restarting the server and how it was resolved.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.eduhttp://www.simpson.edu/





--


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





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



Re: Error when performing a reset of the server

2014-01-08 Thread David kerber

On 1/8/2014 7:04 PM, David kerber wrote:

I see this occasionally when trying to shut down the server, and I


Correction:  when shutting down the Tomcat service, not the server itself.



believe it's the app that has a stuck session or something, though I
haven't been able to isolate it.  However, it doesn't require a server
reboot; just killing the tomcat process in task manager and then
restarting it works fine.



On 1/8/2014 6:58 PM, Chuck Johnson wrote:

Hi Filip,

I haven't had the error occur when I have had to restart the Tomcat
server, my co-worker is the person who has experienced it and my
understanding is that it happens when she attempts to perform a reset
and the only way that she resolves it is to reboot the windows server.

I will read through the site that you have sent and see what I can
figure out.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.edu

-Original Message-
From: Filip Hanik [mailto:fi...@hanik.com]
Sent: Wednesday, January 08, 2014 4:44 PM
To: Tomcat Users List
Subject: Re: Error when performing a reset of the server

Chuck, does this happen upon startup, restart or shutdown of the service?
That would be the first part of tracking it down.
here is some general configuration options available to you as a service

http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html




On Wed, Jan 8, 2014 at 1:57 PM, Chuck Johnson
chuck.john...@simpson.eduwrote:


Greetings,

I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a
service. We are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both
installed on the server). I don't have much of any experience running
Tomcat server, so I am at the early stages of learning about it... my
experience is with Apache web server and various versions of IIS.

The issue we are seeing is that the server throws an Error 1053: The
service did not respond to the start or control request in a timely
fashion

I'm sorry if this question has been asked previously, I have searched
on-line for a solution and found several potential fixes, although I
am not sure if one is more appropriate than the other. One MS Support
article recommends installing an update to the Microsoft .NET
Framework 1.1 service pack (which I would think would be installed
already since this is a newer installation), this is not a Tomcat/Java
specific article. The other solution was to go into the Tomcat
configuration tool and change the Mode from jvm to java in the
Shutdown tab. I am also not sure if giving the Tomcat server more
memory would help resolve the issue, the server has an Initial memory
allocation  as well as a Maximum memory pool of 1024 MB.

I am curious if there is anyone who has experienced these same
problems stopping and restarting the server and how it was resolved.

Thanks,

Chuck

Chuck Johnson
Academic Software Specialist
Information Technology Services
Simpson College
Indianola, Iowa
direct: 515-961-1866 * optional: 515-961-1681
www.simpson.eduhttp://www.simpson.edu/





--


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





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





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



Re: Error when performing a reset of the server

2014-01-08 Thread Filip Hanik
David, for you it is pretty straight forward, configure the shutdown
timeout, it could just be the app inside tomcat not shutting down, and you
can force it with a timeout. see the link I sent you.
Chuck, good chance this is what you need too.


On Wed, Jan 8, 2014 at 5:18 PM, David kerber dcker...@verizon.net wrote:

 On 1/8/2014 7:04 PM, David kerber wrote:

 I see this occasionally when trying to shut down the server, and I


 Correction:  when shutting down the Tomcat service, not the server itself.



  believe it's the app that has a stuck session or something, though I
 haven't been able to isolate it.  However, it doesn't require a server
 reboot; just killing the tomcat process in task manager and then
 restarting it works fine.



 On 1/8/2014 6:58 PM, Chuck Johnson wrote:

 Hi Filip,

 I haven't had the error occur when I have had to restart the Tomcat
 server, my co-worker is the person who has experienced it and my
 understanding is that it happens when she attempts to perform a reset
 and the only way that she resolves it is to reboot the windows server.

 I will read through the site that you have sent and see what I can
 figure out.

 Thanks,

 Chuck

 Chuck Johnson
 Academic Software Specialist
 Information Technology Services
 Simpson College
 Indianola, Iowa
 direct: 515-961-1866 * optional: 515-961-1681
 www.simpson.edu

 -Original Message-
 From: Filip Hanik [mailto:fi...@hanik.com]
 Sent: Wednesday, January 08, 2014 4:44 PM
 To: Tomcat Users List
 Subject: Re: Error when performing a reset of the server

 Chuck, does this happen upon startup, restart or shutdown of the service?
 That would be the first part of tracking it down.
 here is some general configuration options available to you as a service

 http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html




 On Wed, Jan 8, 2014 at 1:57 PM, Chuck Johnson
 chuck.john...@simpson.eduwrote:

  Greetings,

 I am running 64-bit Tomcat 7.0.42 on a Windows 2008 R2 server as a
 service. We are using 64-bit Java 7 (jre7  and jdk1.7.0_25 are both
 installed on the server). I don't have much of any experience running
 Tomcat server, so I am at the early stages of learning about it... my
 experience is with Apache web server and various versions of IIS.

 The issue we are seeing is that the server throws an Error 1053: The
 service did not respond to the start or control request in a timely
 fashion

 I'm sorry if this question has been asked previously, I have searched
 on-line for a solution and found several potential fixes, although I
 am not sure if one is more appropriate than the other. One MS Support
 article recommends installing an update to the Microsoft .NET
 Framework 1.1 service pack (which I would think would be installed
 already since this is a newer installation), this is not a Tomcat/Java
 specific article. The other solution was to go into the Tomcat
 configuration tool and change the Mode from jvm to java in the
 Shutdown tab. I am also not sure if giving the Tomcat server more
 memory would help resolve the issue, the server has an Initial memory
 allocation  as well as a Maximum memory pool of 1024 MB.

 I am curious if there is anyone who has experienced these same
 problems stopping and restarting the server and how it was resolved.

 Thanks,

 Chuck

 Chuck Johnson
 Academic Software Specialist
 Information Technology Services
 Simpson College
 Indianola, Iowa
 direct: 515-961-1866 * optional: 515-961-1681
 www.simpson.eduhttp://www.simpson.edu/




 --


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




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




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




Re: Error when performing a reset of the server

2014-01-08 Thread Howard W. Smith, Jr.
Chuck,

On Wed, Jan 8, 2014 at 6:58 PM, Chuck Johnson chuck.john...@simpson.eduwrote:

 I haven't had the error occur when I have had to restart the Tomcat
 server, my co-worker is the person who has experienced it and my
 understanding is that it happens when she attempts to perform a reset and
 the only way that she resolves it is to reboot the windows server.


That says it all right there.

You (and/or your user) have success.

your coworker (and/or her user (ID/acct/profile)) does not have success.

your coworker 'only' has success when she restarts windows server.

when restarting the windows server, the service must be configured to
'automatic', and a clean restart usually = clean (re)start of tomcat...I
would assume.

This answer[1] on stackoverflow may hint on a solution and/or cause of the
error that your coworker is experiencing.

I have tomcat 7.0.47 (via tomee+) running on Windows 2008 R2 64-bit with
jdk1.7.0_45, and I only login to the server with one user ID, and I use
tomcat7w.exe to start/stop service, manually, but service is configured to
start automatically when server is (re)started. The user ID that I always
use...was also responsible for adding tomcat/tomee as Windows service.

Who or what user (ID) usually has success start/stopping tomcat manually
via tomcat7w.exe or via Windows Services window/app?

Was your coworker able to start/stop tomcat in the past with no issues? if
so, what changed? new install of tomcat? new config of tomcat? different
user (ID) added tomcat as windows service? ...


[1] http://stackoverflow.com/a/19710121/933054