SAF implementation

General discussion on the JZOS batch launcher and toolkit
Post Reply
RAM

SAF implementation

Post by RAM »

I am trying to implement SAf security on Tomcat under JZOS. The Tomcat and JZOS combination worked before changing files to use SAF. When I try to test the site using SAF the web page hangs on load and I get the following error in the job...

JZOSVM14(N): Copyright (C) 2004 Dovetailed Technologies LLC. All rights reserve
JZOSVM14(N): JZOS Version 1.2.1
JZOSVM14(N): Java Virtual Machine created. Version information follows:
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM z/OS Persistent Reusable VM build cm141
JZOSVM14(N): MVS commands are DISABLED
JZOSVM14(N): Invoking org.apache.catalina.startup.Bootstrap.main()
Oct 21, 2005 9:30:08 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 21, 2005 9:30:10 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 30699 ms
Oct 21, 2005 9:30:12 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 5 column 14: Content is not allowed in traili
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
.at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown


Any ideas?
RAM

Update

Post by RAM »

I downloaded the server.xml file to a PC and corrected some of the conversion errors and was able to get by the previous error. I am now getting the following error...

JZOSVM14(N): Copyright (C) 2004 Dovetailed Technologies LLC. All rights reserved
JZOSVM14(N): JZOS Version 1.2.1
JZOSVM14(N): Java Virtual Machine created. Version information follows:
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
Classic VM (build 1.4.1, J2RE 1.4.1 IBM z/OS Persistent Reusable VM build cm1411-20030930 (JIT enabled: jitc))
JZOSVM14(N): MVS commands are DISABLED
JZOSVM14(N): Invoking org.apache.catalina.startup.Bootstrap.main()
JZOSVM14(N): org.apache.catalina.startup.Bootstrap.main() completed.
JZOSVM - JVM completed with exit(0).
Catalina.start using conf/server.xml: org.xml.sax.SAXParseException: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
.at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
...
RAM

Update

Post by RAM »

Sorry, but the previous update was due to not uploading the server.xml file in binary. I am back to the original problem...

Oct 21, 2005 2:23:55 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 17226 ms
Oct 21, 2005 2:23:56 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 5 column 14: Content is not allowed in trailing section.
org.xml.sax.SAXParseException: Content is not allowed in trailing section.
.at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
.at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

The server stays up and the port (8080) is listening. When I try to access with the browser it just sits there. I have to cancel the job and I then get the error above.

Again, any ideas?? :?: :?: :!: [img][/img]
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

My guess is that your problem is still related to a codepage conversion issue.

Try editing the file directly on z/OS:

chtag -tc ISO8859-1 server.xml
export _BPXK_AUTOCVT=ON
vi server.xml

(You can find these instructions here: http://www.jzos.com/docs/editascii.html)

Make sure that the modifications listed in the instructions are followed exactly.

If you are still having trouble, send your version of server.xml to dev@jzos.com and we'll take a look.
Post Reply