Tomcat 7 « Tomcat « JSF Q&A

1. Tomcat 7, JSF 2.0 and @PostConstruct

I have no idea what I'm doing wrong, please help:

  1. Fresh Tomcat 7 with no extra jars in /lib folder
  2. Simple web-app with mojarra 2.0.3 libs in WEB-INF/lib (jsf-api.jar, jsf-impl.jar)
  3. Works fine except @PostConstruct ...

2. Having trouble using Ajax with JSF on a Tomcat 7.0 server

I am a complete beginner when it comes to Ajax, and for some reason I cant get an easy example to work... The javascript:

var xmlhttp;
function reloadIssues() 
    if (window.XMLHttpRequest) ...

3. Tomcat7 open index.html from directory

I have webapp in JSF2, something like Now I need to add an admin interface, I have created admin folder and this is working well Users of this application will certainly not remember ...

4. How can I create a folder inside a server (Tomcat 7)?

Im using java and jsf and I would like to create a folder within the server and then temporary save the files and delete it afterwards(not the folder itself). I've tried this ...

5. java.lang.ClassNotFoundException: javax.faces.application.ApplicationFactory

I am writing a web application using JSF 2. I have downloaded and, and with each library, I'm getting the following exception:

java.lang.NoClassDefFoundError: javax/faces/application/ApplicationFactory
    at java.lang.ClassLoader.defineClass1(Native Method)

7. Issue after upgrading to Tomcat 7