1 Reply Latest reply on Jan 25, 2008 8:09 AM by Annegret Sternagel

    JBoss5 startup takes > 10 min.

    Annegret Sternagel Newbie

      Hi,

      I'm deploying a war file into JBoss5.0.0Beta3 that contains an amount of libraries in WEB-INF/lib inside.
      Now JBoss needs up to 14 MINUTES for startup, in the logfile I can see that the time is taken in the class AnnotatedClassFilter:

      [main] 2008-01-24 14:25:54,189 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.instrument.classloading.oc4j.OC4JClassPreprocessorAdapter, NCDFE: java.lang.NoClassDefFoundError: oracle/classloader/util/ClassPreprocessor
      [main] 2008-01-24 14:26:12,613 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.orm.ibatis.support.AbstractLobTypeHandler, NCDFE: java.lang.NoClassDefFoundError: com/ibatis/sqlmap/engine/type/BaseTypeHandler
      [main] 2008-01-24 14:26:12,644 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler, NCDFE: java.lang.NoClassDefFoundError: com/ibatis/sqlmap/engine/type/BaseTypeHandler
      ...
      [main] 2008-01-24 14:26:46,574 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.activeio.journal.howl.HowlJournal$1, NCDFE: java.lang.NoClassDefFoundError: org/objectweb/howl/log/LogEventListener
      [main] 2008-01-24 14:26:47,698 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.activeio.xnet.StandardServiceStackGBean, NCDFE: java.lang.NoClassDefFoundError: org/apache/geronimo/gbean/GBeanLifecycle
      ...
      [main] 2008-01-24 14:35:17,294 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: com.ctc.wstx.msv.RelaxNGSchemaFactory$MyGrammarController, NCDFE: java.lang.NoClassDefFoundError: com/sun/msv/reader/util/IgnoreController
      [main] 2008-01-24 14:36:03,424 DEBUG [org.jboss.deployment.AnnotatedClassFilter] Incomplete class: org.apache.xmlbeans.impl.tool.XMLBean, NCDFE: java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/MatchingTask
      ...
      ...
      [main] 2008-01-24 14:38:44,277 INFO [org.jboss.bootstrap.microcontainer.ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNTag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 14m:32s:628ms
      
      


      Look at the timestamps: 14:25 upt to 14:36, more than 10 minutes only for class annotation filtering. I've found the sourcecode of this message and could see that nothing happens, the NoClassDefFoundError is ignored.

      JBoss 4.2 containing the same war file needs just 4m:54s:225ms

      2008-01-22 13:17:29,171 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 4m:54s:225ms
      



      How can I circumvent this and speed up jboss5 startup ?
      14 minutes complete startup time is not usable.

      Annegret



        • 1. Re: JBoss5 startup takes > 10 min.
          Annegret Sternagel Newbie

          Hi,

          I deployed a simple war-file containing a web.xml, no class files, just one jar-file (spring.jar) in WEB-INF/lib and jboss needs about 1 minutes just to resolve annotations on classes in this one library.

          web.xml

          <?xml version="1.0" encoding="UTF-8"?>
          <web-app id="WebApp_ID" version="2.4"
           xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
           <display-name>User Management</display-name>
          
          </web-app>
          
          


          any idea ?

          starting jboss without our war-file is completed in about 1 minute, hot-deplyoing our war-file (not the simple one above) thorws an

          IllegalStateException: File cannot contain children

          What does this mean ?

          Any help appreciated.

          Annegret