Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » ClassNotFoundException after update from M5 to M6
ClassNotFoundException after update from M5 to M6 [message #693281] Wed, 06 July 2011 07:43 Go to next message
Martin W. is currently offline Martin W.
Messages: 10
Registered: June 2011
Junior Member
Hello everybody,

I updated from 3.0.0.M5 to 3.0.0.M6 and got some bad ClassNotFoundExceptions, when deploying the very same bundles (which are actually Snap Bundles). I.e. the same bundle works on M5, but it does not on M6, with the same configuration and libraries in /repository/usr/. Finally I decided to go back to M5. However, I think there may be a bug...

The full log file is attached.

Best regards,
Martin


[2011-07-06 09:32:15.018] ERROR start-signalling-5           org.springframework.web.servlet.DispatcherServlet                 Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.thehiddenu.ui.service.ageservice.AgeServiceController; nested exception is java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:195)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:158)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:467)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
	at javax.servlet.GenericServlet.init(GenericServlet.java:244)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:71)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:1)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.doWithThreadContextClassLoader(ManagerUtils.java:36)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager.init(ServletManager.java:65)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.init(StandardVirtualContainer.java:85)
	at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:105)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:85)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:66)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229)
	at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:45)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:110)
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:85)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:191)
	... 55 common frames omitted

[2011-07-06 09:32:15.023] INFO  start-signalling-5           org.eclipse.virgo.medic.eventlog.default                         DE0005I Started bundle 'com.thehiddenu.ui.service.ageservice' version '1.0.0'. 
[2011-07-06 09:32:15.023] INFO  start-signalling-5           o.e.v.k.i.artifact.internal.bundle.BundleThreadContextManager     Thread context class loader 'KernelBundleClassLoader: [bundle=com.thehiddenu.ui.service.ageservice_1.0.0]' popped and set to 'KernelBundleClassLoader: [bundle=com.thehiddenu.ui.service.ageservice_1.0.0]' 
[2011-07-06 09:32:15.029] ERROR iLogServiceListener@6f03de90 org.osgi.service.log.LogService                                   Bundle org.eclipse.osgi_3.7.0.v20110224, An unexpected runtime error has occurred. org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.thehiddenu.ui.service.ageservice.AgeServiceController; nested exception is java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:195)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:158)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:467)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
	at javax.servlet.GenericServlet.init(GenericServlet.java:244)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:71)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:1)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.doWithThreadContextClassLoader(ManagerUtils.java:36)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager.init(ServletManager.java:65)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.init(StandardVirtualContainer.java:85)
	at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:105)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:85)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:66)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229)
	at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:45)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:110)
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:85)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:191)
	... 55 common frames omitted

[2011-07-06 09:32:15.029] INFO  iLogServiceListener@6f03de90 org.osgi.service.log.LogService                                   Bundle com.thehiddenu.ui.service.ageservice_1.0.0, Service 297, ServiceEvent REGISTERED 
[2011-07-06 09:32:15.036] ERROR iLogServiceListener@6f03de90 org.osgi.service.log.LogService                                   Bundle org.eclipse.virgo.snaps.core_3.0.0.M06, FrameworkEvent ERROR org.springframework.beans.factory.BeanDefinitionStoreException: Failed to load bean class: com.thehiddenu.ui.service.ageservice.AgeServiceController; nested exception is java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:195)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:158)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:479)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:467)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186)
	at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89)
	at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:442)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:458)
	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:339)
	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:306)
	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:127)
	at javax.servlet.GenericServlet.init(GenericServlet.java:244)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:71)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager$1.doWithClassLoader(ServletManager.java:1)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ManagerUtils.doWithThreadContextClassLoader(ManagerUtils.java:36)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.ServletManager.init(ServletManager.java:65)
	at org.eclipse.virgo.snaps.core.internal.webapp.container.StandardVirtualContainer.init(StandardVirtualContainer.java:85)
	at org.eclipse.virgo.snaps.core.internal.webapp.WebAppSnap.init(WebAppSnap.java:105)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.hostPublished(SnapFactoryMonitor.java:170)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.searchForExistingHost(SnapFactoryMonitor.java:288)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.registerHostListener(SnapFactoryMonitor.java:139)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.start(SnapFactoryMonitor.java:132)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor$SnapBinder.access$0(SnapFactoryMonitor.java:131)
	at org.eclipse.virgo.snaps.core.internal.SnapFactoryMonitor.addingService(SnapFactoryMonitor.java:74)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:980)
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:262)
	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:234)
	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:941)
	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.createAndRegisterSnapFactoryService(SnapLifecycleListener.java:85)
	at org.eclipse.virgo.snaps.core.internal.deployer.SnapLifecycleListener.onStarted(SnapLifecycleListener.java:66)
	at org.eclipse.virgo.kernel.install.artifact.internal.StandardArtifactStateMonitor.onStarted(StandardArtifactStateMonitor.java:247)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(AbstractInstallArtifact.java:294)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(AbstractInstallArtifact.java:291)
	at org.eclipse.virgo.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(AbstractInstallArtifact.java:229)
	at org.eclipse.virgo.kernel.core.internal.BundleStartTracker$1.run(BundleStartTracker.java:143)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: class path resource [com/thehiddenu/ui/host/controller/AbstractServiceExecutionController.class] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
	at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:45)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
	at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
	at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:76)
	at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:110)
	at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:85)
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:191)
	... 55 common frames omitted



  • Attachment: log.log
    (Size: 1.33MB, Downloaded 102 times)
