TOMCAT 6.0.18 SAF Startup Problem

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
Posts: 2
Joined: Tue Feb 10, 2009 7:48 am

TOMCAT 6.0.18 SAF Startup Problem

Post by marcsto » Tue Feb 10, 2009 7:55 am


I want to test the SAF Plugin for Tomcat 6.0.x

Server.xml is customized and jar-File is copied to /lib.
In the doku the path for the jar-file is $catalina_home$/server/lib.
Is that correct?
I don´t find an folder $catalina_home$/server.

On startup with jzos the following error occurs:

Feb 10, 2009 1:27:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Feb 10, 2009 1:27:40 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException: Cannot find message associated with key SafRealm.noDatabas
at com.dovetail.zos.tomcat.SafRealm.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Feb 10, 2009 1:27:40 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 212 ms

saf-roles.xml is not customized but copied to /conf.

Can anyone help me?

Thanks :-)


Posts: 380
Joined: Fri Jul 30, 2004 5:29 pm

Post by SteveGoetze » Tue Feb 10, 2009 10:34 am

It looks like you might have a problem with your server.xml configuration. Double check that you have the following:

Code: Select all

<Resource name="UserDatabase"
  description="z/OS Role database"
  pathname="conf/saf-roles.xml" />

Code: Select all

<Realm className="com.dovetail.zos.tomcat.SafRealm" resourceName="UserDatabase" />
You're right; the proper location for the jar is $catalina_home$/lib; $catalina_home$/server/lib has been eliminated with version 6 of Tomcat. I'll update the documentation accordingly.

Posts: 2
Joined: Tue Feb 10, 2009 7:48 am

Works fine

Post by marcsto » Sat Feb 14, 2009 8:29 am

Thanks, Steve!

Works fine.
My description field was wrong...freetext may be not allowed in Roledefinition:

old: description="z/OS Rollenbasiert"
new: description="z/OS Role database"


Posts: 1
Joined: Sat Feb 28, 2015 2:25 am

Re: TOMCAT 6.0.18 SAF Startup Problem

Post by fhahjee1 » Sat Feb 28, 2015 2:26 am

Thanks for your reply.

Unfortunately I am trying to get the remote_user with tomcat standalone.

Then, is there any varible that save the user logged in tomcat? or will I need to configure an Apache with tomcat to get it?
Our Actual Exams and Testking citrix certification gre exam provide you 100% pass cisco certification You can get access to quincy toefl and with Miami International University of Art & Design resources

Post Reply