Claudio,
As a work-a-round, you can remove the security constraints from the
web.xml and sun-web.xml of the admin gui application. This should allow
you to skip the login page.
Ken
Anissa Lam wrote:
>
> Yes, I am seeing the exact same thing on v3 trunk. Just like you,
> i also tried deploying the war myself and try to access it.
> I have filed the P2 issue
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=5045 and what
> you are seeing is what i described in second part of that issue. I
> have also talked to Kedar about this. Hope he have sometime to look
> into this.
>
> thanks
> Anissa
>
> Claudio Miranda wrote:
>> I am getting "access denied" when trying to log in to the admin
>> console
>>
>> revision: 20855
>> at v3: mvn clean ; mvn -U install
>> at admingui: mvn clean ; mvn -U install
>>
>> ./asadmin deploy
>> /home/claudio/alphaworks/projects/gf-workspace/v3/admingui/war/target/admingui.war
>>
>>
>> deployed successfully
>>
>> 20/05/2008 00:16:31 com.sun.enterprise.web.WebModuleContextConfig
>> authenticatorConfig
>> SEVERE: webModuleContextConfig.missingRealm
>> 20/05/2008 00:16:31
>> com.sun.enterprise.security.provider.PolicyConfigurationImpl
>> generatePermissions
>> WARNING: No Principals mapped to Role [admin].
>> 20/05/2008 00:16:31
>> com.sun.enterprise.security.provider.PolicyConfigurationImpl
>> generatePermissions
>> WARNING: No Principals mapped to Role [noaccess].
>> 20/05/2008 00:16:31
>> com.sun.enterprise.web.PersistenceStrategyBuilderFactory
>> createPersistenceStrategyBuilder
>> WARNING: webcontainer.invalidSessionManagerConfig
>> 20/05/2008 00:16:32 com.sun.faces.config.ConfigureListener
>> contextInitialized
>> INFO: Initializing Mojarra (1.2_08-b06-FCS) for context '/admingui'
>> 20/05/2008 00:16:34 com.sun.enterprise.web.WebApplication start
>> INFO: Loading application admingui at /admingui
>> 20/05/2008 00:16:34 com.sun.enterprise.v3.deployment.DeployCommand
>> execute
>> INFO: Deployment of admingui done is 4990 ms
>> 20/05/2008 00:16:34
>> INFO: AMXConfigLoader.sortAndDispatch: 14 events
>> 20/05/2008 00:16:34
>> INFO: AMXConfigLoader.sortAndDispatch: process new ConfigBean:
>> com.sun.enterprise.config.serverbeans.Engine
>> 20/05/2008 00:16:34
>> INFO: AMXConfigLoader.sortAndDispatch: process new ConfigBean:
>> com.sun.enterprise.config.serverbeans.Engine
>> 20/05/2008 00:16:34
>> INFO: AMXConfigLoader.sortAndDispatch: process new ConfigBean:
>> com.sun.enterprise.config.serverbeans.ApplicationRef
>> 20/05/2008 00:16:34
>> INFO: AMXConfigLoader.sortAndDispatch: process new ConfigBean:
>> com.sun.enterprise.config.serverbeans.Application
>>
>> Login as admin/adminadmin or anonymous/adminadmin failed.
>>
>> 20/05/2008 00:16:50
>> com.sun.enterprise.security.auth.login.LoginContextDriver
>> doPasswordLogin
>> INFO: java_security.audit_auth_refused
>> 20/05/2008 00:16:50 com.sun.web.security.RealmAdapter authenticate
>> WARNING: Web login failed: Login failed:
>> javax.security.auth.login.LoginException: Failed file login for admin.
>> 20/05/2008 00:16:55
>> com.sun.enterprise.security.auth.login.LoginContextDriver
>> doPasswordLogin
>> INFO: java_security.audit_auth_refused
>> 20/05/2008 00:16:55 com.sun.web.security.RealmAdapter authenticate
>> WARNING: Web login failed: Login failed:
>> javax.security.auth.login.LoginException: Failed file login for
>> anonymous.
>>
>> As anonymous (blank password), I get the access denied
>>
>> HTTP Status 403 - Access to the requested resource has been denied
>> type Status report
>> messageAccess to the requested resource has been denied
>> descriptionAccess to the specified resource (Access to the requested
>> resource has been denied) has been forbidden.
>> GlassFish/v3
>>
>> Restarted the server, but no lucky.
>>
>> Is there any workaround ?
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>