<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How do I find out from what .jar file my class gets loaded?</title><link>https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loaded</link><description>&lt;p&gt;In our project we encountered a problem where we had to re-deploy one of our web services.&lt;/p&gt;
&lt;p&gt;After changing the web service in Axon.ivy Designer and re-generating the code, we replace the .jar file in our deployment and restarted the engine again.&lt;/p&gt;
&lt;p&gt;Unfortunately, we couldn't see any of our code updates in the Engine. It seems that the Engine still has a copy of the old .jar file somewhere else in its path, but we can't find another copy.&lt;/p&gt;
&lt;p&gt;How do I find out where my updated class is loaded from?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loaded" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 17 Jul 2018 07:52:16 -0400</lastBuildDate><item><title>Answer by Andreas Rusch</title><link>https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loaded/3357</link><description>&lt;p&gt;It is possible to make the Engine (or more, Java) to print out all loaded classes and where they are loaded from with a simple JVM flag, &lt;code&gt;-verbose:class&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In order to get the Engine to do that you need to add this flag to the (maybe already existing) JVM flags specified in property &lt;code&gt;ivy.vm.additional.options&lt;/code&gt; in your .ILC file. How to do that follow the instruction here: &lt;a href="https://developer.axonivy.com/doc/latest/EngineGuideHtml/misc.html#misc-toolreference-ilc"&gt;Windows Program Launcher Configuration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Now after a restart of the Engine you will see these log entries in the file &lt;code&gt;{engine_name}.console&lt;/code&gt; in your &lt;code&gt;/log&lt;/code&gt; directory as the JVM will print them out to the console to &lt;code&gt;System.out&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Search for the first entry of your class. It should look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[Loaded functions.rfc.sap.document.sap_com.Z_CA_PUG_ORDER_CREATE_2Response$Factory from file:/&amp;lt;path_to_jar&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas Rusch</dc:creator><pubDate>Tue, 17 Jul 2018 07:52:16 -0400</pubDate><guid>https://answers.axonivy.com/questions/3356/how-do-i-find-out-from-what-jar-file-my-class-gets-loaded/3357</guid></item></channel></rss>