After importing kitchensink-ml-ear quickstart into JBDS and fixing the Maven configuration problem as instructions in the readme say, there are 4 projects in project explorer: All 3 subprojects can be deployed on the server. However, errors like this one are logged and the webapp is not opened: SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http-localhost/127.0.0.1:8080-1) Error Rendering View[/index.xhtml]: java.lang.IllegalArgumentException: Invalid bundle interface org.jboss.as.quickstarts.kitchensink_ear.util.KitchensinkMessages (implementation not found) Maybe some steps are missing from the instructions.
I get the same error. I checked and the bundle org.jboss.as.quickstarts.kitchensink_ear.util.KitchensinkMessages is located in the jboss-kitchensink-ml-ear-ejb.jar, so I'm not sure why it's not found. I may need Fred or Max to help with this one.
The missing implementation classes must be generated by an annotation processor. Annotation Processing (AP) is turned off by default in eclipse. The preferences are located under [Project > Properties|Workspace Preferences] > Maven > Annotation Processing. You want to have "Automatically Configure JDT APT" on. You can also turn AP on automatically during project import/configuration by adding the following property to kitchensink-ml-ear/pom.xml, in the <properties> section (see [1]): <m2e.apt.activation>jdt_apt</m2e.apt.activation> Alternatively can could only add that property to the EJB project properties only, since nothing is generated in the webapp. If you Maven > Update Project Configuration on the EJB project, you'll see a target/generated-sources/annotation folder show up in the project/package explorer, containing generated KitchensinkMessages implementations. They'll be automatically deployed and the webapp will work as expected. [1] https://github.com/jbosstools/m2e-apt/issues/26
BTW, the proper French translation for name_validation_message in kitchensink-ml-ear/ejb/src/main/resources/ValidationMessages_fr.properties is : name_validation_message=ne doit contenir que des lettres et des espaces
Thanks Fred! This worked great! I added the property to the top-level POM file for a couple of reasons: * We try to keep all the properties at the top level so they are easier to maintain. * It will be more obvious to a user at the top level. I also fixed the French translations. Fix is in this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/698b300b9c1ac926dfd033d4afb928f08ff639e2
When importing the QS into JBDS, this error occurs: Failed while installing JPA 2.0. org.osgi.service.prefs.BackingStoreException: Resource '/jboss-kitchensink-ml-ear/ejb/.settings' does not exist. Except for this, the rest works fine.
Can you paste a stacktrace? Is it reproduceable reliably?
Fred, I am able to reproduce these. There are 3 bugs that display similar "Failed while installing JPA 2,0" errors: Bug 1178831 - kitchensink-ear Bug 1184236 - jts Bug 1182606 - kitchensink-ml-ear (this bug)
Per Fred Bricon: (see https://bugzilla.redhat.com/show_bug.cgi?id=1184236#c7) I've pushed a fix to m2e-wtp 1.2.0 (fr Eclipse Mars) see https://bugs.eclipse.org/bugs/show_bug.cgi?id=459810. Added a new warning to https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/USE_JBDS.md#use-red-hat-jboss-developer-studio-or-eclipse-to-run-the-quickstarts
Verified with EAP 6.4.0.ER2