0 Replies Latest reply on Feb 28, 2003 11:14 AM by Michael

    Problem Deploying an EJB in JBoss3.2 with Log4J

    Michael Newbie

      Can someone explain why I'm getting the following error.
      I have a previous version of log4j.jar extracted and
      jarred along with my EJB class files, but I'm getting the following error. The problem is that my entity bean is required to import these class files, so I jarred them up in the same jar as my EJB, but it still doesn't work.
      --------------------------------------------

      11:24:08,918 INFO [EntityContainer] Starting
      11:24:08,948 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=ContactSearch,service=EJB
      java.lang.Error: Unresolved compilation problems:
      The import org.apache.log4j cannot be resolved
      The import org.apache.log4j cannot be resolved
      Category cannot be resolved (or is not a valid type) for the field CategoryAdapter.log4jCategory
      PropertyConfigurator cannot be resolved
      log4jCategory cannot be resolved
      Category cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved
      log4jCategory cannot be resolved

      at java.lang.reflect.Constructor.newInstance(Native Method)
      at necx.util.logging.CategoryAdapter.(CategoryAdapter.java:3)

      --- Thanks