On the sever where did tomcat come from? a rpm?
Maybe as a test, download tomcat from tomcat.apache.org and see if it
makes a difference.
On 14/03/2022 10:16, Scott,Tim wrote:
I’m struggling with this and am obviously not running into the right terms to
I’ve put together a new application and got it working nicely through IntelliJ
with Tomcat 9.0.59 on my PC but as we’re not going to ship my machine (and
IntelliJ license!), I need it to run elsewhere.
I’ve subsequently found that it runs in the Tomcat on my PC without being
launched by IntelliJ, so my focus was on what the difference in config might
be. I’m using Tomcat 9.0.59 on my PC and on the Linux servers I’ve tried this
on, although they were 9.0.34, 9.0.45, … now they’re 9.0.59.
I’m using Corretto JDK 18.104.22.168 on my PC. My first Linux (RHEL 7) machine was
using Corretto 22.214.171.124 and is now 126.96.36.199.
I placed the .war file, named ‘sru.war’ into a webapps folders on a stopped
Windows 2016 Tomcat 9.0.54 / Corretto 188.8.131.52 system and it worked first time
– even after forgetting to remove the other .war for an older application.
Everything I’ve tried thus far on Linux has resulted in an http/404 (not
deployed at all!) or http/500 response with:
javax.servlet.ServletException: Servlet.init() for servlet
[org.oclc.olib.sru.SRUApplication] threw exception
java.lang.IllegalStateException: The resource configuration is not modifiable
in this context.
These are paired with other errors:
java.lang.IllegalStateException: No valid CDI implementation found
The WEB-INF/lib folder contains “cdi-api-2.0.SP1.jar”.
I’ve been going down the rabbit hole of config tweaking by setting up and removing
<Context> entries in the server.xml and/or context.xml:
e.g. <Context path="/sru"
I’ve tried renaming the war file as ‘sru.war’ and placing it in webapps,
removing other references to ‘sru’ in the configuration.
I think I’ve exhausted all possibilities of there being a duplicate ‘/sru’
context somehow, as many discussions indicate could be the cause. I haven’t
explored the application itself to see if that is causing this problem – as the
application works in one place with as close a configuration as I can get.
Annoyingly, I only need Linux for development and QA testing. It will be only
deployed on Windows 2016 in phase 1 (and may never reach phase 2).
Any ideas where I should tweak next?
In case it helps, my immediate dependencies are summarised below. They mostly
result from IntelliJ’s “create a new REST project”.
OCLC · Senior Software Engineer / Technical Product Manager
cc: IT file
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org