Bug 1182606
Summary: | Unable to run kitchensink-ml-ear quickstart in JBDS | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Nikoleta Hlavickova <nziakova> |
Component: | Quickstarts | Assignee: | jboss-set |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikoleta Hlavickova <nziakova> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4.0 | CC: | bsutter, fbricon, jkudrnac, manderse |
Target Milestone: | ER2 | ||
Target Release: | EAP 6.4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-19 12:44:07 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Nikoleta Hlavickova
2015-01-15 14:44:43 UTC
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 |