Questions tagged [facesservlet]

`FacesServlet` is a servlet that manages the request processing lifecycle for web applications that are utilizing JavaServer Faces (JSF) to construct the user interface.

FacesServlet is a servlet that manages the request processing lifecycle for web applications that are utilizing JavaServer Faces (JSF) to construct the user interface.

20 questions
15
votes
5 answers

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacesServlet

I want to use Mojarra 2.1 with Tomcat 7, so I added following dependencies in my pom file: com.sun.faces jsf-api 2.1.2
fresh_dev
  • 6,694
  • 23
  • 67
  • 95
3
votes
0 answers

java.lang.ClassCastException: javax.faces.webapp.FacesServlet cannot be cast to javax.servlet.Servlet - in OSGI

I add necessary bundles in OSGI framework. I want to see JSF page with tags in OSGI. Page is working but tags are not working. For example my index.xhtml is ;
3
votes
1 answer

How does the FacesServlet know which facelet to render based on the URL?

I've been checking around and can't find an explanation of how the FacesServlet resolves a URL to a real file in the web app file structure. Within the context of servlets, my understanding is that a URL is just a made-up name that you want clients…
neizan
  • 2,291
  • 2
  • 37
  • 52
2
votes
1 answer

URLs with .jsf extension still redirect to .xhtml after FacesServlet removal from web.xml

I have a web application that originally was a JSF app, but has been migrated to pure HTML/JavaScript. We are now in the progress of eliminating JSF completely. We had the physical file main.xhtml, which was requested by "main.jsf", where the…
thomjah
  • 43
  • 5
2
votes
0 answers

Republish causes warning: Servlet Faces Servlet is currently unavailable

I'm using Mojarra 2.2 on Tomcat 8 and Eclipse 4.4.1 (Build id: 20140925-1800) without any additional plugins and no Maven. Everything works fine, but in last few days I have the following problem: I start Tomcat, can navigate and submit data, etc,…
Rami.Q
  • 2,486
  • 2
  • 19
  • 30
2
votes
1 answer

FacesServlet not working in web fragment

I have two web applications (web-module1.war & web-module2.war) and I want to use a web fragment (web-core.jar) for common servlet declaration like FacesServlet. When I declare FacesServlet in web.xml no problem, but when I move this declaration to…
Mohamed Ramrami
  • 12,026
  • 4
  • 33
  • 49
1
vote
0 answers

Using Google API Refresh Token in Python

I made a personal use app that just queries my gmail for a certain type of email. The app is successfully running on a pi night and day making requests to the Gmail service every thirty seconds. However every week or so I get this error: messages =…
Nolence
  • 2,134
  • 15
  • 25
1
vote
2 answers

Jsf Servlet Does not work IntelliJ Idea

I am currently trying to learn java ee basics and there is a simple jsf example project to get learn intelliJ idea as well. Before IntelliJ I was able to develop jsf project with maven in Eclipse and they were working good but when i did the exact…
Onur Emrecan Özcan
  • 642
  • 1
  • 6
  • 14
1
vote
1 answer

Can't get CXF JAX-RS and JSF to work together

I'm trying to setup a small example application FooTest that uses CXF JAX-RS and JSF. I started with the CXF part, implemented a simple service (works) and a small html page called home.html (I can access it in my browser). The relevant code is as…
Jack
  • 1,881
  • 24
  • 29
0
votes
0 answers

why is the user input showing as null?

I have this code:
Aria
  • 389
  • 3
  • 7
  • 25
0
votes
1 answer

org.apache.jasper.JasperException after deploying project on glassfish4

after deploying my JSP application on glassfish4 on Eclipse 4.16.0 (using jdk1.8.0_251) and publish it locally the server response is that: jasper exception my web.xml file is:
M47714
  • 1
  • 1
0
votes
1 answer

Method not found in a Java Bean through xhtml having the exact signature

I want to make a registration by writing the userEmail, userPassword and userRole in .properties files and then work with them in auth-config.xml. so, i make this in loginManagerBean: i am aware of code duplication in register method, i'll fix…
Nica
  • 55
  • 9
0
votes
1 answer

How does *.jsf is converted to *.xhtm in JSF

Im having JSF project in which i have xhtml pages. and my web.xml looks like below Faces Servlet javax.faces.webapp.FacesServlet
Mohamed Uvais M
  • 185
  • 1
  • 2
  • 14
0
votes
0 answers

FacesServlet is not interpreting my xhtml code

I have the JSF set-up listed below. If I call http://localhost:8080/newSheet.jsf I do get the original xhtml page contents instead of the rendered html output. I know this has been asked many times on SO. The answer seams that the web.xml set-up is…
BetaRide
  • 16,207
  • 29
  • 99
  • 177
0
votes
0 answers

Does Glassfish 4.x server needs to know about the FacesServlet mapping?

I was going through one of the books on JSF (JavaSever Faces - Introduction by Example) and I found the following excerpt Prior to JSF 2.0, in order to enable the JSF servlet to translate the XHTML page, you needed to ensure that the web.xml file…
Nital
  • 5,784
  • 26
  • 103
  • 195
1
2