Tomcat-6.0.18 and zfile problem, java-1.5.0 and jzos-2.3.0

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
fagu
Posts: 14
Joined: Wed Dec 02, 2009 8:51 am

Tomcat-6.0.18 and zfile problem, java-1.5.0 and jzos-2.3.0

Post by fagu » Wed Dec 02, 2009 9:07 am

Need some help to solve the zfile problem.
java.net.MalformedURLException: unknown protocol: zfile

JVMJZBL1053I OS Release R19.00 Machine 2094

z/OS&z9: Tomcat-6.0.18 and zfile problem, java-1.5.0 and jzos-2.3.0 (SR10), z/OS1.9 (with z/OS1.11 toleration included)

http://java.sun.com/developer/onlineTra ... lhandlers/

The VM must be started up with an appropriate value for the java.protocol.handler.pkgs system property (Type the following on one line):

java -Djava.protocol.handler.pkgs=
com.develop.protocols ...


JVMJZBL1006I CLASSPATH = /usr/lpp/java/J5.0/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/zos-url.jar:


Using -Djava.protocol.handler.pkgs=com.ibm.jzos.url, zfile problem?
===================================================================

JVMJZBL1001N JZOS batch Launcher Version: 2.3.0 2008-05-12
JVMJZBL2999T Ä Required for the zfile:// URL handler:
JVMJZBL2999T Ä IJO="ÅIJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
JVMJZBL2999T IJO="ÅIJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
JVMJZBL2999T Ä And also the IBM crypto URL handler:
JVMJZBL2999T ÄIJO="ÅIJO!com.ibm.crypto.provider"
export IBM_JAVA_OPTIONS="ÅIJO "
-Xmx128m -Dfile.encoding=ISO8859-1 -Dcatalina.base=/usr/local/tomcat
a.io.tmpdir=/usr/local/tomcat/temp -Djava.protocol.handler.pkgs=com.ibm.jzos.url
JVMJZBL2999T Classpath option string: '-Djava.class.path=/usr/lpp/java/J5.0/lib
p.jar:/usr/local/tomcat/bin/zos-url.jar:'
JVMJZBL1012I Java Virtual Machine created. Version information follows:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20090707 (SR10
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20090707 (J
J9VM - 20090706_38445_bHdSMr
JIT - 20090623_1334_r8
GC - 200906_09)
JVMJZBL2999T Build versions match: 2.3.0 2008-05-12
JVMJZBL2999T org.apache.catalina.startup.Bootstrap.main
JVMJZBL2999T method invocation elapsed time=0.903363 seconds, cpu time=0.431095
JVMJZBL2999T <- StaticMethod.invoke()
JVMJZBL1024N org.apache.catalina.startup.Bootstrap.main() completed.
JVMJZBL2999T <- invokeMain()
JVMJZBL2999T <- run()
JVMJZBL2999T -> cleanup()
JVMJZBL1014I Waiting for non-deamon Java threads to finish before exiting...
JVMJZBL2999T JvmExitHook entered with exitCode=0, javaMainReturnedOrThrewException=1
JVMJZBL2999T DestroyJavaVM elapsed time=0.021840 seconds, cpu time=0.005602 sec
JVMJZBL2999I JZOS batch launcher elapsed time=3.119840 seconds, cpu time=1.1046
JVMJZBL1021N JZOS batch launcher completed, return code=0
Dec 2, 2009 2:15:34 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
java.net.MalformedURLException: unknown protocol: zfile
at java.net.URL.<init>(URL.java:609)
at java.net.URL.<init>(URL.java:499)
at java.net.URL.<init>(URL.java:448)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)


Comment OUT -Djava.protocol.handler.pkgs=com.ibm.jzos.url, no change in action???
=================================================================================

