Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8238191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:43:37+00:00 2026-06-07T19:43:37+00:00

I use logback (via slf4j ) in a Java applet with configuration stored in

  • 0

I use logback (via slf4j) in a Java applet with configuration stored in logback.xml file in the applet root directory. Running in Eclipse it can find and load config placed somewhere in classpath. But it doesn’t load configuration from applet jar.
I suspect this issue is not related with logback but with applet itself. I have no experience with applets at all.

[EDIT]

logback.xml (logging configuration file) is in the root directory of the jar, the rest of jar content seems is not relevant. It’s the typical location of logging configuration file in jar files so the issue is not related with the file location. I checked the jar file. Actually I have 2 jar files: server side and applet (client side). Logging configuration works fine on server side, so I suspect it’s something related with applet specifics.

[EDIT2]

I don’t load logging configuration explicitly, it’s done by logback library, it looks for specific file name in classpath.

[EDIT3]

Applet setup:

<applet name="name" id="game" width="100%" height="100%" alt="Please visit our site"
    archive="my.jar" code="path/to/main.class" mayscript="" title="Java">
    <param name="boxborder" value="false">
    <param name="separate_jvm" value="true">
    <param name="image" value="http://www.oursite.com/img/splash.gif">
    <param name="centerimage" value="true">
    <param name="boxbgcolor" value="black">
    <param name="java_arguments" value="-Xmx384m -Dsun.java2d.noddraw=true -XX:CompileThreshold=1500 -Xincgc -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Dcom.sun.management.jmxremote -Xss6m">
    <div class="nojava">
        <h1>
            Please Update Java</h1>
        <p>
            It appears that you do not have Java installed, or your version of Java is out of
            date. To play this game for free please <a target="_blank" href="http://www.java.com/en/download/index.jsp">
                click here</a> to download the latest version of Java. </p>
    </div>
</applet>

[EDIT4]

Printed logback’s internal diagnostic info, it says it cannot find logback.xml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:43:38+00:00Added an answer on June 7, 2026 at 7:43 pm

    resolved

    The problem wasn’t related with logback or applet. I was putting configuration file into the jar after it was already signed. Thanks everybody for your help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use default SLF4J + Logback configuration except setting org.springframework.data.document.mongodb logging level
I have the following logback.xml file: <configuration debug=true> <appender name=STDOUT class=ch.qos.logback.core.ConsoleAppender> <encoder> <pattern>%d{HH:mm:ss.SSS} [%thread]
For Java development, I use Slf4j and Logback. Logger logger = LoggerFactory.getLogger(HelloWorld.class); logger.debug(Hello world.);
How can I change a log file path on the fly in Logback? In
I use TimeBasedRollingPolicy and SizeAndTimeBasedFNATP triggering policy for my logback configuration. The rollover of
I have a red5 application using java language and I use logback for logging.
My Java EE 6 application uses slf4j with logback as logging framework. Now I
Is there anyway to force slf4j to use specific logging provider (logback in my
I'd like to configure one of my webapps to entirely use SLF4J over Logback
I use sl4j / logback as a logging framework. I am unsure about the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.