Konstantin,

On 8/3/21 04:07, Konstantin Kolinko wrote:
вт, 3 авг. 2021 г. в 02:31, James H. H. Lampert
<jam...@touchtonecorp.com.invalid>:

This is beyond my pay grade, I'm afraid. Hopefully somebody here has a
clue what went wrong.

I installed Tomcat 8.5.68 on an AS/400 with Java 8, that had been
running Tomcat 7 for years with no problems.

On launching Tomcat 8, if I try to connect to "manager" (the only
context currently in Webapps), right after:

02-Aug-2021 18:15:11.655 INFO [main]
org.apache.catalina.startup.Catalina.load Initialization processed in
3271 ms

I'm getting

02-Aug-2021 18:15:11.707 WARNING [main]
org.apache.catalina.users.MemoryUserDatabase.open Exception configuring
digester to permit java encoding names in XML files. Only IANA encoding
names will be supported.
org.xml.sax.SAXNotRecognizedException: Feature:
http://apache.org/xml/features/allow-java-encodings
         at
org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:213)
         at
org.apache.crimson.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java:143)
         at org.apache.crimson.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:126)
         at
org.apache.crimson.jaxp.SAXParserFactoryImpl.newSAXParserImpl(SAXParserFactoryImpl.java:113)
         at
org.apache.crimson.jaxp.SAXParserFactoryImpl.setFeature(SAXParserFactoryImpl.java:141)
         at 
org.apache.tomcat.util.digester.Digester.setFeature(Digester.java:526)
         at
org.apache.catalina.users.MemoryUserDatabase.open(MemoryUserDatabase.java:440)

[...]

         at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
         at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
         at java.lang.reflect.Method.invoke(Method.java:508)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)

1. It is a warning, not an error. If you look at
MemoryUserDatabase.java:440 you will see that it is caught and
ignored.

It means that the XML parser does not recognize the
"http://apache.org/xml/features/allow-java-encodings"; feature name.


2. The stack trace starts with "Bootstrap.main". I.e. it is the thread
that starts Tomcat.

I.e. this occurs when Tomcat starts up and has nothing to do with your
attempt to access the Manager web application.


3. The stack trace contains "org.apache.crimson".

Apache Crimson project was retired 11 years ago and should not be used nowadays.
https://xml.apache.org/crimson/
https://attic.apache.org/projects/crimson.html

You have that library in Tomcat classpath? Where? Why?

Good catch.

The JVM has been bundled with a SAX parser for ages, now. You might ask your application/engineering team if it's okay to try your application without a bundled XML library.

You might also ask why it's being put into CATALINA_BASE/lib (or endorsed-libs?) instead of in the application's WEB-INF/lib where it belongs.

-chris

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

Reply via email to