Ä Required for the zfile:// URL handler:
Ä IJO="ÅIJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
Ä IJO="ÅIJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
Ä And also the IBM crypto URL handler:
ÄIJO="ÅIJO!com.ibm.crypto.provider"
-Xmx128m -Dfile.encoding=ISO8859-1 -Dcatalina.base=/usr/local/tomcat
a.io.tmpdir=/usr/local/tomcat/temp
JVMJZBL2999T Classpath option string: '-Djava.class.path=/usr/lpp/java/J5.0/lib
p.jar:/usr/local/tomcat/bin/zos-url.jar:'
JVMJZBL1014I Waiting for non-deamon Java threads to finish before exiting...
JVMJZBL2999T JvmExitHook entered with exitCode=0, javaMainReturnedOrThrewExcept
JVMJZBL2999T DestroyJavaVM elapsed time=0.019401 seconds, cpu time=0.006013 sec
JVMJZBL2999I JZOS batch launcher elapsed time=3.050877 seconds, cpu time=1.1031
JVMJZBL1021N JZOS batch launcher completed, return code=0
Dec 2, 2009 2:22:08 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
java.net.MalformedURLException: unknown protocol: zfile
at java.net.URL.<init>(URL.java:609)
at java.net.URL.<init>(URL.java:499)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)


Test with jzos.jar Version '2.3.2 Alphaworks 2008-12-02', no success:
=====================================================================

JVMJZBL1012I Java Virtual Machine created. Version information follows:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20090707 (SR10
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20090707 (JI
J9VM - 20090706_38445_bHdSMr
JIT - 20090623_1334_r8
GC - 200906_09)
JVMJZBL2999T -> checkVersions()
JVMJZBL2999T com.ibm.jzos.ZUtil.getJzosJarVersion
JVMJZBL1049W JZOS batch Launcher Version '2.3.0 2008-05-12' does not match jzos.jar Version '2.3.2 Alphaworks 2008-12-02'
Dec 2, 2009 2:53:01 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
java.net.MalformedURLException: unknown protocol: zfile
at java.net.URL.<init>(URL.java:609)
at java.net.URL.<init>(URL.java:499)
at java.net.URL.<init>(URL.java:448)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)


Java-1.6.0 is a little old, but some bad results:
=================================================

java version "1.6.0"
Java(TM) SE Runtime Environment (build jvmmz3160-20081107_25433)
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 z/OS s390-31 jvmmz3160-20081107_254
J9VM - 20081105_025433_bHdSMr
JIT - r9_20081031_1330
GC - 20081027_AB)
JVMJZBL1049W JZOS batch Launcher Version '2.3.0 2008-05-12' does not match jzos.jar Version '2.3.2 Alphaworks 2008-12-02'
JVMJZBL2999T JvmExitHook entered with exitCode=0, javaMainReturnedOrThrewException=1
Dec 2, 2009 3:06:44 PM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml:
Throwable occurred: java.net.MalformedURLException: unknown protocol: zfile
at java.lang.Throwable.<init>(Throwable.java:67)
at java.net.URL.<init>(URL.java:489)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Wed Dec 02, 2009 9:35 am

It is difficult to tell what the problem is because of your character set issues in this post. It looks like the variable "-Djava.protocol.handler.pkgs" is not being set properly in the TCENV script.

fagu
Posts: 14
Joined: Wed Dec 02, 2009 8:51 am

Post by fagu » Mon Dec 07, 2009 8:48 am

Well, outside US in some eu-nordic countries,
#=Ä, $=Å, {=ä, }=å
it doen't make life easy, but you have to live with it.

First my fin/swe version:

