cancel
Showing results for 
Search instead for 
Did you mean: 

NoClassDefFoundError in custom login module

Former Member
0 Kudos

Hallo,

I'm developing custom login module on EP6.0 SP2 (deployed as jar file). I'm using some classes in com.sap.security.api.jar and com.sap.security.core.jar.

I set all path to all jars in my IDE (NetWeaver DS) correctly. But when I'm trying to login to portal, an exception (NoClassDefFoundError: ~some class from jars above~) raised.

Jars I was writing about above, are located on portal in .../cluster/server/additional-lib.

In library.txt are entries:

library com.sap.security.api com\sap\security\api\com.sap.security.core.jar;com\sap\security\api\com.sap.security.core.tpd.jar;

com\sap\security\api\com.sap.security.api.jar;com\sap\security\api\com.sap.security.api.perm.jar

library MyLoginModule MyLoginModule.jar

reference com.sap.security.api MyLoginModule

Even when I copied mentioned jar files from portal to my project folder of my login module (and therefore to my jar file), i got the same exception.

Can anybody help me?

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Josef,

reference com.sap.security.api MyLoginModule

must be vice versa: Your LoginModule wants to have access to com.sap.security.api, not the other way round.

See https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/administr... manual for sap j2ee engine 6.20.pdf page 100ff, especially page 102.

Hope it helps

Detlev

Former Member
0 Kudos

Thank you, you solved my problem. I was using tutorial with misprints.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Josef,

i'm using ep6 sp2 and i want to develop a custom login iview to put in an anonymous page.

How can i do that?

i read the "How to authetication guide.." but i didn't understand.

Do you have an example ?

Best regards,

Florin

Former Member
0 Kudos

I can provide you only some links:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/customizi... the logon user interface of sap enterprise portal 6.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/sap enterprise portal 6.0 sp2 - security guide

You can find more here on sdn by searching for convenient string like: "logon screen", "portal security" and so on.

I was never developing custom logon screen, I only did small changes like hiding "Problems" link.

Hope it helps,

Josef