I have two web app projects in NB21. One app installs to the Tomcat 9 that
I use for development, and it runs fine. However the second app will not
install, although it uses similar run configuration settings.

My NetBeans info is

*Product Version:* Apache NetBeans IDE 21

*Java:* 17.0.9; OpenJDK 64-Bit Server VM 17.0.9+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.9+8-LTS

*System:* Mac OS X version 14.4.1 running on aarch64; UTF-8; en_US (nb)

*User directory:* /Users/thad/Library/Application Support/NetBeans/21

*Cache directory:* /Users/thad/Library/Caches/NetBeans/21


The OpenJDK is Amazon Corretto. Apache is using Java 11. Both apps target
Java 8. The app that works uses web-app version 4.0. This problem app uses
web-app version 3.1.


Oddly, both apps are working fine on an older Mac with NB18 (see below).

*Product Version:* Apache NetBeans IDE 18

*Java:* 17.0.4; OpenJDK 64-Bit Server VM 17.0.4+8-LTS

*Runtime:* OpenJDK Runtime Environment 17.0.4+8-LTS

*System:* Mac OS X version 10.15.7 running on x86_64; UTF-8; en_US (nb)

*User directory:* /Users/thad/Library/Application Support/NetBeans/18

*Cache directory:* /Users/thad/Library/Caches/NetBeans/18


The Tomcat install on both Macs is the same.


I tried various solutions, but none have worked:


- updating the problem app to 4.0

- deleting the app; cloning it from Git; and rebuilding it

- shutting down NetBeans, removing ~/Library/Caches/NetBeans/21, and
restarting NetBeans

- copying the META-INF/context.xml to the Tomcat conf/Catalina/localhost
with the appropriate name, and docBase having the full path to the app in
the project's target directory. On starting Tomcat, the file is deleted
(which is the *only* time the app appears in any of the Tomcat logs; there
are no errors).


Can anyone offer a solution? Thanks.


-- 
"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, *Doctor Faustus* (v. 111-13)

Reply via email to