Tomcat cannot find gdk_custom.jar, Oracle cannot create it?

Starting Tomcat 8, I get a warning:

02-Aug-2017 11:14:21.363 WARNING [RMI TCP Connection(5)-127.0.0.1]
org.apache.tomcat.util.scan.StandardJarScanner.scan
Failed to scan 
[file:/C:/Users/543829657/HomeTomcat/tomcat/lib/gdk_custom.jar] from
classloader hierarchy java.io.FileNotFoundException: 
C:\Users\543829657\HomeTomcat\tomcat\lib\gdk_custom.jar 
(The system cannot find the file specified)

      

All the answers I've found are advice for creating an gdk_custom.jar

Oracle file ginstall

. I've limited my google search to the last two years and the answers are here :

java -classpath $ORACLE_HOME/jlib/orai18n.jar:$ORACLE_HOME/lib/xmlparserv2.jar ginstall -add <Name of NLT file>

      

But by running the line:

>java -classpath c:/Oracle/jlib/orai18n.jar:c:/Oracle/lib/xmlparserv2.jar ginstall -add lx2dddd.nlt

      

displays the message:

Error: Could not find or load main class ginstall

      

I looked over orai18n.jar

. In fact, it is not in it ginstall

! ginstall

located in orai18n-tools.jar

.

>java -classpath orai18n-tools.jar Ginstall -add lx2dddd.nlt

Usage: Ginstall [-dOutputDir] <NLT file> ...
-d: indicates the directory where the output file is written to
    do not specify 'd' for UDC, a zip file gdk_custom.zip will be
    written to the current directory

      

Ok, the text in the Oracle docs is outdated, it seems.

>java -classpath orai18n-tools.jar Ginstall -d. lx2dddd.nlt

      

Now it goes further but fails again:

Exception in thread "main"
java.lang.NoClassDefFoundError:oracle/xml/parser/v2/DOMParser
    at oracle.i18n.util.builder.NLTParser.<init>(NLTParser.java:72)
    at oracle.i18n.util.builder.CharSetParser.<init>(CharSetParser.java:44)
    at oracle.i18n.util.builder.CharSetParser.getInstance(CharSetParser.java:64)
    at oracle.i18n.util.builder.CharDataTypeParser.<init>(CharDataTypeParser.java:123)
    at oracle.i18n.util.builder.CharConvBuilder.buildGLB(CharConvBuilder.java:95)
    at Ginstall.main(Ginstall.java:96)
Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.DOMParser
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 6 more

      

Maybe this parser was needed? But

>java -cp orai18n-tools.jar;c:/Oracle/lib/xmlparserv2.jar Ginstall -d. lx2dddd.nlt

      

has the same result.

And it is not generated gdk_custom.jar

(or zip) ....

What's interesting, according to http://www.findjar.com/jar/com.oracle/oc4j/11/jars/xmlparserv2.jar.html?all=true , xmlparserv2.jar should contain the DOMParser class.

How can I get this one gdk_custom.jar

?

Oracle - 12.

+3


source to share


1 answer


We don't need to create gdk_custom.jar

.

All we need is to prevent Tomcat from looking for it. As Tomcat 8.0.38

it scans by default . We need to disable scanning. This way, you won't see many excessive warnings, and the server starts up faster.



add the following line to tomcat/conf/context.xml

:

<Context>
  ...
  <JarScanner scanManifest="false"/>
</Context>

      

+3


source







All Articles