Questions asked by Michaelhttps://answers.axonivy.com/questions/asked-by/513/michael/?type=rssQuestions asked by <a href="/users/513/michael" >Michael</a>enThu, 27 Oct 2016 08:34:12 -0400Can I add a Java Project reference instead of a libraryhttps://answers.axonivy.com/questions/2142/can-i-add-a-java-project-reference-instead-of-a-library<p>Hi</p> <p>Is it possible to add a Java Project as project reference to the Java Build Path? Adding a project as a library works fine. Adding a Project as Project reference results in a ClassNotFoundException. <img alt="alt text" src="http://answers.axonivy.com/upfiles/javabuildpath.png"></p> <p>I also tried to add it to the packaging structure but still have the ClassNotFoundException. <img alt="alt text" src="http://answers.axonivy.com/upfiles/DeploymentAssembly.png"></p>MichaelThu, 27 Oct 2016 08:34:12 -0400https://answers.axonivy.com/questions/2142/can-i-add-a-java-project-reference-instead-of-a-librarydesignerjavaProject Build Plugin UTF-8 Encodinghttps://answers.axonivy.com/questions/2044/project-build-plugin-utf-8-encoding<p>Hi</p> <p>Is there a setting for the source encoding in the Project Build Plugin? Changing the default encoding (windows-1252) to UTF-8 results in a wrong class file.</p> <p>For example the following class</p> <pre><code>public class Test { private String test = "Hans im Glück"; } </code></pre> <p>results in the following class file</p> <pre><code>.... Hans im Glück .... </code></pre> <p>Compiling in the Designer results in the correct</p> <pre><code>... "Hans im Glück" ... </code></pre> <p>Regards</p> <p>Michael</p>MichaelFri, 23 Sep 2016 11:27:38 -0400https://answers.axonivy.com/questions/2044/project-build-plugin-utf-8-encodingmavendesignerbuildutf-8Use of Connection Poolhttps://answers.axonivy.com/questions/1677/use-of-connection-pool<p>Hi</p> <p>Is it possible to use the connection pool from ivy in a Java class?</p> <p>I currently reading the database configuration with : <code> Ivy.wfCase().getApplication().findExternalDatabaseConfiguration("myDB") </code></p> <p>and open the configuration with: <code> ch.ivyteam.db.jdbc.DatabaseUtil.openConnection(dbConf) ch.ivyteam.db.jdbc.DatabaseUtil.DatabaseUtil.closeConnection(conn); </code></p> <p>With this approach it doesn't use the pooled connections like in an ivy database step.</p>MichaelThu, 10 Mar 2016 09:17:17 -0500https://answers.axonivy.com/questions/1677/use-of-connection-poolconfigurationjavapersistenceCheckstyle Plugin (Sourcecode Analyzer for Ivy Designer)https://answers.axonivy.com/questions/1485/checkstyle-plugin-sourcecode-analyzer-for-ivy-designer<p>Hi</p> <p>I installed the Checkstyle Plugin (Version 6.9.0.201508291549) for the Ivy Designer 5.1.7. Installation works fine when removing the "Contact all update sites...." flag.</p> <p>Now I have the Problem that it sometimes work and sometimes I get the following error:</p> <p>org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Image?<img alt="dom4j" src="http://s14.postimg.org/4fei2zx1d/dom4j_error.png"></p> <p>For me it seems it has a conflict with another library. Depending on which library is loaded first it works.</p> <p>Any idea what causes the problem? Or is there another source code analyzer that works with the Ivy Designer?</p>MichaelTue, 29 Sep 2015 11:19:07 -0400https://answers.axonivy.com/questions/1485/checkstyle-plugin-sourcecode-analyzer-for-ivy-designerdesigner