elstar IT

Fullstack | Java | Tech Speaker | Tech Coach | Frank van der Linden

  • About me
  • Blog license
  • My Open source projects

A small update to my Multi language 4 XPages demo

27-04-2016 3 responses flinden68 community development

Last week I have posted a demo database of my way to add multi language to a XPages application.

Today Patrick Kwinten pinged me on Slack about an 500 error he was hitting when he access the database from the browser.

After some investigation via Slack it the cause of the error was an external jar file which was in still, unused, in the database. The external jar was on the Build Path, but after removing from the Build Path it was still crashing. On stackoverflow I found the answer.

The external library was causing an reflection exception. There was no need for this external library, so no need to update the java policy file.

After removing the external jars completly from the database, the application was up and running again. Everyone happy 😉

I made the update to my demo database and commited to the Bitbucket repository of this demo.

Where are my Java classes

I also noticed that it is not common or the normal way, when using Java in DDE to store the Java classes in a Java directory which I created under WebContent –> WEB-INF and add the directory as source folder.

In my life outside the DDE/Domino world when building Java applications in vanilla Eclipse environments, it is the normal way, so I still use it in DDE. So for Java development I live in the Package Explorer.

packageexplorer

To find the Package Explorer. Goto Window –> Eclipse Views –> Packagage

javaclasses

So I encourage everyone when do Java development in an XPages, to use the Package Explorer and the Java classes in a folder under WebContent –> WEB-INF ( next make them a source folder ). When moving to other grounds, outside the Yellow bubble or doing more and more OSGi plugin development, it makes your life easier.

Tags: development, java, xpages

3 thoughts on “A small update to my Multi language 4 XPages demo”

  1. 1234 says:
    28-04-2016 at 12:00

    aclentry name=’Anounymous’

    Reply
  2. Patrick Kwinten says:
    28-04-2016 at 15:54

    Hi Frank,
    thanks for the guidance yesterday. Much appreciated!
    I was doing another test today, with a new setup. Again the same errors (Error 500) so perhaps yes the setup is more in line with other dev environments but from my experience it is sensitive.

    Reply
    1. Frank van der Linden says:
      30-04-2016 at 07:10

      The java design element way is only a trick of the DDE, because devs wants design elements from historic way. In other dev environments you don’t have the luxury of these elements. I think that is one of the reasons lots of domino devs find plugin development difficult

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • « XPages tip: Demo code for multi language support
  • Plugin updates: search and date format »

Contact me

My name is Frank van der Linden and I am an independent software developer based in the Netherlands. The last 2 years I was awarded as IBM Champion. Also I am on the board of OpenNTF. My specialisations are Java, Web development and Domino.


If you want to hire me, please fill in the Contact form


IBM Champion web badge
Apache Logo

All the code on this blog are under the Apache License 2.0. For more details, see Apache License 2.0

Most recent posts

  • NL Portal, a open source project
  • 10th anniversary as a freelancer and more…
  • Engage 2020: Hello are you listening, There is stream for everything
  • Spring Cloud Function on Azure run locally
  • Deploy Spring Cloud Function to IBM Cloud

Latest reactions

  • Spring Cloud Function on Azure run locally - elstar IT on Deploy Spring Cloud Function to IBM Cloud
  • flinden68 on Quick XPages tip: add Fullcalendar plugin to your application
  • Rajesh samal on Quick tip: Swagger support for Spring Webflux
  • dsieyx on Quick XPages tip: add Fullcalendar plugin to your application
  • John on Named as IBM Champion 2019

Archive

  • November 2024
  • April 2024
  • March 2020
  • February 2020
  • January 2020
  • October 2019
  • September 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
  • November 2017
  • October 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • December 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014

Category

  • bluemix
  • business
  • cloudant
  • community
  • development
  • hrassistant
  • openntf
  • running
  • salesforce
  • Springboot
  • Tesla
  • trailrunning
  • Uncategorized
  • watson
  • OpenNTF
  • Collaboration Today
  • XSnippets
  • Stackoverflow
  • IBM Collaboration Solutions
  • Social Business Toolkit
  • About me
  • Dutch curriculum vitae
  • English curriculum vitae
  • Google+
  • LinkedIn profile
  • Twitter
  • Slideshare
  • Blog license
  • My open source projects