Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1442

java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Platform: PC, OS: Linux

      Description

      Our Runtimeenvironment is SUN-JDK 1.5.0_14, Tomcat 6.0.16, maven 2.0.5, ant
      1.7.0 and Groovy 1.5.4. The Maven2 buildscript uses the antrun-Plugin to perform
      several deployment tasks after build. One of this tasks is executing a
      Groovy-Script. When starting the Groovy-Script the following exception occures:

      [exec] Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"

      [exec] java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager

      [exec] at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:146)

      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

      [exec] at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:118)

      [exec] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

      [exec] at java.util.logging.LogManager$1.run(LogManager.java:166)

      [exec] at java.security.AccessController.doPrivileged(Native Method)

      [exec] at java.util.logging.LogManager.<clinit>(LogManager.java:156)

      [exec] at java.util.logging.Logger.getLogger(Logger.java:254)

      [exec] at
      org.codehaus.groovy.runtime.DefaultGroovyMethods.<clinit>(DefaultGroovyMethods.java:68)

      [exec] at java.lang.Class.forName0(Native Method)

      [exec] at java.lang.Class.forName(Class.java:164)

      [exec] at
      org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.class$(MetaClassRegistryImpl.java:167)

      [exec] at
      org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:167)

      [exec] at
      org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:145)

      [exec] at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:27)

      [exec] at
      org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:46)

      [exec] at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)

      [exec] at groovy.lang.Binding.<init>(Binding.java:32)

      [exec] at groovy.lang.GroovyShell.<init>(GroovyShell.java:63)

      [exec] at groovy.ui.GroovyMain.processOnce(GroovyMain.java:490)

      [exec] at groovy.ui.GroovyMain.run(GroovyMain.java:308)

      [exec] at groovy.ui.GroovyMain.process(GroovyMain.java:294)

      [exec] at groovy.ui.GroovyMain.processArgs(GroovyMain.java:111)

      [exec] at groovy.ui.GroovyMain.main(GroovyMain.java:92)

      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      [exec] at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      [exec] at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      [exec] at java.lang.reflect.Method.invoke(Method.java:585)

      [exec] at
      org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:101)

      [exec] at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)

      [exec] Can't load log handler "1catalina.org.apache.juli.FileHandler"

      [exec] java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler

      [exec] java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler

      The Groovy-Script itself surprisingly executes after the exception without any
      error. Running the maven2-Buildscript standalone passes without any exception.

      brgds
      Bernd Clemenz

      1. application.properties
        0.2 kB
        tblack
      2. joblog.txt
        23 kB
        davidecavestro
      3. pom.xml
        4 kB
        tblack

        Activity

        Hide
        nimowy nimowy added a comment -

        Hi, I am also seeing this issue when trying to build a grails project.
        Our environment is: Fedora 8, Tomcat 5,
        java.runtime.name IcedTea Runtime Environment
        java.runtime.version 1.7.0-b21
        java.specification.name Java Platform API Specification
        java.specification.vendor Sun Microsystems Inc.
        java.specification.version 1.7

        With the latest groovy and grails installed.

        Here is the error text:
        Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
        java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:146)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:324)
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:118)
        at
        org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:39)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:269)
        at java.util.logging.LogManager$1.run(LogManager.java:186)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:176)
        at java.util.logging.Logger.getLogger(Logger.java:299)
        at
        org.codehaus.groovy.runtime.DefaultGroovyMethods.<clinit>(DefaultGroovyMethods.java:68)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:187)
        at
        org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.class$(MetaClassRegistryImpl.java:167)
        at
        org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:167)
        at
        org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:145)
        at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:27)
        at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:46)
        at
        org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227)
        at
        org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNew0(ScriptBytecodeAdapter.java:234)
        at
        org.codehaus.groovy.grails.cli.GrailsScriptRunner.<clinit>(GrailsScriptRunner.groovy:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:623)
        at
        org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:140)
        at
        org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:165)

        Show
        nimowy nimowy added a comment - Hi, I am also seeing this issue when trying to build a grails project. Our environment is: Fedora 8, Tomcat 5, java.runtime.name IcedTea Runtime Environment java.runtime.version 1.7.0-b21 java.specification.name Java Platform API Specification java.specification.vendor Sun Microsystems Inc. java.specification.version 1.7 With the latest groovy and grails installed. Here is the error text: Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:146) at java.lang.ClassLoader.loadClass(ClassLoader.java:324) at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:118) at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:39) at java.lang.ClassLoader.loadClass(ClassLoader.java:269) at java.util.logging.LogManager$1.run(LogManager.java:186) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.<clinit>(LogManager.java:176) at java.util.logging.Logger.getLogger(Logger.java:299) at org.codehaus.groovy.runtime.DefaultGroovyMethods.<clinit>(DefaultGroovyMethods.java:68) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:187) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.class$(MetaClassRegistryImpl.java:167) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:167) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:145) at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:27) at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java:46) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:227) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNew0(ScriptBytecodeAdapter.java:234) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.<clinit>(GrailsScriptRunner.groovy:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:623) at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:140) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:165)
        Hide
        ttran ttran added a comment -

        I don't think this is specific to maven. It happens to me with my CI build for
        jruby trunk as well. Env:

        Ubuntu 8.04, 32bit
        Sun JDK 1.6.0_11 (also _10)
        Tomcat 6.0.18
        The builder is a shell script snippet, ie I don't hudson ant builder

        Here is the relevant excerpt from the console output

        run-junit-compiled:
        [echo] compile=JIT, jit.threshold=0, jit.max=-1, objectspace=true
        threadpool=false reflection=false version=ruby1_8
        [junit] Testsuite: org.jruby.test.ScriptTestSuite
        [junit] Tests run: 80, Failures: 0, Errors: 0, Time elapsed: 19.775 sec
        [junit]
        [junit] Testsuite: org.jruby.test.BFTSTestSuite
        [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 4.861 sec
        [junit]
        [junit] Testsuite: org.jruby.test.JRubyTestSuite
        [junit] Failure:
        [junit] test_dash_big_w_sets_warning_level(TestCommandLineSwitches)
        [junit] [test/test_command_line_switches.rb:180:in
        `test_dash_big_w_sets_warning_level'
        [junit] test/test_helper.rb:39:in `with_temp_script'
        [junit]
        /hudson/workdir/jobs/JRuby-Trunk/workspace/jruby/lib/ruby/1.8/tempfile.rb:188:in
        `open'
        [junit] test/test_helper.rb:31:in `with_temp_script'
        [junit] test/test_command_line_switches.rb:179:in
        `test_dash_big_w_sets_warning_level'
        [junit] test/test_helper.rb:50:in `with_jruby_shell_spawning'
        [junit] test/test_command_line_switches.rb:178:in
        `test_dash_big_w_sets_warning_level']:
        [junit] <""> expected but was
        [junit] <"Could not load Logmanager
        \"org.apache.juli.ClassLoaderLogManager\"\njava.lang.ClassNotFoundException:
        org.apache.juli.ClassLoaderLogManager\n\tat
        java.net.URLClassLoader$1.run(URLClassLoader.java:200)\n\tat
        java.security.AccessController.doPrivileged(Native Method)\n\tat
        java.net.URLClassLoader.findClass(URLClassLoader.java:188)\n\tat
        java.lang.ClassLoader.loadClass(ClassLoader.java:307)\n\tat
        sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n\tat
        java.lang.ClassLoader.loadClass(ClassLoader.java:252)\n\tat
        java.util.logging.LogManager$1.run(LogManager.java:166)\n\tat
        java.security.AccessController.doPrivileged(Native Method)\n\tat
        java.util.logging.LogManager.<clinit>(LogManager.java:156)\n\tat
        java.util.logging.Logger.getLogger(Logger.java:273)\n\tat
        com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)\n\tat
        javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)\n\tat
        javax.management.MBeanServerDelegate.<init>(MBeanServerDelegate.java:58)\n\tat
        com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.<init>(MBeanServerDelegateImpl.java:82)\n\tat
        com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanServer.java:1326)\n\tat
        javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerBuilder.java:49)\n\tat
        javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:302)\n\tat
        javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)\n\tat
        javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)\n\tat
        sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)\n\tat
        java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)\n\tat
        org.jruby.management.BeanManager.register(BeanManager.java:66)\n\tat
        org.jruby.management.BeanManager.register(BeanManager.java:29)\n\tat
        org.jruby.compiler.JITCompiler.<init>(JITCompiler.java:69)\n\tat
        org.jruby.Ruby.<init>(Ruby.java:212)\n\tat
        org.jruby.Ruby.newInstance(Ruby.java:165)\n\tat
        org.jruby.Main.run(Main.java:184)\n\tat org.jruby.Main.run(Main.java:100)\n\tat
        org.jruby.Main.main(Main.java:84)\n">.
        [junit] Failure:

        Show
        ttran ttran added a comment - I don't think this is specific to maven. It happens to me with my CI build for jruby trunk as well. Env: Ubuntu 8.04, 32bit Sun JDK 1.6.0_11 (also _10) Tomcat 6.0.18 The builder is a shell script snippet, ie I don't hudson ant builder Here is the relevant excerpt from the console output run-junit-compiled: [echo] compile=JIT, jit.threshold=0, jit.max=-1, objectspace=true threadpool=false reflection=false version=ruby1_8 [junit] Testsuite: org.jruby.test.ScriptTestSuite [junit] Tests run: 80, Failures: 0, Errors: 0, Time elapsed: 19.775 sec [junit] [junit] Testsuite: org.jruby.test.BFTSTestSuite [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 4.861 sec [junit] [junit] Testsuite: org.jruby.test.JRubyTestSuite [junit] Failure: [junit] test_dash_big_w_sets_warning_level(TestCommandLineSwitches) [junit] [test/test_command_line_switches.rb:180:in `test_dash_big_w_sets_warning_level' [junit] test/test_helper.rb:39:in `with_temp_script' [junit] /hudson/workdir/jobs/JRuby-Trunk/workspace/jruby/lib/ruby/1.8/tempfile.rb:188:in `open' [junit] test/test_helper.rb:31:in `with_temp_script' [junit] test/test_command_line_switches.rb:179:in `test_dash_big_w_sets_warning_level' [junit] test/test_helper.rb:50:in `with_jruby_shell_spawning' [junit] test/test_command_line_switches.rb:178:in `test_dash_big_w_sets_warning_level']: [junit] <""> expected but was [junit] <"Could not load Logmanager \"org.apache.juli.ClassLoaderLogManager\"\njava.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:200)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:188)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:307)\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:252)\n\tat java.util.logging.LogManager$1.run(LogManager.java:166)\n\tat java.security.AccessController.doPrivileged(Native Method)\n\tat java.util.logging.LogManager.<clinit>(LogManager.java:156)\n\tat java.util.logging.Logger.getLogger(Logger.java:273)\n\tat com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:37)\n\tat javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:335)\n\tat javax.management.MBeanServerDelegate.<init>(MBeanServerDelegate.java:58)\n\tat com.sun.jmx.mbeanserver.MBeanServerDelegateImpl.<init>(MBeanServerDelegateImpl.java:82)\n\tat com.sun.jmx.mbeanserver.JmxMBeanServer.newMBeanServerDelegate(JmxMBeanServer.java:1326)\n\tat javax.management.MBeanServerBuilder.newMBeanServerDelegate(MBeanServerBuilder.java:49)\n\tat javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:302)\n\tat javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)\n\tat javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)\n\tat sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)\n\tat java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)\n\tat org.jruby.management.BeanManager.register(BeanManager.java:66)\n\tat org.jruby.management.BeanManager.register(BeanManager.java:29)\n\tat org.jruby.compiler.JITCompiler.<init>(JITCompiler.java:69)\n\tat org.jruby.Ruby.<init>(Ruby.java:212)\n\tat org.jruby.Ruby.newInstance(Ruby.java:165)\n\tat org.jruby.Main.run(Main.java:184)\n\tat org.jruby.Main.run(Main.java:100)\n\tat org.jruby.Main.main(Main.java:84)\n">. [junit] Failure:
        Hide
        kohsuke Kohsuke Kawaguchi added a comment -

        If someone can provide us a simple test case (namely pom.xml and supporting
        files whose build on Hudson would cause this issue), that would be greatly
        appreciated.

        Once we can reproduce a problem, fixing it shouldn't be that hard.

        Show
        kohsuke Kohsuke Kawaguchi added a comment - If someone can provide us a simple test case (namely pom.xml and supporting files whose build on Hudson would cause this issue), that would be greatly appreciated. Once we can reproduce a problem, fixing it shouldn't be that hard.
        Hide
        tblack tblack added a comment -

        Same issue with a grails project created via the maven grails archetype. Our first step is to tell hudson to do a 'grails clean', so maven may not be causing the issue. I will attach our pom.xml to this issue.

        Environment: Linux
        Hudson: 1.327, Java: , Maven: 2.0.9, Grails: 1.1.1

        Hudson Build order

        • Execute Shell
          cd core
          grails clean
          grails upgrade --non-interactive
        • Invoke top-level Maven targets
          clean
          install
          -Dserver.port=8183
          -DnonInteractive=true
          -Dmaven.webtest.skip=false

        Started by user netcdsuser
        Building on master
        Updating https://phlcvs01/svn/netcds/branches/netcds-0.8.0911.0/core/grails/core
        At revision 15179
        no change for https://phlcvs01/svn/netcds/branches/netcds-0.8.0911.0/core/grails/core since the previous build
        [workspace] $ /bin/sh -xe /opt/apps/tomcat/temp/hudson8472679473766503401.sh
        + cd core
        + grails clean
        Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
        java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

        Show
        tblack tblack added a comment - Same issue with a grails project created via the maven grails archetype. Our first step is to tell hudson to do a 'grails clean', so maven may not be causing the issue. I will attach our pom.xml to this issue. Environment: Linux Hudson: 1.327, Java: , Maven: 2.0.9, Grails: 1.1.1 Hudson Build order Execute Shell cd core grails clean grails upgrade --non-interactive Invoke top-level Maven targets clean install -Dserver.port=8183 -DnonInteractive=true -Dmaven.webtest.skip=false Started by user netcdsuser Building on master Updating https://phlcvs01/svn/netcds/branches/netcds-0.8.0911.0/core/grails/core At revision 15179 no change for https://phlcvs01/svn/netcds/branches/netcds-0.8.0911.0/core/grails/core since the previous build [workspace] $ /bin/sh -xe /opt/apps/tomcat/temp/hudson8472679473766503401.sh + cd core + grails clean Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        Hide
        tblack tblack added a comment -

        Maven pom.xml created via the maven grails archetype.
        Current grails application.properties file

        Show
        tblack tblack added a comment - Maven pom.xml created via the maven grails archetype. Current grails application.properties file
        Hide
        tblack tblack added a comment -

        I'll add that the hudson job type used is "free-style project", not "maven2 project"

        Show
        tblack tblack added a comment - I'll add that the hudson job type used is "free-style project", not "maven2 project"
        Hide
        davidecavestro davidecavestro added a comment -

        Same problem with a "free-style project" for a Grails 1.3.4 project, on apache-tomcat-6.0.20, Groovy 1.7.4 and JDK 1.6.0_13.
        The error message appears at every grails command invocation, then the build process seems to continue normally with success, but at the end the job complains a FAILURE:

        ...
        [rel_1.1r1] $ /home/tomcat/opt/grails/bin/grails -Dgwt.home=/home/tomcat/opt/gwt test-app
        Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
        java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
        at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
        at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:43)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.util.logging.LogManager$1.run(LogManager.java:168)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at org.codehaus.groovy.runtime.DefaultGroovyMethodsSupport.<clinit>(DefaultGroovyMethodsSupport.java:32)
        at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:82)
        at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:59)
        at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:29)
        at groovy.lang.ExpandoMetaClassCreationHandle.enable(ExpandoMetaClassCreationHandle.java:74)
        at groovy.lang.ExpandoMetaClass.enableGlobally(ExpandoMetaClass.java:447)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.<clinit>(GrailsScriptRunner.java:78)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
        Welcome to Grails 1.3.4 - http://grails.org/
        Licensed under Apache Standard License 2.0
        Grails home is set to: /home/tomcat/opt/grails

        ...
        [delete] Deleting directory /home/tomcat/.grails/1.3.4/projects/rel_1.1r1/stage
        Done creating WAR ...
        Finished: FAILURE

        Initially I thought the error message was simply some sort of warning for a catched exception, but now I suspect that exception is the cause of failure (I think it should be reproducible even with an empty grails project, but I've not tried yet).

        Davide

        Show
        davidecavestro davidecavestro added a comment - Same problem with a "free-style project" for a Grails 1.3.4 project, on apache-tomcat-6.0.20, Groovy 1.7.4 and JDK 1.6.0_13. The error message appears at every grails command invocation, then the build process seems to continue normally with success, but at the end the job complains a FAILURE: ... [rel_1.1r1] $ /home/tomcat/opt/grails/bin/grails -Dgwt.home=/home/tomcat/opt/gwt test-app Could not load Logmanager "org.apache.juli.ClassLoaderLogManager" java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128) at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:43) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.util.logging.LogManager$1.run(LogManager.java:168) at java.security.AccessController.doPrivileged(Native Method) at java.util.logging.LogManager.<clinit>(LogManager.java:158) at java.util.logging.Logger.getLogger(Logger.java:273) at org.codehaus.groovy.runtime.DefaultGroovyMethodsSupport.<clinit>(DefaultGroovyMethodsSupport.java:32) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:82) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init>(MetaClassRegistryImpl.java:59) at groovy.lang.GroovySystem.<clinit>(GroovySystem.java:29) at groovy.lang.ExpandoMetaClassCreationHandle.enable(ExpandoMetaClassCreationHandle.java:74) at groovy.lang.ExpandoMetaClass.enableGlobally(ExpandoMetaClass.java:447) at org.codehaus.groovy.grails.cli.GrailsScriptRunner.<clinit>(GrailsScriptRunner.java:78) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234) at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262) Welcome to Grails 1.3.4 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /home/tomcat/opt/grails ... [delete] Deleting directory /home/tomcat/.grails/1.3.4/projects/rel_1.1r1/stage Done creating WAR ... Finished: FAILURE Initially I thought the error message was simply some sort of warning for a catched exception, but now I suspect that exception is the cause of failure (I think it should be reproducible even with an empty grails project, but I've not tried yet). Davide
        Hide
        davidecavestro davidecavestro added a comment - - edited

        I've just added my Grails project job log.

        UDPATE: It turned out that my project failed due to the gradle-artifactory plugin: disabling that plugin the project terminates with success (the ClassLoaderLogManager message is "only" a warning).

        Regarding Kohsuke's request for a test case, I can say that creating a job that uses the grails plugin (the only build step) I systematically obtain the message (tomcat 6.0.29, grails 1.3.4, groovy 1.7.4 and SUN JDK 1.6.0_20). Maybe it's not a maven2 related problem, but I hope this info could be useful.

        Show
        davidecavestro davidecavestro added a comment - - edited I've just added my Grails project job log. UDPATE: It turned out that my project failed due to the gradle-artifactory plugin: disabling that plugin the project terminates with success (the ClassLoaderLogManager message is "only" a warning). Regarding Kohsuke's request for a test case , I can say that creating a job that uses the grails plugin (the only build step) I systematically obtain the message (tomcat 6.0.29, grails 1.3.4, groovy 1.7.4 and SUN JDK 1.6.0_20). Maybe it's not a maven2 related problem, but I hope this info could be useful.

          People

          • Assignee:
            kohsuke Kohsuke Kawaguchi
            Reporter:
            bernd_clemenz bernd_clemenz
          • Votes:
            14 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated: