On Tue, Dec 9, 2008 at 8:18 PM, Nowak Brad <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > *Sent:* Monday, December 08, 2008 11:37 PM > *To:* [email protected] > *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 <[EMAIL PROTECTED]> > 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/
