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

  • Home
  • SEARCH
  • 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 9237199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:28:55+00:00 2026-06-18T07:28:55+00:00

I am using Prime faces in my application. I have specification to migrate Tomcat

  • 0

I am using Prime faces in my application.
I have specification to migrate Tomcat server(6) to Glass fish(v2.1)
I have done it in net beans.

But I am getting HTTP Status 503 Error while running project.
(Working fine while using tomcat 6)

Getting This in console

Initializing Mojarra (1.2_13-b01-FCS) for context '/Prime'
WebModule[/Prime]PWC1275: Exception sending context initialized event to listener
instance of class com.sun.faces.config.ConfigureListener

Caused by: org.xml.sax.SAXParseException: cvc-enumeration-valid: Value '2.0' is not
facet-valid with respect to enumeration '[1.2]'. It must be a value from the enumeration.

Why i am getting this error and please give me a solution for this.

Thank You.

  • 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-18T07:28:56+00:00Added an answer on June 18, 2026 at 7:28 am

    Glassfish v2 ships as being a full fledged Java EE 5 container with JSF 1.2 bundled. Your webapp is apparently a JSF 2.0 based one which has JSF 2.0 libraries in /WEB-INF/lib. This will of course conflict with Glassfish’s own JSF 1.2 librares with errors like this. Your specific error is caused by having <faces-config version="2.0"> which isn’t supported by JSF 1.2.

    Whilst backwards compatible with Java EE 5, JSF 2.0 is part of Java EE 6 and thus by default only bundled in Glassfish v3 and so on. That it works in Tomcat is obviously because Tomcat as being a barebones JSP/Servlet container doesn’t ship with JSF bundled, but only with JSP/Servlet. So there would be no potential version conflicts with JSF in Tomcat.

    You need to tell Glassfish that it should not use its own bundled JSF, but instead the webapp bundled JSF. You can do that by adding the following entries to <sub-web-app> of /WEB-INF/sun-web.xml file:

    <class-loader delegate="false"/>
    <property name="useBundledJsf" value="true"/>
    

    If you don’t have this file, you can find a sample at the bottom of this Glassfish v2.1.1 deployment guide:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC '-//Sun Microsystems, Inc.//DTD 
       Application Server 9.0 Servlet 2.5//EN' 
       'http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd'>
    <sun-web-app>
       <!-- Your config here -->
    </sun-web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using prime faces data table in my application where i have a checkbox
I am Using WebSphere Application Server 7.0.0.25, Myfaces 2.0.7, Primefaces 3.4.1 I have the
I am working on an application using JSF 2.1 and PrimeFaces 3.2, server Tomcat
I am writing a JSF 2.0 Mojarra application using Primefaces 3.3.1 on Tomcat 6.
I have a JSF (Mojarra) v2.1.11, Primefaces v3.4.2, Java 6 web application using jQuery
I have a problem with my Mojarra 2.1.6 web-application, I'm developing it using @ViewScoped
I have an application using PrettyFaces and PrimeFaces. One page is accessed using the
I need to integrate pretty faces with my jsf 2.0, primefaces application, but its
I have written a jsf2 (cdi) web-application, using jQuery, a syntaxhighlighting script lib. On
I have a application using JSF2.0, Spring3 and Hibernate4. I am displaying values 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.