NullPointerException in Tomcat startup in TC14
Posted: Wed Jul 19, 2006 9:48 am
Howdy!
I have downloaded and installed Java 1.4.2, JZOS 1.2.4, and Tomcat 5.0.28. Java and JZOS seem to be properly installed; "java -version" gives me what I expect to see, and the RUN14 job gives me "Hello, world!" the way it should. Tomcat, however, is being as stubborn as, well, a tomcat.
Having added three jar files in TOMCAT_HOME/server/lib/ -- tomcat-util.jar, commons-digester.jar, and commons-beanutils.jar -- to get past various NoClassDefFoundErrors, I now get the following in STDOUT:
Can't load server.xml
Can't load server.xml
STDERR shows:
Jul 19, 2006 1:33:31 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 7 more
Here is the SYSOUT:
JZOSVM14(N): log level has been set to: I
JZOSVM14(N): Copyright (C) IBM Corp. 2005. All rights reserved.
JZOSVM14(N): Version 1.2.4
JZOSVM14(I): Region requested = 0K, Actual below/above limit = 9M / 1667M
JZOSVM14(I): JAVA_PROPAGATE=NO
JZOSVM14(I): PATH=/bin:/opt/java/J1.4/bin:
JZOSVM14(I): IBM_JAVA_ZOS_TDUMP=NO
JZOSVM14(I): JZOS_HOME=/opt/java/jzos
JZOSVM14(I): IBM_JAVA_OPTIONS=-Xms64m -Xmx128m -Dfile.encoding=ISO8859-1 -Djzos.home=/opt/java/jzos -Dcatalina.base=/opt
/java/tomcat -Dcatalina.home=/opt/java/tomcat -Djava.io.tmpdir=/opt/java/tomcat/temp -Djava.endorsed.dirs=/opt/java/tomc
at/common/endor
sed
JZOSVM14(I): _=/bin/env
JZOSVM14(I): CLASSPATH=/opt/java/J1.4/lib/tools.jar:/opt/java/tomcat/bin/bootstrap.jar:/opt/java/tomcat/server/lib/tomca
t-util.jar:/opt/java/tomcat/server/lib/commons-digester.jar:/opt/java/tomcat/server/lib/commons-beanutils.jar:/opt/java/
jzos/jzos.jar:
JZOSVM14(I): LIBPATH=/lib:/usr/lib:/opt/java/J1.4/bin:/opt/java/J1.4/bin/classic:/opt/java/jzos:
JZOSVM14(I): JAVA_DUMP_HEAP=false
JZOSVM14(I): JAVA_HOME=/opt/java/J1.4
JZOSVM14(N): Java Virtual Machine created. Version information follows:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142-20060421 (SR5) (JIT enabled: jitc))
JZOSVM14(I): Using output encoding: 'IBM-1047'
JZOSVM14(I): MVS commands are ENABLED
JZOSVM14(I): Java main class: org.apache.catalina.startup.Bootstrap
JZOSVM14(I): Arg 1='start'
JZOSVM14(N): Invoking org.apache.catalina.startup.Bootstrap.main()
JZOSVM14(N): org.apache.catalina.startup.Bootstrap.main() completed.
JZOSVM14(I): Waiting for non-deamon Java threads to finish before exiting...
When I go into OMVS and do a "cat /opt/java/tomcat/conf/server.xml" (which is the only place I can find server.xml), it shows me garbage. If I perform a binary download of server.xml to my PC it appears to be legible ASCII XML. Is this correct, or should it be readable inside OMVS? I have been searching on the NPE in Catalina, but so far with no joy. Any suggestions?
Thanks,
Jon
I have downloaded and installed Java 1.4.2, JZOS 1.2.4, and Tomcat 5.0.28. Java and JZOS seem to be properly installed; "java -version" gives me what I expect to see, and the RUN14 job gives me "Hello, world!" the way it should. Tomcat, however, is being as stubborn as, well, a tomcat.
Having added three jar files in TOMCAT_HOME/server/lib/ -- tomcat-util.jar, commons-digester.jar, and commons-beanutils.jar -- to get past various NoClassDefFoundErrors, I now get the following in STDOUT:
Can't load server.xml
Can't load server.xml
STDERR shows:
Jul 19, 2006 1:33:31 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
... 7 more
Here is the SYSOUT:
JZOSVM14(N): log level has been set to: I
JZOSVM14(N): Copyright (C) IBM Corp. 2005. All rights reserved.
JZOSVM14(N): Version 1.2.4
JZOSVM14(I): Region requested = 0K, Actual below/above limit = 9M / 1667M
JZOSVM14(I): JAVA_PROPAGATE=NO
JZOSVM14(I): PATH=/bin:/opt/java/J1.4/bin:
JZOSVM14(I): IBM_JAVA_ZOS_TDUMP=NO
JZOSVM14(I): JZOS_HOME=/opt/java/jzos
JZOSVM14(I): IBM_JAVA_OPTIONS=-Xms64m -Xmx128m -Dfile.encoding=ISO8859-1 -Djzos.home=/opt/java/jzos -Dcatalina.base=/opt
/java/tomcat -Dcatalina.home=/opt/java/tomcat -Djava.io.tmpdir=/opt/java/tomcat/temp -Djava.endorsed.dirs=/opt/java/tomc
at/common/endor
sed
JZOSVM14(I): _=/bin/env
JZOSVM14(I): CLASSPATH=/opt/java/J1.4/lib/tools.jar:/opt/java/tomcat/bin/bootstrap.jar:/opt/java/tomcat/server/lib/tomca
t-util.jar:/opt/java/tomcat/server/lib/commons-digester.jar:/opt/java/tomcat/server/lib/commons-beanutils.jar:/opt/java/
jzos/jzos.jar:
JZOSVM14(I): LIBPATH=/lib:/usr/lib:/opt/java/J1.4/bin:/opt/java/J1.4/bin/classic:/opt/java/jzos:
JZOSVM14(I): JAVA_DUMP_HEAP=false
JZOSVM14(I): JAVA_HOME=/opt/java/J1.4
JZOSVM14(N): Java Virtual Machine created. Version information follows:
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM z/OS Persistent Reusable VM build cm142-20060421 (SR5) (JIT enabled: jitc))
JZOSVM14(I): Using output encoding: 'IBM-1047'
JZOSVM14(I): MVS commands are ENABLED
JZOSVM14(I): Java main class: org.apache.catalina.startup.Bootstrap
JZOSVM14(I): Arg 1='start'
JZOSVM14(N): Invoking org.apache.catalina.startup.Bootstrap.main()
JZOSVM14(N): org.apache.catalina.startup.Bootstrap.main() completed.
JZOSVM14(I): Waiting for non-deamon Java threads to finish before exiting...
When I go into OMVS and do a "cat /opt/java/tomcat/conf/server.xml" (which is the only place I can find server.xml), it shows me garbage. If I perform a binary download of server.xml to my PC it appears to be legible ASCII XML. Is this correct, or should it be readable inside OMVS? I have been searching on the NPE in Catalina, but so far with no joy. Any suggestions?
Thanks,
Jon