1 Reply Latest reply on Dec 19, 2007 7:17 PM by Tres Spicher

    Startup hangs on Log4jService$URLWatchTimerTask

    Tres Spicher Newbie

      Hi all,

      When I start up my server, it gets this far:

      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /usr/local/jboss-4.2.0.GA
      
       JAVA: /usr/java/bin/java
      
       JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
      
       CLASSPATH: /usr/local/jboss-4.2.0.GA/bin/run.jar:/usr/java/lib/tools.jar
      
      =========================================================================
      
      14:34:48,797 INFO [Server] Starting JBoss (MX MicroKernel)...
      14:34:48,800 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
      14:34:48,803 INFO [Server] Home Dir: /usr/local/jboss-4.2.0.GA
      14:34:48,804 INFO [Server] Home URL: file:/usr/local/jboss-4.2.0.GA/
      14:34:48,806 INFO [Server] Patch URL: null
      14:34:48,807 INFO [Server] Server Name: default
      14:34:48,808 INFO [Server] Server Home Dir: /usr/local/jboss-4.2.0.GA/server/default
      14:34:48,808 INFO [Server] Server Home URL: file:/usr/local/jboss-4.2.0.GA/server/default/
      14:34:48,809 INFO [Server] Server Log Dir: /usr/local/jboss-4.2.0.GA/server/default/log
      14:34:48,810 INFO [Server] Server Temp Dir: /usr/local/jboss-4.2.0.GA/server/default/tmp
      14:34:48,811 INFO [Server] Root Deployment Filename: jboss-service.xml
      14:34:49,849 INFO [ServerInfo] Java version: 1.5.0_12,Sun Microsystems Inc.
      14:34:49,850 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc.
      14:34:49,851 INFO [ServerInfo] OS-System: SunOS 5.8,sparc
      14:34:51,912 INFO [Server] Core system initialized
      14:35:02,530 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      14:35:02,537 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      


      ... but then it hangs indefinitely. I turned on Log4j debug logging, and it tells me this:

      14:39:27,537 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      log4j: System property is :null
      log4j: Standard DocumentBuilderFactory search succeded.
      log4j: DocumentBuilderFactory is: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
      log4j: debug attribute= "false".
      


      When I remove the jboss-log4j.xml file from the conf directory, the server starts but then (predictably) periodically throws a warning at me:

      14:58:27,370 WARN [Log4jService$URLWatchTimerTask] Failed to check URL: resource:jboss-log4j.xml
      java.io.FileNotFoundException: Could not locate resource: jboss-log4j.xml
      


      I'm sure I'm doing something wrong that's obvious, but please help a newbie out!

      Thanks,
      Tres

        • 1. Re: Startup hangs on Log4jService$URLWatchTimerTask
          Tres Spicher Newbie

          Well, I was right, it definitely was a newbie mistake. I'm working on an existing project and somebody changed a few things while I wasn't looking. Basically, the logging to STDOUT of the server startup console is being redirected to log/server.log after the point I indicated in my post and the server was actually starting up just fine. If you're having a "problem" similar to mine and you want to view the logging output, do a tail -f on the server.log file and you should see the expected output.