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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:53:33+00:00 2026-06-01T00:53:33+00:00

In summary, method with @PostConstruct is not call by JSF on WebLogic12c, on managed

  • 0

In summary, method with @PostConstruct is not call by JSF on WebLogic12c, on managed bean.

I have a very basic application.

Technologies used:
JSF2.0

Application Server:
WebLogic 12c

Java

@ManagedBean
@ViewScoped

public class BeanTest implements Serializable {

    private String hola_mundo = "";

    public BeanTest(){
        this.init();
    }

    private void init(){
        hola_mundo +=" Enter to construct - ";
    }


    @PostConstruct
    public void initPostConstruct(){
        hola_mundo +=" Enter to PostConstruct - ";
    }

    public String getHola_mundo() {
        return hola_mundo;
    }

    public void setHola_mundo(String hola_mundo) {
        this.hola_mundo = hola_mundo;
    }
}

XHTML

<h:head>
    <title>Facelet Title</title>
</h:head>
<h:body>
    Test
    <br/>
    #{beanTest.hola_mundo}
</h:body>

When the managed bean is instance for JSF,
The managed bean beanTest is create, (Enter at normal constructor)
but don’t enter (ignore, don’t call) method with PostConstruct.

The text displayed with WebLogic: Enter to Construct
The expected text, but not displayed with WL: Enter to Construct – Enter to PostConstruct

The application has been deployed on other application servers:

  • GlassFish 3.1.1
  • GlassFish 3.1.2
  • Tomcat 7.0.22

And show the expected result.

The problem only happens with JSF managed beans(request, session, view, application), if use CDI, the PostConstruct is called. But I need to use the JSF ViewScoped annotation.

Someone with any idea?

  • 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-01T00:53:34+00:00Added an answer on June 1, 2026 at 12:53 am

    Well, the problem is solved.

    This is a bug reported, and already has a patch.

    Bug: 13703600
    Patch : SU Patch [UXPH]: WLS12C – POSTCONSTRUCT NOT CALLED ON @MANAGEDBEAN BEANS IN JSF APP.

    I apply the patch and the problem was fixed…

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

Sidebar

Related Questions

Suppose I have this interface public interface IFoo { ///<summary> /// Foo method ///</summary>
I currently have this code: /// <summary> /// This is an ineffecient method of
This is the code I have. /// <summary> /// Method calls stored procedure and
i have noticed a number of empty method and class summary sections throughout a
I have been using the method summary XML Comments at the top of my
I have the following area route registration method: /// <summary> /// Registers the area.
I have the following method on a WCF service: /// <summary> /// Receives the
Say I have interface IFoo { /// <summary> /// Comments about Bar method goes
I have a method in Interface like this: /// <summary> /// Create File ///
I have writen a method such as: /// <summary> /// A method having xml-comments

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.