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 zhangFriend
Messages: 49
Registered: July 2009
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 ''. 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 pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF
at pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac
at pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto
at y$1.getObject(
at anRegistry.getSingleton( 2)
at y.doGetBean(
at y.getBean(
at nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:557)
at xt.finishBeanFactoryInitialization(AbstractApplicationContex
at ecutionApplicationContext.access$1600(AbstractDelegatedExecu
at ecutionApplicationContext$
at org.springframework.osgi.util.internal.PrivilegedUtils.execu teWithCustomTCCL(
at ecutionApplicationContext.completeRefresh(AbstractDelegatedE
at tup.DependencyWaiterApplicationContextExecutor$CompleteRefre 32)
at utor$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Threa
at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(
at java.lang.Class.getMethod0(
at java.lang.Class.getMethod(
at org.springframework.beans.BeanUtils.findMethod(BeanUtils.jav a:162)
at pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa
at pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe
at pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF
... 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(
at java.lang.ClassLoader.loadClass(
... 25 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.transaction.TransactionManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(
at org.eclipse.virgo.kernel.userregion.internal.equinox.KernelB undleClassLoader.loadClass(
... 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 NormingtonFriend
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 zhangFriend
Messages: 49
Registered: July 2009
The issue is resolved. see

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: Sun Apr 22 16:31:20 GMT 2018

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

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