I've created and successfully deployed a web service using NetBeans that implements WS-Security using "Username Authentication with Password Derived Key". The problem comes when I send a soap request to the service. Sending the same request twice I get 2 different errors. The first time I get this exception:
Changing nothing and resubmitting the same request again I get this exception:
The second is caused by the failure of the first.
The server attempts to initialise the SecurityRecipient class (by the look of it) and fails because Apache logging's LogFactory couldn't be found.
Those exceptions don't happen on a single call. That happen on 2 separate requests. And even after adding the commons-logging.jar to the classpath those errors persist. After the application is deployed the first exception occurs and then every subsequent call causes the second exception.
As Dave pointed, try to fix the first issue. If even after adding Apache logging jars the first exception still occurs, it is likely that the class path is still misconfigured.
Something is definitely wrong with the classpath. I added the common-logging jar to the lib/ext directory of the domain and restarted the server but still no luck. What else am I missing?
I don't know Glassfish's structure, so can't really say where this should go if (and it's an if on my part) this is a glassfish thing and not something down to your project, in which case it should be part of your war.
I faced the same problem.
The solution was found there: https://github.com/payara/Payara/issues/218/ -> "put commons-logging jar lib into dir C:\glassfish4\glassfish\modules, did fix this for me".
This helped me too.
Post by:autobot
It's weird that we cook bacon and bake cookies. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards