Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #186576 > unrolled thread

This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

Started by"James H. H. Lampert" <jamesl@touchtonecorp.com>
First post2017-09-07 20:20 +0200
Last post2017-09-08 01:40 +0200
Articles 7 — 3 participants

Back to article view | Back to linux.debian.user


Contents

  This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5  is going to /var/lib/tomcat7/webapps/ROOT "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-09-07 20:20 +0200
    Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat  8.5 is going to /var/lib/tomcat7/webapps/ROOT "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-09-07 23:40 +0200
      Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT deloptes <deloptes@gmail.com> - 2017-09-08 01:10 +0200
    More, Re: This is weird (cross-posted to Tomcat and Debian Lists):  Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-09-08 01:20 +0200
      Re: More, Re: This is weird (cross-posted to Tomcat and Debian  Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT David Wright <deblis@lionunicorn.co.uk> - 2017-09-08 01:50 +0200
      Actually, it was STUPID, not weird (cross-posted to Tomcat and Debian  Lists): my BROWSER CACHES never got flushed! "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-09-08 18:00 +0200
    Still more, Re: This is weird (cross-posted to Tomcat and Debian  Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT "James H. H. Lampert" <jamesl@touchtonecorp.com> - 2017-09-08 01:40 +0200

#186576 — This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2017-09-07 20:20 +0200
SubjectThis is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<un9zc-3GP-17@gated-at.bofh.it>
I've got two separate boxes, both running Debian Jessie, with both 
Tomcat 7.0.56 and Tomcat 8.5.14 installed, all of the installations via 
an apt-get from Debian's repositories.

On one of the boxes (Tomcat 8.5 installed alongside Tomcat 7 with no 
previous Tomcat 8), Tomat 8 is somehow pulling the root context from 
Tomcat 7: the Tomcat 8.5 server is going to 
/var/lib/tomcat7/webapps/ROOT when it should be going to 
/var/lib/tomcat8/webapps/ROOT.

On the other box (Tomcat 8.5 installed on top of Tomcat 8.0, alongside 
Tomcat 7), the Tomcat 8.5 server is correctly finding 
/var/lib/tomcat8/webapps/ROOT.

On both boxes, Tomcat 8.5 is correctly finding its manager context at 
/usr/share/tomcat8-admin/manager, while Tomcat 7 finds its manager 
context at /usr/share/tomcat7-admin/manager.

The only difference is that on the box that's finding the correct root 
context, Tomcat 8.5 was installed on top of Tomcat 8.0, while on the one 
that's finding the wrong root context, it was installed without any 
previous Tomcat 8. In both cases, the installations were alongside 
existing Tomcat 7 installations.

Can anybody point me to the right haystack to find my needle?

--
James H. H. Lampert

[toc] | [next] | [standalone]


#186589 — Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2017-09-07 23:40 +0200
SubjectRe: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<uncGJ-5J7-5@gated-at.bofh.it>
In reply to#186576
Pete Helgren (on the Tomcat List) wrote:
> Longshot....something in .profile of the user the Tomcat instance is
> running under?

Neither the "tomcat7" nor "tomcat8" users have .profile files.

This is interesting. I got rid of the Tomcat 8.5 catalina.out files on 
both boxes (the one where everything works right, and the one where 8.5 
is getting 7's root context) and restarted them, and I got this at the 
tops of both catalina.out files:

> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/common/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/common], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/server/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/server], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/var/lib/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
> WARNING [main] . . . Problem with directory [/usr/share/tomcat8/shared], exists: [false], isDirectory: [false], canRead: [false]

On both boxes, according to catalina.out, CATALINA_BASE is 
/var/lib/tomcat8 and CATALINA_HOME is /usr/share/tomcat8.

Then I get a bunch of stack traces. I'll omit the stack traces 
themselves for the sake of brevity, and give just the error messages:
>  java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory)
>  java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory)
>  java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory)
>  java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory)
>  java.io.FileNotFoundException: /usr/share/java/el-api-3.0.jar (No such file or directory)
>  java.io.FileNotFoundException: /usr/share/java/jsp-api-2.3.jar (No such file or directory)
and so forth, alternating back and forth between those two jar files 
several times.

