Bug 1182606 - Unable to run kitchensink-ml-ear quickstart in JBDS
Summary: Unable to run kitchensink-ml-ear quickstart in JBDS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Quickstarts
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER2
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Nikoleta Hlavickova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-15 14:44 UTC by Nikoleta Hlavickova
Modified: 2019-08-19 12:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-19 12:44:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nikoleta Hlavickova 2015-01-15 14:44:43 UTC
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.

Comment 1 sgilda 2015-01-15 16:56:50 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.

Comment 2 Fred Bricon 2015-01-15 17:50:19 UTC
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

Comment 3 Fred Bricon 2015-01-15 18:01:24 UTC
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

Comment 4 sgilda 2015-01-15 19:00:13 UTC
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

Comment 5 Nikoleta Hlavickova 2015-02-11 12:13:33 UTC
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.

Comment 6 Fred Bricon 2015-02-11 15:28:29 UTC
Can you paste a stacktrace? Is it reproduceable reliably?

Comment 7 sgilda 2015-02-11 19:45:00 UTC
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)

Comment 10 Nikoleta Hlavickova 2015-02-19 09:04:04 UTC
Verified with EAP 6.4.0.ER2


Note You need to log in before you can comment on or make changes to this bug.