Upload fails in some web browsers with "Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean" when using Create New Child Resource function for JBoss AS resource in JON

Solution Verified - Updated -

Issue

  • Uploading an EAR file fails and "/rhq/resource/layout/main.xhtml @81,60 test="#{ResourceUIBean.facets.callTime}" Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean." is displayed
  • Upload of application fails with the following error:
    com.sun.facelets.tag.TagAttributeException: /rhq/resource/layout/main.xhtml @81,60 test="#{ResourceUIBean.facets.callTime}" Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean.
         at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
         at com.sun.facelets.tag.TagAttribute.getBoolean(TagAttribute.java:79)
         at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:49)
         at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
         ...
    Caused by: com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: org.rhq.enterprise.gui.inventory.resource.ResourceUIBean.
         at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:191)
         at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106)
         at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:368)
         at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:230)
         ...
    Caused by: java.lang.IllegalStateException: Required request parameter 'id' is missing.
         at org.rhq.core.gui.util.FacesContextUtility.getRequiredRequestParameter(FacesContextUtility.java:106)
         at org.rhq.enterprise.gui.util.EnterpriseFacesContextUtility.getResource(EnterpriseFacesContextUtility.java:71)
         at org.rhq.enterprise.gui.inventory.resource.ResourceUIBean.<init>(ResourceUIBean.java:84)
         at sun.reflect.GeneratedConstructorAccessor402.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186)
         ... 121 more
    
  • Trying to deploy an EJB3 JAR fails with

Environment

  • JBoss Operations Network (JON) 2.3
  • JBoss Enterprise Application Platform (EAP) 4.2, 4.3, 5.0
  • Adding new application using Create New Child Resource function from JBoss AS Server resource Overview page
    • Upload File, browse to file, upload
  • Accessing the JON UI using any of the following web browsers:
    • Google Chrome 4.0.249.89 beta (38071)
    • Google Chrome 6.0.472
    • Safari 5.0.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content