You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Ajay Kumar Gour <aj...@s7solutions.com> on 2007/11/23 14:04:41 UTC
About SSL..
Hello All,
I was googling for help about using SSL with Axis2 and i have got this
link "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
This tells how to make Axis2 client use SSL.
If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss
then we need to use server specific configuration to enable SSL. Please
correct me if iam rong somewhere.
But, how to configure SSL on standalone Axis2?
Thanks,
-Ajay
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
I can switch to Axis2 1.3 if required. I was looking for the ways if it is
possible in 1.2. But i cannot compromise stability.
Thanks,
-Ajay
On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
wrote:
> No. what I meant was, if there is a requirement for you to stay with
> 1.2, then using a transport receiver built for another version would
> be not stable obviously.
> You can try 1.3 altogether.
>
> Upul
>
>
> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>>
>> Thanks again for prompt reply.
>>
>> SSL implementation will be stable if i try to use Axis2 1.3, is that
>> right?
>>
>> -Ajay
>>
>>
>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
>>
>> wrote:
>>
>> > Seems there was no https transport receiver in 1.2. Though there is
>> one
>> > in 1.3
>> >
>> > One thing you can try is using the 1.3 transport receiver in 1.2. But
>> > because transport receivers are bundled in the kernal.jar file in
>> > Axis2 you won't be able to do that.
>> >
>> > Apache Synapse has the transports in a separate jar. You can download
>> > Synapse, add transports.jar to 1.2 lib directory and add the https
>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
>> > axis2.xml. What you are doing is using the https transport receiver
>> > that comes with Synapse in Axis2. Again, there is a possibility that
>> > this may not work as Synapse works with Axis2 1.3 now. Also you can
>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
>> > that all these experiments are unstable.
>> >
>> > Upul
>> >
>> >
>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>> wrote:
>> >> Hi Upul,
>> >>
>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
>> through
>> >> the axis2.xml, before sending out the mail to axis users but i
>> couldn't
>> >> found anything.
>> >>
>> >> Do you have idea how we can do it in Axis2 1.2?
>> >>
>> >> Thanks,
>> >> -Ajay
>> >>
>> >>
>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
>> >> wrote:
>> >>
>> >>
>> >> > Hi,
>> >> >
>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
>> commented
>> >> > out. You can uncomment it. That is how it is supposed to work.
>> But
>> >> > keystores are missing in the distribution i think. So you will
>> have to
>> >> > provide the keystore files and try
>> >> >
>> >> > Upul
>> >> >
>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
>> >> wrote:
>> >> >> Hello All,
>> >> >>
>> >> >> I was googling for help about using SSL with Axis2 and i have got
>> >> this
>> >> >> link
>> >> >>
>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>> >> >> This tells how to make Axis2 client use SSL.
>> >> >>
>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or
>> >> JBoss
>> >> >> then we need to use server specific configuration to enable SSL.
>> >> Please
>> >> >> correct me if iam rong somewhere.
>> >> >>
>> >> >> But, how to configure SSL on standalone Axis2?
>> >> >>
>> >> >> Thanks,
>> >> >> -Ajay
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Martin Gainty <mg...@hotmail.com>.
did you enable the NIOConnector in server.xml ?
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
M-
----- Original Message -----
From: "Ajay Kumar Gour" <aj...@s7solutions.com>
To: <ax...@ws.apache.org>
Sent: Friday, December 07, 2007 9:23 AM
Subject: Axis2 1.3 (Standalone server) NullPointerException during startup..
> Hello All,
>
> To enable the SSL support in Axis2 1.3, i have uncommented the
>
> <transportReceiver name="https"
> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
> <transportSender name="https"
> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender"> elements.
>
> But when restart the server, iam getting following error -
>
> [FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
> java.lang.NullPointerException
> at
>
org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(HttpCore
NIOSSLSender.java:81)
> at
>
org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(HttpCoreNIOSender.ja
va:96)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(Co
nfigurationContextFactory.java:270)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationConte
xtFactory.java:201)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:76)
> at
>
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
extFromFileSystem(ConfigurationContextFactory.java:180)
> at
>
org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:5
0)
> at
>
org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:101
)
> [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>
> Does anybody has any idea why is it happening?
>
> Thanks,
> -Ajay
>
>
> On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
> wrote:
>
> > No. what I meant was, if there is a requirement for you to stay with
> > 1.2, then using a transport receiver built for another version would
> > be not stable obviously.
> > You can try 1.3 altogether.
> >
> > Upul
> >
> >
> > On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com>
wrote:
> >>
> >> Thanks again for prompt reply.
> >>
> >> SSL implementation will be stable if i try to use Axis2 1.3, is that
> >> right?
> >>
> >> -Ajay
> >>
> >>
> >> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
> >>
> >> wrote:
> >>
> >> > Seems there was no https transport receiver in 1.2. Though there is
> >> one
> >> > in 1.3
> >> >
> >> > One thing you can try is using the 1.3 transport receiver in 1.2.
But
> >> > because transport receivers are bundled in the kernal.jar file in
> >> > Axis2 you won't be able to do that.
> >> >
> >> > Apache Synapse has the transports in a separate jar. You can
download
> >> > Synapse, add transports.jar to 1.2 lib directory and add the https
> >> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
> >> > axis2.xml. What you are doing is using the https transport receiver
> >> > that comes with Synapse in Axis2. Again, there is a possibility that
> >> > this may not work as Synapse works with Axis2 1.3 now. Also you can
> >> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
> >> > that all these experiments are unstable.
> >> >
> >> > Upul
> >> >
> >> >
> >> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
> >> wrote:
> >> >> Hi Upul,
> >> >>
> >> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
> >> through
> >> >> the axis2.xml, before sending out the mail to axis users but i
> >> couldn't
> >> >> found anything.
> >> >>
> >> >> Do you have idea how we can do it in Axis2 1.2?
> >> >>
> >> >> Thanks,
> >> >> -Ajay
> >> >>
> >> >>
> >> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage
<up...@gmail.com>
> >> >> wrote:
> >> >>
> >> >>
> >> >> > Hi,
> >> >> >
> >> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
> >> commented
> >> >> > out. You can uncomment it. That is how it is supposed to work.
> >> But
> >> >> > keystores are missing in the distribution i think. So you will
> >> have to
> >> >> > provide the keystore files and try
> >> >> >
> >> >> > Upul
> >> >> >
> >> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
> >> >> wrote:
> >> >> >> Hello All,
> >> >> >>
> >> >> >> I was googling for help about using SSL with Axis2 and i have got
> >> >> this
> >> >> >> link
> >> >> >>
> >> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
> >> >> >> This tells how to make Axis2 client use SSL.
> >> >> >>
> >> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat
or
> >> >> JBoss
> >> >> >> then we need to use server specific configuration to enable SSL.
> >> >> Please
> >> >> >> correct me if iam rong somewhere.
> >> >> >>
> >> >> >> But, how to configure SSL on standalone Axis2?
> >> >> >>
> >> >> >> Thanks,
> >> >> >> -Ajay
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> ---------------------------------------------------------------------
> >> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >>
> >> >> >>
> >> >> >
> >> >> >
> >> ---------------------------------------------------------------------
> >> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
>> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
Hi Upul,
Thanks for the insight on this. Will see if i can use Apache Tomcat for
this purpose.
-Ajay
On Mon, 10 Dec 2007 16:37:42 +0530, Upul Godage <up...@gmail.com>
wrote:
> Hi Ajay,
>
> I seems the https listener listed in axis2.xml used by the standalone
> axis2
> server 1.3 is not working as the bug report says.
>
> There is an https sender already in the axis2.xml, so sending requests
> as a
> client should work out of the box without uncommenting the extra https
> sender. Uncommenting the extra https sender, which is not needed in this
> case, looks for the keystore, truststore which are not bundled with the
> server. If you uncomment only the listener entry which is what is
> needed, it
> does not listen for https requests as it should be. So https listener is
> not
> working at the moment.
>
> Anyway Axis2 standalone server is mostly used for testing purposes only,
> I
> think. Not used for production use.
> For that you can deploy the Axis2 war in a Servlet container such as
> Tomcat
> and use the container https connector as Martin Gainty says. I think
> that
> is how most people are using it.
>
>
> Upul
>
>
> On Dec 10, 2007 3:58 PM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>
>> Hi Charitha,
>>
>> So, does it mean that i cannot use SSL on Standalone AXIS?
>>
>> -Ajay
>>
>>
>> On Fri, 07 Dec 2007 20:16:21 +0530, Charitha Kankanamge
>> <ch...@wso2.com> wrote:
>>
>> > Ajay,
>> > This is a bug in axis2-1.3. I reported a JIRA some time back.
>> > https://issues.apache.org/jira/browse/AXIS2-3309
>> >
>> > regards
>> > Charitha
>> >
>> > Ajay Kumar Gour wrote:
>> >
>> >> Hello All,
>> >>
>> >> To enable the SSL support in Axis2 1.3, i have uncommented the
>> >>
>> >> <transportReceiver name="https"
>> >> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
>> >> <transportSender name="https"
>> >> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender">
>> elements.
>> >>
>> >> But when restart the server, iam getting following error -
>> >>
>> >> [FATAL] [SimpleAxisServer] Shutting down. Error starting
>> >> SimpleAxisServer
>> >> java.lang.NullPointerException
>> >> at
>> >> org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(
>> HttpCoreNIOSSLSender.java:81)
>> >> at
>> >> org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(
>> HttpCoreNIOSender.java:96)
>> >> at
>> >>
>> org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(
>> ConfigurationContextFactory.java:270)
>> >> at
>> >> org.apache.axis2.context.ConfigurationContextFactory.init(
>> ConfigurationContextFactory.java:201)
>> >> at
>> >>
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
>> (ConfigurationContextFactory.java:76)
>> >> at
>> >>
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
>> (ConfigurationContextFactory.java:180)
>> >> at
>> >> org.apache.axis2.transport.SimpleAxis2Server.<init>(
>> SimpleAxis2Server.java:50)
>> >> at
>> >> org.apache.axis2.transport.SimpleAxis2Server.main(
>> SimpleAxis2Server.java:101)
>> >> [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>> >>
>> >> Does anybody has any idea why is it happening?
>> >>
>> >> Thanks,
>> >> -Ajay
>> >>
>> >>
>> >> On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
>> >> wrote:
>> >>
>> >>> No. what I meant was, if there is a requirement for you to stay with
>> >>> 1.2, then using a transport receiver built for another version would
>> >>> be not stable obviously.
>> >>> You can try 1.3 altogether.
>> >>>
>> >>> Upul
>> >>>
>> >>>
>> >>> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>> >>> wrote:
>> >>>
>> >>>>
>> >>>> Thanks again for prompt reply.
>> >>>>
>> >>>> SSL implementation will be stable if i try to use Axis2 1.3, is
>> that
>> >>>> right?
>> >>>>
>> >>>> -Ajay
>> >>>>
>> >>>>
>> >>>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage
>> <up...@gmail.com>
>> >>>>
>> >>>> wrote:
>> >>>>
>> >>>> > Seems there was no https transport receiver in 1.2. Though there
>> >>>> is one
>> >>>> > in 1.3
>> >>>> >
>> >>>> > One thing you can try is using the 1.3 transport receiver in 1.2.
>> >>>> But
>> >>>> > because transport receivers are bundled in the kernal.jar file in
>> >>>> > Axis2 you won't be able to do that.
>> >>>> >
>> >>>> > Apache Synapse has the transports in a separate jar. You can
>> >>>> download
>> >>>> > Synapse, add transports.jar to 1.2 lib directory and add the
>> https
>> >>>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
>> >>>> > axis2.xml. What you are doing is using the https transport
>> receiver
>> >>>> > that comes with Synapse in Axis2. Again, there is a possibility
>> >>>> that
>> >>>> > this may not work as Synapse works with Axis2 1.3 now. Also you
>> can
>> >>>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But
>> note
>> >>>> > that all these experiments are unstable.
>> >>>> >
>> >>>> > Upul
>> >>>> >
>> >>>> >
>> >>>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>> >>>> wrote:
>> >>>> >> Hi Upul,
>> >>>> >>
>> >>>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
>> >>>> through
>> >>>> >> the axis2.xml, before sending out the mail to axis users but i
>> >>>> couldn't
>> >>>> >> found anything.
>> >>>> >>
>> >>>> >> Do you have idea how we can do it in Axis2 1.2?
>> >>>> >>
>> >>>> >> Thanks,
>> >>>> >> -Ajay
>> >>>> >>
>> >>>> >>
>> >>>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage
>> >>>> <up...@gmail.com>
>> >>>> >> wrote:
>> >>>> >>
>> >>>> >>
>> >>>> >> > Hi,
>> >>>> >> >
>> >>>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
>> >>>> commented
>> >>>> >> > out. You can uncomment it. That is how it is supposed to
>> >>>> work. But
>> >>>> >> > keystores are missing in the distribution i think. So you will
>> >>>> have to
>> >>>> >> > provide the keystore files and try
>> >>>> >> >
>> >>>> >> > Upul
>> >>>> >> >
>> >>>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour
>> <ajay.g@s7solutions.com
>> >
>> >>>> >> wrote:
>> >>>> >> >> Hello All,
>> >>>> >> >>
>> >>>> >> >> I was googling for help about using SSL with Axis2 and i have
>> >>>> got
>> >>>> >> this
>> >>>> >> >> link
>> >>>> >> >>
>> >>>>
>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>> >>>> >> >> This tells how to make Axis2 client use SSL.
>> >>>> >> >>
>> >>>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on
>> Tomcat
>> >>>> or
>> >>>> >> JBoss
>> >>>> >> >> then we need to use server specific configuration to enable
>> SSL.
>> >>>> >> Please
>> >>>> >> >> correct me if iam rong somewhere.
>> >>>> >> >>
>> >>>> >> >> But, how to configure SSL on standalone Axis2?
>> >>>> >> >>
>> >>>> >> >> Thanks,
>> >>>> >> >> -Ajay
>> >>>> >> >>
>> >>>> >> >>
>> >>>> >> >>
>> >>>> >> >>
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>> >> >>
>> >>>> >> >>
>> >>>> >> >
>> >>>> >> >
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>> >> >
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>> >>
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>> >>
>> >>>> >>
>> >>>> >
>> >>>> >
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>> >
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>>
>> >>>>
>> >>>
>> >>>
>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >>> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>>
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Upul Godage <up...@gmail.com>.
Hi Ajay,
I seems the https listener listed in axis2.xml used by the standalone axis2
server 1.3 is not working as the bug report says.
There is an https sender already in the axis2.xml, so sending requests as a
client should work out of the box without uncommenting the extra https
sender. Uncommenting the extra https sender, which is not needed in this
case, looks for the keystore, truststore which are not bundled with the
server. If you uncomment only the listener entry which is what is needed, it
does not listen for https requests as it should be. So https listener is not
working at the moment.
Anyway Axis2 standalone server is mostly used for testing purposes only, I
think. Not used for production use.
For that you can deploy the Axis2 war in a Servlet container such as Tomcat
and use the container https connector as Martin Gainty says. I think that
is how most people are using it.
Upul
On Dec 10, 2007 3:58 PM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
> Hi Charitha,
>
> So, does it mean that i cannot use SSL on Standalone AXIS?
>
> -Ajay
>
>
> On Fri, 07 Dec 2007 20:16:21 +0530, Charitha Kankanamge
> <ch...@wso2.com> wrote:
>
> > Ajay,
> > This is a bug in axis2-1.3. I reported a JIRA some time back.
> > https://issues.apache.org/jira/browse/AXIS2-3309
> >
> > regards
> > Charitha
> >
> > Ajay Kumar Gour wrote:
> >
> >> Hello All,
> >>
> >> To enable the SSL support in Axis2 1.3, i have uncommented the
> >>
> >> <transportReceiver name="https"
> >> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
> >> <transportSender name="https"
> >> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender">
> elements.
> >>
> >> But when restart the server, iam getting following error -
> >>
> >> [FATAL] [SimpleAxisServer] Shutting down. Error starting
> >> SimpleAxisServer
> >> java.lang.NullPointerException
> >> at
> >> org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(
> HttpCoreNIOSSLSender.java:81)
> >> at
> >> org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(
> HttpCoreNIOSender.java:96)
> >> at
> >>
> org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(
> ConfigurationContextFactory.java:270)
> >> at
> >> org.apache.axis2.context.ConfigurationContextFactory.init(
> ConfigurationContextFactory.java:201)
> >> at
> >>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> (ConfigurationContextFactory.java:76)
> >> at
> >>
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem
> (ConfigurationContextFactory.java:180)
> >> at
> >> org.apache.axis2.transport.SimpleAxis2Server.<init>(
> SimpleAxis2Server.java:50)
> >> at
> >> org.apache.axis2.transport.SimpleAxis2Server.main(
> SimpleAxis2Server.java:101)
> >> [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
> >>
> >> Does anybody has any idea why is it happening?
> >>
> >> Thanks,
> >> -Ajay
> >>
> >>
> >> On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
> >> wrote:
> >>
> >>> No. what I meant was, if there is a requirement for you to stay with
> >>> 1.2, then using a transport receiver built for another version would
> >>> be not stable obviously.
> >>> You can try 1.3 altogether.
> >>>
> >>> Upul
> >>>
> >>>
> >>> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com>
> >>> wrote:
> >>>
> >>>>
> >>>> Thanks again for prompt reply.
> >>>>
> >>>> SSL implementation will be stable if i try to use Axis2 1.3, is that
> >>>> right?
> >>>>
> >>>> -Ajay
> >>>>
> >>>>
> >>>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
> >>>>
> >>>> wrote:
> >>>>
> >>>> > Seems there was no https transport receiver in 1.2. Though there
> >>>> is one
> >>>> > in 1.3
> >>>> >
> >>>> > One thing you can try is using the 1.3 transport receiver in 1.2.
> >>>> But
> >>>> > because transport receivers are bundled in the kernal.jar file in
> >>>> > Axis2 you won't be able to do that.
> >>>> >
> >>>> > Apache Synapse has the transports in a separate jar. You can
> >>>> download
> >>>> > Synapse, add transports.jar to 1.2 lib directory and add the https
> >>>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
> >>>> > axis2.xml. What you are doing is using the https transport
> receiver
> >>>> > that comes with Synapse in Axis2. Again, there is a possibility
> >>>> that
> >>>> > this may not work as Synapse works with Axis2 1.3 now. Also you
> can
> >>>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
> >>>> > that all these experiments are unstable.
> >>>> >
> >>>> > Upul
> >>>> >
> >>>> >
> >>>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
> >>>> wrote:
> >>>> >> Hi Upul,
> >>>> >>
> >>>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
> >>>> through
> >>>> >> the axis2.xml, before sending out the mail to axis users but i
> >>>> couldn't
> >>>> >> found anything.
> >>>> >>
> >>>> >> Do you have idea how we can do it in Axis2 1.2?
> >>>> >>
> >>>> >> Thanks,
> >>>> >> -Ajay
> >>>> >>
> >>>> >>
> >>>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage
> >>>> <up...@gmail.com>
> >>>> >> wrote:
> >>>> >>
> >>>> >>
> >>>> >> > Hi,
> >>>> >> >
> >>>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
> >>>> commented
> >>>> >> > out. You can uncomment it. That is how it is supposed to
> >>>> work. But
> >>>> >> > keystores are missing in the distribution i think. So you will
> >>>> have to
> >>>> >> > provide the keystore files and try
> >>>> >> >
> >>>> >> > Upul
> >>>> >> >
> >>>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <ajay.g@s7solutions.com
> >
> >>>> >> wrote:
> >>>> >> >> Hello All,
> >>>> >> >>
> >>>> >> >> I was googling for help about using SSL with Axis2 and i have
> >>>> got
> >>>> >> this
> >>>> >> >> link
> >>>> >> >>
> >>>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
> >>>> >> >> This tells how to make Axis2 client use SSL.
> >>>> >> >>
> >>>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat
> >>>> or
> >>>> >> JBoss
> >>>> >> >> then we need to use server specific configuration to enable
> SSL.
> >>>> >> Please
> >>>> >> >> correct me if iam rong somewhere.
> >>>> >> >>
> >>>> >> >> But, how to configure SSL on standalone Axis2?
> >>>> >> >>
> >>>> >> >> Thanks,
> >>>> >> >> -Ajay
> >>>> >> >>
> >>>> >> >>
> >>>> >> >>
> >>>> >> >>
> >>>> ---------------------------------------------------------------------
> >>>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>> >> >>
> >>>> >> >>
> >>>> >> >
> >>>> >> >
> >>>> ---------------------------------------------------------------------
> >>>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>> >> >
> >>>> >>
> >>>> >>
> >>>> >>
> >>>> >>
> >>>> ---------------------------------------------------------------------
> >>>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>> >>
> >>>> >>
> >>>> >
> >>>> >
> >>>> ---------------------------------------------------------------------
> >>>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>> >
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>>> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >>> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >>
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
Re: Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
Hi Charitha,
So, does it mean that i cannot use SSL on Standalone AXIS?
-Ajay
On Fri, 07 Dec 2007 20:16:21 +0530, Charitha Kankanamge
<ch...@wso2.com> wrote:
> Ajay,
> This is a bug in axis2-1.3. I reported a JIRA some time back.
> https://issues.apache.org/jira/browse/AXIS2-3309
>
> regards
> Charitha
>
> Ajay Kumar Gour wrote:
>
>> Hello All,
>>
>> To enable the SSL support in Axis2 1.3, i have uncommented the
>>
>> <transportReceiver name="https"
>> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
>> <transportSender name="https"
>> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender"> elements.
>>
>> But when restart the server, iam getting following error -
>>
>> [FATAL] [SimpleAxisServer] Shutting down. Error starting
>> SimpleAxisServer
>> java.lang.NullPointerException
>> at
>> org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(HttpCoreNIOSSLSender.java:81)
>> at
>> org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(HttpCoreNIOSender.java:96)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(ConfigurationContextFactory.java:270)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:201)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:76)
>> at
>> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
>> at
>> org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:50)
>> at
>> org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:101)
>> [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>>
>> Does anybody has any idea why is it happening?
>>
>> Thanks,
>> -Ajay
>>
>>
>> On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
>> wrote:
>>
>>> No. what I meant was, if there is a requirement for you to stay with
>>> 1.2, then using a transport receiver built for another version would
>>> be not stable obviously.
>>> You can try 1.3 altogether.
>>>
>>> Upul
>>>
>>>
>>> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>>> wrote:
>>>
>>>>
>>>> Thanks again for prompt reply.
>>>>
>>>> SSL implementation will be stable if i try to use Axis2 1.3, is that
>>>> right?
>>>>
>>>> -Ajay
>>>>
>>>>
>>>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
>>>>
>>>> wrote:
>>>>
>>>> > Seems there was no https transport receiver in 1.2. Though there
>>>> is one
>>>> > in 1.3
>>>> >
>>>> > One thing you can try is using the 1.3 transport receiver in 1.2.
>>>> But
>>>> > because transport receivers are bundled in the kernal.jar file in
>>>> > Axis2 you won't be able to do that.
>>>> >
>>>> > Apache Synapse has the transports in a separate jar. You can
>>>> download
>>>> > Synapse, add transports.jar to 1.2 lib directory and add the https
>>>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
>>>> > axis2.xml. What you are doing is using the https transport receiver
>>>> > that comes with Synapse in Axis2. Again, there is a possibility
>>>> that
>>>> > this may not work as Synapse works with Axis2 1.3 now. Also you can
>>>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
>>>> > that all these experiments are unstable.
>>>> >
>>>> > Upul
>>>> >
>>>> >
>>>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>>>> wrote:
>>>> >> Hi Upul,
>>>> >>
>>>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
>>>> through
>>>> >> the axis2.xml, before sending out the mail to axis users but i
>>>> couldn't
>>>> >> found anything.
>>>> >>
>>>> >> Do you have idea how we can do it in Axis2 1.2?
>>>> >>
>>>> >> Thanks,
>>>> >> -Ajay
>>>> >>
>>>> >>
>>>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage
>>>> <up...@gmail.com>
>>>> >> wrote:
>>>> >>
>>>> >>
>>>> >> > Hi,
>>>> >> >
>>>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
>>>> commented
>>>> >> > out. You can uncomment it. That is how it is supposed to
>>>> work. But
>>>> >> > keystores are missing in the distribution i think. So you will
>>>> have to
>>>> >> > provide the keystore files and try
>>>> >> >
>>>> >> > Upul
>>>> >> >
>>>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
>>>> >> wrote:
>>>> >> >> Hello All,
>>>> >> >>
>>>> >> >> I was googling for help about using SSL with Axis2 and i have
>>>> got
>>>> >> this
>>>> >> >> link
>>>> >> >>
>>>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>>>> >> >> This tells how to make Axis2 client use SSL.
>>>> >> >>
>>>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat
>>>> or
>>>> >> JBoss
>>>> >> >> then we need to use server specific configuration to enable SSL.
>>>> >> Please
>>>> >> >> correct me if iam rong somewhere.
>>>> >> >>
>>>> >> >> But, how to configure SSL on standalone Axis2?
>>>> >> >>
>>>> >> >> Thanks,
>>>> >> >> -Ajay
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> ---------------------------------------------------------------------
>>>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>> >> >>
>>>> >> >>
>>>> >> >
>>>> >> >
>>>> ---------------------------------------------------------------------
>>>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >>
>>>> ---------------------------------------------------------------------
>>>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>>> >
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Charitha Kankanamge <ch...@wso2.com>.
Ajay,
This is a bug in axis2-1.3. I reported a JIRA some time back.
https://issues.apache.org/jira/browse/AXIS2-3309
regards
Charitha
Ajay Kumar Gour wrote:
> Hello All,
>
> To enable the SSL support in Axis2 1.3, i have uncommented the
>
> <transportReceiver name="https"
> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
> <transportSender name="https"
> class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender"> elements.
>
> But when restart the server, iam getting following error -
>
> [FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
> java.lang.NullPointerException
> at
> org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(HttpCoreNIOSSLSender.java:81)
>
> at
> org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(HttpCoreNIOSender.java:96)
>
> at
> org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(ConfigurationContextFactory.java:270)
>
> at
> org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:201)
>
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:76)
>
> at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
>
> at
> org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:50)
>
> at
> org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:101)
>
> [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
>
> Does anybody has any idea why is it happening?
>
> Thanks,
> -Ajay
>
>
> On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
> wrote:
>
>> No. what I meant was, if there is a requirement for you to stay with
>> 1.2, then using a transport receiver built for another version would
>> be not stable obviously.
>> You can try 1.3 altogether.
>>
>> Upul
>>
>>
>> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>> wrote:
>>
>>>
>>> Thanks again for prompt reply.
>>>
>>> SSL implementation will be stable if i try to use Axis2 1.3, is
>>> that right?
>>>
>>> -Ajay
>>>
>>>
>>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
>>>
>>> wrote:
>>>
>>> > Seems there was no https transport receiver in 1.2. Though there
>>> is one
>>> > in 1.3
>>> >
>>> > One thing you can try is using the 1.3 transport receiver in 1.2.
>>> But
>>> > because transport receivers are bundled in the kernal.jar file in
>>> > Axis2 you won't be able to do that.
>>> >
>>> > Apache Synapse has the transports in a separate jar. You can
>>> download
>>> > Synapse, add transports.jar to 1.2 lib directory and add the https
>>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
>>> > axis2.xml. What you are doing is using the https transport receiver
>>> > that comes with Synapse in Axis2. Again, there is a possibility that
>>> > this may not work as Synapse works with Axis2 1.3 now. Also you can
>>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
>>> > that all these experiments are unstable.
>>> >
>>> > Upul
>>> >
>>> >
>>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>>> wrote:
>>> >> Hi Upul,
>>> >>
>>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
>>> through
>>> >> the axis2.xml, before sending out the mail to axis users but i
>>> couldn't
>>> >> found anything.
>>> >>
>>> >> Do you have idea how we can do it in Axis2 1.2?
>>> >>
>>> >> Thanks,
>>> >> -Ajay
>>> >>
>>> >>
>>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage
>>> <up...@gmail.com>
>>> >> wrote:
>>> >>
>>> >>
>>> >> > Hi,
>>> >> >
>>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
>>> commented
>>> >> > out. You can uncomment it. That is how it is supposed to
>>> work. But
>>> >> > keystores are missing in the distribution i think. So you will
>>> have to
>>> >> > provide the keystore files and try
>>> >> >
>>> >> > Upul
>>> >> >
>>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
>>> >> wrote:
>>> >> >> Hello All,
>>> >> >>
>>> >> >> I was googling for help about using SSL with Axis2 and i have got
>>> >> this
>>> >> >> link
>>> >> >>
>>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>>> >> >> This tells how to make Axis2 client use SSL.
>>> >> >>
>>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on
>>> Tomcat or
>>> >> JBoss
>>> >> >> then we need to use server specific configuration to enable SSL.
>>> >> Please
>>> >> >> correct me if iam rong somewhere.
>>> >> >>
>>> >> >> But, how to configure SSL on standalone Axis2?
>>> >> >>
>>> >> >> Thanks,
>>> >> >> -Ajay
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >>
>>> ---------------------------------------------------------------------
>>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> ---------------------------------------------------------------------
>>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >>
>>> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >>
>>> >>
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070
A bug in the hand is better than one as yet undetected
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Axis2 1.3 (Standalone server) NullPointerException during startup..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
Hello All,
To enable the SSL support in Axis2 1.3, i have uncommented the
<transportReceiver name="https"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener"> and
<transportSender name="https"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender"> elements.
But when restart the server, iam getting following error -
[FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
java.lang.NullPointerException
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender.getSSLContext(HttpCoreNIOSSLSender.java:81)
at
org.apache.axis2.transport.nhttp.HttpCoreNIOSender.init(HttpCoreNIOSender.java:96)
at
org.apache.axis2.context.ConfigurationContextFactory.initTransportSenders(ConfigurationContextFactory.java:270)
at
org.apache.axis2.context.ConfigurationContextFactory.init(ConfigurationContextFactory.java:201)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:76)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
at
org.apache.axis2.transport.SimpleAxis2Server.<init>(SimpleAxis2Server.java:50)
at
org.apache.axis2.transport.SimpleAxis2Server.main(SimpleAxis2Server.java:101)
[SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
Does anybody has any idea why is it happening?
Thanks,
-Ajay
On Mon, 26 Nov 2007 10:55:28 +0530, Upul Godage <up...@gmail.com>
wrote:
> No. what I meant was, if there is a requirement for you to stay with
> 1.2, then using a transport receiver built for another version would
> be not stable obviously.
> You can try 1.3 altogether.
>
> Upul
>
>
> On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>>
>> Thanks again for prompt reply.
>>
>> SSL implementation will be stable if i try to use Axis2 1.3, is that
>> right?
>>
>> -Ajay
>>
>>
>> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
>>
>> wrote:
>>
>> > Seems there was no https transport receiver in 1.2. Though there is
>> one
>> > in 1.3
>> >
>> > One thing you can try is using the 1.3 transport receiver in 1.2. But
>> > because transport receivers are bundled in the kernal.jar file in
>> > Axis2 you won't be able to do that.
>> >
>> > Apache Synapse has the transports in a separate jar. You can download
>> > Synapse, add transports.jar to 1.2 lib directory and add the https
>> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
>> > axis2.xml. What you are doing is using the https transport receiver
>> > that comes with Synapse in Axis2. Again, there is a possibility that
>> > this may not work as Synapse works with Axis2 1.3 now. Also you can
>> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
>> > that all these experiments are unstable.
>> >
>> > Upul
>> >
>> >
>> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com>
>> wrote:
>> >> Hi Upul,
>> >>
>> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone
>> through
>> >> the axis2.xml, before sending out the mail to axis users but i
>> couldn't
>> >> found anything.
>> >>
>> >> Do you have idea how we can do it in Axis2 1.2?
>> >>
>> >> Thanks,
>> >> -Ajay
>> >>
>> >>
>> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
>> >> wrote:
>> >>
>> >>
>> >> > Hi,
>> >> >
>> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender
>> commented
>> >> > out. You can uncomment it. That is how it is supposed to work.
>> But
>> >> > keystores are missing in the distribution i think. So you will
>> have to
>> >> > provide the keystore files and try
>> >> >
>> >> > Upul
>> >> >
>> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
>> >> wrote:
>> >> >> Hello All,
>> >> >>
>> >> >> I was googling for help about using SSL with Axis2 and i have got
>> >> this
>> >> >> link
>> >> >>
>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>> >> >> This tells how to make Axis2 client use SSL.
>> >> >>
>> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or
>> >> JBoss
>> >> >> then we need to use server specific configuration to enable SSL.
>> >> Please
>> >> >> correct me if iam rong somewhere.
>> >> >>
>> >> >> But, how to configure SSL on standalone Axis2?
>> >> >>
>> >> >> Thanks,
>> >> >> -Ajay
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >>
>> >> >>
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >> >
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Upul Godage <up...@gmail.com>.
No. what I meant was, if there is a requirement for you to stay with
1.2, then using a transport receiver built for another version would
be not stable obviously.
You can try 1.3 altogether.
Upul
On Nov 26, 2007 10:46 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>
> Thanks again for prompt reply.
>
> SSL implementation will be stable if i try to use Axis2 1.3, is that right?
>
> -Ajay
>
>
> On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
>
> wrote:
>
> > Seems there was no https transport receiver in 1.2. Though there is one
> > in 1.3
> >
> > One thing you can try is using the 1.3 transport receiver in 1.2. But
> > because transport receivers are bundled in the kernal.jar file in
> > Axis2 you won't be able to do that.
> >
> > Apache Synapse has the transports in a separate jar. You can download
> > Synapse, add transports.jar to 1.2 lib directory and add the https
> > transport receiver entry to 1.2 axis2.xml as given in the Synapse
> > axis2.xml. What you are doing is using the https transport receiver
> > that comes with Synapse in Axis2. Again, there is a possibility that
> > this may not work as Synapse works with Axis2 1.3 now. Also you can
> > try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
> > that all these experiments are unstable.
> >
> > Upul
> >
> >
> > On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
> >> Hi Upul,
> >>
> >> Thank you for the reply. Iam using Axis2 1.2 version. I had gone through
> >> the axis2.xml, before sending out the mail to axis users but i couldn't
> >> found anything.
> >>
> >> Do you have idea how we can do it in Axis2 1.2?
> >>
> >> Thanks,
> >> -Ajay
> >>
> >>
> >> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
> >> wrote:
> >>
> >>
> >> > Hi,
> >> >
> >> > In axis2 1.3, axis2.xml there is a ssl listener and sender commented
> >> > out. You can uncomment it. That is how it is supposed to work. But
> >> > keystores are missing in the distribution i think. So you will have to
> >> > provide the keystore files and try
> >> >
> >> > Upul
> >> >
> >> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
> >> wrote:
> >> >> Hello All,
> >> >>
> >> >> I was googling for help about using SSL with Axis2 and i have got
> >> this
> >> >> link
> >> >> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
> >> >> This tells how to make Axis2 client use SSL.
> >> >>
> >> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or
> >> JBoss
> >> >> then we need to use server specific configuration to enable SSL.
> >> Please
> >> >> correct me if iam rong somewhere.
> >> >>
> >> >> But, how to configure SSL on standalone Axis2?
> >> >>
> >> >> Thanks,
> >> >> -Ajay
> >> >>
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >>
> >> >>
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >> >
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
Thanks again for prompt reply.
SSL implementation will be stable if i try to use Axis2 1.3, is that right?
-Ajay
On Mon, 26 Nov 2007 10:38:07 +0530, Upul Godage <up...@gmail.com>
wrote:
> Seems there was no https transport receiver in 1.2. Though there is one
> in 1.3
>
> One thing you can try is using the 1.3 transport receiver in 1.2. But
> because transport receivers are bundled in the kernal.jar file in
> Axis2 you won't be able to do that.
>
> Apache Synapse has the transports in a separate jar. You can download
> Synapse, add transports.jar to 1.2 lib directory and add the https
> transport receiver entry to 1.2 axis2.xml as given in the Synapse
> axis2.xml. What you are doing is using the https transport receiver
> that comes with Synapse in Axis2. Again, there is a possibility that
> this may not work as Synapse works with Axis2 1.3 now. Also you can
> try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
> that all these experiments are unstable.
>
> Upul
>
>
> On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>> Hi Upul,
>>
>> Thank you for the reply. Iam using Axis2 1.2 version. I had gone through
>> the axis2.xml, before sending out the mail to axis users but i couldn't
>> found anything.
>>
>> Do you have idea how we can do it in Axis2 1.2?
>>
>> Thanks,
>> -Ajay
>>
>>
>> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
>> wrote:
>>
>>
>> > Hi,
>> >
>> > In axis2 1.3, axis2.xml there is a ssl listener and sender commented
>> > out. You can uncomment it. That is how it is supposed to work. But
>> > keystores are missing in the distribution i think. So you will have to
>> > provide the keystore files and try
>> >
>> > Upul
>> >
>> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com>
>> wrote:
>> >> Hello All,
>> >>
>> >> I was googling for help about using SSL with Axis2 and i have got
>> this
>> >> link
>> >> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>> >> This tells how to make Axis2 client use SSL.
>> >>
>> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or
>> JBoss
>> >> then we need to use server specific configuration to enable SSL.
>> Please
>> >> correct me if iam rong somewhere.
>> >>
>> >> But, how to configure SSL on standalone Axis2?
>> >>
>> >> Thanks,
>> >> -Ajay
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >> For additional commands, e-mail: axis-user-help@ws.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Upul Godage <up...@gmail.com>.
Seems there was no https transport receiver in 1.2. Though there is one in 1.3
One thing you can try is using the 1.3 transport receiver in 1.2. But
because transport receivers are bundled in the kernal.jar file in
Axis2 you won't be able to do that.
Apache Synapse has the transports in a separate jar. You can download
Synapse, add transports.jar to 1.2 lib directory and add the https
transport receiver entry to 1.2 axis2.xml as given in the Synapse
axis2.xml. What you are doing is using the https transport receiver
that comes with Synapse in Axis2. Again, there is a possibility that
this may not work as Synapse works with Axis2 1.3 now. Also you can
try with Synapse 1.0, nhttp.jar and it's axis2.xml entry. But note
that all these experiments are unstable.
Upul
On Nov 26, 2007 9:31 AM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
> Hi Upul,
>
> Thank you for the reply. Iam using Axis2 1.2 version. I had gone through
> the axis2.xml, before sending out the mail to axis users but i couldn't
> found anything.
>
> Do you have idea how we can do it in Axis2 1.2?
>
> Thanks,
> -Ajay
>
>
> On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
> wrote:
>
>
> > Hi,
> >
> > In axis2 1.3, axis2.xml there is a ssl listener and sender commented
> > out. You can uncomment it. That is how it is supposed to work. But
> > keystores are missing in the distribution i think. So you will have to
> > provide the keystore files and try
> >
> > Upul
> >
> > On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
> >> Hello All,
> >>
> >> I was googling for help about using SSL with Axis2 and i have got this
> >> link
> >> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
> >> This tells how to make Axis2 client use SSL.
> >>
> >> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss
> >> then we need to use server specific configuration to enable SSL. Please
> >> correct me if iam rong somewhere.
> >>
> >> But, how to configure SSL on standalone Axis2?
> >>
> >> Thanks,
> >> -Ajay
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: axis-user-help@ws.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Ajay Kumar Gour <aj...@s7solutions.com>.
Hi Upul,
Thank you for the reply. Iam using Axis2 1.2 version. I had gone through
the axis2.xml, before sending out the mail to axis users but i couldn't
found anything.
Do you have idea how we can do it in Axis2 1.2?
Thanks,
-Ajay
On Fri, 23 Nov 2007 21:29:23 +0530, Upul Godage <up...@gmail.com>
wrote:
> Hi,
>
> In axis2 1.3, axis2.xml there is a ssl listener and sender commented
> out. You can uncomment it. That is how it is supposed to work. But
> keystores are missing in the distribution i think. So you will have to
> provide the keystore files and try
>
> Upul
>
> On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
>> Hello All,
>>
>> I was googling for help about using SSL with Axis2 and i have got this
>> link
>> "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
>> This tells how to make Axis2 client use SSL.
>>
>> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss
>> then we need to use server specific configuration to enable SSL. Please
>> correct me if iam rong somewhere.
>>
>> But, how to configure SSL on standalone Axis2?
>>
>> Thanks,
>> -Ajay
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: About SSL..
Posted by Upul Godage <up...@gmail.com>.
Hi,
In axis2 1.3, axis2.xml there is a ssl listener and sender commented
out. You can uncomment it. That is how it is supposed to work. But
keystores are missing in the distribution i think. So you will have to
provide the keystore files and try
Upul
On Nov 23, 2007 6:34 PM, Ajay Kumar Gour <aj...@s7solutions.com> wrote:
> Hello All,
>
> I was googling for help about using SSL with Axis2 and i have got this
> link "http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html".
> This tells how to make Axis2 client use SSL.
>
> If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss
> then we need to use server specific configuration to enable SSL. Please
> correct me if iam rong somewhere.
>
> But, how to configure SSL on standalone Axis2?
>
> Thanks,
> -Ajay
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org