0 Replies Latest reply on Jun 8, 2005 5:45 AM by Franck DARRAS

    Commons Logging PB with Servlet

    Franck DARRAS Newbie

      Hello,

      Jboss 3.2.7
      Struts 1.2.6
      Cewolf

      When i launch Jboss in mode "all", i obtain this error message

      java.lang.IllegalAccessError: tried to access class org.apache.commons.logging.LogFactory$1 from class org.apache.commons.logging.LogFactory
       at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:262)
       at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
       at de.laures.cewolf.storage.AbstractSessionStorage.<clinit>(AbstractSessionStorage.java:46)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:141)
       at de.laures.cewolf.Configuration.initStorage(Configuration.java:95)
      


      And this error message for ActionServlet
      11:21:18,219 ERROR [Engine] ----- Root Cause -----
      java.lang.IllegalAccessError: tried to access class org.apache.commons.logging.LogFactory$1 from class org.apache.commons.logging.LogFactory
       at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:262)
       at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
       at org.apache.struts.action.ActionServlet.<clinit>(ActionServlet.java:226)
      


      This is my web.xml
      <servlet>
       <servlet-name>CewolfServlet</servlet-name>
       <servlet-class>de.laures.cewolf.CewolfRenderer</servlet-class>
      
       <load-on-startup>1</load-on-startup>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>CewolfServlet</servlet-name>
       <url-pattern>/cewolf/*</url-pattern>
       </servlet-mapping>


      I see a lot of thnig about commons logging

      http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions

      http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging

      but nothing corresponding to my problem

      Thanks for your help