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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:17:54+00:00 2026-06-04T01:17:54+00:00

I am using Eclipselink 2.3.0 in a new project that is deployed in Glassfish

  • 0

I am using Eclipselink 2.3.0 in a new project that is deployed in Glassfish 3.1.2 in an EAR file.

These are all the properties defined in my persistence.xml:

<property name="eclipselink.target-database" value="MySQL"/>
<property name="eclipselink.logging.logger" value="DefaultLogger"/>
<property name="eclipselink.logging.file" value="\logs\eclipselink.log"/>
<property name="eclipselink.logging.level" value="FINEST"/>
<property name="eclipselink.logging.parameters" value="true"/>
<property name="eclipselink.logging.timestamp" value="true"/>
<property name="eclipselink.logging.thread" value="true"/>
<property name="eclipselink.logging.session" value="true"/>
<property name="eclipselink.logging.exceptions" value="true"/>

All of the properties work as expected, except for eclipselink.logging.file. It creates the file “\logs\eclipselink.log”, but it is always empty, and the logging output goes to stdout.

I have tried changing from DefaultLogger to JavaLogger, and the file name to have the other direction slashes, etc, etc. Everything I try results in an empty log file, and the logging output going to stdout.

Any ideas as to why this is happening? It seems to me like EclipseLink is reading the properties correctly, and creating the file, but somewhere the output is being redirected to stdout.

P.S. There is only one persistence.xml in the EAR project, and this is the only project deployed in the Glassfish instance.

  • 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-04T01:17:55+00:00Added an answer on June 4, 2026 at 1:17 am

    From looking at the code that processes the properties, it seems it may be a bug. Are you using a managed or application managed persistence unit?

    My guess, is if you create your own subclass of DefaultSessionLog the file property will be applied.
    You could also try setting the log file in a SessionCustomizer.

    Please log a bug.

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

Sidebar

Related Questions

using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
i'm new with JPA, i'm using in a JSF 2 Project with Glassfish 3
Disclaimer: I'm completely new to Java EE/EJB and all that, so bear with me.
Using Eclipselink/MOXy 2.3 i have following usecase in marshalling to XML: abstract class MyAbstract
I'm using EclipseLink for a web project involving EJB 3 and Oracle stored procedures.
I'm using Eclipselink as my persistence provider. Is there any way to specify the
I'm using EclipseLink's MOXy as the JAXB implementation in my RESTEasy project.MOXy's advanced functionality
I'm using EclipseLink in my J2SE project. I'm using mysql and JPA. I have
I have following use-case for marshalling a POJO to XML using Eclipselink MOXy 2.3:
I am using Eclipselink in glassfish to deploy an application and I'd like 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.