Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » NoClassDefFoundError on Virgo Web Server M5
NoClassDefFoundError on Virgo Web Server M5 [message #631598] Fri, 08 October 2010 07:26 Go to next message
guofeng zhang is currently offline guofeng zhang
Messages: 49
Registered: July 2009
Member
My bundle publish "javax.transaction.UserTransaction" using Atomikos 3.6.5. It works well on Virgo Web Server M4, but it failed on M5.

Is it a known issue due to the directory layout change in M5?

[2010-10-08 15:10:19.694] start-signalling-3 org.eclipse.virgo.medic.eventlog.default DE0006E Start failed for bundle 'org.planner.infrastructure.jtatransaction' version '1.0.0.201009211243'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userTransactionService' defined in URL [ bundleentry://81.fwk12296027/META-INF/spring/module-context. xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:22 2)
at org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:557)
at org.springframework.context.support.AbstractApplicationConte xt.finishBeanFactoryInitialization(AbstractApplicationContex t.java:842)
at org.springframework.osgi.context.support.AbstractDelegatedEx ecutionApplicationContext.access$1600(AbstractDelegatedExecu tionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedEx ecutionApplicationContext$4.run(AbstractDelegatedExecutionAp plicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.execu teWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedEx ecutionApplicationContext.completeRefresh(AbstractDelegatedE xecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.star tup.DependencyWaiterApplicationContextExecutor$CompleteRefre shTask.run(DependencyWaiterApplicationContextExecutor.java:1 32)
at org.eclipse.virgo.kernel.agent.dm.ContextPropagatingTaskExec utor$2.run(ContextPropagatingTaskExecutor.java:95)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa dPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo lExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at org.springframework.beans.BeanUtils.findMethod(BeanUtils.jav a:162)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa bleBeanFactory.java:1483)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe anFactory.java:1468)
at org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1398)
... 17 common frames omitted
Caused by: org.eclipse.virgo.kernel.osgi.framework.ExtendedClassNotFoun dException: javax.transaction.TransactionManager in KernelBundleClassLoader: [bundle=com.atomikos.transactions-api_3.6.5]
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelB undleClassLoader.loadClass(KernelBundleClassLoader.java:139)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 25 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:460)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelB undleClassLoader.loadClass(KernelBundleClassLoader.java:135)
... 26 common frames omitted


Re: NoClassDefFoundError on Virgo Web Server M5 [message #631625 is a reply to message #631598] Fri, 08 October 2010 08:59 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
M05 removed the javax.transaction bundle from the kernel, but it is in the web server. If you are running the web server, this is unexpected and you should raise a bug. If you are running the kernel, you need to add the bundle to repository/usr.

Please note that M06 is built and will be publicised later today. The only change is to revert the directory layout changes which solves a tooling problem but which shouldn't make any difference to your problem.
Re: NoClassDefFoundError on Virgo Web Server M5 [message #632243 is a reply to message #631625] Tue, 12 October 2010 09:19 Go to previous message
guofeng zhang is currently offline guofeng zhang
Messages: 49
Registered: July 2009
Member
The issue is resolved. see https://bugs.eclipse.org/bugs/show_bug.cgi?id=327383

Previous Topic:GreenPages solution doesn't run on Virgo web server M06
Next Topic:Eclipse Virgo: the ideal OSGi server runtime?
Goto Forum:
  


Current Time: Tue Sep 30 11:59:36 GMT 2014

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

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