Posted by: piman007 | 28-08-2007

Sun Application Server :Unable to get View for ViewDescriptor ‘webApplications

Edit the config/domain.xml for your domain and remove the <web-module> entry for the offending web app:

<web-module availability-enabled="false" context-root="/i-service" directory-deployed="false" enabled="true" location="${com.sun.aas.instanceRoot}/applications/j2ee-modules/i-service" name="i-service" object-type="user"/>

 

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" 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(DescriptorViewHelper.java:777)
 at com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServlet.java:426)
 at com.sun.enterprise.tools.guiframework.view.BaseServlet.handleException(BaseServlet.java:283)
 at com.sun.enterprise.tools.guiframework.view.BaseServlet.onUncaughtException(BaseServlet.java:202)
 at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1164)
 at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:639)
 at com.sun.enterprise.tools.guiframework.view.BaseServlet.processRequest(BaseServlet.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.GeneratedMethodAccessor63.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: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(ApplicationFilterChain.java:257)
 at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
 at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java: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(StandardContextValve.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:132)
 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.java: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.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:863)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:800)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:840)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:800)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:840)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:800)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.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(DescriptorViewHelper.java:344)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.createChild(DescriptorViewHelper.java:242)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.createChild(DescriptorViewBeanBase.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.registerChildren(ViewDescriptor.java:192)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.registerViewDescriptorChildren(DescriptorViewHelper.java:68)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.registerViewDescriptorChildren(DescriptorViewBeanBase.java:117)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewBeanBase.&lt;init&gt;(DescriptorViewBeanBase.java:60)
 at com.sun.enterprise.tools.guiframework.view.descriptors.ViewBeanBaseDescriptor.getInstance(ViewBeanBaseDescriptor.java:37)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(DescriptorViewManager.java:199)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getView(DescriptorViewManager.java:159)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewManager.getViewBean(DescriptorViewManager.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(DescriptorViewHelper.java:777)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.beforeCreate(DescriptorViewHelper.java:337)
 … 63 more
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.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandler(DescriptorViewHelper.java:863)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.invokeHandlers(DescriptorViewHelper.java:800)
 at com.sun.enterprise.tools.guiframework.view.DescriptorViewHelper.dispatchEvent(DescriptorViewHelper.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(DeploymentHandler.java:898)
 at com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.getAppStatusSummary(DeploymentHandler.java:1634)
 at com.sun.enterprise.tools.admingui.handlers.DeploymentHandler.loadDeploymentTableModel(DeploymentHandler.java:981)
 … 71 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)
 … 74 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(DefaultMBeanServerInterceptor.java:815)
 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
 at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: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(SunoneInterceptor.java:272)
 at com.sun.enterprise.tools.admingui.util.MBeanUtil.invoke(MBeanUtil.java:148)
 … 75 more
Caused by: com.sun.enterprise.admin.common.exception.MBeanConfigException: Component not registered
 at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.getStatus(ApplicationsConfigMBean.java:1986)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: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)
 … 86 more

Responses

  1. Thanks so much for this post, I deleted the web-module entry for my bad .war file and it cleared things right up!


ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

หมวดหมู่

%d bloggers like this: