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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:36:34+00:00 2026-05-22T20:36:34+00:00

I have a Liferay setup on the Tomcat6. I used Log4j initially for portlets/webapps

  • 0

I have a Liferay setup on the Tomcat6. I used Log4j initially for portlets/webapps by adding log4j.properties file in the classes folder and log4j.jar file in the web-inf/lib.

Now we have few quartz jobs which are available in the tomcat/lib folder and I want to enable log4j logging for these jobs as well.

For these quartz jobs I have copied same log4j.properties file in the tomcat/lib.

With the new configuration I keep getting the following error:

Could not instantiate appender named "JOBS"
A "org.apache.log4j.RollingFileAppender" is not assignable a "org.apache.log4j.Appender" variable.
The class "org.apache.log4j.Appender" was loaded by ...

How to remove this error?

Is there any way I can keep a single log4j.properties file which can be used by both shared/lib as well as portlet/webapps.

  • 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-05-22T20:36:35+00:00Added an answer on May 22, 2026 at 8:36 pm

    According to this post the problem is that you have configured your log4j twice.

    My solution would be that you create the logger instance like this

    private static Logger logger = Logger.getLogger(FooBar.class.getName());

    and not to have log4j.properties under any lib or class folder but having it under a folder named resources.

    AFAIK this should be a place where the both parts of your application may have access to.

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

Sidebar

Related Questions

I have a theme.war file, which I've placed in the server/tomcat/tomcat6/webapps of liferay folder.
I have a question regarding the development of liferay portlets using the liferay plugin
I have been having trouble deploying liferay portlets and themes from the command line
We have something called nested portlets in liferay. I want to add this portlet
So, in Liferay we have a ROOT/html/js folder with all core javascript. Can somebody
How can I serve some static content in liferay? I have a directory structure
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
i have little experience with Liferay, builded a couple of sites with static content
i have got the following problem: I want to create a new Liferay Theme
I am using liferay technology and trying to retrieve data from xml file in

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.