Re: Relative path keystore Axis2
"robertlazarski ." <[email protected]>
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <CABpPLBW-s3iLFugBcmF-x8SfDs0GDUsgi4kPFBvphhSfU+8ovA@mail.gmail.com> |
On Wed, Apr 27, 2016 at 12:25 PM, Oscar Rugama <[email protected]> wrote: > Hi all: > > I'm developing a web service using axis2 & tomcat . > <snip> > My project could be like that, so at first glance my keystore is placed at > the what I thought is the root level, so just writing > > System.setProperty("javax.net.ssl.keyStore", "keysdata.jks"); > > > I thought it should look in the root level. But nothing works (I mean an > absolute path yes it works) > I would try to use some form of getResourceAsSteam() . Lots of ways to do that. At the axis2 level, you should be able to do something like: MessageContext.getCurrentMessageContext().getAxisService().getClassLoader().getResourceAsSteam("keysdata.jks"); - R