on 05-07-2009 8:08 AM
Hi,
I am developing a login module on java platform for SAP Portal application. The problem that I stuck is the system is generating "Cannot load login module class" error in "defaultTrace" log while loading the class. Please find detailed error, below;
#1.5 #000EA6143E4E007700000012000008F40004694D133B0722#1241679662875#com.sap.engine.services.security.authentication.logincontext#sap.com/irj#com.sap.engine.services.security.authentication.logincontext#Guest#0##n/a##d3cf4eb03ad411deaa44000ea6143e4e#SAPEngine_Application_Thread[impl:3]_13##0#0#Error##Java###Cannot load login module class {0}.
[EXCEPTION]
{1}#2#com.sap.astron.login.authentication.astronLoginModuleClass#java.lang.ClassNotFoundException: com.sap.astron.login.authentication.astronLoginModuleClass
Found in negative cache
------------------------- Loader Info -------------------------
ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore]
Parent loader name: [Frame ClassLoader]
References:
common:library:IAIKSecurity;library:activation;library:mail;library:tc~sec~ssl
library:ejb20
library:servlet
library:sapxmltoolkit
library:compilation_lib
interface:webservices
library:core_lib
library:com.sap.guid
library:j2eeca
library:com.sap.mw.jco
interface:security
interface:log
interface:shell
interface:keystore_api
interface:tc~sec~certrevoc~interface
library:com.sap.ip.basecomps
library:com.sap.util.monitor.jarm
library:opensql
library:tc~bl~txmanager~plb
library:tc~i18n~cp
interface:appcontext
interface:endpoint_api
interface:resourceset_api
interface:resourcecontext_api
common:service:iiop;service:naming;service:p4;service:ts
interface:ejbcomponent
interface:container
interface:visual_administration
interface:transactionext
interface:dsr_ejbcontext_api
service:timeout
library:tc~jmx
interface:cross
service:file
service:locking
library:tc~SL~UTIL
service:memory
library:antlr
library:jdbdictionary
library:opensqlextensions
Resources:
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\com.sap.security.core.sda\\com.sap.security.core.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\configuration\\configuration.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\jmx\\jmx.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_toolkit_api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\dbpool\\opensqllib.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\basicadmin\\basicadmin.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\adminadapter\\adminadapter.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_csi.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\dbpool\\sqljimpl.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_util.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\com.sap.security.api.sda\\com.sap.security.api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\com.sap.security.api.sda\\com.sap.security.api.perm.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_jaas.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_xmlbind.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_compat.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\webservices_lib\\jaxm-api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_ssf.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\keystore\\keystore.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\com.sap.security.core.ume.service\\com.sap.security.core.ume.service.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\webservices_lib\\webservices_lib.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\webservices_lib\\saaj-api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\basicadmin\\jstartupapi.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_jaas.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\security\\security.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\basicadmin\\jstartupimpl.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\jmx_notification\\jmx_notification.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_toolkit_core.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_userstore_lib.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_saml_service_api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\deploy\\deploy.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_https.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\userstore\\userstore.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\webservices_lib\\jaxrpc-api.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\dbpool\\dbpool.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\com.sap.security.core.sda\\com.sap.security.core.tpd.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\connector\\connectorimpl.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\services\\jmx\\jmx_sec.jar
D:\\usr\\sap\\PTO\\JC00\\j2ee\\cluster\\server0\\bin\\ext\\security.class\\tc_sec_jaas_test.jar
Loading model: {parent,local,references}
---------------------------------------------------------------
at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:360)
at com.sap.engine.services.security.Util.loadClass(Util.java:262)
at com.sap.engine.services.security.Util.loadClassFromAdditionalLoaders(Util.java:204)
at com.sap.engine.services.security.login.LoginContextFactory.loadModuleClasses(LoginContextFactory.java:318)
at com.sap.engine.services.security.login.LoginContextFactory.init(LoginContextFactory.java:89)
at com.sap.engine.services.security.login.LoginContextFactory.getLoginContext(LoginContextFactory.java:99)
at com.sap.engine.services.security.server.AuthenticationContextImpl.getLoginContext(AuthenticationContextImpl.java:254)
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:324)
at com.sap.engine.system.SystemLoginModule.initialize(SystemLoginModule.java:72)
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:324)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:662)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
at com.sap.security.core.logon.imp.SAPJ2EEAuthenticator.getLoggedInUser(SAPJ2EEAuthenticator.java:149)
at com.sapportals.portal.prt.service.authenticationservice.AuthenticationService.getLoggedInUser(AuthenticationService.java:303)
at com.sapportals.portal.prt.connection.UMHandler.handleUM(UMHandler.java:96)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:186)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sap.portal.navigation.Gateway.service(Gateway.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
I created a class named "astronLoginModuleClass". Then created a library project, named "AstronLoginModuleLibrary" and attached login module jar (astronLoginModuleClass) into the project. At the end of this respective deployment, I created an entry under "Secure Store" with the parameters, below;
Class name: com.sap.astron.login.authentication.astronLoginModuleClass
Display Name: AstronLoginModule
Description: Astron login module
Then, I added this entry under "ticket" component on VA, named "AstronLoginModule". At the end of it, I restarted the j2ee server, but I faced with this problem. I can see jar application under "D:\usr\sap\PTO\JC00\j2ee\cluster\server0\bin\ext\com.sap.astron.login.authentication~AstronLoginModuleLibrary" and see this path under "Libraries".
Anyone has any suggestion about this problem?
Thank you
Can anyone of you tell if you are able to solve this and if you solved it what is the solution. Please post the solution.
Thanks in advance
Lakshmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Orkun,
I had a "Cannot load login module class" problem when I tried to develop my login module. I searched the SDN and found you had exactly the same issue.
I have completed the job to upload the loginmodule.jar as a library, configure the login module in Visual Administrator and the configure job on configtool. But I still cannot get it running.
Could you please let me know how I can solve my problem.
Best Regards
Jack
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How did you solve it? I have the same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the issue is solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
this will give some idea
http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/23e4407211732ae10000000a155106/content.htm
http://docs.sun.com/app/docs/doc/820-4801/gbyuw?a=view
bvr
Edited by: bvr on May 7, 2009 12:53 PM
I forgot to say that I configured "library:AstronLoginModuleLibrary" on configtool, under "LoginModuleClassLoaders"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.