Ä ----------------------------------------------------------------------
Ä Configure Java Properties via IBM_JAVA_OPTIONS env variable.
Ä ----------------------------------------------------------------------
IJO="ÅIJO -Dfile.encoding=ISO8859-1" Ä ASCII default encoding rqd
IJO="ÅIJO -Dcatalina.base=ÅäCATALINA_BASEå"
IJO="ÅIJO -Dcatalina.home=ÅäCATALINA_HOMEå"
IJO="ÅIJO -Djava.io.tmpdir=ÅäCATALINA_BASEå/temp"
Ä Required for the zfile:// URL handler:
Ä IJO="ÅIJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
Ä IJO="ÅIJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
IJO="ÅIJO -Djava.protocol.handler.pkgs=com.ibm.jzos.ZFile"
Ä And also the IBM crypto URL handler:
ÄIJO="ÅIJO!com.ibm.crypto.provider"

Here how it should look in english. Any ideas why zfile problem persists?

# ----------------------------------------------------------------------
# Configure Java Properties via IBM_JAVA_OPTIONS env variable.
# ----------------------------------------------------------------------
IJO="$IJO -Dfile.encoding=ISO8859-1" # ASCII default encoding rqd
IJO="$IJO -Dcatalina.base=${CATALINA_BASE}"
IJO="$IJO -Dcatalina.home=${CATALINA_HOME}"
IJO="$IJO -Djava.io.tmpdir=${CATALINA_BASE}/temp"
# Required for the zfile:// URL handler:
# IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.ZFile"
# And also the IBM crypto URL handler:
#IJO="$IJO!com.ibm.crypto.provider"

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Mon Dec 07, 2009 9:25 am

Please run it with LOGLVL='+D' and post the output.

fagu
Posts: 14
Joined: Wed Dec 02, 2009 8:51 am

Post by fagu » Wed Dec 09, 2009 5:24 am

SAMPJCL(TCJOB)
//TOMCAT JOB ,
// TIME=NOLIMIT,REGION=0M,NOTIFY=&SYSUID,
// CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1)
//*
//*********************************************************************
//* Batch job to run Apache Tomcat using the JZOS Batch JVM launcher
//* See: SAMPJCL(ÅREADME) for customization info
//*********************************************************************
//*
// SET TCPROCLB=TT0XGF1.TCAT6018.SAMPJCL with TOMCAT PROC (this)
// SET TCCNFGLB=&TCPROCLB Tomcat Config PDS (this)
//*
//PROCLIB JCLLIB ORDER=&TCPROCLB
//*
//TOMCAT EXEC PROC=TCPROC,
// CNFGLIB=&TCCNFGLB, < (RQD) PDS w/ config XML & env script
// VERSION='50', < JZOSVM version: 50,56,60,66
// LOGLVL='+D' < Debug LVL: +I(nfo) +D(ebug) +T(race)
//

SAMPJCL(TCPROC)
//TCPROC PROC CNFGLIB=, < (RQD) PDS w/ config XML & env script
// TCENV=TCENV, < Member of CNFLIB with STDENV script
//* JZOSLIB='SYS1.SIEALNKE', < JZOS launcher PDSE LIB
// VERSION='50', < JZOSVM version: 50,56,60,66
// LOGLVL='', < Debug LVL: +I(nfo) +D(ebug) +T(race)
// REGSIZE='0M', < Max region
//* DB2PRFX=DSN910, < Prefix for DB2 STEPLIBs, if used
// LEPARM='',
// JAVACLS='org.apache.catalina.startup.Bootstrap',
// ARGS='start'
//JAVAJVM EXEC PGM=JVMLDM&VERSION,REGION=&REGSIZE,
// PARM='&LEPARM/&LOGLVL &JAVACLS &ARGS'
//*STEPLIB DD DISP=SHR,DSN=SYS1.SIEALNKE
//SYSTCPD DD DISP=SHR,DSN=...TCPPARM(TCPDATA)
//*TEPLIB DD DISP=SHR,DSN=&JZOSLIB
//* DD DISP=SHR,DSN=&DB2PRFX..SDSNEXIT < Uncomment for DB2
//* DD DISP=SHR,DSN=&DB2PRFX..SDSNLOAD < type-2
//* DD DISP=SHR,DSN=&DB2PRFX..SDSNLOD2 < JDBC
//STDENV DD DISP=SHR,DSN=&CNFGLIB(&TCENV) < STDENV shell script
//TCCONFIG DD DISP=SHR,DSN=&CNFGLIB < Tomcat XML cnfig
//SYSPRINT DD SYSOUT=* < System stdout
//*SYSOUT DD SYSOUT=* < System stderr
//*STDOUT DD SYSOUT=* < Java System.out
//*STDERR DD SYSOUT=* < Java System.err
//SYSOUT DD PATH='/u/?????/????tomcat6018.systemout',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=SIRWXU
//STDOUT DD PATH='/u/?????/????tomcat6018.stdout',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=SIRWXU
//STDERR DD PATH='/u/?????/????fagu.tomcat6018.stderr',
// PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
// PATHMODE=SIRWXU
//CEEDUMP DD SYSOUT=*
//ABNLIGNR DD DUMMY
// PEND

