Error in Eclipse-Tomcat Setup - ClassNotFoundException “1catalina.org.apache.juli.FileHandler”












13















Setup: Eclipse Juno R, Tomcat 7.0.8, tomcat run through eclipse plug in.
Tomcat launch configuration from eclipse has VM argument
-Djava.util.logging.config.file="C:WSServerlogstomcat7conflogging.properties"
(Ref: Where can I view Tomcat log files in Eclipse?)
Getting following error.



Can't load log handler "1catalina.org.apache.juli.FileHandler"
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
at java.util.logging.LogManager.addLogger(Unknown Source)
at java.util.logging.LogManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:57)
Can't load log handler "1catalina.org.apache.juli.FileHandler"


There are similar errors for "1catalina.org.apache.juli.FileHandler","2localhost.org.apache.juli.FileHandler" and others.
I understand that these classes come from tomcat-juli.jar at /bin.
I added this jar into server classpath (Eclipse -> Servers -> Open -> Open Lauch configuration -> Classpath -> User Entries), but got the same error.
Contents of logging.properties are:



handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler


Any input / guidance is most appreciated.
Found these
How to configure Tomcat JULI logging to roll log files?
Local Tomcat Environment Not Starting
, but my issue seems to be different.



Edit1
Adding "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" to server's VM Argument and changing "" to "/" in the logging.properties did the trick.
Thanks to Robin for the pointer to Tomcat Logging FAQ



Thank you,
VJ










share|improve this question

























  • On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

    – vinnyjames
    Feb 4 '14 at 18:22


















13















Setup: Eclipse Juno R, Tomcat 7.0.8, tomcat run through eclipse plug in.
Tomcat launch configuration from eclipse has VM argument
-Djava.util.logging.config.file="C:WSServerlogstomcat7conflogging.properties"
(Ref: Where can I view Tomcat log files in Eclipse?)
Getting following error.



Can't load log handler "1catalina.org.apache.juli.FileHandler"
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
at java.util.logging.LogManager.addLogger(Unknown Source)
at java.util.logging.LogManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:57)
Can't load log handler "1catalina.org.apache.juli.FileHandler"


There are similar errors for "1catalina.org.apache.juli.FileHandler","2localhost.org.apache.juli.FileHandler" and others.
I understand that these classes come from tomcat-juli.jar at /bin.
I added this jar into server classpath (Eclipse -> Servers -> Open -> Open Lauch configuration -> Classpath -> User Entries), but got the same error.
Contents of logging.properties are:



handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler


Any input / guidance is most appreciated.
Found these
How to configure Tomcat JULI logging to roll log files?
Local Tomcat Environment Not Starting
, but my issue seems to be different.



Edit1
Adding "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" to server's VM Argument and changing "" to "/" in the logging.properties did the trick.
Thanks to Robin for the pointer to Tomcat Logging FAQ



Thank you,
VJ










share|improve this question

























  • On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

    – vinnyjames
    Feb 4 '14 at 18:22
















13












13








13


3






Setup: Eclipse Juno R, Tomcat 7.0.8, tomcat run through eclipse plug in.
Tomcat launch configuration from eclipse has VM argument
-Djava.util.logging.config.file="C:WSServerlogstomcat7conflogging.properties"
(Ref: Where can I view Tomcat log files in Eclipse?)
Getting following error.



Can't load log handler "1catalina.org.apache.juli.FileHandler"
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
at java.util.logging.LogManager.addLogger(Unknown Source)
at java.util.logging.LogManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:57)
Can't load log handler "1catalina.org.apache.juli.FileHandler"


There are similar errors for "1catalina.org.apache.juli.FileHandler","2localhost.org.apache.juli.FileHandler" and others.
I understand that these classes come from tomcat-juli.jar at /bin.
I added this jar into server classpath (Eclipse -> Servers -> Open -> Open Lauch configuration -> Classpath -> User Entries), but got the same error.
Contents of logging.properties are:



handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler


Any input / guidance is most appreciated.
Found these
How to configure Tomcat JULI logging to roll log files?
Local Tomcat Environment Not Starting
, but my issue seems to be different.



Edit1
Adding "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" to server's VM Argument and changing "" to "/" in the logging.properties did the trick.
Thanks to Robin for the pointer to Tomcat Logging FAQ



Thank you,
VJ










share|improve this question
















Setup: Eclipse Juno R, Tomcat 7.0.8, tomcat run through eclipse plug in.
Tomcat launch configuration from eclipse has VM argument
-Djava.util.logging.config.file="C:WSServerlogstomcat7conflogging.properties"
(Ref: Where can I view Tomcat log files in Eclipse?)
Getting following error.



Can't load log handler "1catalina.org.apache.juli.FileHandler"
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.loadLoggerHandlers(Unknown Source)
at java.util.logging.LogManager.addLogger(Unknown Source)
at java.util.logging.LogManager$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(Unknown Source)
at java.util.logging.Logger.getLogger(Unknown Source)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:57)
Can't load log handler "1catalina.org.apache.juli.FileHandler"


There are similar errors for "1catalina.org.apache.juli.FileHandler","2localhost.org.apache.juli.FileHandler" and others.
I understand that these classes come from tomcat-juli.jar at /bin.
I added this jar into server classpath (Eclipse -> Servers -> Open -> Open Lauch configuration -> Classpath -> User Entries), but got the same error.
Contents of logging.properties are:



handlers = 1catalina.org.apache.juli.FileHandler, 2localhost.org.apache.juli.FileHandler, 3manager.org.apache.juli.FileHandler, 4host-manager.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

1catalina.org.apache.juli.FileHandler.level = FINE
1catalina.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
1catalina.org.apache.juli.FileHandler.prefix = catalina.

2localhost.org.apache.juli.FileHandler.level = FINE
2localhost.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
2localhost.org.apache.juli.FileHandler.prefix = localhost.

3manager.org.apache.juli.FileHandler.level = FINE
3manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
3manager.org.apache.juli.FileHandler.prefix = manager.

4host-manager.org.apache.juli.FileHandler.level = FINE
4host-manager.org.apache.juli.FileHandler.directory = C:WSServerlogstomcat7/logs
4host-manager.org.apache.juli.FileHandler.prefix = host-manager.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers = 2localhost.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].handlers = 3manager.org.apache.juli.FileHandler

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager].handlers = 4host-manager.org.apache.juli.FileHandler


Any input / guidance is most appreciated.
Found these
How to configure Tomcat JULI logging to roll log files?
Local Tomcat Environment Not Starting
, but my issue seems to be different.



Edit1
Adding "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" to server's VM Argument and changing "" to "/" in the logging.properties did the trick.
Thanks to Robin for the pointer to Tomcat Logging FAQ



Thank you,
VJ







java eclipse tomcat logging classnotfoundexception






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 12:13









Community

11




11










asked Oct 4 '12 at 13:16









vjkumarvjkumar

911110




911110













  • On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

    – vinnyjames
    Feb 4 '14 at 18:22





















  • On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

    – vinnyjames
    Feb 4 '14 at 18:22



















On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

– vinnyjames
Feb 4 '14 at 18:22







On windows with tomcat installed as a service and using the tomcat7w.exe to modify the settings on the Java tab > Java Options section; a single space after -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager before the new line gave me the same issue.

– vinnyjames
Feb 4 '14 at 18:22














2 Answers
2






active

oldest

votes


















16














Ensure the following system property is set,



-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


As seen here on the tomcat users mailing list.



I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.






