Re: Axis2 osgi bundle on Tomcat+servletbridge
http://samindaa.blogspot.com/2008/07/light-weight-osgi-based-axis2-powered.html On Sat, Jul 5, 2008 at 4:36 PM, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote: > I have tested this with Equinox servlet bridge, with the hosted bridge.war > http://samindaa.blogspot.com/2008/06/embed-eclipse-equinox-in-servlet.html > > and everything has gone smoothly. All I did was, > > 1. Build the trunk > 2. Build the osgi_scratch project > 3. copied the bridge.war to webapp folder > 4. Start the tomcat, copied all the plugins from osgi_scratch and copied > the commons_logging bundle from Equinox standalone distribution to > webapps/bridege/WEB-INF/eclipse/plugin fold4er > 4. Stopped and stated tomcat > 5. Start all the "Resolved" bundles except fragment hosts. > > Thank you! > > Saminda > > > On Wed, Jul 2, 2008 at 11:27 PM, techi_amol <[EMAIL PROTECTED]> wrote: > >> >> Hi All, >> >> i followed the instructions given in axis2_osgi_integration.pdf, and >> instead >> of using equinox standalone with embedded Jetty, I tried to do the same >> thing on Tomcat, with servletbridge.war hosting the equinox osgi env. (For >> more details please refer >> http://www.nabble.com/-Axis2--Axis2-OSGi-bundle.-Phase-1-td18046920.html) >> >> However, when i try to start org.apache.axis2.osgi_1.0.0.SNAPSHOT bundle, >> i >> get the following exception >> >> org.osgi.framework.BundleException: Exception in >> org.apache.axis2.osgi.internal.Activator.start() of bundle >> org.apache.axis2.osgi. >> >>at >> >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018) >>at >> >> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) >>at >> >> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) >>at >> >> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260) >>at >> >> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252) >>at >> >> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260) >>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>at java.lang.reflect.Method.invoke(Method.java:585) >>at >> >> org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145) >>at >> >> org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:294) >>at >> >> org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:279) >>at >> >> org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:214) >>at java.lang.Thread.run(Thread.java:595) >> Caused by: java.lang.NoClassDefFoundError >>at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) >>at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) >>at >> >> org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) >>at >> >> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) >>at >> >> org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) >>at >> >> org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61) >>at >> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68) >>at >> >> org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.createConfigurationContext(OSGiConfigurationContextFac >> tory.java:51) >>at org.apache.axis2.osgi.InitServlet.init(InitServlet.java:45) >>at >> >> org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:65) >>at >> >> org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:141) >>at >> >> org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50) >>at >> >> org.apache.axis2.osgi.internal.Activator$HttpServiceTracker.addingService(Activator.java:76) >>at >> >> org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) >>at >> >> org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926) >>at >> org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330) >>at >> org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274) >>at >> org.apache.axis2.osgi.internal.Activator.start(Activator.java:45) >>at >> >> org.eclipse.osgi.framework.inte
Re: Axis2 osgi bundle on Tomcat+servletbridge
I have tested this with Equinox servlet bridge, with the hosted bridge.war http://samindaa.blogspot.com/2008/06/embed-eclipse-equinox-in-servlet.html and everything has gone smoothly. All I did was, 1. Build the trunk 2. Build the osgi_scratch project 3. copied the bridge.war to webapp folder 4. Start the tomcat, copied all the plugins from osgi_scratch and copied the commons_logging bundle from Equinox standalone distribution to webapps/bridege/WEB-INF/eclipse/plugin fold4er 4. Stopped and stated tomcat 5. Start all the "Resolved" bundles except fragment hosts. Thank you! Saminda On Wed, Jul 2, 2008 at 11:27 PM, techi_amol <[EMAIL PROTECTED]> wrote: > > Hi All, > > i followed the instructions given in axis2_osgi_integration.pdf, and > instead > of using equinox standalone with embedded Jetty, I tried to do the same > thing on Tomcat, with servletbridge.war hosting the equinox osgi env. (For > more details please refer > http://www.nabble.com/-Axis2--Axis2-OSGi-bundle.-Phase-1-td18046920.html) > > However, when i try to start org.apache.axis2.osgi_1.0.0.SNAPSHOT bundle, i > get the following exception > > org.osgi.framework.BundleException: Exception in > org.apache.axis2.osgi.internal.Activator.start() of bundle > org.apache.axis2.osgi. > >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) >at > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) >at > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260) >at > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252) >at > > org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:585) >at > > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:294) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:279) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:214) >at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.NoClassDefFoundError >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) >at > > org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) >at > > org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) >at > > org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) >at > > org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61) >at > > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68) >at > > org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.createConfigurationContext(OSGiConfigurationContextFac > tory.java:51) >at org.apache.axis2.osgi.InitServlet.init(InitServlet.java:45) >at > > org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:65) >at > > org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:141) >at > > org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50) >at > > org.apache.axis2.osgi.internal.Activator$HttpServiceTracker.addingService(Activator.java:76) >at > > org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) >at > > org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926) >at > org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330) >at > org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274) >at org.apache.axis2.osgi.internal.Activator.start(Activator.java:45) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999) >at java.security.AccessController.doPrivileged(Native Method) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993) >... 14 more > Nested Exception: > java.lang.No
Re: Axis2 osgi bundle on Tomcat+servletbridge
Did you start the Axis2 bundle? In WEB-INF/eclipse/configuration/config.ini add the Axis2 bundle to the list of osgi.bundles [EMAIL PROTECTED],... Lawrence techi_amol <[EMAIL PROTECTED]> 07/02/2008 01:57 PM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Axis2 osgi bundle on Tomcat+servletbridge Hi All, i followed the instructions given in axis2_osgi_integration.pdf, and instead of using equinox standalone with embedded Jetty, I tried to do the same thing on Tomcat, with servletbridge.war hosting the equinox osgi env. (For more details please refer http://www.nabble.com/-Axis2--Axis2-OSGi-bundle.-Phase-1-td18046920.html) However, when i try to start org.apache.axis2.osgi_1.0.0.SNAPSHOT bundle, i get the following exception org.osgi.framework.BundleException: Exception in org.apache.axis2.osgi.internal.Activator.start() of bundle org.apache.axis2.osgi. at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260) at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252) at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:294) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:279) at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:214) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NoClassDefFoundError at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) at org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) at org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68) at org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.createConfigurationContext(OSGiConfigurationContextFac tory.java:51) at org.apache.axis2.osgi.InitServlet.init(InitServlet.java:45) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:65) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:141) at org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50) at org.apache.axis2.osgi.internal.Activator$HttpServiceTracker.addingService(Activator.java:76) at org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) at org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330) at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274) at org.apache.axis2.osgi.internal.Activator.start(Activator.java:45) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993) ... 14 more Nested Exception: java.lang.NoClassDefFoundError at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) at org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) at org.apache.axis2.
Re: Axis2 osgi bundle on Tomcat+servletbridge
I'll looking to this and let you know the result asap. Saminda On Wed, Jul 2, 2008 at 11:27 PM, techi_amol <[EMAIL PROTECTED]> wrote: > > Hi All, > > i followed the instructions given in axis2_osgi_integration.pdf, and > instead > of using equinox standalone with embedded Jetty, I tried to do the same > thing on Tomcat, with servletbridge.war hosting the equinox osgi env. (For > more details please refer > http://www.nabble.com/-Axis2--Axis2-OSGi-bundle.-Phase-1-td18046920.html) > > However, when i try to start org.apache.axis2.osgi_1.0.0.SNAPSHOT bundle, i > get the following exception > > org.osgi.framework.BundleException: Exception in > org.apache.axis2.osgi.internal.Activator.start() of bundle > org.apache.axis2.osgi. > >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1018) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:974) >at > > org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346) >at > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260) >at > > org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:252) >at > > org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:260) >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >at java.lang.reflect.Method.invoke(Method.java:585) >at > > org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:294) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:279) >at > > org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:214) >at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.NoClassDefFoundError >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) >at > > org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) >at > > org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) >at > > org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) >at > > org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61) >at > > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68) >at > > org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.createConfigurationContext(OSGiConfigurationContextFac > tory.java:51) >at org.apache.axis2.osgi.InitServlet.init(InitServlet.java:45) >at > > org.eclipse.equinox.http.servlet.internal.ServletRegistration.init(ServletRegistration.java:65) >at > > org.eclipse.equinox.http.servlet.internal.ProxyServlet.registerServlet(ProxyServlet.java:141) >at > > org.eclipse.equinox.http.servlet.internal.HttpServiceImpl.registerServlet(HttpServiceImpl.java:50) >at > > org.apache.axis2.osgi.internal.Activator$HttpServiceTracker.addingService(Activator.java:76) >at > > org.osgi.util.tracker.ServiceTracker$Tracked.trackAdding(ServiceTracker.java:1064) >at > > org.osgi.util.tracker.ServiceTracker$Tracked.trackInitialServices(ServiceTracker.java:926) >at > org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:330) >at > org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:274) >at org.apache.axis2.osgi.internal.Activator.start(Activator.java:45) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999) >at java.security.AccessController.doPrivileged(Native Method) >at > > org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993) >... 14 more > Nested Exception: > java.lang.NoClassDefFoundError >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:596) >at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581) >at > > org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97) >at > > org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:90) >at > > org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:80) >at > > org.apache.axis2.osgi.deplo