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 "Matta, Geethamadhurima " <ge...@citi.com> on 2011/06/08 19:28:38 UTC
Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError -XX:-PrintGCDetails -Xcheck:jni -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
Re: Axis2 server on Https
Posted by Andreas Veithen <an...@gmail.com>.
The stand-alone Axis2 server doesn't support HTTPS. It is only
supported when using the servlet transport, i.e. inside an application
server.
Andreas
On Tue, Jun 14, 2011 at 00:14, Matta, Geethamadhurima
<ge...@citi.com> wrote:
> Hi,
>
> Can anyone help on the below. I am using stand-alone Axis2 server. Need it
> on https.
> ________________________________
> From: Matta, Geethamadhurima [ICG-IT]
> Sent: 09 June 2011 17:46
> To: 'java-user@axis.apache.org'
> Subject: RE: Axis2 server on Https
>
> I am running Axis2 standalone server. As you can see in axis2server.sh , we
> are using "org.apache.axis2.transport.SimpleAxis2Server" for Axis2/J
> Using version Axis2 1.5.4.
> ________________________________
> From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
> Sent: 09 June 2011 17:42
> To: java-user@axis.apache.org
> Subject: AW: Axis2 server on Https
>
> Then you might be so kind and you say me how you run axis2/j stand alone
> without any AS; do you?
>
> While this is possible for axis2/C (the simple server) I have never used
> such a thing as a simple server for axis2/J.
>
> Please explain me a bit more about your environment and I try to help on
> Thusday next week.
>
> Josef
>
>
>
> Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
> Gesendet: Donnerstag, 9. Juni 2011 16:23
> An: 'java-user@axis.apache.org'
> Betreff: RE: Axis2 server on Https
>
>
>
> Thanks Josef for your reply.
>
>
>
> I am not using tomcat or any other servlet container. Just Axis2.
>
> I cannot use tomcat for now.
>
>
>
> Is there any alternative?
>
>
>
> ________________________________
>
> From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
> Sent: 09 June 2011 10:33
> To: java-user@axis.apache.org
> Subject: AW: Axis2 server on Https
>
> Remember axis2 is a LARGE SERVLET
>
> And SERVLETS run in a SERVLET CONTAINER established by APPLICATION SERVERS
>
> Hence did you configure your APPLICATION SERVER to have an SSL port for
> https request setup using i.e. Tomcats server.xml
>
> Josef
>
>
>
>
>
> Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
> Gesendet: Mittwoch, 8. Juni 2011 19:29
> An: 'java-user@axis.apache.org'
> Betreff: Axis2 server on Https
>
>
>
> Hi,
>
>
>
> I am unable to start Axis2 server on https.
>
> I changed the axis2.xml (transportReceiver) to https as below.
>
> --------------------------------------------
>
> <transportReceiver name="https"
>
>
> class="org.apache.axis2.transport.http.AxisServletListener">
>
> <parameter name="port">8096</parameter>
>
> </transportReceiver>
>
> --------------------------------------------
>
>
>
> This is the axis2server.sh containing:
>
> java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError
> -XX:-PrintGCDetails -Xcheck:jni
> -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath
> "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo
> "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
>
>
>
> I get the below error:
>
> Initializing the service context
>
> [INFO] [SimpleAxisServer] Started
>
> [SimpleAxisServer] Started
>
> ***********Destroying the service context
>
>
>
> The server is not starting up.
>
>
>
> Can you please help.
>
>
>
> Regards,
>
> Geeta
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Axis2 server on Https
Posted by Dmitry Ruban <dm...@ruban.biz>.
Another option not related to java would be to install apache/nginx and
use it as reverse proxy from SSL port to axis listening on local interface.
On 14/06/11 10:14, Matta, Geethamadhurima wrote:
> Hi,
> Can anyone help on the below. I am using stand-alone Axis2 server.
> Need it on https.
>
> ------------------------------------------------------------------------
> *From:* Matta, Geethamadhurima [ICG-IT]
> *Sent:* 09 June 2011 17:46
> *To:* 'java-user@axis.apache.org'
> *Subject:* RE: Axis2 server on Https
>
> I am running Axis2 standalone server. As you can see in axis2server.sh
> , we are using "org.apache.axis2.transport.SimpleAxis2Server" for Axis2/J
> Using version Axis2 1.5.4.
> ------------------------------------------------------------------------
> *From:* Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
> *Sent:* 09 June 2011 17:42
> *To:* java-user@axis.apache.org
> *Subject:* AW: Axis2 server on Https
>
> Then you might be so kind and you say me how you run axis2/j stand
> alone without any AS; do you?
>
> While this is possible for axis2/C (the simple server) I have never
> used such a thing as a simple server for axis2/J.
>
> Please explain me a bit more about your environment and I try to help
> on Thusday next week.
>
> Josef
>
> *Von:*Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
> *Gesendet:* Donnerstag, 9. Juni 2011 16:23
> *An:* 'java-user@axis.apache.org'
> *Betreff:* RE: Axis2 server on Https
>
> Thanks Josef for your reply.
>
> I am not using tomcat or any other servlet container. Just Axis2.
>
> I cannot use tomcat for now.
>
> Is there any alternative?
>
> ------------------------------------------------------------------------
>
> *From:*Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
> *Sent:* 09 June 2011 10:33
> *To:* java-user@axis.apache.org
> *Subject:* AW: Axis2 server on Https
>
> Remember axis2 is a LARGE SERVLET
>
> And SERVLETS run in a SERVLET CONTAINER established by APPLICATION SERVERS
>
> Hence did you configure your APPLICATION SERVER to have an SSL port
> for https request setup using i.e. Tomcats server.xml
>
> Josef
>
> *Von:*Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
> *Gesendet:* Mittwoch, 8. Juni 2011 19:29
> *An:* 'java-user@axis.apache.org'
> *Betreff:* Axis2 server on Https
>
> Hi,
>
> I am unable to start Axis2 server on https.
>
> I changed the axis2.xml (transportReceiver) to https as below.
>
> --------------------------------------------
>
> <transportReceiver name="https"
>
>
> class="org.apache.axis2.transport.http.AxisServletListener">
>
> <parameter name="port">8096</parameter>
>
> </transportReceiver>
>
> --------------------------------------------
>
> This is the axis2server.sh containing:
>
> java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError
> -XX:-PrintGCDetails -Xcheck:jni
> -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath
> "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo
> "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
>
> I get the below error:
>
> Initializing the service context
>
> [INFO] [SimpleAxisServer] Started
>
> [SimpleAxisServer] Started
>
> ***********Destroying the service context
>
> The server is not starting up.
>
> Can you please help.
>
> Regards,
>
> Geeta
>
RE: Axis2 server on Https
Posted by "Matta, Geethamadhurima " <ge...@citi.com>.
Hi,
Can anyone help on the below. I am using stand-alone Axis2 server. Need it on https.
________________________________
From: Matta, Geethamadhurima [ICG-IT]
Sent: 09 June 2011 17:46
To: 'java-user@axis.apache.org'
Subject: RE: Axis2 server on Https
I am running Axis2 standalone server. As you can see in axis2server.sh , we are using "org.apache.axis2.transport.SimpleAxis2Server" for Axis2/J
Using version Axis2 1.5.4.
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 17:42
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Then you might be so kind and you say me how you run axis2/j stand alone without any AS; do you?
While this is possible for axis2/C (the simple server) I have never used such a thing as a simple server for axis2/J.
Please explain me a bit more about your environment and I try to help on Thusday next week.
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Donnerstag, 9. Juni 2011 16:23
An: 'java-user@axis.apache.org'
Betreff: RE: Axis2 server on Https
Thanks Josef for your reply.
I am not using tomcat or any other servlet container. Just Axis2.
I cannot use tomcat for now.
Is there any alternative?
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 10:33
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError -XX:-PrintGCDetails -Xcheck:jni -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
AW: Axis2 server on Https
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
OK,
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
Here you declare that https as a transportReceiver name is used in
conjunction with a class understanding http but maybe not https. I think
all it does is listening now on port 8096 for a http protocol but gets a
https offered and does not understand it. Maybe you have a
class="org.apache.axis2.transport.https.AxisServletListener". Or is
there an explanation where this discrepancy comes from?
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Donnerstag, 9. Juni 2011 18:46
An: 'java-user@axis.apache.org'
Betreff: RE: Axis2 server on Https
I am running Axis2 standalone server. As you can see in axis2server.sh ,
we are using "org.apache.axis2.transport.SimpleAxis2Server" for Axis2/J
Using version Axis2 1.5.4.
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 17:42
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Then you might be so kind and you say me how you run axis2/j stand alone
without any AS; do you?
While this is possible for axis2/C (the simple server) I have never used
such a thing as a simple server for axis2/J.
Please explain me a bit more about your environment and I try to help on
Thusday next week.
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Donnerstag, 9. Juni 2011 16:23
An: 'java-user@axis.apache.org'
Betreff: RE: Axis2 server on Https
Thanks Josef for your reply.
I am not using tomcat or any other servlet container. Just Axis2.
I cannot use tomcat for now.
Is there any alternative?
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 10:33
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION
SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for
https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError
-XX:-PrintGCDetails -Xcheck:jni
-Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath
"$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo
"$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
RE: Axis2 server on Https
Posted by "Matta, Geethamadhurima " <ge...@citi.com>.
I am running Axis2 standalone server. As you can see in axis2server.sh , we are using "org.apache.axis2.transport.SimpleAxis2Server" for Axis2/J
Using version Axis2 1.5.4.
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 17:42
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Then you might be so kind and you say me how you run axis2/j stand alone without any AS; do you?
While this is possible for axis2/C (the simple server) I have never used such a thing as a simple server for axis2/J.
Please explain me a bit more about your environment and I try to help on Thusday next week.
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Donnerstag, 9. Juni 2011 16:23
An: 'java-user@axis.apache.org'
Betreff: RE: Axis2 server on Https
Thanks Josef for your reply.
I am not using tomcat or any other servlet container. Just Axis2.
I cannot use tomcat for now.
Is there any alternative?
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 10:33
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError -XX:-PrintGCDetails -Xcheck:jni -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
AW: Axis2 server on Https
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Then you might be so kind and you say me how you run axis2/j stand alone
without any AS; do you?
While this is possible for axis2/C (the simple server) I have never used
such a thing as a simple server for axis2/J.
Please explain me a bit more about your environment and I try to help on
Thusday next week.
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Donnerstag, 9. Juni 2011 16:23
An: 'java-user@axis.apache.org'
Betreff: RE: Axis2 server on Https
Thanks Josef for your reply.
I am not using tomcat or any other servlet container. Just Axis2.
I cannot use tomcat for now.
Is there any alternative?
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 10:33
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION
SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for
https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError
-XX:-PrintGCDetails -Xcheck:jni
-Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath
"$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo
"$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
RE: Axis2 server on Https
Posted by "Matta, Geethamadhurima " <ge...@citi.com>.
Thanks Josef for your reply.
I am not using tomcat or any other servlet container. Just Axis2.
I cannot use tomcat for now.
Is there any alternative?
________________________________
From: Stadelmann Josef [mailto:josef.stadelmann@axa-winterthur.ch]
Sent: 09 June 2011 10:33
To: java-user@axis.apache.org
Subject: AW: Axis2 server on Https
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError -XX:-PrintGCDetails -Xcheck:jni -Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo "$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta
AW: Axis2 server on Https
Posted by Stadelmann Josef <jo...@axa-winterthur.ch>.
Remember axis2 is a LARGE SERVLET
And SERVLETS run in a SERVLET CONTAINER established by APPLICATION
SERVERS
Hence did you configure your APPLICATION SERVER to have an SSL port for
https request setup using i.e. Tomcats server.xml
Josef
Von: Matta, Geethamadhurima [mailto:geethamadhurima.matta@citi.com]
Gesendet: Mittwoch, 8. Juni 2011 19:29
An: 'java-user@axis.apache.org'
Betreff: Axis2 server on Https
Hi,
I am unable to start Axis2 server on https.
I changed the axis2.xml (transportReceiver) to https as below.
--------------------------------------------
<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8096</parameter>
</transportReceiver>
--------------------------------------------
This is the axis2server.sh containing:
java $* -Xms512m -Xmx512m -XX:-HeapDumpOnOutOfMemoryError
-XX:-PrintGCDetails -Xcheck:jni
-Djava.library.path="$SRVROOT/CdsJniCpp:$SRVROOT/CdsCore" -classpath
"$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server -repo
"$AXIS2_ROOT"/repository -conf "$AXIS2_ROOT"/conf/axis2.xml
I get the below error:
Initializing the service context
[INFO] [SimpleAxisServer] Started
[SimpleAxisServer] Started
***********Destroying the service context
The server is not starting up.
Can you please help.
Regards,
Geeta