• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis generated client - how to point to keystore

 
Ray Stantz
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Axis client application that's using SSL, where the client proxy classes were generated via wsdl2java. I have a keystore with a valid SSL cert as well.
First time running, received failure due to missing keystore: "java.io.FileNotFoundException: C:\Documents and Settings\rstantz/.keystore: The system cannot find the file specified"

I renamed my keystore to '.keystore' and copied to this location, re-ran app, and it worked fine. At this point I'm thinking 5-minute fix, however I have been unable to configure the path/file name for this !@#$% keystore since revisiting the issue.

Upon examination of the Axis SunJSSESocketFactory class, it appears that the default location mentioned in the original error is the system parameter 'user.home' concatenated with a hardcoded '/.keystore'.

I've tried to force the use of a file and location that I specify through system property manipulation, handlers, AxisEngine/MessageContext/generated stubs methods and all to no avail.

Any ideas on what I'm missing here?

Thanks,
Ray S
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!