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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:36:15+00:00 2026-06-13T12:36:15+00:00

Using the requestContext demo example in my system http://www.primefaces.org/showcase-labs/ui/requestContext.jsf I am getting the following

  • 0

Using the requestContext demo example in my system
http://www.primefaces.org/showcase-labs/ui/requestContext.jsf

I am getting the following error

Caused by: java.lang.ClassCastException: org.primefaces.context.DefaultRequestContext cannot be cast to org.primefaces.context.RequestContext
at org.primefaces.context.RequestContext.getCurrentInstance(RequestContext.java:38) [primefaces-3.4.1.jar:]

the error occur when the java command running

RequestContext context = RequestContext.getCurrentInstance();

Using primefaces-3.4.1 under jboss seam 2.3.0.Final with Jboss AS 7.1

Amir

  • 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-13T12:36:17+00:00Added an answer on June 13, 2026 at 12:36 pm

    You’ve multiple different versioned PrimeFaces JAR files in your webapp’s runtime classpath. For example, one PrimeFaces 3.3 and another PrimeFaces 3.4.1. They’re conflicting with each other.

    Cleanup the webapp’s runtime classpath so that only the most recent version remains and this problem should disappear. Paths which are by default covered by the webapp’s runtime classpath are the webapp’s own /WEB-INF/lib folder, server’s and/or JRE’s own /lib and /lib/ext folders.


    Update: another, actually more rare, cause is that you’ve multiple PrimeFaces JAR files of the same version which are loaded by different classloaders. The getClass() on the both classes would then never match the == check. You’d need to remove one of both.

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

Sidebar

Related Questions

using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I'm using Django, and I have the following error: Exception Type: SyntaxError Exception Value:
I'm displaying user messages through templates using RequestContext in Django, which gives access to
I'm using System.Web.Routing to have some better URL's and have come across a problem.
I am using my own controller factory and sometimes in function public IController CreateController(RequestContext
I'm using primefaces 3.1, and I want to use the PrimeFaces Push. I want
I have correctly set up a Push server using PrimeFaces p:push component (using a
Currently I am trying to implement a login validation system. I am using ajax
Hi, I am using the following code to generate a URL : UrlHelper urlHelper
I am familiar with calling the currently logged in user, using: requestcontext, user, and

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.