axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <>
Subject [Fwd: [Axis2] Starting a JAXWS service in another bundle]
Date Fri, 22 Feb 2008 16:37:25 GMT
Hash: SHA1

Apologies if you see this twice...i sent the first one with a zip file, but it never got thru
to the ml, here's a url


- -------- Original Message --------
Subject: [Axis2] Starting a JAXWS service in another bundle
Date: Fri, 22 Feb 2008 11:26:37 -0500
From: Davanum Srinivas <>


FYI, Got this scenario working. Here's the log as proof :) Here's a sample calculator project
i used to test the

Basically we register the Axis2 bundle, it starts listening to new bundles being started,
when it finds one, it peeks
into the classes and deploys any JAXWS service or serviceprovider annotations. if one stops
the calculator bundle, axis2
automatically stops the service as well.

You can point your browser to http://localhost/axis2/services/CalculatorService?wsdl and use
any tool to invoke the web
service as well.


PS: auto generation of wsdl using JAXWS RI is not done yet (class loader issues). So you will
need to specify wsdl/xsd
in the web service using wsdlLocation.

C:\equinox>java -jar plugins\org.eclipse.osgi_3.3.1.R33x_v20070828.jar -console
Feb 22, 2008 11:13:33 AM org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start
INFO: Started org.mortbay.jetty.servlet.ServletHandler@1b54362
Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
Feb 22, 2008 11:13:33 AM org.mortbay.http.SocketListener start
INFO: Started SocketListener on
Feb 22, 2008 11:13:33 AM org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@29c204

osgi> ss

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.3.1.R33x_v20070828
1       ACTIVE      org.eclipse.equinox.http.jetty_1.0.1.R33x_v20070816
2       ACTIVE      javax.servlet_2.4.0.v200706111738
3       ACTIVE      javax.servlet.jsp_2.0.0.v200706191603
4       ACTIVE      org.eclipse.equinox.http.servlet_1.0.1.R33x_v20070816
5       ACTIVE      org.eclipse.equinox.servletbridge_1.0.1.R33x_v20070816
6       ACTIVE      org.eclipse.equinox.http.servletbridge_1.0.0.v20070523
7       ACTIVE      org.eclipse.osgi.services_3.1.200.v20070605
8       ACTIVE      org.mortbay.jetty_5.1.11.v200706111724
9       ACTIVE      org.apache.commons.logging_1.0.4.v200706111724

osgi> install file:C:\Apache\axis2\modules\osgi\target\axis2-osgi-SNAPSHOT.jar
Bundle id is 60

osgi> start 60
[Axis2/OSGi] Registering Axis2 Servlet
log4j:WARN No appenders could be found for logger (org.apache.axis2.deployment.WarBasedAxisConfigurator).
log4j:WARN Please initialize the log4j system properly.
[Axis2/OSGi] Starting Bundle Listener

osgi> install file:c:\equinox\calculator\calculator.jar
Bundle id is 61

osgi> start 61
Calculator bundle - Started

osgi> [Axis2/OSGi] Starting any services in Bundle - Calculator
[Axis2/OSGi] Deployed ServiceGroup - Calculator
[Axis2/OSGi]      Service - CalculatorService

osgi> 0+0 = 0
3+4 = 7
Version: GnuPG v1.4.5 (Cygwin)


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message