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 8167665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:16:09+00:00 2026-06-06T20:16:09+00:00

I am using apache log4j from java 1.6. I am creating exe file using

  • 0

I am using apache log4j from java 1.6.
I am creating exe file using exe4j and when I place it in the production folders –
logs are being created successfully.

Now, I have turned it into service exe
(checked a “service” checkbox in exe4j and installed it with SC command )
and log files stopped being created .

is there an explanation/solution for it ?
Thanks.

  • 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-06T20:16:10+00:00Added an answer on June 6, 2026 at 8:16 pm

    Your service most likely is running as an account (LOCAL SERVICE?) that does not have permission to write to the log folder.

    To check the account under the service is running on, right-click the service in the Services panel, select Properties, and view the LogOn tab (for Windows 7… exact steps for other Windows versions will vary but the idea is the same).

    I would suggest continuing to run your service with the least privileges it needs and modify access rights to the log folder to allow the account the service is running under to write to that folder (Principal of Least Privilege). Of course, don’t have anything except logs in that folder.

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

Sidebar

Related Questions

I'm using apache commons library and log4j. I have an xml configuration file and
I'm using log4j to log in application. Now the log file is created in
I am trying to run mathtext from a java program using apache-commons-exec. The problem
In my java swing application I load log4j properties from a properties file stored
I use a legacy library that writes logs using log4j. My default log4j.properties file
I'm using Apache Commons Logging and SLF4J with log4j, but I also want to
Using Apache Commons VFS , how do I monitor the progress of a file
I'm using Apache Commons FTP to upload a file. Before uploading I want to
We are using JSF2 ,Apache CXF2.5.2 deployed to weblogic10.3 We have log4j.properties defined with
I want to add logging to an application I am developing, using apache log4j.

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.