Authorization problem while running JDBC test servlet
Posted: Fri Feb 10, 2006 6:35 am
Hi all,
thanks to Dovetail documentation and to Steve Goetze help I correctly installed Tomcat (whose job runs under my user) in my Z/OS environment (Z/OS 1.4 with JVM 1.4.2). I tested all the sample servlets provided by JZOS: all of them are working but the one (named JdbcTest) which tests JDBC connection. I faced the following error: com.ibm.db2.jcc.DB2SQLException: DB2SQLJConnection error in native method: constructor: CONNECT 00F30089 SQLSTATE=42505 and SQLCODE=-922
The error is reported at http://www-1.ibm.com/support/docview.ws ... wg21180143
The problem is that no error appears in DB2 logs nor does any in any Tomcat logs (even when setting '+T' to enable tracing) and please note that my user (which is the OWNER of Tomcat job) has sufficient authority to connect to DB2!!
I tried to change the OWNER of Tomcat to an userid which has wide authorizations. I faced the following error: java.sql.SQLException: DB2SQLJConnection error in native method: constructor: RRS "IDENTIFY" failed using DB2 system:D200, RC=08 and REASON=00f30013 SQLSTATE=FFFFF and RETURN CODE=-1
The meaning is the same: somewhere there's a lack in authorization. Also in this second case we find nothing wrong in SYSLOG message nor do we find anything in DB2 logs. However I found this error message in Tomcat log:
ICH408I USER(theuserIchose...) GROUP(SYICHRIN) NAME(STARTED TASK
D210.RRSAF CL(DSNR )
INSUFFICIENT ACCESS AUTHORITY
ACCESS INTENT(READ ) ACCESS ALLOWED(NONE )
ICH408I USER(theuserIchose...) GROUP(SYICHRIN) NAME(STARTED TASK
D220.RRSAF CL(DSNR )
INSUFFICIENT ACCESS AUTHORITY
ACCESS INTENT(READ ) ACCESS ALLOWED(NONE )
So I created a specific user for Tomcat job and I grant it the RRSAF authorization.
I tested JdbcTest servlet once more and I saw the error: com.ibm.db2.jcc.DB2SQLException: DB2SQLJConnection error in native method: constructor: CONNECT 00F30089 SQLSTATE=42505 and SQLCODE=-922
This is the same error I faced when I ran Tomcat job under my user.
Also in this case I found nothing in SYSLOG, nothing in DB2 logs and nothing in Tomcat logs (I mean the DD SYSOUTS of Tomcat job running in SDSF) as well. I didn't find any error even using DETECTOR tool (it's a DB2 Monitor).
I think that JdbcTest servlet uses an anonymous-like user within the code and this could be the problem...
Would anyone give some help please?
Regards,
Michele
thanks to Dovetail documentation and to Steve Goetze help I correctly installed Tomcat (whose job runs under my user) in my Z/OS environment (Z/OS 1.4 with JVM 1.4.2). I tested all the sample servlets provided by JZOS: all of them are working but the one (named JdbcTest) which tests JDBC connection. I faced the following error: com.ibm.db2.jcc.DB2SQLException: DB2SQLJConnection error in native method: constructor: CONNECT 00F30089 SQLSTATE=42505 and SQLCODE=-922
The error is reported at http://www-1.ibm.com/support/docview.ws ... wg21180143
The problem is that no error appears in DB2 logs nor does any in any Tomcat logs (even when setting '+T' to enable tracing) and please note that my user (which is the OWNER of Tomcat job) has sufficient authority to connect to DB2!!
I tried to change the OWNER of Tomcat to an userid which has wide authorizations. I faced the following error: java.sql.SQLException: DB2SQLJConnection error in native method: constructor: RRS "IDENTIFY" failed using DB2 system:D200, RC=08 and REASON=00f30013 SQLSTATE=FFFFF and RETURN CODE=-1
The meaning is the same: somewhere there's a lack in authorization. Also in this second case we find nothing wrong in SYSLOG message nor do we find anything in DB2 logs. However I found this error message in Tomcat log:
ICH408I USER(theuserIchose...) GROUP(SYICHRIN) NAME(STARTED TASK
D210.RRSAF CL(DSNR )
INSUFFICIENT ACCESS AUTHORITY
ACCESS INTENT(READ ) ACCESS ALLOWED(NONE )
ICH408I USER(theuserIchose...) GROUP(SYICHRIN) NAME(STARTED TASK
D220.RRSAF CL(DSNR )
INSUFFICIENT ACCESS AUTHORITY
ACCESS INTENT(READ ) ACCESS ALLOWED(NONE )
So I created a specific user for Tomcat job and I grant it the RRSAF authorization.
I tested JdbcTest servlet once more and I saw the error: com.ibm.db2.jcc.DB2SQLException: DB2SQLJConnection error in native method: constructor: CONNECT 00F30089 SQLSTATE=42505 and SQLCODE=-922
This is the same error I faced when I ran Tomcat job under my user.
Also in this case I found nothing in SYSLOG, nothing in DB2 logs and nothing in Tomcat logs (I mean the DD SYSOUTS of Tomcat job running in SDSF) as well. I didn't find any error even using DETECTOR tool (it's a DB2 Monitor).
I think that JdbcTest servlet uses an anonymous-like user within the code and this could be the problem...
Would anyone give some help please?
Regards,
Michele