eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
385 stars 143 forks source link

Can not open admin console #11207

Closed glassfishrobot closed 14 years ago

glassfishrobot commented 14 years ago

I have build 74 of glassfish on Linux updated form Update Center. I installed the 74 promoted build on Windows (clean install from exe) and this bug is not present on Windows.

Creating new "clean" domain doesn't resolve problem.

Bug description: When I try to go to Admin Console the "loading" page opens, the user & password page opens, but after login the blank page is shown and following exception is thrown: java.lang.RuntimeException: WEB9033: Unable to load class with name [com.sun.webui.jsf.util.HelpUtils], reason: java.lang.NoClassDefFoundError: javax/help/search/SearchListener at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:944) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredFields(Class.java:1743) at com.sun.faces.mgbean.BeanBuilder.scanForAnnotations(BeanBuilder.java:480) at com.sun.faces.mgbean.BeanBuilder.loadBeanClass(BeanBuilder.java:453) at com.sun.faces.mgbean.BeanBuilder.bake(BeanBuilder.java:383) at com.sun.faces.mgbean.ManagedBeanBuilder.bake(ManagedBeanBuilder.java:90) at com.sun.faces.mgbean.BeanManager.preProcessBean(BeanManager.java:349) at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:260) at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:86) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) at com.sun.faces.el.ChainAwareVariableResolver.resolveVariable(ChainAwareVariableResolver.java:107) at com.sun.jsftemplating.el.PageSessionResolver.resolveVariable(PageSessionResolver.java:73) at com.sun.faces.el.VariableResolverChainWrapper.getValue(VariableResolverChainWrapper.java:107) at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72) at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:99) at com.sun.el.parser.AstValue.getValue(AstValue.java:158) at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:219) at com.sun.webui.jsf.component.HelpWindow._getUrl(HelpWindow.java:94) at com.sun.webui.jsf.component.HelpWindow.getUrl(HelpWindow.java:263) at com.sun.webui.jsf.renderkit.html.HyperlinkRenderer.renderLink(HyperlinkRenderer.java:227) at com.sun.webui.jsf.renderkit.html.HyperlinkRenderer.renderEnd(HyperlinkRenderer.java:209) at com.sun.webui.jsf.renderkit.html.AbstractRenderer.encodeEnd(AbstractRenderer.java:243) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:99) at com.sun.webui.jsf.renderkit.html.MastheadRenderer.renderUtilityBar(MastheadRenderer.java:619) at com.sun.webui.jsf.renderkit.html.MastheadRenderer.renderPrimaryMasthead(MastheadRenderer.java:920) at com.sun.webui.jsf.renderkit.html.MastheadRenderer.renderEnd(MastheadRenderer.java:339) at com.sun.webui.jsf.renderkit.html.AbstractRenderer.encodeEnd(AbstractRenderer.java:243) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:558) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.encode(LayoutComponent.java:243) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:348) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.encode(LayoutComponent.java:201) at com.sun.jsftemplating.layout.descriptors.LayoutForEach.encode(LayoutForEach.java:178) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:348) at com.sun.jsftemplating.layout.descriptors.LayoutDefinition.encode(LayoutDefinition.java:236) at com.sun.jsftemplating.renderer.TemplateRenderer.encodeEnd(TemplateRenderer.java:139) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:878) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:558) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:555) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:555) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:555) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:555) at com.sun.jsftemplating.layout.descriptors.LayoutComponent.encode(LayoutComponent.java:243) at com.sun.jsftemplating.layout.descriptors.LayoutComposition.encodeThis(LayoutComposition.java:161) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:330) at com.sun.jsftemplating.layout.descriptors.LayoutComposition.encodeThis(LayoutComposition.java:161) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:330) at com.sun.jsftemplating.layout.descriptors.LayoutComposition.encodeThis(LayoutComposition.java:161) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:330) at com.sun.jsftemplating.layout.descriptors.LayoutElementBase.encode(LayoutElementBase.java:348) at com.sun.jsftemplating.layout.descriptors.LayoutDefinition.encode(LayoutDefinition.java:232) at com.sun.jsftemplating.layout.LayoutViewHandler.renderView(LayoutViewHandler.java:678) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:127) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:239) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: javax/help/search/SearchListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:914) ... 91 more Caused by: java.lang.ClassNotFoundException: javax.help.search.SearchListener at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.glassfish.web.loader.WebappClassLoader.findClass(WebappClassLoader.java:949) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1420) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) ... 95 more

Environment

