Error logging onto amconsole.

I just installed the Portal Server 6.1 on my development laptop. I am attempting to recreate an existing portal installation. I have installed all components and installed the identity server to the WebServer 6.1 instead of the application server. I exported the directory server db using the db2ldif command and imported that database into my laptop Directory Server 5.2. The existing portal uses a product caled WebSeal that does authentication. I will have to do Basic Authentication on my laptop.

When I try to access the amconsole I am getting the following error: (I have also seen this error in this forum for a post in Nov, but there were no answers given)

failure: for host 192.168.0.100 trying to GET /amserver/UI/Login, service-j2ee r

eports: StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servl

et LoginServlet threw exception

com.iplanet.jato.CompleteRequestException

at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaug

htException(AuthenticationServletBase.java:141)

at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(Applica

tionServletBase.java:1023)

at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationSer

vletBase.java:469)

at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase

.java:324)

at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.

java:294)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)

at org.apache.catalina.core.StandardWrapperValve.invokeServletService(St

andardWrapperValve.java:771)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

alve.java:322)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

a:509)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

alve.java:212)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

a:509)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

ava:209)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

a:509)

at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProce

ssor.java:161)

at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)

Is this error because of the Authentication Mechanism imported from the existing portal server is not Basic Authentication? If so, can someone point me to where in the DS schema I can change the Auth Mechanism to Basic? Of course this is just a guess. If anyone has another idea why this is occurring, please reply!

[2812 byte] By [Erly-Dev] at [2007-11-25 19:14:05]
# 1

The error said "failure: for host 192.168.0.100 trying to GET /amserver/UI/Login". Do you login amconsole via http:// 192.168.0.100/amconsole? If yes, it will redirect to ../amserver/UI/Login. This is what the link break down. I'll assume that http:// 192.168.0.100/amserver/UI/Login will see the same error as attached log.

Please note amadmin uses LDAP authentication., not Basic Authentication mentioned in your email. You can't not just restore LDAP data storage to new PS instance. Check upgrade manual to get some idea how Portal adapt existing DS data. Jerry

jh23093 at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

Thanks for your reponse. Unfortunately, that does not explain the problem. When Install cleanly, I am able to get to the console no problem. After I do a ldif2db import of an ldif file from another portal server whose content I am trying to recreate on my laptop so that I can develop remotely, now I cannot log into the admin console at all. It is throwing authentication errors.

Here is the complete stack trace from the web server error log:

[06/May/2005:16:19:42] info ( 2976): CORE1116: Sun ONE Web Server 6.1SP2 B04/07/2004 18:47

[06/May/2005:16:19:42] info ( 2976): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_05] from [Sun Microsystems Inc.]

[06/May/2005:16:19:44] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/amserver]

[06/May/2005:16:19:44] warning ( 2976): WEB6100: locale-charset-info is deprecated, please use parameter-encoding

[06/May/2005:16:19:44] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/amconsole]

[06/May/2005:16:19:44] warning ( 2976): WEB6100: locale-charset-info is deprecated, please use parameter-encoding

[06/May/2005:16:19:44] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/ampassword]

[06/May/2005:16:19:45] warning ( 2976): WEB6100: locale-charset-info is deprecated, please use parameter-encoding

[06/May/2005:16:19:45] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/amcommon]

[06/May/2005:16:19:45] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/portletsamples]

[06/May/2005:16:19:45] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/portal]

[06/May/2005:16:19:45] warning ( 2976): WEB6100: locale-charset-info is deprecated, please use parameter-encoding

[06/May/2005:16:19:45] info ( 2976): WEB0100: Loading web module in virtual server [https-ethornton3177.testlab.napp.gm.com] at [/search]

[06/May/2005:16:20:00] failure ( 2976): WebModule[/portal]: WEB2783: Servlet /portal threw load() exception

javax.servlet.ServletException: WEB2778: Servlet.init() for servlet RewriterServlet threw exception

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:347 8)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)

at com.iplanet.ias.web.WebModule.start(WebModule.java:245)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)

at org.apache.catalina.startup.Embedded.start(Embedded.java:995)

at com.iplanet.ias.web.WebContainer.start(WebContainer.java:429)

at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:498)

at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)

-- Root Cause --

Start of DataServiceException:

Message: LDAP authentication failed.

Cause: com.iplanet.sso.SSOException: LDAP authentication failed.

at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.j ava:129)

at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:277)

at com.sun.portal.rewriter.services.idsame.IDSAMEDataService.createSSOToken(IDSAME DataService.java:298)

at com.sun.portal.rewriter.services.idsame.IDSAMEDataService.<init>(IDSAMEDa taService.java:46)

