1 Reply Latest reply on Nov 26, 2002 9:54 AM by 3004

    WLS 6.1SP3: how to deploy custom realm? -  ClassNotFoundException for Realmimplmentation Class at serverstartup

    3004

      Hi,

      I have problems deploying my custom realm:

      - I jared the classes and put them on the CLASSPATH in the weblogic startup script
      like

      CLASSPATH=$WL_HOME:$WL_HOME/lib/weblogic_sp.jar:$WL_HOME/lib/weblogic.jar:$WL_HOME/config/mydomain/lib/secmodule.jar

      I also tried relative path etc

      - Then at server startup I get the following exception:
      ***************************************************************************
      The WebLogic Server did not start up properly.
      Exception raised:
      java.lang.IllegalAccessError: java.lang.ClassNotFoundException: com.novartis.ksp
      .securitymodule.wls61.CustomLdapRealm.class
      at weblogic.security.acl.Realm.getRealm(Realm.java:91)
      at weblogic.security.acl.Realm.getRealm(Realm.java:62)
      at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
      a:259)
      at weblogic.security.SecurityService.initialize(SecurityService.java:116
      )
      at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:400)
      at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:206)
      at weblogic.Server.main(Server.java:35)
      Reason: Fatal initialization exception
      ***************************************************************************


      Who can PLEASE help?
      TIA
      Kris

        • 1. Re: WLS 6.1SP3: how to deploy custom realm? -  ClassNotFoundException for Realmimplmentation Class at serverstartup
          3004

          Hi Kris,

          please can you check the spelling in the config, I´m not sure if it comes from
          the copy and paste, but in the stacktrace there is a whitespace in the package
          name of he class com.novartis.ksp.securitymodule.wls61.CustomLdapRealm after "ksp".

          Christian Plenagl
          Developer Relations Engineer
          BEA Support



          "Kris" <kristian.weissmann@pharma.novartis.com> wrote:
          >
          Hi,

          I have problems deploying my custom realm:

          - I jared the classes and put them on the CLASSPATH in the weblogic
          startup script
          like

          CLASSPATH=$WL_HOME:$WL_HOME/lib/weblogic_sp.jar:$WL_HOME/lib/weblogic.jar:$WL_HOME/config/mydomain/lib/secmodule.jar

          I also tried relative path etc

          - Then at server startup I get the following exception:
          ***************************************************************************
          The WebLogic Server did not start up properly.
          Exception raised:
          java.lang.IllegalAccessError: java.lang.ClassNotFoundException: com.novartis.ksp
          .securitymodule.wls61.CustomLdapRealm.class
          at weblogic.security.acl.Realm.getRealm(Realm.java:91)
          at weblogic.security.acl.Realm.getRealm(Realm.java:62)
          at weblogic.security.SecurityService.initializeRealm(SecurityService.jav
          a:259)
          at weblogic.security.SecurityService.initialize(SecurityService.java:116
          )
          at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:400)
          at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:206)
          at weblogic.Server.main(Server.java:35)
          Reason: Fatal initialization exception
          ***************************************************************************


          Who can PLEASE help?
          TIA
          Kris