Community
Participate
Working Groups
While executing the scenario for: WTP Smoke Test Results R380 10222015 I stumbled upon an issue where I cannot create EJB project on Eclipse Neon. Actually everything looks ok, servlets are generated ok. The structure of the annotated bean is fine. The XDoclet builder states that the build has completed successfully, but from the logs in the console it looks like the xdoclet has not found the annotated bean. Scenario to reproduce: 1. Setup Xdoclet in Windows>Preferences 2. Create EJB Project with version 2.1 using java 1.4 for java facet. 3. Create EJB Session bean. result no interfaces are generated or ejb-jar artefacts are generated.
So what I have found so far: 1. XDoclet preferences are changes so all tasks are turned off (Preferences > XDoclet > ejbdoclet) 2. While creating Session bean the ejb-jar.xml is actually generated on the root level of the project instead in META-INF folder Enabling the ejbdoclet tasks solves the generation issue
So why did xdoclet preferences change in Neon? Another followup would be the wizard should recognize if generators are turned off - and turn on manually
Hi Chuck, it turns out that the preferences did not change, well sort of. Actually the preferences for XDoclet use some old way of storing data, which looks like is no longer supported in the platform. What I have found out till now is that in Mars there is a class org.eclipse.core.internal.preferences.legacy.InitLegacyPreferences, which will call and initialize the XDoclet default preferences, where in Neon there is no such functionality. Unfortunately this means that we have to migrate the preferences. I can take the task, but it will take a while. (hopefully till the end of the week) best regards, Dimitar
I have now checked that indeed the org.eclipse.core.internal.preferences.legacy.InitLegacyPreferences was deleted, but it was recently reverted, so the class will be again present and functional in newer platform builds. http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=4f7d6025ec1edb3aa3be58ea49385ae95e65b338 So I will open enhancement for migrating the preference store of the xdoclet bundle. Since the logic will work again next week. Kind regards, Dimitar