Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » javax.servlet.http.HttpServlet(Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet)
javax.servlet.http.HttpServlet [message #669913] Thu, 12 May 2011 04:06 Go to next message
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
So, how do I get a HttpServlet exposed to my bundle?

I tried including it in the manifest, but to no avail:
Import-Package: javax.servlet;version="(0,2.5.0]",javax.servlet.http;version= "(0,2.5.0]"

[2011-05-11 19:09:25.428] http-8080-3                  <DE0006E> Start failed for bundle 'org.jboss.resteasy.plugins.server.osgi' version '1.1.0.GA'. org.eclipse.virgo.kernel.deployer.core.DeploymentException: BundleException
	at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.startBundle(StandardBundleDriver.java:170)
	at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.start(StandardBundleDriver.java:149)
	at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.doStart(StandardBundleInstallArtifact.java:253)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.driveDoStart(AbstractInstallArtifact.java:203)
	at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleInstallArtifact.start(StandardBundleInstallArtifact.java:242)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.start(PipelinedApplicationDeployer.java:285)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:195)
	at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:101)
	at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy162.deploy(Unknown Source)
	at org.eclipse.virgo.apps.admin.core.artifact.StandardArtifactService.deploy(StandardArtifactService.java:52)
	at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy168.deploy(Unknown Source)
	at org.eclipse.virgo.apps.admin.web.ArtifactController.deployFile(ArtifactController.java:136)
	at org.eclipse.virgo.apps.admin.web.ArtifactController.deploy(ArtifactController.java:127)
	at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:710)
	at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:167)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:414)
	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:402)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve.invoke(ApplicationNameTrackingValve.java:29)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:554)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:680)
Caused by: org.osgi.framework.BundleException: Exception in org.jboss.resteasy.plugins.server.osgi.internal.Activator.start() of bundle org.jboss.resteasy.plugins.server.osgi.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
	at org.eclipse.virgo.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:57)
	at org.eclipse.virgo.kernel.core.internal.StandardBundleStarter.start(StandardBundleStarter.java:45)
	at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
	at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
	at $Proxy60.start(Unknown Source)
	at org.eclipse.virgo.kernel.install.artifact.internal.bundle.StandardBundleDriver.startBundle(StandardBundleDriver.java:168)
	... 72 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedNoClassDefFoundError: javax/servlet/http/HttpServlet in KernelBundleClassLoader: [bundle=org.jboss.resteasy_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:141)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at org.jboss.resteasy.plugins.server.osgi.internal.Activator.start(Activator.java:38)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
	... 95 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedNoClassDefFoundError: javax/servlet/http/HttpServlet in KernelBundleClassLoader: [bundle=org.jboss.resteasy_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:243)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
	... 100 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedNoClassDefFoundError: javax/servlet/http/HttpServlet in KernelBundleClassLoader: [bundle=org.jboss.resteasy_1.1.0.GA] in KernelBundleClassLoader: [bundle=org.jboss.resteasy.plugins.server.osgi_1.1.0.GA]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:141)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:239)
	... 112 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedNoClassDefFoundError: javax/servlet/http/HttpServlet in KernelBundleClassLoader: [bundle=org.jboss.resteasy_1.1.0.GA]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:243)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:33)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:457)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
	... 118 common frames omitted
Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.defineClass(KernelBundleClassLoader.java:239)
	... 131 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoundException: javax.servlet.http.HttpServlet in KernelBundleClassLoader: [bundle=org.jboss.resteasy_1.1.0.GA]
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:139)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 136 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelBundleClassLoader.loadClass(KernelBundleClassLoader.java:135)
	... 137 common frames omitted
Re: javax.servlet.http.HttpServlet [message #670025 is a reply to message #669913] Thu, 12 May 2011 12:59 Go to previous messageGo to next message
Ivana Missing name is currently offline Ivana Missing nameFriend
Messages: 14
Registered: December 2010
Junior Member
You could try with project which I attached, did you add import packages info in template.mf?

In browser type:

http://localhost:8080/wf/action/session.htm

sessionId taken from httpServletRequest will be shown

[Updated on: Fri, 13 May 2011 07:17]

Report message to a moderator

Re: javax.servlet.http.HttpServlet [message #670120 is a reply to message #670025] Thu, 12 May 2011 17:36 Go to previous messageGo to next message
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
Hi Ivana, thanks for the WAR. I tried it and couldn't get it to work, although it did load in fine. However, I have been able to get my WAR to be recognized, but I was trying to get RESTEasy to be integrated into OSGI. I was hoping to have non-WAR OSGI bundles containing RESTful endpoints be managed by a central WAR listening for RESTful bundles to be loaded. I was following a blog post from last year, but it may be outdated by now. Back to the drawing board.
Re: javax.servlet.http.HttpServlet [message #670136 is a reply to message #670120] Thu, 12 May 2011 19:17 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 278
Registered: October 2010
Senior Member
Hi,

Can you give us more info i.e. what kind of artifacts your are trying to deploy, where they are placed, Virgo version etc.

BTW here I have posted one very simple web application bundle. If you want to try it your can put in pickup dir: http://www.eclipse.org/forums/index.php/m/651102/#msg_651102

Regards
Violeta
Re: javax.servlet.http.HttpServlet [message #670162 is a reply to message #670136] Thu, 12 May 2011 22:30 Go to previous messageGo to next message
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
Hi Violeta, that WAR does work.

I'm essentially trying to get RESTful services from RESTEasy to work in the OSGI container. I read a blog that was posted some time last year that suggested taking the RESTEasy JARs, turning them into an OSGI bundle, then there was a sample bundle with an Activator. I have yet to get that to work as expected. In the Activator, it tries to get the HttpService from the context, but gets a null, which then blows up:

	private class HttpServiceTracker extends ServiceTracker {

		public HttpServiceTracker(BundleContext context) {
			super(context, HttpService.class.getName(), null);
		}

		public Object addingService(ServiceReference reference) {
			// RESULTS IN A NULL
			HttpService httpService = (HttpService) context.getService(reference);


Maybe you can help shed some light on whether this is even possible, and I'll try to do the heavy lifting from there.

1) Create a common WAR that supports RESTEasy (although, there is no OSGI bundle for RE), which creates the Servlet context and starts listening for bundles to be registered
2) Create individual bundles (JARs) that contain RESTEasy endpoints and registers with OSGI when they are loaded
3) The common WAR bundle listener catches REST bundles and starts forwarding HTTP requests to their respective endpoints

Maybe there's another way I'm not thinking of, but ideally, I'd like to get my developers away from writing WARs for every set of APIs they want to provide. Instead, I want to give them the ability to create service bundles that are registered with the WAR and can start receiving requests without having to worry about the implementation of the web service and container. Phase 1 would be to just let them create their own bundles that provide the JAX-RS annotations on methods and then I could register those into the RE Servlet (if possible) and future phases would be a little more dynamic about it (not needing annotations).

Thoughts? Thanks!
Re: javax.servlet.http.HttpServlet [message #670167 is a reply to message #670162] Thu, 12 May 2011 22:46 Go to previous messageGo to next message
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
Oh, and to answer a few other of your questions

I attached the source for my RESTEasy Activator/Service (that I got from a blog, and tweaked to get to build)

Virgo Version - 2.1.1.RELEASE

RESTEasy Artifacts - I took the libs from 1.1.0.GA and put them in a JAR with a manifest that looks like this (which loads into Virgo fine) - this file is too large to attach here unfortunately:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: RESTEasy OSGI
Bundle-SymbolicName: org.jboss.resteasy
Bundle-Version: 1.1.0.GA
Bundle-ClassPath: .
Export-Package: org.jboss.resteasy.core,
 org.jboss.resteasy.plugins.server.servlet,
 org.jboss.resteasy.spi


I then created (well, took from a blog) another bundle that has an Activator, Service and a Servlet, and this one is the one that fails when trying to get HttpService (see the attached ZIP)
Manifest-Version: 1.0
Export-Package: org.jboss.resteasy.plugins.server.osgi;version="1.1.0.
 GA"
Unversioned-Imports: *
Bundle-Classpath: .
Built-By: rshelley
Bundle-Name: RESTEasy OSGi plugin
Created-By: Apache Maven
Bundle-Vendor: Davi Baldin H. Tavares
Build-Jdk: 1.6.0_24
Bundle-Version: 1.1.0.GA
Spring-DM-Version: 1.1.0-SNAPSHOT
Bundle-Activator: org.jboss.resteasy.plugins.server.osgi.internal.Acti
 vator
Bundle-ManifestVersion: 2
Import-Package: javax.servlet;version="[0,2.5.0]",javax.servlet.http;v
 ersion="[0,2.5.0]",org.apache.log4j,org.jboss.resteasy.core,org.jboss
 .resteasy.plugins.server.servlet,org.jboss.resteasy.spi,org.osgi.fram
 ework,org.osgi.service.http,org.osgi.util.tracker
Bundle-SymbolicName: org.jboss.resteasy.plugins.server.osgi
Archiver-Version: Plexus Archiver


So it's the attached ZIP (if you unzip and then "mvn clean install" on it, you should get a JAR) and it's this one that fails to load.
Re: javax.servlet.http.HttpServlet [message #670411 is a reply to message #669913] Fri, 13 May 2011 22:54 Go to previous messageGo to next message
rshelley  is currently offline rshelley Friend
Messages: 59
Registered: April 2010
Member
I think this may have been because I uploaded my bundle as a JAR and not a WAR. I'm still investigating....
Re: javax.servlet.http.HttpServlet [message #879574 is a reply to message #670411] Thu, 31 May 2012 13:05 Go to previous message
Kristina Taylor is currently offline Kristina TaylorFriend
Messages: 1
Registered: July 2009
Junior Member
Did you ever get this to work? I'm trying to do basically the same thing, and having the same problem.
Previous Topic:Some support
Next Topic:Virgo Startup Problem
Goto Forum:
  


Current Time: Fri Mar 29 12:25:58 GMT 2024

Powered by FUDForum. Page generated in 0.02496 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top