at com.sun.portal.rewriter.services.DataServiceFactory.create(DataServiceFactory.j ava:52)

at com.sun.portal.rewriter.RewriterModule.init(RewriterModule.java:83)

at com.sun.portal.rewriter.RewriterModule.initIDSAME(RewriterModule.java:145)

at com.sun.portal.rewriter.admin.RewriterServlet.init(RewriterServlet.java:47)

at javax.servlet.GenericServlet.init(GenericServlet.java:256)

at com.iplanet.jato.ApplicationServletBase.init(ApplicationServletBase.java:52)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:347 8)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)

at com.iplanet.ias.web.WebModule.start(WebModule.java:245)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)

at org.apache.catalina.startup.Embedded.start(Embedded.java:995)

at com.iplanet.ias.web.WebContainer.start(WebContainer.java:429)

at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:498)

at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)

End of DataServiceException

at com.sun.portal.rewriter.services.idsame.IDSAMEDataService.createSSOToken(IDSAME DataService.java:309)

at com.sun.portal.rewriter.services.idsame.IDSAMEDataService.<init>(IDSAMEDa taService.java:46)

at com.sun.portal.rewriter.services.DataServiceFactory.create(DataServiceFactory.j ava:52)

at com.sun.portal.rewriter.RewriterModule.init(RewriterModule.java:83)

at com.sun.portal.rewriter.RewriterModule.initIDSAME(RewriterModule.java:145)

at com.sun.portal.rewriter.admin.RewriterServlet.init(RewriterServlet.java:47)

at javax.servlet.GenericServlet.init(GenericServlet.java:256)

at com.iplanet.jato.ApplicationServletBase.init(ApplicationServletBase.java:52)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.

[06/May/2005:16:20:00] info ( 2976): WEB2798: [/portal] ServletContext.log(): Setting param "jato:com.iplanet.am.console.base.*:moduleURL" = "../base" (java.lang.String) on servlet "AMBaseServlet"

[06/May/2005:16:20:00] failure ( 2976): WebModule[/portal]: WEB2783: Servlet /portal threw load() exception

javax.servlet.ServletException: WEB2778: Servlet.init() for servlet desktopServlet threw exception

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:347 8)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)

at com.iplanet.ias.web.WebModule.start(WebModule.java:245)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)

at org.apache.catalina.startup.Embedded.start(Embedded.java:995)

at com.iplanet.ias.web.WebContainer.start(WebContainer.java:429)

at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:498)

at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)

-- Root Cause --

com.sun.portal.desktop.context.ContextError: DSAMEServiceAppContext.initAdminDSAMEConnection()com.iplanet.sso.SSOException: LDAP authentication failed.

at com.sun.portal.desktop.context.DSAMEServiceAppContext.initAdminDSAMEConnection( DSAMEServiceAppContext.java:58)

at com.sun.portal.desktop.context.DSAMEServiceAppContext.init(DSAMEServiceAppConte xt.java:36)

at com.sun.portal.desktop.context.PSDesktopAppContext.initServiceAppContext(PSDesk topAppContext.java:298)

at com.sun.portal.desktop.context.PSDesktopAppContext.init(PSDesktopAppContext.jav a:74)

at com.sun.portal.desktop.context.PSDesktopContextFactory.initDesktopAppContext(PS DesktopContextFactory.java:71)

at com.sun.portal.desktop.context.PSDesktopContextFactory.init(PSDesktopContextFac tory.java:36)

at com.sun.portal.desktop.DesktopServlet.getDesktopContextFactory(DesktopServlet.j ava:202)

at com.sun.portal.desktop.DesktopServlet.init(DesktopServlet.java:261)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:347 8)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)

at com.iplanet.ias.web.WebModule.start(WebModule.java:245)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)

at org.apache.catalina.startup.Embedded.start(Embedded.java:995)

at com.iplanet.ias.web.WebContainer.start(WebContainer.java:429)

at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:498)

at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)

com.iplanet.sso.SSOException: LDAP authentication failed.

at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.j ava:129)

at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:277)

at com.sun.portal.desktop.context.DSAMEServiceAppContext.initAdminDSAMEConnection( DSAMEServiceAppContext.java:52)

at com.sun.portal.desktop.context.DSAMEServiceAppContext.init(DSAMEServiceAppConte xt.java:36)

at com.sun.portal.desktop.context.PSDesktopAppContext.initServiceAppContext(PSDesk topAppContext.java:298)

at com.sun.portal.desktop.context.PSDesktopAppContext.init(PSDesktopAppContext.jav a:74)

at com.sun.portal.desktop.context.PSDesktopContextFactory.initDesktopAppContext(PS DesktopContextFactory.java:71)

