• issues afteradding the jars

    By Ulrich Krause 1 decade ago

    As soon as I add the jars and java files to the project, it takes up to 5 minutes to build the project. Even if working in an xpage that does not reference any of your code, I have to wait a very long time to save and preview my changes.

    So I had to remove the project from my application to keep productivity.

    Any idea? Virus Scan is already disabled and I see this behaviour on different machines. Designer is 852FP3

    • Try this...

      By Naveen Maurya 1 decade ago

       

      Hi
      
       
      
      When I tried on my database (it had around 20+ XPages and 5 Custom Controls), I was able to see some delay (but not more than 8-10 seconds) in saving XPage. But 5 minutes is pretty long time to wait. I was not able to reproduce that amount of delay. Also what I do is create a local replica of my development database, do development on it and then replicate it back to the server. If I do development on server then it will taken more than 5 minutes to save XPage even without Java Charts.... :) 
      
       
      
      My best guess is that, probably every time we save XPage it recompiles the Java files in this case it is the files in “org.openntf.javacharts” package. So what I did was to create a JAR file for all the Java classes used in Java Charts. I have attached the file with this document. What you can try is to delete the entire “org.openntf.javacharts” package and add the JAR file to the referenced libraries. Please refer the screenshot below:
      
       
      
       
      
      Please let me know if it works or not.
      
       
      
      Regards,
      
      Naveen Maurya
      
      
          Hi Ulrich,</div>
      
          &nbsp;</div>
      
          When I tried on my database (it had around 20+ XPages and 5 Custom Controls), I was able to see some delay (but not more than 8-10 seconds) in saving XPage. But 5 minutes is pretty long time to wait. I was not able to reproduce that amount of delay. Also what I do is create a local replica of my development database, do development on it and then replicate it back to the server. If I do development on server then it will taken more than 5 minutes to save XPage even without Java Charts.... :)&nbsp;</div>
      
          &nbsp;</div>
      
          My best guess is that, probably every time we save XPage it recompiles the Java files in this case it is the files in &ldquo;org.openntf.javacharts&rdquo; package. So what I did was to create a JAR file for all the Java classes used in Java Charts. I have attached the file with this document. What you can try is to delete the entire &ldquo;org.openntf.javacharts&rdquo; package and add the JAR file to the referenced libraries. Please refer the screenshot below:</div>
      
          &nbsp;</div>
      <p>
          <img alt="" src="/main.nsf/xsp/.ibmmodres/persistence/DominoDoc-2388E-BodyR/Screenshot_1314432652545.png"></p>
      
          &nbsp;</div>
      
          Please let me know if it works or not.</div>
      
          &nbsp;</div>
      
          Regards,</div>
      
          Naveen Maurya</div>
      

  • Did my solution work??

    By Naveen Maurya 1 decade ago

    Hi Ulrich,

    Didn't hear from you regarding your problem.

    Did my solution (http://www.openntf.org/internal/home.nsf/response.xsp?action=openDocument&documentId=DAB33206C64F8AF0862578F9002D1B94&MainID=F68514B1A70C4E27862578F80020F53D) work??

    Regards,

    Naveen Maurya