cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Login Module

Former Member
0 Kudos

Hi everyone,

I've just created and configured a new login module according to the

<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/2b/23e4407211732ae10000000a155106/frameset.htm.">Sap Portal Guide</a>.

In particular I've taken the following steps:

- developed a new java project (jar file)

- developed a new library project (sda file)

- configured the login stack (added a reference to the classloader of the SecurityProvider)

However, when I deploy the library project (sda file) onto the application server and try to logon to the portal I get the error:

java.lang.NoClassDefFoundError: com/sap/security/api/UMException

Any help is greatly appreciated.

Thanks,

Marco

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Marco

did u set the classpath to the JAR file of login module

http://help.sap.com/saphelp_nw2004s/helpdata/en/c1/1fda400dc03d43e10000000a155106/content.htm

and Making Reference to the JAR File.

regards,

kaushal

Former Member
0 Kudos

Hi,

thanks for your response.

I set up the classpath to the JAR of login module correcty but that's not the problem.

My jar-file is error free (it's the example provided with the SAP documentation) and the sda-file has been correcly deployed onto the application server.

Thanks,

Marco

Former Member
0 Kudos

Hi,

I'll briefly recap the steps I took.

- <u>Developed Login Module</u> and exported to MyLoginModule.jar (its classpath includes references to <b>util.jar</b> and <b>security_api.jar</b>)

- <u>Developed J2EE Server Library</u> (MyLoginModuleLibrary.sda)

<b>provider.xml</b> (Jars Section) includes MyLoginModule.jar

<b>provider.xml</b> (References Section) includes <b>security_api</b> and <b>com.sap.tc.logging</b>.

<b>sda-dd.xml</b> defines "Software Type" = library

- <u>Visual Admin Configuration</u>:

- Created Login Module Reference

- Adjusted Login Stack

- Adjusted LoginModuleClassLoaders (library:MyLoginModuleLibrary)

- <u>Restarted the cluster</u>

After these steps, when I log on I get:

<b>java.lang.NoClassDefFoundError: com/sap/security/api/UMException</b>

It seems that the class <i>UMException </i>hasn't been loaded yet but either the <i>Library</i> or the <i>Login Module</i> have been developed according to the SAP Guide.

Any idea?

Cheers,

Marco

Former Member
0 Kudos

Marco,

Post the std_server*.out log file kindly.

James