share|improve this answer































    0














    You can check the FAQ for this specific Question:
    http://wiki.apache.org/tomcat/FAQ/Logging



    Or you can use another logging.properties, for example this one:



    log4j.rootLogger=DEBUG, A1
    log4j.appender.A1=org.apache.log4j.ConsoleAppender
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout

    # Print the date in ISO 8601 format
    log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

    # Print only messages of level WARN or above in the package com.foo.
    log4j.logger.com.foo=WARN





    share|improve this answer
























    • Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

      – vjkumar
      Oct 5 '12 at 10:31











    • You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

      – Robin
      Oct 5 '12 at 11:46













    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12728147%2ferror-in-eclipse-tomcat-setup-classnotfoundexception-1catalina-org-apache-jul%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    16














    Ensure the following system property is set,



    -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


    As seen here on the tomcat users mailing list.



    I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.






    share|improve this answer




























      16














      Ensure the following system property is set,



      -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


      As seen here on the tomcat users mailing list.



      I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.






      share|improve this answer


























        16












        16








        16







        Ensure the following system property is set,



        -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


        As seen here on the tomcat users mailing list.



        I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.






        share|improve this answer













        Ensure the following system property is set,



        -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager


        As seen here on the tomcat users mailing list.



        I had the same problem launching tomcat with YAJSW instead of using the tomcat startup scripts.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 2 '13 at 22:44









        John McCarthyJohn McCarthy

        4,10922336




        4,10922336

























            0














            You can check the FAQ for this specific Question:
            http://wiki.apache.org/tomcat/FAQ/Logging



            Or you can use another logging.properties, for example this one:



            log4j.rootLogger=DEBUG, A1
            log4j.appender.A1=org.apache.log4j.ConsoleAppender
            log4j.appender.A1.layout=org.apache.log4j.PatternLayout

            # Print the date in ISO 8601 format
            log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

            # Print only messages of level WARN or above in the package com.foo.
            log4j.logger.com.foo=WARN





            share|improve this answer
























            • Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

              – vjkumar
              Oct 5 '12 at 10:31











            • You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

              – Robin
              Oct 5 '12 at 11:46


















            0














            You can check the FAQ for this specific Question:
            http://wiki.apache.org/tomcat/FAQ/Logging



            Or you can use another logging.properties, for example this one:



            log4j.rootLogger=DEBUG, A1
            log4j.appender.A1=org.apache.log4j.ConsoleAppender
            log4j.appender.A1.layout=org.apache.log4j.PatternLayout

            # Print the date in ISO 8601 format
            log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

            # Print only messages of level WARN or above in the package com.foo.
            log4j.logger.com.foo=WARN





            share|improve this answer
























            • Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

              – vjkumar
              Oct 5 '12 at 10:31











            • You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

              – Robin
              Oct 5 '12 at 11:46
















            0












            0








            0







            You can check the FAQ for this specific Question:
            http://wiki.apache.org/tomcat/FAQ/Logging



            Or you can use another logging.properties, for example this one:



            log4j.rootLogger=DEBUG, A1
            log4j.appender.A1=org.apache.log4j.ConsoleAppender
            log4j.appender.A1.layout=org.apache.log4j.PatternLayout

            # Print the date in ISO 8601 format
            log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

            # Print only messages of level WARN or above in the package com.foo.
            log4j.logger.com.foo=WARN





            share|improve this answer













            You can check the FAQ for this specific Question:
            http://wiki.apache.org/tomcat/FAQ/Logging



            Or you can use another logging.properties, for example this one:



            log4j.rootLogger=DEBUG, A1
            log4j.appender.A1=org.apache.log4j.ConsoleAppender
            log4j.appender.A1.layout=org.apache.log4j.PatternLayout

            # Print the date in ISO 8601 format
            log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n

            # Print only messages of level WARN or above in the package com.foo.
            log4j.logger.com.foo=WARN






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 4 '12 at 13:47









            RobinRobin

            1,53482559




            1,53482559













            • Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

              – vjkumar
              Oct 5 '12 at 10:31











            • You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

              – Robin
              Oct 5 '12 at 11:46





















            • Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

              – vjkumar
              Oct 5 '12 at 10:31











            • You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

              – Robin
              Oct 5 '12 at 11:46



















            Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

            – vjkumar
            Oct 5 '12 at 10:31





            Using ConsoleAppender is not an option for me. I want the logs to be written into a file that I can refer to at later time. Looking at the logging FAQ' for tomcat

            – vjkumar
            Oct 5 '12 at 10:31













            You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

            – Robin
            Oct 5 '12 at 11:46







            You don't have to use the ConsoleAppender for sure. This is only a sample. Here is the manual of the Apache log4j logging.apache.org/log4j/1.2/manual.html. You will find there is a FileAppender for Example. This will add you Log to a .log File. Check this link: veerasundar.com/blog/2009/07/…

            – Robin
            Oct 5 '12 at 11:46




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f12728147%2ferror-in-eclipse-tomcat-setup-classnotfoundexception-1catalina-org-apache-jul%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

            A Topological Invariant for $pi_3(U(n))$