Hi Sudhir,

Thanks a lot for your quick reply, but I have already enabled ssl for
jboss sucessfully. What Im currently trying to do is enabling the ssl
for axis2. Thats where I have stuck now. Any idea??

Thanks..

On Thu, Apr 16, 2009 at 3:52 PM, Sudhir Mongia <sudhir.mon...@gmail.com> wrote:
> You can see the tutorials here to enable SSL on JBoss.
> http://www.theserverside.com/discussions/thread.tss?thread_id=22243
> http://roneiv.wordpress.com/2008/01/03/jboss-tutorial-how-to-enable-ssl-https-on-jboss-as-well-as-other-nice-to-know-configurations/
>
> Thanks,
> Sudhir
> On Thu, Apr 16, 2009 at 3:47 PM, Darshana ® <srdarsh...@gmail.com> wrote:
>>
>> Hi,
>>
>> I'm trying to configure SSL for axis2 on jboss. Problem is I dont know
>> where to put the .jks file. I tried putting the jks file to following
>> locations.
>>
>> WEB-INF directory of the web archive.
>> META-INF directory of the web archive
>> jboss home directory
>> {jboss home}/server/default directory
>> {jboss home}/server/default/deploy directory
>> {jboss home}/bin directory
>>
>> Also I tried with the absolute path of the .jks (localhost.jks in my case)
>> file.
>>
>> Following are my Keystore and Truststore parameters in
>> transportReceiver and transportSender beans included in the axis2.xml
>>
>> <parameter name="keystore" locked="false">
>>             <KeyStore>
>>                 <Location>localhost.jks</Location>
>>                 <Type>JKS</Type>
>>                 <Password>123456</Password>
>>                 <KeyPassword>123456</KeyPassword>
>>             </KeyStore>
>>         </parameter>
>>         <parameter name="truststore" locked="false">
>>             <TrustStore>
>>                 <Location>localhost.jks</Location>
>>                 <Type>JKS</Type>
>>                 <Password>123456</Password>
>>             </TrustStore>
>>         </parameter>
>>
>> When I'm starting the jboss server, everytime it gives an error like this.
>>
>> java.lang.NullPointerException
>>         at
>> org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getSSLContext(HttpCoreNIOSSLListener.java:96)
>>         at
>> org.apache.axis2.transport.nhttp.HttpCoreNIOListener.init(HttpCoreNIOListener.java:151)
>>         at
>> org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125)
>>         at
>> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:442)
>>         at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>>         at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>>         at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069)
>>         at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4373)
>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
>>         at
>> org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
>>         at
>> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
>>         at
>> org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>
>> But when I commented out above mentioned parameters from axis2.xml
>> file, server starts sucessfully without any errors.
>>
>> Please give me idea, where should I put the localhost.jks file????
>
>

Reply via email to