Re: TLD startup issues

2017-10-24 Thread Ray Holme
Andre: Thanks and noted. Good article but does not help this problem.

Konstantin: Thanks for your notes. What is truly baffling is that I made 
changes to catalina.properties for "jarsToSkip"
  Before my recent changes, it took 10.5 minutes to get past the TLD scan   (I 
had a typo from before)  Then I corrected things and get 2.5 minutes on the 
Ubuntu server   (the same changes made me go down to 1 second on Fedora)
  So I know I am getting the right CATALINA_HOME (see no references to 
CATALINA_BASE or CATALINE_BASE).
  The only other difference is that the server is on a Virtual machine (Digital 
Ocean) and my development server is real.

  I will try what I can to see the variables you listed , but nothing makes 
sense.
Baffled (for quite a while) but still trying to find it.
 

On Monday, October 23, 2017 5:21 PM, Konstantin Kolinko 
 wrote:
 

 2017-10-23 23:17 GMT+03:00 André Warnier (tomcat) :
> On 23.10.2017 21:30, Ray Holme wrote:
>>
>> I have two systems running Tomcat 8.5.13 on Linux
>>
>>    my development machine runs fully patched Fedora 26
>>
>>    the server I use is using Ubuntu 16.4.3
>>
>> Both have identical catalina.properties files as well as context.xml files
>>
>>    The context file has a one line addition towards the end before the end
>> of context with this line
>>
>>    
>>
>>    The properties file has ALL the jar files to be found in my application
>> added to the
>>
>>    list of StandardJars
>>
>> My development machine spends 1 second or less on the TLD warning before
>> the next line in the log comes up.
>>
>> The server spends 150 seconds (good day, yesterday it was 10.5 minutes).
>>
>> What can I do to speed up the startup?
>>
> Did you read this ?
> https://wiki.apache.org/tomcat/HowTo/FasterStartUp

+1

Also, take several (3) thread dumps to see what code is actually being executed.
https://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics#Common_Troubleshooting_Scenario

Is Ubuntu installed manually from official Tomcat binaries provided by ASF?
https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5

It may be that the configuration that you edited is not the one that
is actually being used.

Tomcat can be run with CATALINE_BASE != CATALINA_HOME,  and some OS
vendors place Tomcat configuration files into a different place.

Print the values of system properties
catalina.home
catalina.base
tomcat.util.scan.StandardJarScanFilter.jarsToSkip
tomcat.util.scan.StandardJarScanFilter.jarsToScan
(e.g. by writing a simple JSP file that displays the values)

Best regards,
Konstantin Kolinko

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


   

RE: At a loss!

2017-10-24 Thread Courtney Meade
tomcat-connectors-1.2.42-windows-x86_64-iis.zip  

Courtney Meade
Business Applications Analyst
ITS - City of Cape Coral
Internal Ext 3694
Phone 239-242-3694
(NOTE:  Florida has a very broad public records law, and under Florida law, 
most written communications to or from city staff regarding city business to 
include your e-mail address is considered public records and will be made 
available to the public and the media upon request. If you do not want your 
email message and or your e-mail address released in response to a public 
records request, do not send electronic mail to this entity. Instead, contact 
this office by phone or in writing.  Additionally, this communication is 
intended only for the addressee.  If you are not the intended recipient, do not 
copy, disclose, or distribute this message to anyone else.  If you have 
received this communication in error, please contact the sender of the message 
to inform him or her of the error and then delete this message.)

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Monday, October 23, 2017 5:11 PM
To: Tomcat Users List 
Subject: Re: At a loss!

On 23/10/17 12:28, Courtney Meade wrote:
> Tomcat is 7.0.82
> 
> http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/
> 
> The above is the download for the isapi redirect file.

No, it isn't. The files are in a directory one level below that (named
Windows) and there are two different zip files you could have down loaded. 
Which one did you download?

I'm going to assume you downloaded the latest version, 1.2.42 unless you say 
otherwise.

Mark



> 
> I had to follow the footprints instruction and the file was placed under the 
> tomcat 7.0 directory in a folder called isapi. 
> 
> Courtney Meade
> Business Applications Analyst
> ITS - City of Cape Coral
> Internal Ext 3694
> Phone 239-242-3694
> (NOTE:  Florida has a very broad public records law, and under Florida 
> law, most written communications to or from city staff regarding city 
> business to include your e-mail address is considered public records 
> and will be made available to the public and the media upon request. 
> If you do not want your email message and or your e-mail address 
> released in response to a public records request, do not send 
> electronic mail to this entity. Instead, contact this office by phone 
> or in writing.  Additionally, this communication is intended only for 
> the addressee.  If you are not the intended recipient, do not copy, 
> disclose, or distribute this message to anyone else.  If you have 
> received this communication in error, please contact the sender of the 
> message to inform him or her of the error and then delete this 
> message.)
> 
> -Original Message-
> From: Mark Thomas [mailto:ma...@apache.org]
> Sent: Friday, October 20, 2017 3:29 PM
> To: Tomcat Users List 
> Subject: Re: At a loss!
> 
> On 20/10/17 19:52, Courtney Meade wrote:
>> Receiving the below Error when trying to Integrate Tomcat with IIS for 
>> Footprints - any help or insight would be greatly appreciated!
>>
>> Tomcat Version - 7.0
> 
> Not relevant at this point but "7.0" as a Tomcat version number is close to 
> useless given it could be any one of 80 odd releases spread over more than 7 
> years.
> 
>> Server OS - Windows 2012 R2
> 
> OK.
> 
> Exactly which isapi_redirect.dll file did you install (version, architecture, 
> download source) and how did you install it?
> 
> Mark
> 
> 
>>
>>
>> HTTP Error 500.0 - Internal Server Error Calling GetFilterVersion on 
>> ISAPI filter "C:\Program Files\Apache Software Foundation\Tomcat 
>> 7.0\isapi\isapi_redirect.dll" failed Most likely causes:
>> * IIS received the request; however, an internal error occurred 
>> during the processing of the request. The root cause of this error depends 
>> on which module handles the request and what was happening in the worker 
>> process when this error occurred.
>> * IIS was not able to access the web.config file for the Web site or 
>> application. This can occur if the NTFS permissions are set incorrectly.
>> * IIS was not able to process configuration for the Web site or 
>> application.
>> * The authenticated user does not have permission to use this DLL.
>> * The request is mapped to a managed handler but the .NET 
>> Extensibility Feature is not installed.
>> Things you can try:
>> * Ensure that the NTFS permissions for the web.config file are 
>> correct and allow access to the Web server's machine account.
>> * Check the event logs to see if any additional information was 
>> logged.
>> * Verify the permissions for the DLL.
>> * Install the .NET Extensibility feature if the request is mapped to 
>> a managed handler.
>> * Create a tracing rule to track failed requests for this HTTP 
>> status code. For more information about creating a tracing rule for failed 
>> requests, click here