Bug 1029353 - Errors in helloworld-mbean quickstart
Summary: Errors in helloworld-mbean quickstart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Quickstarts
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR1
: EAP 6.2.0
Assignee: sgilda
QA Contact: Jitka Kozana
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-12 08:53 UTC by Jitka Kozana
Modified: 2017-10-10 00:15 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-15 16:22:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
error when invoking the MXPojoHelloWorld MBean (84.42 KB, image/png)
2013-11-12 08:53 UTC, Jitka Kozana
no flags Details
invocation of SarMXPojoHelloWorld MBean saying Welcome instead of Hello (70.66 KB, image/png)
2013-11-12 08:55 UTC, Jitka Kozana
no flags Details

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.


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