Bug 1029353

Summary: Errors in helloworld-mbean quickstart
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Jitka Kozana <jkudrnac>
Component: QuickstartsAssignee: sgilda
Status: CLOSED CURRENTRELEASE QA Contact: Jitka Kozana <jkudrnac>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: benevides, bsutter, jkudrnac, nziakova, pmuir
Target Milestone: CR1   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:22:24 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:
Attachments:
Description Flags
error when invoking the MXPojoHelloWorld MBean
none
invocation of SarMXPojoHelloWorld MBean saying Welcome instead of Hello none

Description Jitka Kozana 2013-11-12 08:53:48 UTC
Created attachment 822784 [details]
error when invoking the MXPojoHelloWorld MBean

EAP 6.2.0.ER7. 
I have seen the following issues when testing the helloworld-mbean example:

1. Exception when invoking MBean MXPojoHelloWorld in JConsole.
I have attached a screenshot of the exception. Nothing in the server log. 

2. The following warning can be found in the server log after the application is deployed. The README.md file says nothing about an expected warning. 

09:37:46,010 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "jboss-helloworld-mbean-webapp.war" (runtime-name: "jboss-helloworld-mbean-webapp.war")
09:37:46,055 WARN  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016003: Found beans.xml file in non-standard location: "/content/jboss-helloworld-mbean-webapp.war/WEB-INF/classes/META-INF/beans.xml", war deployments should place beans.xml files into WEB-INF/beans.xml
09:37:46,094 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment jboss-helloworld-mbean-webapp.war

3. README.md, line 93:
"6. You will see a popup Window displaying Hello `<your name>`!."
But the invocation of bean SarMXPojoHelloWorld leads in a popup with "Welcome" instead of Hello. Screenshot is attached.
Either change the code or adjust the README.md file.

Comment 1 Jitka Kozana 2013-11-12 08:55:10 UTC
Created attachment 822786 [details]
invocation of SarMXPojoHelloWorld MBean saying Welcome instead of Hello

Comment 2 sgilda 2013-11-12 12:08:16 UTC
1. I am able to recreate the exception testing the MXPojoHellowWorld: 
"Problem invoking sayHello: java.rmi.UnmarshalException: Error unmarshaling return, nested exception is: java.lang.ClassNotFoundException: org.jboss.weld.exceptions.IllegalArgumentException (no security manager: RMI class loader disabled). I will probably need help figuring out this one.

2. I am able to reproduce the warning on deployment "Found beans.xml file in non-standard location: "/content/jboss-helloworld-mbean-webapp.war/WEB-INF/classes/META-INF/beans.xml", war deployments should place beans.xml files into WEB-INF/beans.xml". I don't know if it's in this other location due to the service aspect of this application, so I am afraid to move it.

3. I modified the README to say: 

        You will see a popup Window displaying `Welcome <your name>!`.

Comment 3 sgilda 2013-11-12 12:25:51 UTC
Checked README fix in with this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/bd518d131663c6f3b0c5c27054a8cef7968ea1b1

Still need to resolve the first two items.

Comment 5 sgilda 2013-11-12 13:28:15 UTC
Rafael stepped in and fixed this one. Thanks Rafael!

It's fixed in this commit: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/fae7829818b4b95122618389a9b343a9109229ff

Comment 6 Jitka Kozana 2013-11-15 08:05:00 UTC
Verified using the 6.2.0.CR1 bits.