users@glassfish.java.net

Re: Failed to deploy hello.war to a specified virtural server in Build 41a

From: Tom Shi <tmshi_at_yahoo.com>
Date: Wed, 11 Apr 2007 06:52:08 -0700 (PDT)

Hi Anissa;

Thank you very much for the help.
I did use the 'host' name of virtual server when deploying the web application. It works fine now after using the 'id' of the virtual server.


Anissa Lam <Anissa.Lam_at_Sun.COM> wrote: Hi Tom,
In the GUI where you deploy your web app, you probably specify
www.mytest7.com
Is this the 'host' of your virtual server, or the 'id' of your virtual
server ?
You need to specify the 'id' of the virtual server. I can reproduce
your problem if i use the 'host' instead of the 'id'.
I will put in an RFE in GUI to provide a multi-select list instead of
making user to type in the VS id.
Since GUI can't display the list of web apps for you to do undeploy, you
will need to 'clean' up domain.xml by using CLI command.

asadmin list-components will list the deployed app, then you do
'undeploy' command to undeploy your app, eg foo.
asadmin undeploy foo

after this, you can use GUI to deploy your app again, specifying the
'id' of the VS.

thanks
Anissa

tom shi wrote:
> Hi Anissa;
>
> This error happened during deploying the hello.war to virtual server
> www.mytest7.com. After that, whenever I click the 'Web Applications'
> link in the admin ui, this error displays and no 'Launch' link.
>
> After restart the domain1, the same error is still displayed when
> click the 'Web Applications'. The URL
> http://www.mytest7.com:8080/hello return the 'HTTP Status 404 -' error.
>
> Thanks
> Tom
>
>
>
> */Anissa Lam /* wrote:
>
>
> Hi Tom,
> Looking at the stack trace, i want to clarify something.
> The deployment was successful when you specify 1 virtual server,
> but when you try to launch the app through Admin GUI, you see the
> problem. Is this true ?
> If so, can you try to launch your app by opening up the browser
> and give the URL to launch instead of using GUI ?
>
> thanks
> Anissa.
>
> tom shi wrote:
>> I created two more virtual servers with different IPs and the
>> same port number.
>> The hello.war from the samples folder is deployed ok using the
>> admin ui without specifying the virtual server. But it failed
>> when one virtual server is specified during the deployment.
>>
>> The error messages displayed are as the following:
>>
>> HTTP Status 500 -
>>
>> type Exception report
>> message
>> descriptionThe server encountered an internal error () that
>> prevented it from fulfilling this request.
>> exception
>> javax.servlet.ServletException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'beforeCreate' event for 'page1'.
>> root cause
>> java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'beforeCreate' event for 'page1'.
>> root cause
>> java.lang.reflect.InvocationTargetException
>> root cause
>> java.lang.RuntimeException:
>> javax.management.InstanceNotFoundException: MBean not found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> root cause
>> javax.management.InstanceNotFoundException: MBean not found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> note The full stack traces of the exception and its root causes
>> are available in the Sun Java System Application Server 9.1 logs.
>>
>>
>> ----- From the server log
>> ----------------------------------------------------------------------
>> [#|2007-04-10T14:30:09.846-0400|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=13;_ThreadName=httpWorkerThread-4848-1;|
>> RMIClient.getRMIClient: server|#]
>>
>> [#|2007-04-10T14:30:44.696-0400|INFO|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=17;_ThreadName=Thread-37;|deployed
>> with moduleid = hello|#]
>>
>> [#|2007-04-10T14:30:45.517-0400|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=httpWorkerThread-4848-1;_RequestID=e03fd5c5-a961-4827-92b8-e9db7930c121;|javax.management.MBeanException:
>> Operation 'getVirtualServer' failed in 'configs' Config Mbean.
>> Target exception message: MBean not found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> at
>> com.sun.enterprise.admin.MBeanHelper.extractAndWrapTargetException(MBeanHelper.java:419)
>> at
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:470)
>> 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.GeneratedMethodAccessor17.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:77)
>> at $Proxy1.invoke(Unknown Source)
>> at
>> com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
>> at
>> com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:106)
>> at
>> com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:62)
>> at
>> com.sun.enterprise.tools.admingui.handlers.ApplicationHandlers.getPortForApplication(ApplicationHandlers.java:1669)
>> at
>> com.sun.enterprise.tools.admingui.handlers.ApplicationHandlers.getDeployedWebInfo(ApplicationHandlers.java:654)
>> 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.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:413)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:203)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>> at
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>> at
>> com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:66)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>> at
>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
>> Caused by: javax.management.InstanceNotFoundException: MBean not
>> found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.doPersistenceCheck(ConfigsMBean.java:1796)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getChild(ConfigsMBean.java:1289)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getChild(ConfigsMBean.java:1279)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getVirtualServer(ConfigsMBean.java:1162)
>> 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:353)
>> at
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
>> at
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
>> ... 62 more
>> |#]
>>
>> [#|2007-04-10T14:30:45.527-0400|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=13;_ThreadName=httpWorkerThread-4848-1;_RequestID=e03fd5c5-a961-4827-92b8-e9db7930c121;|executePhase(RESTORE_VIEW
>> 1,com.sun.faces.context.FacesContextImpl_at_1257f0e) threw exception
>> java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException while attempting to
>> process a 'beforeCreate' event for 'page1'.
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:345)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:317)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.beforeCreate(LayoutComponent.java:331)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutComponent.getChild(LayoutComponent.java:270)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.buildUIComponentTree(LayoutViewHandler.java:413)
>> at
>> com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:203)
>> at
>> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
>> at
>> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
>> at
>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
>> at
>> com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:66)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
>> at
>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
>> at
>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
>> at
>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
>> at
>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
>> at
>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>> at
>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
>> 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.jsftemplating.layout.descriptors.handler.Handler.invoke(Handler.java:421)
>> at
>> com.sun.jsftemplating.layout.descriptors.LayoutElementBase.dispatchHandlers(LayoutElementBase.java:343)
>> ... 42 more
>> Caused by: java.lang.RuntimeException:
>> javax.management.InstanceNotFoundException: MBean not found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> at
>> com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:110)
>> at
>> com.sun.enterprise.tools.admingui.util.JMXUtil.invoke(JMXUtil.java:62)
>> at
>> com.sun.enterprise.tools.admingui.handlers.ApplicationHandlers.getPortForApplication(ApplicationHandlers.java:1669)
>> at
>> com.sun.enterprise.tools.admingui.handlers.ApplicationHandlers.getDeployedWebInfo(ApplicationHandlers.java:654)
>> ... 48 more
>> Caused by: javax.management.InstanceNotFoundException: MBean not
>> found:
>> com.sun.appserv:type=virtual-server,id=www.mytest7.com,config=server-config,category=config
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.doPersistenceCheck(ConfigsMBean.java:1796)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getChild(ConfigsMBean.java:1289)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getChild(ConfigsMBean.java:1279)
>> at
>> com.sun.enterprise.admin.mbeans.ConfigsMBean.getVirtualServer(ConfigsMBean.java:1162)
>> 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:353)
>> at
>> com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
>> at
>> com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
>> 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.GeneratedMethodAccessor17.invoke(Unknown Source)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

=== message truncated ===


Thanks
Tom
       
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.