cancel
Showing results for 
Search instead for 
Did you mean: 

Usage jconn42.jar with Java application server (wildfly (JBoss))

954

We are using SA 17 (before 12,16) with our product Application Server based on Java Application Server wildfly-23.0.0(formerly known as JBoss)

Trying update jconnect jar-files from jconn3(4).jar to new one jconn42.jar. We download jconn42,jar from SAP portal as part of 'SDK for SAP ASE 20.0'

But encounter with problem use jconn42.jar due clash in usage Logger class in jconn42.jar and wildfly-23.0.0.

Problem in jconn42.jar LogUtil.class - createLoggerInstance method is using Logger setParent() method which clash Logger.java setParent() method in wildfly caused SecurityException - "setParent() disallowed"

Have anyone encountred with problem?

How this problem can be solved - required open issue on jconn42.jar ?!?
Thanks in advance , Hanan Brener

View Entire Topic
tborgato
Discoverer
0 Kudos

The problem persists in WildFly 35:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sybase.jdbc42.jdbc.SybConnection
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.SecurityException: setParent() disallowed

and we believe it's an issue with the jconn42.jar driver because https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html#setParent-java.util.logging.... explicitly states:

setParent
public void setParent(Logger parent)
Set the parent for this Logger. This method is used by the LogManager to update a Logger when the namespace changes.
It should not be called from application code.