users@glassfish.java.net

Re: Glassfish Admin Console gives 404 error

From: <glassfish_at_javadesktop.org>
Date: Wed, 12 Aug 2009 05:20:45 PDT

Hello Alexis,

I removed Glassfish and reinstalled it after deleting all the files which the uninstaller did not removed. I have changed the default ports from 8080 to 9090 and 4848 to 9898. When I tried to access the glassfish console. It first showed it to be loading then the same error:

HTTP Status 404
type Status report
message
description Not Found

--------------------------------------------------------------------------------

Glassfish/v3

Server.log: (/glassfish/glassfish/domains/domain1/logs/server.log)
===============================================

[#|2009-08-12T17:35:12.609+0530|WARNING|glassfish|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=19;_ThreadName=Thread-1;|Invalid URL: /
java.lang.ClassCastException: org.apache.catalina.core.StandardWrapper cannot be cast to com.sun.enterprise.v3.services.impl.ContainerMapper$ContextRootInfo
        at com.sun.enterprise.v3.services.impl.ContainerMapper.map(ContainerMapper.java:267)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:171)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:655)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:905)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:161)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
        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 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
|#]

I have not copied any of the jar's into the server yet.

I can not play around with JDK installation as I have the app running on Tomcat which requires JDK. However I have noticed that Glassfish requires Java 1.6 update 14 as it did not worked on Java 1.6 update 1 so i had to upgrade to update 14.

The installer file is "glassfish-v3-preview-windows.exe", so I guess it is v3 preview itself as you had recommended.
[Message sent by forum member 'harkiran' (harkiran)]

http://forums.java.net/jive/thread.jspa?messageID=360083