Admin Console - "Unable to get View for ViewDescriptor 'webApplications'"
Hi,
I have recently installed Sun Java Application Server 8.2 and want to use the admin console to deploy a web application.
Everything was fine when I first installed, but now a week later I am getting an error. I don't believe I changed anything. I was just going through the J2EE tutorial and tried to deploy "hello1."
Now the admin console, "Web Applications" section is broken. I get the following error:
A "com.sun.enterprise.tools.guiframework.exception.FrameworkError" was caught. The message from the exception: "Unable to get View for ViewDescriptor 'webApplications'"
The root cause is "com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered"
The error then suggests I view source for the full trace. I will include it below this post.
Please tell me how to fix the Application Server Admin Console. Please include step by step instructions. For example, I don't know how to rebuild the Admin Console and would need to be told how.I am new to the Java environment.
I have already tried reinstalling the Application Server. That solved the problem, but then I compiled "hello1" and the Admin Console broke again.
Thank you!
View Info:
================
ViewBean Name: Index
View Name: (Null View)
ViewDescriptor Name: webApplications
Request Parameters:
'jato.pageSession'=''
'Index.TreeView1.showContainer'='0.1.3'
================
Below are 2 stack traces to help diagnose the problem. The first is the
traditional stack trace, the second is a full stack trace to the root cause.
Stack Trace:
================
com.sun.enterprise.tools.guiframework.exception.FrameworkException: java.lang.reflect.InvocationTargetException while attempting to process a 'error' event for 'webApplications'.
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:777)
at com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServ let.java:426)
at com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServ let.java:283)
at com.sun.enterprise.tools.guiframework.view.BaseServlet.onUncaughtException(Base Servlet.java:202)
at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServle tBase.java:1164)
at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.j ava:639)
at com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServl et.java:186)
at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask. java:604)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask .java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:863)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:840)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:840)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:775)
... 39 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkError: com.sun.enterprise.tools.guiframework.exception.FrameworkException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'webAppsTable'.
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(De scriptorViewHelper.java:344)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.createChild(Des criptorViewHelper.java:242)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.createChild(D escriptorViewBeanBase.java:125)
at com.iplanet.jato.view.ContainerViewBase.ensureChild(ContainerViewBase.java:187)
at com.iplanet.jato.view.ContainerViewBase.getChild(ContainerViewBase.java:541)
at com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor.registerC hildren(ViewDescriptor.java:192)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.registerViewDes criptorChildren(DescriptorViewHelper.java:68)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.registerViewD escriptorChildren(DescriptorViewBeanBase.java:117)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.<init>( DescriptorViewBeanBase.java:60)
at com.sun.enterprise.tools.guiframework.view.descriptors.ViewBeanBaseDescriptor.g etInstance(ViewBeanBaseDescriptor.java:37)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(Descri ptorViewManager.java:199)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(Descri ptorViewManager.java:159)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getViewBean(De scriptorViewManager.java:59)
at com.sun.enterprise.tools.guiframework.event.handlers.NextPageHandler.forwardTo( NextPageHandler.java:38)
... 50 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException: java.lang.reflect.InvocationTargetException while attempting to process a 'beforeCreate' event for 'webAppsTable'.
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:777)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(De scriptorViewHelper.java:337)
... 63 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:863)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:775)
... 64 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException: com.sun.enterprise.tools.guiframework.exception.FrameworkException: javax.management.MBeanException: Operation 'getStatus' failed in 'applications' Config Mbean.
Target exception message: Component not registered
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:57)
at com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatus(Deplo ymentHandler.java:898)
at com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatusSummar y(DeploymentHandler.java:1634)
at com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.loadDeploymentTabl eModel(DeploymentHandler.java:981)
... 70 more
Caused by: com.sun.enterprise.tools.guiframework.exception.FrameworkException: javax.management.MBeanException: Operation 'getStatus' failed in 'applications' Config Mbean.
Target exception message: Component not registered
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:155)
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:46)
... 73 more
Caused by: javax.management.MBeanException: Operation 'getStatus' failed in 'applications' Config Mbean.
Target exception message: Component not registered
at com.sun.enterprise.admin.MBeanHelper.extractAndWrapTargetException(MBeanHelper. java:371)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:382 )
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213 )
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServer Interceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterce ptor.java:272)
at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:148)
... 74 more
Caused by: com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getStatus(ApplicationsC onfigMBean.java:1986)
at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305 )
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360 )
... 85 more
================
Full Trace:
================
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getStatus(ApplicationsC onfigMBean.java:1986)
sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305 )
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360 )
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213 )
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServer Interceptor.java:815)
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
$Proxy1.invoke(Unknown Source)
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterce ptor.java:272)
com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:148)
com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:46)
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatus(Deplo ymentHandler.java:898)
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatusSummar y(DeploymentHandler.java:1634)
com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.loadDeploymentTabl eModel(DeploymentHandler.java:981)
sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:863)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:775)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(De scriptorViewHelper.java:337)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.createChild(Des criptorViewHelper.java:242)
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.createChild(D escriptorViewBeanBase.java:125)
com.iplanet.jato.view.ContainerViewBase.ensureChild(ContainerViewBase.java:187)
com.iplanet.jato.view.ContainerViewBase.getChild(ContainerViewBase.java:541)
com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor.registerC hildren(ViewDescriptor.java:192)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.registerViewDes criptorChildren(DescriptorViewHelper.java:68)
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.registerViewD escriptorChildren(DescriptorViewBeanBase.java:117)
com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.<init>( DescriptorViewBeanBase.java:60)
com.sun.enterprise.tools.guiframework.view.descriptors.ViewBeanBaseDescriptor.g etInstance(ViewBeanBaseDescriptor.java:37)
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(Descri ptorViewManager.java:199)
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(Descri ptorViewManager.java:159)
com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getViewBean(De scriptorViewManager.java:59)
com.sun.enterprise.tools.guiframework.event.handlers.NextPageHandler.forwardTo( NextPageHandler.java:38)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
java.lang.reflect.Method.invoke(Method.java:585)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:863)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:840)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(D escriptorViewHelper.java:840)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers( DescriptorViewHelper.java:800)
com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(D escriptorViewHelper.java:775)
com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServ let.java:426)
com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServ let.java:283)
com.sun.enterprise.tools.guiframework.view.BaseServlet.onUncaughtException(Base Servlet.java:202)
com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServle tBase.java:1164)
com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.j ava:639)
com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServl et.java:186)
com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFil terChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterCha in.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.ja va:161)
java.security.AccessController.doPrivileged(Native Method)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain .java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextVal ve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:13 2)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask. java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.ja va:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask .java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)

