Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1398

java.lang.NoClassDefFoundError: java/util/Iterator after Redeploying Struts-Application

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • No Release
    • JBossAS-3.2.6 Final, JBossAS-3.2.7 Final
    • Web (Tomcat) service
    • None
    • Linux, Kernel 2.6.10, SUN-JDK 1.4.2_07, or JDK 1.4.2_06, JBoss 3.2.7 or 3.2.7.

      I got two almost identical Struts-Applications.
      After some hot-deployments (touch web.xml is enough) I get an exception:

      2005-02-09 15:16:47,711 ERROR [org.jboss.web.localhost.Engine] ----- Root Cause -----
      java.lang.NoClassDefFoundError: java/util/Iterator
      at org.apache.struts.action.ActionServlet.destroyModules(ActionServlet.java:476)
      at org.apache.struts.action.ActionServlet.destroy(ActionServlet.java:286)
      at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1269)
      at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1594)
      at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:952)
      at org.apache.catalina.core.StandardContext.removeChild(StandardContext.java:3152)
      [..]

      This error does not happen if I set 'UseJBossWebLoader' to 'false' in 'deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.xml'.

      The web-applications are really simple, they just consists of the following files:
      web.war/META-INF/MANIFEST.MF
      web.war/WEB-INF/conf/struts-config.xml
      web.war/WEB-INF/lib/struts.jar
      web.war/WEB-INF/web.xml
      ipcare.war/META-INF/MANIFEST.MF
      ipcare.war/WEB-INF/conf/struts-config.xml
      ipcare.war/WEB-INF/lib/struts.jar
      ipcare.war/WEB-INF/web.xml

      To produce the problem I just did

      > while true
      > do
      > touch web.war/WEB-INF/web.xml
      > sleep 5
      > touch ipcare.war/WEB-INF/web.xml
      > sleep 5
      > done

      It seems that the UnifiedClassLoad has some problems. After 15 h of searching I'm giving up.

              starksm64 Scott Stark (Inactive)
              MarcusRoeder Marcus Röder (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: