axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Philippi" <m...@gmx.de>
Subject Re: get current ConfigurationContext with embedded tomcat
Date Fri, 01 Feb 2008 09:36:33 GMT
Alright, 
> >> ListenerManager.defaultConfigurationContext
works. Thanks a lot so far!

But now i've got another problem. When I try to add my service like this

InputStream in = new FileInputStream("c:/workspace/mywebservice/services.xml");
AxisService service = DeploymentEngine.buildService(in, configContext); configContext.getAxisConfiguration().addService(service);

the service gets listed in the admin-console, but no operations are available. It seems, that
my services.xml is not correctly loaded.
The file seems to be ok, because when i deploy it in an aar everything works fine.
And how do i get axis to recognize my service.wsdl?

Thanks,
Martin


-------- Original-Nachricht --------
> Datum: Wed, 30 Jan 2008 20:13:44 +0530
> Von: Deepal jayasinghe <deepalk@gmail.com>
> An: axis-user@ws.apache.org
> Betreff: Re: get current ConfigurationContext with embedded tomcat

> 
> > I'm not really sure how i start axis. I'm doing something like this in
> embedded tomcat.
> >
> > Context context_axis2 = embedded.createContext("/axis2", getPath() +
> "/webapps/axis2");
> > host.addChild(context);
> >
> > But this does not seem to be the right way (although axis is working).
> > How do i start it by using AxisServlet?
> >   
> Axis2 deploy as a war file alone with a web.xml file , there it starts 
> the AxisServlet. In your case also if you have started Axis2 then I hope 
> you can use the line of codes I send you before.
> 
> Thanks
> Deepal
> > Thanks
> > Martin
> >
> > -------- Original-Nachricht --------
> >   
> >> Datum: Wed, 30 Jan 2008 10:08:45 +0530
> >> Von: Deepal jayasinghe <deepalk@gmail.com>
> >> An: axis-user@ws.apache.org
> >> Betreff: Re: get current ConfigurationContext with embedded tomcat
> >>     
> >
> >   
> >>> Hi!
> >>> I'm developing an application with an embedded tomcat.
> >>> I want to deploy a Axis2-Webservice at runtime.
> >>> My problem is: How do i get the current ConfigurationContext to add
> the
> >>>       
> >> service to it?
> >>     
> >>> I can create a new ConfigurationContext and add the service, but that
> >>>       
> >> does not have any effect.
> >>     
> >>> ConfigurationContext configContext =
> >>>       
> >>
> ConfigurationContextFactory.createConfigurationContextFromFileSystem("c:/axis2-1.3/conf/axis2.xml");
> >>     
> >>> InputStream in = new
> >>>       
> >> FileInputStream("c:/workspace/mywebservice/services.xml");       
> AxisService service = DeploymentEngine.buildService(in,
> >> configContext);
> >>     
> >>> configContext.getAxisConfiguration().addService(service);
> >>> configContext.getAxisConfiguration().startService("SMARTService");
> >>>   
> >>>       
> >> You can do the following  (But this depend on how you start Axis2 , if 
> >> you use AxisServlet then the following works)
> >>
> >> ListenerManager.defaultConfigurationContext
> >>
> >> Thanks
> >> Deepal
> >>     
> >>> Regards,
> >>> Martin
> >>>   
> >>>       
> >> ---------------------------------------------------------------------
> >> 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

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message