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)

[21322 byte] By [finemanjon] at [2007-11-26 6:21:13]
# 1

Here is my server.log entries that happen while the error is generated:

Thank again for your help!

[#|2006-04-09T13:01:12.343-0700|WARNING|sun-appserver-pe8.2|javax.enterprise.sy stem.tools.admin|_ThreadID=11;|Exception in getStatus:Component not registered|#]

[#|2006-04-09T13:01:12.687-0700|SEVERE|sun-appserver-pe8.2|javax.enterprise.sys tem.container.web|_ThreadID=11;|WebModule[][ERROR] Uncaught application exception

com.iplanet.jato.command.CommandException: Handler method "handleShowContainerRequest" threw an exception

Root cause = [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.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequ estHandlingCommand.java:217)

at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingView Base.java:308)

at com.iplanet.jato.view.RequestHandlingTreeViewBase.handleRequest(RequestHandling TreeViewBase.java:525)

at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.ja va:740)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.ja va:760)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)

at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase. java:957)

at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.j ava:615)

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)

Root cause:

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.admingui.tree.IndexTreeNode.handleSelection(IndexTreeN ode.java:626)

at com.sun.enterprise.tools.admingui.tree.IndexTreeView.handleNode(IndexTreeView.j ava:430)

at com.sun.enterprise.tools.admingui.tree.IndexTreeView.handleShowContainerRequest (IndexTreeView.java:445)

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.iplanet.jato.view.command.DefaultRequestHandlingCommand.execute(DefaultRequ estHandlingCommand.java:183)

at com.iplanet.jato.view.RequestHandlingViewBase.handleRequest(RequestHandlingView Base.java:308)

at com.iplanet.jato.view.RequestHandlingTreeViewBase.handleRequest(RequestHandling TreeViewBase.java:525)

at com.iplanet.jato.view.ViewBeanBase.dispatchInvocation(ViewBeanBase.java:802)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.ja va:740)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandlerInternal(ViewBeanBase.ja va:760)

at com.iplanet.jato.view.ViewBeanBase.invokeRequestHandler(ViewBeanBase.java:571)

at com.iplanet.jato.ApplicationServletBase.dispatchRequest(ApplicationServletBase. java:957)

at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.j ava:615)

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: 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)

... 62 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.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)

... 63 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.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.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305 )

at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:360 )

... 85 more

|#]

[#|2006-04-09T13:01:12.718-0700|WARNING|sun-appserver-pe8.2|javax.enterprise.sy stem.tools.admin|_ThreadID=11;|Exception in getStatus:Component not registered|#]

[#|2006-04-09T13:01:12.734-0700|WARNING|sun-appserver-pe8.2|javax.enterprise.sy stem.tools.admin|_ThreadID=11;|Exception in getStatus:Component not registered|#]

[#|2006-04-09T13:01:12.765-0700|WARNING|sun-appserver-pe8.2|javax.enterprise.sy stem.tools.admin|_ThreadID=11;|Exception in getStatus:Component not registered|#]

finemanjon at 2007-7-6 14:06:53 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Okay, this is solved.

But I don't understand why the error happened or why this fix worked.

Here's the steps I followed:

First I read the following in the Sun Forum:

http://swforum.sun.com/jive/thread.jspa?threadID=56332&messageID=231880

Attemping to follow the instructions, I did the following steps:

1) Locate the domain.xml file in \AppServer1\domains\domain1\config

2) Expand the little arrow to the left of Web Applications

3) See the deployed program, "hello2."

4) Clicking on "hello2" generates an error

5) Search for "hello2" in the domain.xml file

6) Remove the lines referencing this deployed program

7) Stop and start the default web server.

As you can see, I have no idea what I'm doing. This "fix" is really complicated for an error that could strike at any time.

If a more elegant solution exists I would appreciate it. But I am very happy I can start playing with the J2EE tutorial some more!

Thank you.

finemanjon at 2007-7-6 14:06:53 > top of Java-index,Application & Integration Servers,Application Servers...
# 3
I removed Edit the config/domain.xml for your domain and remove the <web-module> entry for the offending web appas per the steps...It really works...thanksbask
nachilachu at 2007-7-6 14:06:53 > top of Java-index,Application & Integration Servers,Application Servers...
# 4

This seems to be a bug in how we handle the error condition. The appserver was left in an inconsistent state after some failed operation.

Could someone please provide a set of steps which can reproduce the problem consistently? We would really like to get to the bottom of this and fix the problem.

You could send the application and instructions to this alias:

s1as-deployment-dev@sun.com

hongzhang at 2007-7-6 14:06:53 > top of Java-index,Application & Integration Servers,Application Servers...