SAMPJCL(TCENV) ==> SAMPJCL(DOVE)...edited #=Ä, $=Å, {=ä, }=å, é=` Ý=[
=====================================================================
. /etc/profile

# ----------------------------------------------------------------------
# $$$ Often you will only need to customize this section:
# ----------------------------------------------------------------------
export JAVA_HOME=/usr/lpp/java/J5.0
CATALINA_HOME=/usr/local/tomcat
CATALINA_BASE=/usr/local/tomcat
IJO="-Xms64m -Xmx128m" # min and max Java heap sizes

# ----------------------------------------------------------------------
# Configure Java Properties via IBM_JAVA_OPTIONS env variable.
# ----------------------------------------------------------------------
IJO="$IJO -Dfile.encoding=ISO8859-1" # ASCII default encoding rqd
IJO="$IJO -Dcatalina.base=${CATALINA_BASE}"
IJO="$IJO -Dcatalina.home=${CATALINA_HOME}"
IJO="$IJO -Djava.io.tmpdir=${CATALINA_BASE}/temp"
# Required for the zfile:// URL handler:
# IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.ZFile"
# And also the IBM crypto URL handler:
IJO="$IJO!com.ibm.crypto.provider"

# Set the DB2 subsys name, used with the type-2 Universal JDBC driver
#IJO="$IJO -Ddb2.jcc.ssid=${DB2_SSID}"

# Uncomment the following to use SDK5.0+ shared classes
groupname=`id -gn`
#IJO="$IJO -Xshareclasses:name=$groupname,groupAccess"

# Uncomment the following to use a Java JAAS security manager
#IJO="$IJO -Djava.security.policy=${CATALINA_BASE}/conf/catalina.policy"
#IJO="$IJO -Djava.security.manager"

export IBM_JAVA_OPTIONS="$IJO "

# ----------------------------------------------------------------------
# Uncomment the following lines if you are using an alphaWorks JZOS
# lines rather than JZOS that is distributed within the SDK.
# ----------------------------------------------------------------------
export JZOS_OUTPUT_ENCODING=ISO8859-1
JZOS_HOME=/usr/local/jzos232/jzos
export JZOS_HOME=/usr/local/jzos232/jzos
JVMOPTS=""
JVMOPTS="$JVMOPTS -Djava.ext.dirs=${JZOS_HOME}:${JAVA_HOME}/lib/ext"
JVMOPTS="$JVMOPTS -Djzos.jdfsort.dir=${JZOS_HOME}"
export JZOS_JVM_OPTIONS="$JVMOPTS"

# ----------------------------------------------------------------------
# Setup PATH and LIBPATH from scratch to avoid installation profile
# conflicts. This should only be changed if you need to add your
# own Java native (JNI) library directories.
# ----------------------------------------------------------------------
export PATH=/bin:"${JAVA_HOME}"/bin:
LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/j9vm
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
# Add the DB2 JDBC native library directory if present:
if [[ -d "${DB2_JDBC_HOME}/lib" ¨¨; then
LIBPATH="$LIBPATH":"${DB2_JDBC_HOME}/lib"
fi
export LIBPATH="$LIBPATH":

# ----------------------------------------------------------------------
# Set up Tomcat's "boot" classpath.
# ----------------------------------------------------------------------
CLASSPATH="${JAVA_HOME}/lib/tools.jar"
CLASSPATH="$CLASSPATH":"${CATALINA_HOME}/bin/bootstrap.jar"
# The zfile: URL Protocol handler from here:
CLASSPATH="$CLASSPATH":"${CATALINA_HOME}/bin/zos-url.jar"

# Add the DB2 JDBC jars if present:
if [[ -d "${DB2_JDBC_HOME}/classes" ¨¨; then
for i in "${DB2_JDBC_HOME}"/classes/*.jar; do
export CLASSPATH="$CLASSPATH":"$i"
done
for i in "${DB2_JDBC_HOME}"/classes/*.zip; do
export CLASSPATH="$CLASSPATH":"$i"
done
fi
export CLASSPATH="$CLASSPATH":

# ----------------------------------------------------------------------
# Some default JVM diagnostic settings.
# See the IBM SDK Diagnostics guide for more info
# ----------------------------------------------------------------------
export JAVA_DUMP_HEAP=false
export JAVA_PROPAGATE=NO
export IBM_JAVA_ZOS_TDUMP=NO

# Fagu lis{si
export PWD=/usr/local


dovetail.tomcat6018.stderr.txt
==============================
Dec 9, 2009 10:41:48 AM org.apache.catalina.startup.Catalina load

WARNING: Catalina.start using conf/server.xml:

java.net.MalformedURLException: unknown protocol: zfile

at java.net.URL.<init>(URL.java:609)

at java.net.URL.<init>(URL.java:499)

at java.net.URL.<init>(URL.java:448)

at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.startPE(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.skipSeparator(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.load(Catalina.java:550)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Dec 9, 2009 10:41:48 AM org.apache.catalina.startup.Catalina load

WARNING: Catalina.start using conf/server.xml:

java.net.MalformedURLException: unknown protocol: zfile

at java.net.URL.<init>(URL.java:609)

at java.net.URL.<init>(URL.java:499)

at java.net.URL.<init>(URL.java:448)

at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.startPE(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.skipSeparator(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.start(Catalina.java:570)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Dec 9, 2009 10:41:48 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:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.lang.NullPointerException

at org.apache.catalina.startup.Catalina.await(Catalina.java:642)

at org.apache.catalina.startup.Catalina.start(Catalina.java:602)

... 6 more


dovetail.tomcat6018.systemout.txt
=================================
JVMJZBL2004N Log level has been set to: D
JVMJZBL1001N JZOS batch Launcher Version: 2.3.0 2008-05-12
JVMJZBL1002N Copyright (C) IBM Corp. 2005. All rights reserved.
JVMJZBL1029I Region requested = 0K, Actual below/above limit = 9M / 1689M
JVMJZBL1053I OS Release R19.00 Machine 2094
JVMJZBL1036D Spawned child shell process with PID: 254
JVMJZBL1005I Output from DD:STDENV config shell script:
JVMJZBL1006I MAIL = /usr/mail/
JVMJZBL1006I PWD = /usr/local
JVMJZBL1006I JAVA_PROPAGATE = NO
JVMJZBL1006I PATH = /bin:/usr/lpp/java/J5.0/bin:
JVMJZBL1006I IBM_JAVA_ZOS_TDUMP = NO
JVMJZBL1006I JZOS_HOME = /usr/local/jzos232/jzos
JVMJZBL1006I IBM_JAVA_OPTIONS = -Xms64m -Xmx128m -Dfile.encoding=ISO8859-1 -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp -Djava.protocol.handler.pkgs=com.ibm.jzos.ZFile|com.ibm.crypto.provider
JVMJZBL1006I JZOS_JVM_OPTIONS = -Djava.ext.dirs=/usr/local/jzos232/jzos:/usr/lpp/java/J5.0/lib/ext -Djzos.jdfsort.dir=/usr/local/jzos232/jzos
JVMJZBL1006I _BPX_SPAWN_SCRIPT = YES
JVMJZBL1006I _ = /bin/env
JVMJZBL1006I CLASSPATH = /usr/lpp/java/J5.0/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/zos-url.jar:
JVMJZBL1006I LANG = C
JVMJZBL1006I LIBPATH = /lib:/usr/lib:/usr/lpp/java/J5.0/bin:/usr/lpp/java/J5.0/lib/s390:/usr/lpp/java/J5.0/lib/s390/j9vm:/usr/lpp/java/J5.0/bin/classic:/lib:
JVMJZBL1006I JZOS_OUTPUT_ENCODING = ISO8859-1
JVMJZBL1006I _BPX_SHAREAS = YES
JVMJZBL1006I JAVA_DUMP_HEAP = false
JVMJZBL1006I JAVA_HOME = /usr/lpp/java/J5.0
JVMJZBL1006I TZ = GMT-2DST,M3.5.0/03:00:00,M10.5.0/04:00:00
JVMJZBL1006I MANPATH = /usr/man/%L
JVMJZBL1006I NLSPATH = /usr/lib/nls/msg/%L/%N
JVMJZBL1006I PWD = /usr/local
JVMJZBL1012I Java Virtual Machine created. Version information follows:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20091106 (SR11 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20091105 (JIT enabled)
J9VM - 20091103_45935_bHdSMr
JIT - 20091016_1845_r8
GC - 20091026_AA)
JVMJZBL1049W JZOS batch Launcher Version '2.3.0 2008-05-12' does not match jzos.jar Version '2.3.2 Alphaworks 2008-12-02'
JVMJZBL1027I Using output encoding: ISO8859-1
JVMJZBL1016I MVS commands are ENABLED
JVMJZBL1023N Invoking org.apache.catalina.startup.Bootstrap.main()...
JVMJZBL1024N org.apache.catalina.startup.Bootstrap.main() completed.
JVMJZBL1014I Waiting for non-deamon Java threads to finish before exiting...
JVMJZBL2999I JZOS batch launcher elapsed time=7.687333 seconds, cpu time=1.1210021 seconds
JVMJZBL1021N JZOS batch launcher completed, return code=0

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Wed Dec 09, 2009 9:07 am

Looking at your job output, it looks like you changed this line:

# Required for the zfile:// URL handler:
IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"

This needs to be set this way for the zfile protocol handler to work, which is what allows the Tomcat XML configuration to be sourced from z/OS datasets.

fagu
Posts: 14
Joined: Wed Dec 02, 2009 8:51 am

Post by fagu » Thu Dec 10, 2009 4:04 am

Made suggested change, result even worse...

SAMPJCL(TCENV)
==============
# ----------------------------------------------------------------------
# Configure Java Properties via IBM_JAVA_OPTIONS env variable.
# ----------------------------------------------------------------------
IJO="$IJO -Dfile.encoding=ISO8859-1" # ASCII default encoding rqd
IJO="$IJO -Dcatalina.base=${CATALINA_BASE}"
IJO="$IJO -Dcatalina.home=${CATALINA_HOME}"
IJO="$IJO -Djava.io.tmpdir=${CATALINA_BASE}/temp"
# Required for the zfile:// URL handler:
IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.url"
# IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.jzos.ZFile"
# And also the IBM crypto URL handler:
# IJO="$IJO!com.ibm.crypto.provider"

Dec 10, 2009 10:41:48 AM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line 7 column 2: The markup declarations contained or pointed to by the document type declaration must be well-formed.

org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.load(Catalina.java:550)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Dec 10, 2009 10:41:49 AM org.apache.catalina.startup.Catalina load

WARNING: Catalina.start using conf/server.xml:

org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.load(Catalina.java:550)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Dec 10, 2009 10:41:49 AM org.apache.tomcat.util.digester.Digester fatalError

SEVERE: Parse Fatal Error at line 7 column 2: The markup declarations contained or pointed to by the document type declaration must be well-formed.

org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)

at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.start(Catalina.java:570)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Dec 10, 2009 10:41:49 AM org.apache.catalina.startup.Catalina load

WARNING: Catalina.start using conf/server.xml:

org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed.

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:516)

at org.apache.catalina.startup.Catalina.start(Catalina.java:570)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Dec 10, 2009 10:41:49 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:79)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: java.lang.NullPointerException

at org.apache.catalina.startup.Catalina.await(Catalina.java:642)

at org.apache.catalina.startup.Catalina.start(Catalina.java:602)

... 6 more

JVMJZBL2004N Log level has been set to: D
JVMJZBL1001N JZOS batch Launcher Version: 2.3.0 2008-05-12
JVMJZBL1002N Copyright (C) IBM Corp. 2005. All rights reserved.
JVMJZBL1029I Region requested = 0K, Actual below/above limit = 9M / 1689M
JVMJZBL1053I OS Release R19.00 Machine 2094
JVMJZBL1036D Spawned child shell process with PID: 419
JVMJZBL1005I Output from DD:STDENV config shell script:
JVMJZBL1006I MAIL = /usr/mail/
JVMJZBL1006I PWD = /usr/local
JVMJZBL1006I JAVA_PROPAGATE = NO
JVMJZBL1006I PATH = /bin:/usr/lpp/java/J5.0/bin:
JVMJZBL1006I IBM_JAVA_ZOS_TDUMP = NO
JVMJZBL1006I JZOS_HOME = /usr/local/jzos232/jzos
JVMJZBL1006I IBM_JAVA_OPTIONS = -Xms64m -Xmx128m -Dfile.encoding=ISO8859-1 -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp -Djava.protocol.handler.pkgs=com.dovetail.jzos.url
JVMJZBL1006I JZOS_JVM_OPTIONS = -Djava.ext.dirs=/usr/local/jzos232/jzos:/usr/lpp/java/J5.0/lib/ext -Djzos.jdfsort.dir=/usr/local/jzos232/jzos
JVMJZBL1006I _BPX_SPAWN_SCRIPT = YES
JVMJZBL1006I _ = /bin/env
JVMJZBL1006I CLASSPATH = /usr/lpp/java/J5.0/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/zos-url.jar:
JVMJZBL1006I LANG = C
JVMJZBL1006I LIBPATH = /lib:/usr/lib:/usr/lpp/java/J5.0/bin:/usr/lpp/java/J5.0/lib/s390:/usr/lpp/java/J5.0/lib/s390/j9vm:/usr/lpp/java/J5.0/bin/classic:/lib:
JVMJZBL1006I JZOS_OUTPUT_ENCODING = ISO8859-1
JVMJZBL1006I _BPX_SHAREAS = YES
JVMJZBL1006I JAVA_DUMP_HEAP = false
JVMJZBL1006I JAVA_HOME = /usr/lpp/java/J5.0
JVMJZBL1006I TZ = GMT-2DST,M3.5.0/03:00:00,M10.5.0/04:00:00
JVMJZBL1006I MANPATH = /usr/man/%L
JVMJZBL1006I NLSPATH = /usr/lib/nls/msg/%L/%N
JVMJZBL1006I PWD = /usr/local
JVMJZBL1012I Java Virtual Machine created. Version information follows:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pmz31dev-20091106 (SR11 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 z/OS s390-31 j9vmmz3123-20091105 (JIT enabled)
J9VM - 20091103_45935_bHdSMr
JIT - 20091016_1845_r8
GC - 20091026_AA)
JVMJZBL1049W JZOS batch Launcher Version '2.3.0 2008-05-12' does not match jzos.jar Version '2.3.2 Alphaworks 2008-12-02'
JVMJZBL1027I Using output encoding: ISO8859-1
JVMJZBL1016I MVS commands are ENABLED
JVMJZBL1023N Invoking org.apache.catalina.startup.Bootstrap.main()...
JVMJZBL1024N org.apache.catalina.startup.Bootstrap.main() completed.
JVMJZBL1014I Waiting for non-deamon Java threads to finish before exiting...
JVMJZBL2999I JZOS batch launcher elapsed time=4.112748 seconds, cpu time=1.1133081 seconds
JVMJZBL1021N JZOS batch launcher completed, return code=0

dovetail
Site Admin
Posts: 1781
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail » Thu Dec 10, 2009 9:12 am

This is not necessarily worse - it means that you are now parsing the SERVXML PDS member, but that you have an XML syntax error.

Take a look at the SERVXML and SERVVARS members and compare your changes with what we say to do in the users guide. If you don't find a problem, you can either post them or email to info@dovetail.com and we'll take a look.

Also, you need to change your TCENV member so that these lines are just like we ship:

IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# And also the IBM crypto URL handler:
IJO="$IJO!com.ibm.crypto.provider"

As you have it, the com.ibm.crypto.provider is uncommented.

fagu
Posts: 14
Joined: Wed Dec 02, 2009 8:51 am

After changing "!" ==> "|" parsing OK

Post by fagu » Tue Dec 15, 2009 2:29 am

Problem solved.


This doesn't work:
==================
BROWSE <...>.TCAT6018.SAMPJCL(TCENV) - 01.25 Line 00000030 Col 001 080
Command ===> ________________________________________________ Scroll ===> CSR_
# Required for the zfile:// URL handler:
IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# And also the IBM crypto URL handler:
IJO="$IJO!com.ibm.crypto.provider"


Compared to original Backup member:
===================================
BROWSE <...>.TCAT6018.SAMPJCL(TCENVBKP) - 01.00 Line 00000032 Col 001 080
Command ===> ________________________________________________ Scroll ===> CSR_
# Required for the zfile:// URL handler:
IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# And also the IBM crypto URL handler:
IJO="$IJO|com.ibm.crypto.provider"


After changing "!" ==> "|" parsing OK and TOMCAT stays up:
==========================================================
BROWSE <...>.TCAT6018.SAMPJCL(TCENV) - 01.26 Line 00000030 Col 001 080
Command ===> ________________________________________________ Scroll ===> CSR_
# Required for the zfile:// URL handler:
IJO="$IJO -Djava.protocol.handler.pkgs=com.dovetail.jzos.url"
# And also the IBM crypto URL handler:
IJO="$IJO|com.ibm.crypto.provider"


The Apache Software Foundation The Tomcat Servlet/JSP Container
Server Status

Manager
List Applications HTML Manager Help Manager Help Complete Server Status

Server Information
Tomcat Version JVM Version JVM Vendor OS Name OS Version OS Architecture
Apache Tomcat/6.0.18 pmz31dev-20090707 (SR10 ) IBM Corporation z/OS 01.09.00 s390

JVM

Free memory: 18.28 MB Total memory: 64.00 MB Max memory: 128.00 MB
http-8080

Max threads: 40 Current thread count: 3 Current thread busy: 1
Max processing time: 2485 ms Processing time: 2.771 s Request count: 11 Error count: 6 Bytes received: 0.00 MB Bytes sent: 0.04 MB
Stage Time B Sent B Recv Client VHost Request
R ? ? ? ? ? ?
R ? ? ? ? ? ?
S 40 ms 0 KB 0 KB <...> <...> GET /manager/status HTTP/1.1

P: Parse and prepare request S: Service F: Finishing R: Ready K: Keepalive
Copyright © 1999-2005, Apache Software Foundation

Post Reply