I'm still stumped. None of the configuration or log files I've looked in 
so far appear to have any references to anything in tomcat7.

--
JHHL

[toc] | [prev] | [next] | [standalone]


#186592 — Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

Fromdeloptes <deloptes@gmail.com>
Date2017-09-08 01:10 +0200
SubjectRe: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<une5P-6M2-7@gated-at.bofh.it>
In reply to#186589
James H. H. Lampert wrote:

> Pete Helgren (on the Tomcat List) wrote:
>> Longshot....something in .profile of the user the Tomcat instance is
>> running under?
> 
> Neither the "tomcat7" nor "tomcat8" users have .profile files.
> 
> This is interesting. I got rid of the Tomcat 8.5 catalina.out files on
> both boxes (the one where everything works right, and the one where 8.5
> is getting 7's root context) and restarted them, and I got this at the
> tops of both catalina.out files:
> 

> 
> I'm still stumped. None of the configuration or log files I've looked in
> so far appear to have any references to anything in tomcat7.
> 
> --
> JHHL

Start with the startup.sh script - what's in there ... perhaps diff with the
one that works

[toc] | [prev] | [next] | [standalone]


#186593 — More, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2017-09-08 01:20 +0200
SubjectMore, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<unefw-6Pb-9@gated-at.bofh.it>
In reply to#186576
Just for grins, I put a trivial static context (nothing more than a 
directory containing a simple "index.html" file) into 
/var/lib/tomcat8/webapps. Tomcat 8.5 found it. So it's only the root 
context that's somehow getting redirected.

But on the other hand, if I rename var/lib/tomcat7/webapps/ROOT to 
"ROOTx," Tomcat 8.5 STILL finds that one (or at least its index.html).

Curiouser and curiouser.

If I remember right, Linux file systems can have not only symbolic links 
to files, but also multiple hard links to the same file. Is there an 
easy way to look for something like that?

--
James H. H. Lampert

[toc] | [prev] | [next] | [standalone]


#186595 — Re: More, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

FromDavid Wright <deblis@lionunicorn.co.uk>
Date2017-09-08 01:50 +0200
SubjectRe: More, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<uneIx-6Zu-5@gated-at.bofh.it>
In reply to#186593
On Thu 07 Sep 2017 at 16:13:37 (-0700), James H. H. Lampert wrote:

> If I remember right, Linux file systems can have not only symbolic
> links to files, but also multiple hard links to the same file. Is
> there an easy way to look for something like that?

find <top-of-the-tree> -type f ! -links 1 -exec ls -l {} \; | less

Cheers,
David.

[toc] | [prev] | [next] | [standalone]


#186610 — Actually, it was STUPID, not weird (cross-posted to Tomcat and Debian Lists): my BROWSER CACHES never got flushed!

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2017-09-08 18:00 +0200
SubjectActually, it was STUPID, not weird (cross-posted to Tomcat and Debian Lists): my BROWSER CACHES never got flushed!
Message-ID<untRg-Aj-23@gated-at.bofh.it>
In reply to#186593
I really can't believe I didn't think about the possibility that my 
browsers were both still caching the default root context from Tomcat 7 
when I did the port swap.

I definitely need to always remember to consider the possibility that 
I'm doing something stupid.

--
JHHL

[toc] | [prev] | [next] | [standalone]


#186594 — Still more, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT

From"James H. H. Lampert" <jamesl@touchtonecorp.com>
Date2017-09-08 01:40 +0200
SubjectStill more, Re: This is weird (cross-posted to Tomcat and Debian Lists): Tomcat 8.5 is going to /var/lib/tomcat7/webapps/ROOT
Message-ID<uneyR-6Vy-3@gated-at.bofh.it>
In reply to#186576
I also stuck a similar named trivial static context into 
/var/lib/tomcat7/webapps (with a different directory name: "foobar" in 
Tomcat 8, "bozbar" in Tomcat 7).

In theory, Tomcat 8.5 should be able to see the foobar context, but not 
the bozbar context; this is also true in practice.

So it's something specific to the root context.

--
James H. H. Lampert

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web