-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Peter,

On 7/25/17 11:14 AM, Peter Flynn wrote:
> On 24/07/17 11:57, Mark Thomas wrote:
>> On 24/07/17 11:12, Flynn, Peter wrote:
> 
> I must apologise first for unintentionally misleading you: the
> upgrade was from Tomcat 7.0.54-2 to 7.0.69-11, not from 6 to 7. I
> inherited this along with what was clearly bad information.

Thanks for the clarification.

>> Running from a package tends to limit the members of this that
>> are available to help to those that understand the packaging on
>> the platform in question.
> 
> I'm afraid so. But I hope this is not about packaging, but about 
> modifying the configuration.

Probably so, especially because it was a minor version upgrade.

>> Tomcat needs allowLinking to be correctly set if that path to a
>> web application (or the web application itself) uses symlinks. I
>> don't think that has changed between 6.0.x and 7.0.x.
> 
> There seem to be two, but I have never used or touched examples.
> 
> # find /var/lib/tomcat/webapps -type l -ls 536929726    0
> lrwxrwxrwx   1 tomcat   tomcat         40 Aug 11  2016 
> /var/lib/tomcat/webapps/examples/WEB-INF/lib/jstl.jar -> 
> /usr/share/java/jakarta-taglibs-core.jar 536929727    0 lrwxrwxrwx
> 1 tomcat   tomcat         44 Aug 11  2016 
> /var/lib/tomcat/webapps/examples/WEB-INF/lib/standard.jar -> 
> /usr/share/java/jakarta-taglibs-standard.jar

That looks like the package manager's doing, and is probably okay. If
it's not okay, then complain to the package manager that they have
broken their own package :) (And the package manager happens to be
reading this thread, so you should be good, here.)

>>> # In new-style instances, if CATALINA_BASE isn't specified, it
>>> will # be constructed by joining TOMCATS_BASE and NAME.
>> 
>> Those last two variables are package specific.
> 
> What is a 'package' in this context? A Tomcat application?

Mark was referring to the Tomcat "package" as packaged by the package
manager (e.g. yum).

In this case, Tomcat itself doesn't do anything with environment
variables called TOMCAT_HOME or NAME. Tomcat only cares about
CATALINA_BASE (where instance-specific configuration and webapps are
kept) and CATALINA_HOME (which is where the base Tomcat files can be
found).

>> The Tomcat logs should at least tell you what - if anything -
>> Tomcat is deploying.
> 
> If I can make sense of them...
> 
>> There is no one 'right' way to install Tomcat. Pick the one that
>> works best for you (and be prepared to try an alternative if you
>> hit problems).
> 
> :-) I'd rather compile from scratch, but that's just the way I was 
> brought up.

Building Tomcat from source is a waste of your time: the official
packages (both from ASF and from Red Hat) have all been built for you
and are environment agnostic. I would never recommend that anyone
build Tomcat themselves unless they are trying to hack on it for their
own needs.

Let's try this:

1. Stop Tomcat and remove all log files (or push them somewhere else
out of the way)
2. Launch Tomcat (and please tell us how you do that)
3. Make a single request that returns 404 but should not
4. Stop Tomcat
5. Post the contents of logs/catalina.out to the list

Please remove any secrets that might be in that file (the only secrets
that might be in there would be coming from your application).

I saw your log file snippets, but there might be something you missed
(since the log was incomplete).

I've used Apache Cocoon with Tomcat 4.x and later and haven't had any
problems like you describe. I suspect this is a simple configuration
problem that we can help you get corrected.

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

iQIcBAEBCAAGBQJZd5VXAAoJEBzwKT+lPKRY0i8QAKdDAO9Dx+ilxET2wuRNiJCy
IQkjVcc1T5GPxNWpdIJIA/i8+5lhsUT6+BJy77hEsIjAfeGIAXbywylMUAv/i/Oo
Ixgwb+NkzZ38dW14b8Y+QmtJ2qP/aM9q1TvlxS9/AxIk+sT7dl6jQucZsYM1NqSI
HgGwqXtgvs3Rzzcq+0SNqDrDVsEW486cCFqnw8pboCYAGzUkpLY2zOApjQLD30cR
U7DrGgYNzThcXngusKFuK2AWU6DDx0mIkKFxArtXWLFJr0prk4pM+BWdXQH8FGac
kdX/pu7ryaCjeQ/QztWGHsA4W9CplRlCTxhWRIQwiY86auwYGis55yVZ1jzuXGdi
IY17e3Sdnmo8GFjfTaUSxJIpquRW/+GqApe/yia2vL1Vr6Pbztu/7IMxEw13iHfF
eyvY9haDBFrdrvINBtAj8FW5K8WL41PAaHsXV5R67nMyx2yQ0Nd/G/aXFikrqn4R
T8tQNfyTt2ZaExsySU4oNSpejSjAolRX8AqvS7/aexEN+zRC3MePNOgS6AuuxBEe
7LIe3Si0JW7+2gYShgCYMPSK5w7fJzGJrHqbTlJPlqf38w2bj511s4K9fKYsbPcp
PkkYAlGSU3tn53gk4crbOSjceGEWZKj4byvvldSjDyG3NdhMrjjQI8C7+fYXSqBI
d39WE9U7+Dqt1Fi+gJYC
=NjvT
-----END PGP SIGNATURE-----

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

Reply via email to