Re: ClassNotFoundException after update from M5 to M6 [message #693290 is a reply to message #693281] Wed, 06 July 2011 08:05 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
There was a backwards incompatible change in M06 which is probably affecting your application. Please see the release notes in relation to Bug 326798 which tightens up the processing of Web Application Bundle manifest headers. Essentially you need to specify the Bundle-Classpath header so you can pick up the relevant class path resources. Alternatively, there is temporary way of switching back to the old semantics if you prefer by setting the following property value in config/org.eclipse.virgo.web.properties:

WABHeaders=defaulted

as described in the User Guide.
Re: ClassNotFoundException after update from M5 to M6 [message #693303 is a reply to message #693290] Wed, 06 July 2011 08:33 Go to previous messageGo to next message
Jean-Pierre Bergamin is currently offline Jean-Pierre Bergamin
Messages: 51
Registered: March 2011
Location: Zürich, CH
Member
We also face issues with class loading after switching to M06, but the error looks a bit different:

.....
.....
[2011-07-06 10:27:14.068] ERROR Thread-52                    org.springframework.web.context.ContextLoader                     Context initialization failed org.springframework.beans.factory.BeanCreationException: Error crea
ting bean with name 'producerTemplate': Cannot resolve reference to bean 'camel-2' while setting bean property 'camelContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camel-2': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.example.web.internal.AccessDeniedHandler] for bean with name '
accessDeniedHandler' defined in ServletContext resource [/WEB-INF/spring/security-http-authentication-context.xml]; nested exception is java.lang.ClassNotFoundException: com.example.web.internal.AccessDeniedHandler not found
 from bundle [com.example.jsp-compilation]
.....
.....
.....
Caused by: java.lang.ClassNotFoundException: com.example.web.internal.AccessDeniedHandler
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
.....
.....

The class that cannot be found is a class of the web bundle itself.
I tried to set WABHeaders=defaulted in the org.eclipse.virgo.web.properties file, but the error still exists.

Any ideas?
Re: ClassNotFoundException after update from M5 to M6 [message #693311 is a reply to message #693290] Wed, 06 July 2011 08:48 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
I've added a new section to the release notes as this thread is evidence that there wasn't enough emphasis on the backward incompatible change.
Re: ClassNotFoundException after update from M5 to M6 [message #693313 is a reply to message #693303] Wed, 06 July 2011 08:50 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Jean-Pierre Bergamin wrote on Wed, 06 July 2011 09:33
We also face issues with class loading after switching to M06, but the error looks a bit different:

.....
.....
[2011-07-06 10:27:14.068] ERROR Thread-52                    org.springframework.web.context.ContextLoader                     Context initialization failed org.springframework.beans.factory.BeanCreationException: Error crea
ting bean with name 'producerTemplate': Cannot resolve reference to bean 'camel-2' while setting bean property 'camelContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camel-2': Invocation of init method failed; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.example.web.internal.AccessDeniedHandler] for bean with name '
accessDeniedHandler' defined in ServletContext resource [/WEB-INF/spring/security-http-authentication-context.xml]; nested exception is java.lang.ClassNotFoundException: com.example.web.internal.AccessDeniedHandler not found
 from bundle [com.example.jsp-compilation]
.....
.....
.....
Caused by: java.lang.ClassNotFoundException: com.example.web.internal.AccessDeniedHandler
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
.....
.....

The class that cannot be found is a class of the web bundle itself.
I tried to set WABHeaders=defaulted in the org.eclipse.virgo.web.properties file, but the error still exists.

Any ideas?


Hmmm. That sounds like a bug. Did you restart Virgo after changing that property?
Re: ClassNotFoundException after update from M5 to M6 [message #693351 is a reply to message #693313] Wed, 06 July 2011 09:53 Go to previous messageGo to next message
Jean-Pierre Bergamin is currently offline Jean-Pierre Bergamin
Messages: 51
Registered: March 2011
Location: Zürich, CH
Member
Yes. I restarted it.

What I have missed is what we'd need to change in our manifest to support the new "strict" mode anyway.
Re: ClassNotFoundException after update from M5 to M6 [message #693358 is a reply to message #693351] Wed, 06 July 2011 10:09 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
You need to provide correct values for the following headers: Bundle-ManifestVersion (normally set to 2), Bundle-SymbolicName, Bundle-ClassPath normally set to WEB-INF/classes followed by the JARs in WEB-INF/lib in an unspecified order, followed by any transitive dependencies declared by the JARs in WEB-INF/lib, and Import-Package. This is described in the Programmer Guide.
Re: ClassNotFoundException after update from M5 to M6 [message #693378 is a reply to message #693358] Wed, 06 July 2011 11:10 Go to previous messageGo to next message
Jean-Pierre Bergamin is currently offline Jean-Pierre Bergamin
Messages: 51
Registered: March 2011
Location: Zürich, CH
Member
Now I see... I've added the entry "Bundle-Classpath: WEB-INF/classes" to the manifest and now the WAB starts.

Setting WABHeaders=defaulted had no effect though.
Re: ClassNotFoundException after update from M5 to M6 [message #693396 is a reply to message #693358] Wed, 06 July 2011 11:38 Go to previous message
Martin W. is currently offline Martin W.
Messages: 10
Registered: June 2011
Junior Member
Adding "Bundle-Classpath: WEB-INF/classes" did the trick for me too.

Glyn, thank you very much! And thanks for extending the release notes! Cool

Best Regards,
Martin
Previous Topic:WAB and Bundle-ClassPath
Next Topic:V3M6: Questions regarding configuration and servlet container versions
Goto Forum:
  


Current Time: Wed Sep 17 09:43:07 GMT 2014

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

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