1 Reply Latest reply on Mar 1, 2003 4:47 PM by Peter Doornbosch

    reflection in jsp doesn't find class in lib jar

    Dieter Cailliau Newbie

      I have a jsp that tries to instantiate a class using Class.forName(name).newInstance(). The class public (single in it's file), and is inside a jar, the jar is inside the war (under lib/), and the war is inside the ear.

      The exception that occurrs is ClassNotFoundException.

      Other clases in other packages in the same jar are found using reflection.

      It's a basic class that has noting but 6 public primitive fields. Other classes in the same package are successfully called by the same jsp (not using reflection).

      I'm using jboss 3.0.1 with tomcat.

      public class RightsUpdate
      public String community;
      public String user;
      public int manager_grant;
      public int learner_grant;
      public int manager_deny;
      public int learner_deny;