Operating System: All Platform: Linux

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 14 years ago

@glassfishrobot Commented anilam said:

I have build 74 of glassfish on Linux updated form Update Center.

Which build were you using before the update ?

glassfishrobot commented 14 years ago

@glassfishrobot Commented rsmogura said: 73, but I did not use GF often for some time, so I could don't see this bug in 73.

I'm almost sure in 72 there was no such bug (was different, so I remember, and I could login).

glassfishrobot commented 14 years ago

@glassfishrobot Commented rsmogura said: P.S. I update GF each time when it's possible, so update should be from 73.

glassfishrobot commented 14 years ago

@glassfishrobot Commented anilam said: I don't have a Linux to try this. But on my Mac, I cannot reproduce the issue. Here is what i did:

Error like this doesn't sound platform dependent. It is probably due to incremental updates from different build.

I will see if our QA can reproduce this issue on Linux.

glassfishrobot commented 14 years ago

@glassfishrobot Commented anilam said: closing this as duplicate of 10733 per Snjezana's suggestion.

"I think you can close this guy as the duplicate of 10733 - note that the starting point was not fresh b73 installation but upgraded b73 installation which was probably affected by the scenario from 10733... "

glassfishrobot commented 14 years ago

@glassfishrobot Commented rsmogura said: I don't think this is duplicate of given issue, as the admin console worked for me after b70 (then only problem was with missing file - HTTP 404, but with address re-enter it worked). Much more I haven't upgrade form prelude, but I download a build and from this time it worked.

I didn't found any "old" admingui.war

Workaround I've found: copy modules/javahelp.jar to lib/ and admingui starts fine.

P.S. On newly downloaded javaee6-ri-v3-b74.zip the admin console is blank page on Firefox without any exception thrown.

glassfishrobot commented 14 years ago

@glassfishrobot Commented anilam said: "On newly downloaded javaee6-ri-v3-b74.zip the admin console is blank page on Firefox without any exception thrown."

build 74b is out. Please test with b74b.

Regarding update, I tried b73 to b74 and without issue. Seems your issue may be related to incremental various update, which i believe is not supported officially. I'll let Snjezana comment on this.

glassfishrobot commented 14 years ago

@glassfishrobot Commented @ssevozen said: Well, if you use RI bundle, Admin GUI is not included on purpose although I believe that Anissa will publish instructions on how to get and install Admin GUI content on top of RI installation.

As for upgrade issue - I am not sure why would AdminGUI require javahelp jar in lib folder since all dependencies on javahelp are supposed to be gone from Admin GUI - Anissa, could you please double-check that? BTW, Anissa, could you please try upgrade scenario again but first start the server and access Admin GUI from build 73 before stopping the server and updating to 74b using updatetool. This may make the difference.

glassfishrobot commented 14 years ago

@glassfishrobot Commented anilam said: We are talking about 3 things here.

1. javaee6-ri-v3-b74.zip This is RI distribution and doesn't include Admin Console. Please use

http://download.java.net/glassfish/v3/promoted/glassfish-v3-b74b.zip (full distribution) or http://download.java.net/glassfish/v3/promoted/glassfish-v3-web-b74b.zip (web distribution) if you want to run admin console.

2. javahelp.jar Admin Console does not depend on this jar at all. Period. Maybe some other modules depends on it. In build 74b, I have tried removing glassfish/modules/javahelp.jar , cleared osgi-cache, start server and launch GUI without any issue. Snjezana may need to figure out what pulls in this javahelp.jar and which module needs that. In fact, in previous build that GUI needs Java Help, the jar we need is glassfish/lib/install/application/__admingui/WEB_INF/lib/jhall.jar not modules/javahelp.jar

3. update to b74 As in my previous comment, I cannot reproduce the issue. I have tried many times. I installed build 73, then use updatetool to update to b74 and i can run admin console without any issue. I tried one more time again just now.

We have QE team testing different upgrade and update scenario. There is no issue filed. I am going to close this bug.

If you need to re-open, please give the exact step on how to reproduce this. I need step by step instruction, include what to download and install, what you have done before the update, how you do the update, how you start the GUI. Please attach all the log files as well. thanks.

glassfishrobot commented 14 years ago

@glassfishrobot Commented Was assigned to anilam

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-11207

glassfishrobot commented 14 years ago

@glassfishrobot Commented Reported by rsmogura

glassfishrobot commented 14 years ago

@glassfishrobot Commented Marked as cannot reproduce on Thursday, December 3rd 2009, 4:31:09 am