Skip to Content
author's profile photo Former Member
Former Member

J2EE engine (6.40) library reference?

Hi,

I have created a login module for my Ep6.0 SP9 running inside J2EE Engine 6.40. I've created the library .sda file which contains all the necessary jars and deployed it to my engine and configured it to be used with the IRJ application.

My new login scheme is a combination of the login module itself in addition to a servlet filter. I've configured the filter via the web.xml file for the Portal app. The Filter class itself is contained in a jar file which is apart of the library .sda file which contains the login module.

When I try to test the login module, it says that it cannot load the Filter because of a NoClassDefFoundError and it does not find my filter class.

If I'm able to invoke the login module, how is it not able to find the filter class in the same library? Is there something I need to configure on the engine itself so that the servlet filter will be detected?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 25, 2005 at 02:49 AM

    Put the library for the filter under WEB-INF/lib of irj. The login module is called differently than the filter - i.e. the filter is called as part of the servlet container while the login module is called from the UME (a service deployed on the container).

    Nick

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 31, 2005 at 07:29 PM

    By adding my filter jar file to the classpath via the configtool, my filter class gets invoked. This time, I get

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

    which I have made a library reference to. When I add the com.sap.security.api.jar file to my class path as well, the server doesn't start. Any ideas on how I can get the classes loaded correctly?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2005 at 03:12 PM

    Hello Vu,

    i did exactly the same. If you deploy your filter and login module as library project (.sda), then you have to reference to it from the portal application.

    telnet administrator:

    >change_ref -m irj -weak -pr <my.provider> library:<mylibraryproject>

    The reference between application irj and library:<my.provider>~<mylibraryproject> was

    made!

    >

    Best regards

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.