1 Reply Latest reply on Nov 11, 2009 2:48 PM by Mark Lindberg

    ClassNotFoundException for class file within jar file of custom component.

    Mark Lindberg Level 2


      I am encountering an issue with a custom component I have written for a customer.

      My component works when deployed on any of the servers in my environment - all 8.2 - JBoss, WebLogic

      When deploying on the customer Servers - all 8.2 - JBoss & WebSphere they get a ClassNotFoundException when starting the component.

      The jar consists of:


      com\#company#\ldap\auth\AuthUser.class                 (interface for authUser method)

      com\#company#\ldap\auth\AuthUserLDAPImpl.class  (contains authUser main method)






      The ClassNotFoundException references the AuthUserLDAPImpl class, which is in the same structure:

      com\#company#\ldap\auth as the AuthUser class.  (I have replaced the actual company name with #company# here).


      The component.xml consists of:


      <component xmlns="http://adobe.com/idp/dsc/component/document">









          <service name="AuthUser" orchestrateable="true" title="Authenticate User via LDAP">

                <auto-deploy major-version="1" minor-version="0" category-id="#company#"/>


                <description>Allows you to Authenticate a UserID/Password pair against the LDAP Provider.</description>

                <!-- description -->

                <description>Allows you to Authenticate a UserID/Password pair against the LDAP Provider.</description>


                <!-- You can provide your own icons for a distinct look -->



                <!-- Configuration parameter to set the LDAP Connection parameters -->

                <config-parameter name="LDAP_SL" title="LDAP Serv List" type="java.lang.String">


                    <hint>String - List of one or more LDAP Servers - separated by semicolon</hint>


                <!-- Configuration parameter for the Init ctxt -->

                <config-parameter name="INIT_CT" title="Initial Context" type="java.lang.String">


                    <hint>String - initial context for LDAP search</hint>


                <!-- Configuration parameter for the Authorized LDAP System User name -->

                <config-parameter name="DUMY_DN" title="Authorized LDAP System User ID" type="java.lang.String">


                    <hint>String - User ID of Authorized LDAP System User Account</hint>


                <!-- Configuration parameter for the password -->

                <config-parameter name="DUMY_PW" title="Password" type="java.lang.String">

                    <!-- Use the internal PasswordPropertyEditor to hide the user’s password from plain text -->

                    <property-editor editor-id="com.adobe.idp.dsc.propertyeditor.system.PasswordPropertyEditorComponent"/>

                    <hint>The User ID of Authorized LDAP System User Account's password.</hint>


                <!-- Configuration parameter for the User Search Base -->

                <config-parameter name="USER_SB" title="LDAP Search Base" type="java.lang.String">


                    <hint>String - Search Base for the LDAP Query</hint>



                          <operation name="authUser" title="Authenticate User">

                              <input-parameter name="sDomain" title="Domain Name" type="java.lang.String">


                                    <hint>String - User's Domain</hint>







      Is there something I am missing to allow the code to "See" the class at run time?





      Also, why would it run in my environments, and not the customers.


      Any help or Ideas are greatly appreciated!


      Thank You