<html><body><div style="font-family: Arial; font-size: 12pt; color: #000000"><div>Lincoln,</div><div><br></div><div>I didn't want to try to bite off more then I can chew at once. Hence I want to make sure I can load windup via forge/furnace before I also try to switch over to using the new windup. If I can load one version with forge then I can load any version. But right now I can't load the version I had working, which means if I tried to switch to loading Windup 2.0 I would be dealing with new API and class loading issues at the same time.</div><div><br></div><div>So first goal, load windup 1 via forge, once I can see I can do that, then I can switch out for windup 2.</div><div><br></div><div>I have a hunch about the class loading issues, but I will put that conversation on the forge forum because it seems the best place.</div><div><br></div><div>Blue Skies,</div><div>~Ian</div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Lincoln Baxter, III" <lincolnbaxter@gmail.com><br><b>To: </b>"Windup-dev List" <windup-dev@lists.jboss.org><br><b>Sent: </b>Monday, December 15, 2014 4:22:57 PM<br><b>Subject: </b>Re: [windup-dev] org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier<br><div><br></div><div dir="ltr">Hey Ian,<div><br></div><div>Glad to see you! Sorry you're having trouble getting this up and running again (as you said, not sure we ever did get it there.)</div><div><br></div><div>At this point, I would abandon using the Legacy windup codebase. We've long since stopped working on it. My suggestion, now, would be to update to the Windup 2.0.0.Beta6 (or SNAPSHOT) version, and start picking things up from there.</div><div><br></div><div>As I recall, we weren't ready at the time of your last attempt, to produce a report, or information that you could consume in Eclipse, but I do believe we are at that point now.</div><div><br></div><div>To answer some of your questions:</div><div><ul><li>The addon needs to contain any required JARs from libraries that are included. It won't go out and find things on the fly - everything must be bundled.</li><li>The new entry point for Windup is used here in WindupCommand (you should be able to use this as an example): <a href="https://github.com/windup/windup/blob/master/ui/src/main/java/org/jboss/windup/ui/WindupCommand.java#L249" target="_blank">https://github.com/windup/windup/blob/master/ui/src/main/java/org/jboss/windup/ui/WindupCommand.java#L249</a> - </li><li>You pretty much just need to ask Furnace for instances of: <table style="border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif,'Segoe UI Emoji','Segoe UI Symbol';font-size:13px;line-height:18.2000007629395px" class="mceItemTable"><tbody><tr><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"><br></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:;border-width:0px 1px 0px 0px"><br></td><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"><span>org.jboss.windup.graph.GraphContextFactory</span>;</td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:;border-width:0px 1px 0px 0px"></td><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"></td></tr><tr><td style="padding:0px 10px;width:50px;min-width:50px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:18px;color:;border-width:0px 1px 0px 0px"><br></td><td style="padding:0px 10px;font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;vertical-align:top;white-space:pre-wrap;overflow:visible"><span>org.jboss.windup.exec.WindupProcessor</span>;</td></tr></tbody></table></li></ul></div><div>The rest "should" be self explanatory via the example.</div><div><br></div><div><br></div><div>~Lincoln</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 11:56 AM, Ian Tewksbury <span dir="ltr"><<a href="mailto:itewksbu@redhat.com" target="_blank">itewksbu@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-family:Arial;font-size:12pt;color:rgb(0,0,0)"><div>Robb,<br></div><div><br></div><div>I am not using it. Windup is attempting to use it as it is loading its rules. This issue is not really spring specfic, spring just happens to be the first JAR that is having issues being loaded. The issue is indicitive of a larger problem. Forge/Furnace is not getting queried when trying to load classes that are in JARs provided by the addon.</div><div><br></div><div>Blue Skies,</div><div>~Ian</div><div><br></div><hr><div style="color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>"Robb Greathouse" <<a href="mailto:robb.greathouse@redhat.com" target="_blank">robb.greathouse@redhat.com</a>><br><b>To: </b>"Windup-dev List" <<a href="mailto:windup-dev@lists.jboss.org" target="_blank">windup-dev@lists.jboss.org</a>><br><b>Sent: </b>Monday, December 15, 2014 11:35:34 AM<br><b>Subject: </b>Re: [windup-dev] org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier<div><div><br><div><br></div><div style="font-family:garamond,'new york',times,serif;font-size:12pt;color:rgb(0,0,0)"><div>Hi,<br></div><div><br></div><div>Quick question. How do you use springframework in eclipse?</div><div><br></div><div><span></span><br>Robb Greathouse<br>Chief Evangelist<br>Middleware Business Unit<br>JBoss, a Division of Red Hat<br>cellphone <a href="tel:505-507-4906" target="_blank">505-507-4906</a><span></span><br></div><div><br></div><hr><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div style="font-family:Arial;font-size:12pt;color:rgb(0,0,0)"><div><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif">Linconln,</span></p><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif"><br></span></p><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif">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?</span></p><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif"><br></span></p><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif">Blue Skies,</span></p><p style="margin:0px"><span style="font-family:arial,helvetica,sans-serif">~Ian</span></p><p style="margin:0px"><br></p><p style="margin:0px"><span style="font-family:'courier new',courier,monaco,monospace,sans-serif">java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at java.lang.Class.getDeclaredMethods0(Native Method)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at java.lang.Class.getDeclaredMethods(Class.java:1855)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.SecurityActions.getDeclaredMethods(SecurityActions.java:30)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.getMethods(ProxyFactory.java:1121)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.getMethods(ProxyFactory.java:1098)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.makeSortedMethodList(ProxyFactory.java:803)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.computeSignature(ProxyFactory.java:810)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:398)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$3.call(ClassLoaderAdapterCallback.java:987)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhance(ClassLoaderAdapterCallback.java:900)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.enhanceResult(ClassLoaderAdapterCallback.java:277)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.access$200(ClassLoaderAdapterCallback.java:37)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback$2.call(ClassLoaderAdapterCallback.java:124)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.forge.furnace.proxy.ClassLoaderAdapterCallback.invoke(ClassLoaderAdapterCallback.java:96)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.windup.WindupFactory_$$_javassist_ffb85582-a284-4183-a727-6db372ddc32c.createWindupEngine(WindupFactory_$$_javassist_ffb85582-a284-4183-a727-6db372ddc32c.java)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.tools.windup.core.WindupService.getWindupEngine(WindupService.java:391)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.tools.windup.core.WindupService.getWindupReportEngine(WindupService.java:412)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.tools.windup.core.WindupService.generateReport(WindupService.java:250)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.tools.windup.core.WindupService.generateReport(WindupService.java:186)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.jboss.tools.windup.ui.internal.commands.GenerateWindupReportHandler$1.run(GenerateWindupReportHandler.java:78)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif">Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext cannot be found by org.jboss.tools.windup.runtime_3.1.0.qualifier</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)</span><br><span style="font-family:'courier new',courier,monaco,monospace,sans-serif"> ... 24 more</span></p></div></div><br>_______________________________________________<br>windup-dev mailing list<br><a href="mailto:windup-dev@lists.jboss.org" target="_blank">windup-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/windup-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a></blockquote><div><br></div></div><br>_______________________________________________<br>windup-dev mailing list<br><a href="mailto:windup-dev@lists.jboss.org" target="_blank">windup-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/windup-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a></div></div></div><div><br></div></div></div><br>_______________________________________________<br>
windup-dev mailing list<br>
<a href="mailto:windup-dev@lists.jboss.org" target="_blank">windup-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/windup-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/windup-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Lincoln Baxter, III<br><a href="http://ocpsoft.org" target="_blank">http://ocpsoft.org</a><br>"Simpler is better."</div>
</div></div>
<br>_______________________________________________<br>windup-dev mailing list<br>windup-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/windup-dev</div><div><br></div></div></body></html>