[windup-dev] org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier

Ian Tewksbury itewksbu at redhat.com
Sun Dec 14 10:39:19 EST 2014


I posted a question to the Forge forums with more details and in case there is anyone else out there that may have a clue as to what is going on: 

https://developer.jboss.org/message/913521#913521 

Blue Skies, 
~Ian 

----- Original Message -----

From: "Ian Tewksbury" <itewksbu at redhat.com> 
To: "Lincoln Baxter" <lbaxter at redhat.com> 
Cc: "Windup-dev List" <windup-dev at lists.jboss.org> 
Sent: Saturday, December 13, 2014 7:58:21 PM 
Subject: Re: [windup-dev] org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier 

Lioncoln, 

I put a breakpoint in CompositeFurnaceClassLoader.loadClass and it is never being called to try and load the ApplicaitonContext so that may explain why it can not be found. But I do not know enough about how this CompositeFurnaceClassLoader is injected into the class loading process to know why it is not even being called to load the ApplicaitonContext class. 

Blue Skies, 
~Ian 

----- Original Message -----

From: "Ian Tewksbury" <itewksbu at redhat.com> 
To: "Lincoln Baxter" <lbaxter at redhat.com> 
Cc: "Windup-dev List" <windup-dev at lists.jboss.org> 
Sent: Saturday, December 13, 2014 7:45:21 PM 
Subject: [windup-dev] org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier 



Linconln, 




I am trying to get Eclipse to be able to load windup legacy with Forge and have run into the error I think I was running into months ago when I last tried this. The legacy-windup-engine depends on ApplicationContext as a maven dependency but Eclipse/Forage does not seem to be able find the dependency. I have honestly forget how Forge is supposed to work at this point. I thought Forge should automatically be finding all the required dependencies of the jars in the add-on. But maybe I am crazy. Does the addon need to include all the jars that the legacy-windup jars depend on? 




Blue Skies, 

~Ian 




java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext 
at java.lang.Class.getDeclaredMethods0(Native Method) 
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531) 
at java.lang.Class.getDeclaredMethods(Class.java:1855) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.SecurityActions.getDeclaredMethods(SecurityActions.java:30) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.getMethods(ProxyFactory.java:1121) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.getMethods(ProxyFactory.java:1098) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.makeSortedMethodList(ProxyFactory.java:803) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.computeSignature(ProxyFactory.java:810) 
at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:398) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$3.call(ClassLoaderAdapterCallback.java:987) 
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhance(ClassLoaderAdapterCallback.java:900) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhanceResult(ClassLoaderAdapterCallback.java:277) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.access$200(ClassLoaderAdapterCallback.java:37) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124) 
at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42) 
at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96) 
at org.jboss.windup.WindupFactory_$$_javassist_ffb85582-a284-4183-a727-6db372ddc32c.createWindupEngine(WindupFactory_$$_javassist_ffb85582-a284-4183-a727-6db372ddc32c.java) 
at org.jboss.tools.windup.core.WindupService.getWindupEngine(WindupService.java:391) 
at org.jboss.tools.windup.core.WindupService.getWindupReportEngine(WindupService.java:412) 
at org.jboss.tools.windup.core.WindupService.generateReport(WindupService.java:250) 
at org.jboss.tools.windup.core.WindupService.generateReport(WindupService.java:186) 
at org.jboss.tools.windup.ui.internal.commands.GenerateWindupReportHandler$1.run(GenerateWindupReportHandler.java:78) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier 
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432) 
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345) 
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337) 
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:358) 
... 24 more 

_______________________________________________ 
windup-dev mailing list 
windup-dev at lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/windup-dev 


_______________________________________________ 
windup-dev mailing list 
windup-dev at lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/windup-dev 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/windup-dev/attachments/20141214/a75c111f/attachment.html 


More information about the windup-dev mailing list