Openjdk-1.7.0_55 on ubuntu: Failed to load properties file 'output_xml.properties' for output method 'xml'

On openjdk-1.7.0_55 on ubuntu, I get an exception:

com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException: Failed to load properties file 'output_xml.properties' for output method 'xml'

Could this be a class problem?

I can find "output_xml.properties" in / usr / lib / jvm / java -1.7.0-openjdk-amd64 / jre / lib / resources.jar.

Any help is appreciated.

Thank!

+4
source share
4 answers

, Java .

+2

, Java - .

echo $JAVA_HOME , /usr/lib/jvm/java-1.7.0-openjdk-amd64/.

sudo update-alternatives --config java /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java

javac: sudo update-alternatives --config javac.

0

JAR xalan .. /jre/lib/endorsed

http://xml.apache.org/xalan-j/faq.html#jdk14:

xalan.jar, serializer.jar, xercesImpl.jar xml-apis.jar \lib\endorsed, .

0

If you use SYS V initialization scripts and run such Tomcat in the container, DO NOT run the script directly with

sudo /etc/init.d/tomcat7 start

This will launch it without a clean environment.

Use the utility command instead:

sudo /sbin/service tomcat7 start
0
source

Source: https://habr.com/ru/post/1540288/


All Articles