trustAnchors empty, trustStore not found

In the last days, at work, while deploying our Java servlet-based application we got the following exception's message:

java.lang.RuntimeException: Unexpected error: the trustAnchors parameter must be non-empty

The full stacktrace doesn't matter, really. That was the root-cause of everything and we couldn't deploy anything. So, what is the meaning of this?

After doing some search, we did't find an absolute answer. They were all about "I did and it works now", nothing that solved our problem.

Then, we checked everything in application's files and we found that our trustStore (with certificates), which path is defined in Java property "", wasn't there! Just moved it where it belongs and it worked!

So, the meaning is: Those anchors are empty because I don't have a valid trustStore to load. Easy, right?

Posted at en 23:14 on jueves, 18 de diciembre de 2008 by Publicado por Lubin | 0 comentarios   | Filed under: