[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [virgo-dev] having trouble consuming httpService of org.eclipse.equinox.http in eclipse virgo.




On Sun, Jun 22, 2014 at 7:17 PM, Johnson Abraham <johnson.ajar@xxxxxxxxx> wrote:
Hi,
I am new to eclipse Virgo. I am trying to register a servlet using org.osgi.service.http.HttpService.
I am using gemini blueprint to consume the httpService and register the servlet.
I following the instruction in the following link
http://chrisfrost.com/osgi/extending-virgo-with-a-httpservice/
included the org.eclipse.equinox.http in the oonfiguration file org.eclipse.virgo.kernel.userregion.properties

I have included the port info in the launch configuration of Virgo Runtime.
-Dorg.osgi.service.http.port=8082
I have attached a zip file containing my sample project and the configuration for eclipse jetty virgo and the logs.



I get the below exception when start

[2014-06-22 18:01:09.445] ERRORÂ TCP Connection(2)-127.0.0.1 org.eclipse.virgo.kernel.deployer.management.StandardDeployerÂÂÂÂ Exception filtered from JMX invocation org.eclipse.virgo.nano.deployer.api.core.DeploymentException: Error creating bean with name 'simpleService': FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: javax.servlet.ServletException
ÂÂÂ at org.eclipse.virgo.kernel.deployer.core.internal.BlockingSignal.awaitCompletion(BlockingSignal.java:87)
ÂÂÂ at org.eclipse.virgo.kernel.deployer.core.internal.BlockingAbortableSignal.awaitCompletion(BlockingAbortableSignal.java:63)
ÂÂÂ at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.start(PipelinedApplicationDeployer.java:377)
ÂÂÂ at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.deploy(PipelinedApplicationDeployer.java:258)
ÂÂÂ at org.eclipse.virgo.kernel.deployer.management.StandardDeployer.deploy(StandardDeployer.java:52)
ÂÂÂ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ÂÂÂ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
ÂÂÂ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
ÂÂÂ at java.lang.reflect.Method.invoke(Method.java:618)
ÂÂÂ at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:87)
ÂÂÂ at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
ÂÂÂ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
ÂÂÂ at java.lang.reflect.Method.invoke(Method.java:618)
ÂÂÂ at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:291)
ÂÂÂ at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:205)
ÂÂÂ at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:187)
ÂÂÂ at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:129)
ÂÂÂ at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:66)
ÂÂÂ at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:249)
ÂÂÂ at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:150)
ÂÂÂ at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:264)
ÂÂÂ at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:831)
ÂÂÂ at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:813)
ÂÂÂ at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1498)
ÂÂÂ at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:108)
ÂÂÂ at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1339)
ÂÂÂ at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1431)
ÂÂÂ at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:859)
ÂÂÂ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ÂÂÂ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
ÂÂÂ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
ÂÂÂ at java.lang.reflect.Method.invoke(Method.java:618)
ÂÂÂ at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:339)
ÂÂÂ at sun.rmi.transport.Transport$1.run(Transport.java:189)
ÂÂÂ at sun.rmi.transport.Transport$1.run(Transport.java:186)
ÂÂÂ at java.security.AccessController.doPrivileged(AccessController.java:366)
ÂÂÂ at sun.rmi.transport.Transport.serviceCall(Transport.java:185)
ÂÂÂ at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
ÂÂÂ at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:823)
ÂÂÂ at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
ÂÂÂ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
ÂÂÂ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
ÂÂÂ at java.lang.Thread.run(Thread.java:804)
Caused by: java.lang.NoClassDefFoundError: javax.servlet.ServletException
ÂÂÂ at java.lang.Class.getDeclaredMethodsImpl(Native Method)
ÂÂÂ at java.lang.Class.getDeclaredMethods(Class.java:783)
ÂÂÂ at org.springframework.aop.framework.JdkDynamicAopProxy.findDefinedEqualsAndHashCodeMethods(JdkDynamicAopProxy.java:127)
ÂÂÂ at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:116)
ÂÂÂ at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:112)
ÂÂÂ at org.eclipse.gemini.blueprint.service.util.internal.aop.ProxyUtils.createProxy(ProxyUtils.java:68)
ÂÂÂ at org.eclipse.gemini.blueprint.service.util.internal.aop.ProxyUtils.createProxy(ProxyUtils.java:37)
ÂÂÂ at org.eclipse.gemini.blueprint.service.importer.support.AbstractServiceProxyCreator.createServiceProxy(AbstractServiceProxyCreator.java:105)
ÂÂÂ at org.eclipse.gemini.blueprint.service.importer.support.OsgiServiceProxyFactoryBean.createProxy(OsgiServiceProxyFactoryBean.java:181)
ÂÂÂ at org.eclipse.gemini.blueprint.service.importer.support.AbstractServiceImporterProxyFactoryBean.getObject(AbstractServiceImporterProxyFactoryBean.java:95)
ÂÂÂ at org.eclipse.gemini.blueprint.service.importer.support.OsgiServiceProxyFactoryBean.getObject(OsgiServiceProxyFactoryBean.java:125)
ÂÂÂ at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
ÂÂÂ at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
ÂÂÂ at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1441)
ÂÂÂ at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:248)
ÂÂÂ at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
ÂÂÂ at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:581)
ÂÂÂ at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
ÂÂÂ at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
ÂÂÂ at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
ÂÂÂ at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
ÂÂÂ at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
ÂÂÂ at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
ÂÂÂ at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:95)
ÂÂÂ ... 3 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletException
ÂÂÂ at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
ÂÂÂ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
ÂÂÂ at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
ÂÂÂ at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
ÂÂÂ at java.lang.ClassLoader.loadClass(ClassLoader.java:707)
ÂÂÂ ... 27 common frames omitted


Not sure how to fix this issue Please can anybody help me thanks.