1

While my application is being deployed to websphere 9 i get this error

Caused by: java.lang.NoSuchMethodError: org/jboss/logging/Logger.debugf(Ljava/lang/String;I)V (loaded from file:/C:/server/IBM/WebSphere90/AppServer/plugins/com.ibm.ws.cdi.logging.jar

It seems that the above jar is being loaded before jboss-logging-3.3.0.Final.jar used by hibernate. At the same time i have a different machine on which this issue is not present. com.ibm.ws.cdi.logging.jar is missing from the path and the error no longer occurs. How to fix the error and why in one installation the cdi.logging.jar is present and in the not?

2 Answers 2

2

You could add jboss-logging-3.3.0.Final.jar as an isolated shared library and associate it with your application. That will cause it to be preferred over anything provided by the application server.

Sign up to request clarification or add additional context in comments.

2 Comments

how come that in two separate installation in one the cdi logging is there and in another not?
Are the two installations on different versions? That jar only exists on websphere 9.0.0.0
1

Since you have com.ibm.ws.cdi.logging.jar you must be on Websphere 9.0.0.0, I would suggest upgrading to Websphere 9.0.0.5 or later, your issue should be resolved by PI79787.

Best regards.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.