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.
To find the Package Explorer. Goto Window –> Eclipse Views –> Packagage
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.
aclentry name=’Anounymous’
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.
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