<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Use Axon.ivy Engine libraries in a plain Java process (Not Supported)</title><link>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported</link><description>&lt;p&gt;Hi everybody,&lt;/p&gt;
&lt;p&gt;In my project in designer 7.0.8 I've Axon.ivy Libraries who are available.&lt;/p&gt;
&lt;p&gt;Like commons-io-2.5.jar from apache.&lt;/p&gt;
&lt;p&gt;I'm using a class from this jar, in designer it works fine.&lt;/p&gt;
&lt;p&gt;But when I'm starting my project into the engine I get a classpath exception.&lt;/p&gt;
&lt;p&gt;I searched into the Engine documentation and plugins / lib - this jar is not present.&lt;/p&gt;
&lt;p&gt;How can I solve this problem? and why are not all the Axon.ivy libraries who are in Designer in the classpath not present in the Engine? What should we do, manually copy all the jars into the engine and add them into the classpath or as a plugins? in version 6 there were available.&lt;/p&gt;
&lt;p&gt;It's weird because now we have Axon.ivy Libraries (who are provided in all projects) and optional classpaths to add like Axis or Drools libraries. All the libraries contained into the optional classpaths are present in the Engine plugins directory. But the Axon.ivy Libraries who are automatically available in the Designer without adding extra classpath containers are not all available... It sounds so weird to me...&lt;/p&gt;
&lt;p&gt;Thanks for the information and cheers, 
Axon Ivy Developer&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 05 Nov 2018 03:01:34 -0500</lastBuildDate><item><title>Answer by AxonIvyDeveloper</title><link>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3529</link><description>&lt;p&gt;Ok I found already a part of the answer:&lt;/p&gt;
&lt;p&gt;If provided jar is removed from the osgi environnent we can add it to the ear and to the ear classpath. I still dont know If old pmv dependencies are still going to work.&lt;/p&gt;
&lt;p&gt;Do somebody know anything related to old pmv migration? Are the dependencies also persisted?&lt;/p&gt;
&lt;p&gt;I believe that the dependencies of each ears are persisted with the PMV version in the Axon temp folder. So that when we migrate to a new Axon Ivy Version we don't have to provide 2 or 3 different versions of Hibernate, or JSF or some random lib that were removed.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AxonIvyDeveloper</dc:creator><pubDate>Mon, 05 Nov 2018 03:01:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3529</guid></item><item><title>Answer by AxonIvyDeveloper</title><link>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3506</link><description>&lt;p&gt;Actually I found a new one, before the documentation or anything is updated I want to report again that some library are not in both available:&lt;/p&gt;
&lt;p&gt;This time I found that javax.inject-1.jar is present in the Designer Axon.Ivy base libaries but not in the Engine!&lt;/p&gt;
&lt;p&gt;I searched in the documentation and I cannot find any entries in the &lt;a href="https://developer.axonivy.com/doc/7.0.latest/readme-engine"&gt;https://developer.axonivy.com/doc/7.0.latest/readme-engine&lt;/a&gt; for the text inject!&lt;/p&gt;
&lt;p&gt;Last time sadly I saw the problem and needed to wait 3 weeks before that someone answered, so a lot of thing can change in 3 weeks but today the 25.10.2018 I really didn't found anything about the javax.inject library in the engine readme, but this is present in the designer.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/missingLibProof.png"&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help and cheers,
Axon Ivy developer&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AxonIvyDeveloper</dc:creator><pubDate>Thu, 25 Oct 2018 05:18:27 -0400</pubDate><guid>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3506</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3493</link><description>&lt;p&gt;We rely on a proper OSGi classpath. So we can avoid ClassLoading problems and dependency resolution conflicts (aka JAR-Hell). 
Trying to run normal Java-Code with our OSGi bundle JARs is not recommended or supported. So you should not use your own Main class or similar. But you can run any java code safely within our IvyProject environment.&lt;/p&gt;
&lt;p&gt;If you face classloading issues in build process with maven you could share a flat classpath of the engine to provide build dependencies. But not to run an Java process on it. See &lt;a href="https://axonivy.github.io/project-build-plugin/release/7.0/share-engine-core-classpath-mojo.html"&gt;https://axonivy.github.io/project-build-plugin/release/7.0/share-engine-core-classpath-mojo.html&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 23 Oct 2018 06:14:46 -0400</pubDate><guid>https://answers.axonivy.com/questions/3483/use-axon-ivy-engine-libraries-in-a-plain-java-process-not-supported/3493</guid></item></channel></rss>