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

  • Home
  • SEARCH
  • 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 7712419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:37:38+00:00 2026-06-01T01:37:38+00:00

For debugging purposes, I would like my app to log to a java.util.logging.SocketHandler. Here’s,

  • 0

For debugging purposes, I would like my app to log to a java.util.logging.SocketHandler. Here’s, my configuration file:

handlers = java.util.logging.SocketHandler
.level = WARNING
java.util.logging.SocketHandler.level = ALL
java.util.logging.SocketHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SocketHandler.host = localhost
java.util.logging.SocketHandler.port = 10101
com.mycompany.level = ALL

This logging configuration file is bundled with the app’s jar and read from main. When I launch the app standalone, the logging works as expected. I see log statements streaming to localhost:10101. However, when i launch the app via JNLP is see no logging. Here’s my JNLP configuration file:

<jnlp spec="1.0+" codebase="http://mycompany.com" href="myapp.jnlp">
  <information>
    <title>My App</title>
    <vendor>My Company</vendor>
    <offline-allowed/>
  </information>
  <security>
      <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+"/>
    <jar href="myapp.jar"/>
  </resources>
  <application-desc main-class="com.mycompany.Main"/>
</jnlp>

I have not found any information nor do I see any reason why this shouldn’t work. Could someone please help make this work? Or suggest another (maybe better?) way to capture logging from an app launched via JNLP.

  • 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-01T01:37:39+00:00Added an answer on June 1, 2026 at 1:37 am

    Well, I figured it out. It turns out my problem was how I was loading the logging properties file as a resource. I was using:

    ClassLoader.getSystemResourceAsStream("/com/mycompany/logging.properties");
    

    But I should have used:

    Main.class.getResourceAsStream("/com/mycompany/logging.properties");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For debugging purposes I would like to have a printf_debug function that would function
I would like to print this value for debugging purposes. How can I do
For debugging purposes, I would like to have a variable in all my templates
For debugging purposes, I would like to display the type of a specific variable
For debugging purposes I would like to dump the content of an input stream
For support and debugging purposes, it would be great if one could record the
For debugging purposes I'd like to have a function in OCaml that converts to
I have a .NET app that I would like to install on a VM
I would like to print the object reference of an object in Java for
For debugging purposes in a somewhat closed system, I have to output text to

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.