TOMCAT 6.0.18 SAF Startup Problem

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

TOMCAT 6.0.18 SAF Startup Problem

Post by marcsto »

Hello,

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(SafRealm.java:190)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:7
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
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)
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 :-)

Marc
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

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"
  auth="Container"
  type="org.apache.catalina.UserDatabase"
  description="z/OS Role database"
  factory="com.dovetail.zos.tomcat.SafRoleDatabaseFactory"
  pathname="conf/saf-roles.xml" />
AND

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.
marcsto
Posts: 2
Joined: Tue Feb 10, 2009 7:48 am

Works fine

Post by marcsto »

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"

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

Re: TOMCAT 6.0.18 SAF Startup Problem

Post by fhahjee1 »

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