at com.sun.portal.desktop.context.PSDesktopContextFactory.init(PSDesktopContextFac tory.java:36)

at com.sun.portal.desktop.DesktopServlet.getDesktopContextFactory(DesktopServlet.j ava:202)

at com.sun.portal.desktop.DesktopSe

[06/May/2005:16:20:00] info ( 2976): WEB2798: [/portal] ServletContext.log(): Setting param "jato:com.iplanet.am.console.user.*:moduleURL" = "../user" (java.lang.String) on servlet "UMServlet"

[06/May/2005:16:20:07] info ( 2976): HTTP3072: [LS ls1] http://ethornton3177.testlab.napp.gm.com:80 ready to accept requests

[06/May/2005:16:20:07] info ( 2976): CORE3274: successful server startup

[06/May/2005:16:21:08] info ( 2976): for host 192.168.0.100 trying to GET /amconsole/base/AMAdminFrame, service-j2ee reports: WEB2798: [/amconsole] ServletContext.log(): Setting param "jato:com.iplanet.am.console.base.*:moduleURL" = "../base" (java.lang.String) on servlet "AMBaseServlet"

[06/May/2005:16:21:09] info ( 2976): for host 192.168.0.100 trying to GET /amserver/UI/Login, service-j2ee reports: WEB2798: [/amserver] ServletContext.log(): Setting param "jato:com.sun.identity.authentication.UI.*:moduleURL" = "../UI" (java.lang.String) on servlet "LoginServlet"

[06/May/2005:16:21:23] failure ( 2976): for host 192.168.0.100 trying to GET /amserver/UI/Login, service-j2ee reports: StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servlet LoginServlet threw exception

com.iplanet.jato.CompleteRequestException

at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaughtExceptio n(AuthenticationServletBase.java:141)

at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServle tBase.java:1023)

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

at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)

at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)

at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrap perValve.java:771)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 322)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 212)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)

at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java: 161)

at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)

HELP!!!

Erly-Dev at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3

You can't just import any random LDAP data from another DS server and expect to behavior the same. What is data you want to preserve to new AM instance? Could you install an empty DS (no smaple data first)? Then import another DS data into this new DS used as AM base instead of sample coming with installer configure process? Or point to the DS you want to import during AM install. I don't know what is your plan to do this. However, import some LDAP data without knowing consequence makes you stuck. No easy way out. Jerry

smoky88688 at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4

OK. Can I ask the question of what is the procedure if you want to create a backup copy of a portal? Do you have to rebuild everything from scratch? The data i am most interested in is under an org name of mqportal. o=mqportal. Under there is all of the users, roles and xml files that describe the configuration of the portal. That is what I want to move to the other server. mqportal at the moment has an authentication mechanism where the user credentials is coming from a 3rd party plug-in called WebSeal. I want to import the portal settings, then login to the Identity Server console and edit mqportal to change the default authentication to BasicAuthentication so that when I navigate to a page it pops up a login window, I authenticate and am directed to the correct landing page.

When the file was created, the command db2ldif -n userRoot -s o=mqportal -a output.ldif was supposed to be used. So I am at a loss to figure out why after importing this data, the Identity Server Console itself will not let me log in and the logs are showing authentication errors.

So looking at the stack trace for reference, is there an attribute that I can directly edit inside of the Directory Server Console for the user amAdmin that will allow me to log in?

Or will I have to uninstall and re-install the whole Suite again?

Erly-Dev at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...
# 5

Maybe I didn't make my point clear. Let me restate one more time. For user/role types LDAP data, this is the right procedure. What I meant last time was to export entire DB (backup) and re-import to 2nd instance which would over-write your AM setting. Since you have export to ldif, you make change your authentication method as it is text format.

From your trace, it caused by LDAP authentication failed. The AM and Portal instance isn't running. This is why you can't get UI/Login login page. Could you double check your 2nd instance LDAP access password when you entered during installation? Are those portal running the same version? Are your DN same in both installation? If they are not the same version, during DSAME to Identity, we made change for DN format. Check this out as well. Also, make sure LDAP server is running correctly. Let me know what is your finding? Jerry

jh23093 at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...
# 6

I have the exact same errors but created by different scenario:

I have 2 identical 2004Q2 Portals and 2 Directory servers associated with. Both portals and their authentication were working fine until I have 2 LDAPs synchronized with Multi master replication (MMR). MMR works fine, and data in one LDAP is replicated to the other, however, Portal A works just like before, portal B breaks with the error you get.

Data and schema in 2 LDAPs are identical.

Help needed!!

Joe

joe_zhou at 2007-7-3 23:20:15 > top of Java-index,Web & Directory Servers,Portal Servers...