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 Nowak Brad <Br...@thomson.net> on 2008/12/08 15:55:27 UTC
Axis2 default service (Deploy a service a context root)
How can I configure Axis2 to deploy a service at the context root?
Right now I can only deploy them from the service path (using
SimpleHTTPServer). My project requires a service to be deployed at
http://localhost:8081/.
Thanks,
Brad
RE: Axis2 default service (Deploy a service a context root)
Posted by Nowak Brad <Br...@thomson.net>.
Is there a way to embed tomcat into my app like I currently have
SimpleHTTPServer? The goal of my project is to have a single .jar file
to distribute to other developers, and having an integrated server for
the Events service is a high priority.
Thanks,
Brad
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: Tuesday, December 09, 2008 10:50 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 default service (Deploy a service a context root)
On Tue, Dec 9, 2008 at 8:18 PM, Nowak Brad <Br...@thomson.net>
wrote:
I don't have a web.xml file...
I have an axis2_repo directory with a structure
\---axis2-repo
|
+---conf
| axis2.xml
|
+---modules
| addressing-1.41.mar
|
+---services
| Events.aar
|
I want to deploy the Events.aar service to http://localhost:8081/. I
want a client to be able to sent its SOAP request to that address.
Right now I have to send requests to
http://localhost:8081/axis2/services/Events.
My code:
ConfigurationContext context = ConfigurationContextFactory.
createConfigurationContextFromFileSystem("./src/Colony/axis2_repo",
"./src/Colony/axis2_repo/conf/axis2.xml");
SimpleHTTPServer server = new SimpleHTTPServer(context, 8081);
server.start();
this is not a good way to deploy services. try deploying services under
tomcat (or with any servlet container) with the war distribution.
thanks,
Amila.
Thanks.
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: Monday, December 08, 2008 11:37 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 default service (Deploy a service a context
root)
try deploying the axis2 as the ROOT and
change this entry in web.xml
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
thanks,
Amila.
On Mon, Dec 8, 2008 at 8:25 PM, Nowak Brad
<Br...@thomson.net> wrote:
How can I configure Axis2 to deploy a service at the context
root? Right now I can only deploy them from the service path (using
SimpleHTTPServer). My project requires a service to be deployed at
http://localhost:8081/.
Thanks,
Brad
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: Axis2 default service (Deploy a service a context root)
Posted by Amila Suriarachchi <am...@gmail.com>.
On Tue, Dec 9, 2008 at 8:18 PM, Nowak Brad <Br...@thomson.net> wrote:
> I don't have a web.xml fileā¦
>
>
>
> I have an axis2_repo directory with a structure
>
>
>
> \---axis2-repo
>
> |
>
> +---conf
>
> | axis2.xml
>
> |
>
> +---modules
>
> | addressing-1.41.mar
>
> |
>
> +---services
>
> | Events.aar
>
> |
>
>
>
>
>
> I want to deploy the Events.aar service to http://localhost:8081/. I want a client to be able to sent its SOAP request to that address.
>
>
>
> Right now I have to send requests to http://localhost:8081/axis2/services/Events.
>
>
>
>
>
> My code:
>
>
>
> *ConfigurationContext context = ConfigurationContextFactory.***
>
> * **createConfigurationContextFromFileSystem**(**
> "./src/Colony/axis2_repo"**, **"./src/Colony/axis2_repo/conf/axis2.xml"**);
> ***
>
> * ***
>
> *SimpleHTTPServer server = **new** SimpleHTTPServer(context, 8081);***
>
> * ***
>
> *server.start();*
>
this is not a good way to deploy services. try deploying services under
tomcat (or with any servlet container) with the war distribution.
thanks,
Amila.
> **
>
>
>
>
>
> Thanks.
>
>
> ------------------------------
>
> *From:* Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
> *Sent:* Monday, December 08, 2008 11:37 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Axis2 default service (Deploy a service a context root)
>
>
>
> try deploying the axis2 as the ROOT and
>
> change this entry in web.xml
> <servlet-mapping>
> <servlet-name>AxisServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
>
>
> to
>
> <servlet-mapping>
> <servlet-name>AxisServlet</servlet-name>
> <url-pattern>/*</url-pattern>
> </servlet-mapping>
>
> thanks,
> Amila.
>
> On Mon, Dec 8, 2008 at 8:25 PM, Nowak Brad <Br...@thomson.net>
> wrote:
>
> How can I configure Axis2 to deploy a service at the context root? Right
> now I can only deploy them from the service path (using SimpleHTTPServer).
> My project requires a service to be deployed at http://localhost:8081/.
>
>
>
> Thanks,
>
>
>
> Brad
>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
RE: Axis2 default service (Deploy a service a context root)
Posted by Nowak Brad <Br...@thomson.net>.
I don't have a web.xml file...
I have an axis2_repo directory with a structure
\---axis2-repo
|
+---conf
| axis2.xml
|
+---modules
| addressing-1.41.mar
|
+---services
| Events.aar
|
I want to deploy the Events.aar service to http://localhost:8081/. I
want a client to be able to sent its SOAP request to that address.
Right now I have to send requests to
http://localhost:8081/axis2/services/Events.
My code:
ConfigurationContext context = ConfigurationContextFactory.
createConfigurationContextFromFileSystem("./src/Colony/axis2_repo",
"./src/Colony/axis2_repo/conf/axis2.xml");
SimpleHTTPServer server = new SimpleHTTPServer(context, 8081);
server.start();
Thanks.
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: Monday, December 08, 2008 11:37 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2 default service (Deploy a service a context root)
try deploying the axis2 as the ROOT and
change this entry in web.xml
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
thanks,
Amila.
On Mon, Dec 8, 2008 at 8:25 PM, Nowak Brad <Br...@thomson.net>
wrote:
How can I configure Axis2 to deploy a service at the context root?
Right now I can only deploy them from the service path (using
SimpleHTTPServer). My project requires a service to be deployed at
http://localhost:8081/.
Thanks,
Brad
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
Re: Axis2 default service (Deploy a service a context root)
Posted by Amila Suriarachchi <am...@gmail.com>.
try deploying the axis2 as the ROOT and
change this entry in web.xml
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
thanks,
Amila.
On Mon, Dec 8, 2008 at 8:25 PM, Nowak Brad <Br...@thomson.net> wrote:
> How can I configure Axis2 to deploy a service at the context root? Right
> now I can only deploy them from the service path (using SimpleHTTPServer).
> My project requires a service to be deployed at http://localhost:8081/.
>
>
>
> Thanks,
>
>
>
> Brad
>
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/