Raaga Maalika

Greenhorn
+ Follow
since Aug 30, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Raaga Maalika

Hi , I faced similar issue as Brendan's. On seeing your post, I then changed web.xml mapping to look like this:




And my index.html is:



It simply redirects to index.faces (which is supposed to call index.xhtml). Index.xhtml is as follows:




...a very simple JSF file.

I have deplyed this App on JBoss. Am using eclipse IDE. When I launch the URL http://localhost:8080/MyApp/, it just says "404 : description The requested resource (/MyApp/) is not available."

"MyApp" is my project name in eclipse. Am not sure why it's reporting this error. Can someone please help?

12 years ago
JSF
and one more thing I don't understand is: jsf-api.jar is supposed to contain javax.faces.bean right? How can that be missing from it (I checked the contents of the jsf-api & jsf-impl jar files. They don't contain the javax.faces.bean package!).
12 years ago
JSF
Hi, I have written a simple JSF app (am a newbie to JSF). I have included the jar files jsf-api-1.2-b19.jar and jsf-impl-1.2-b19.jar in the app through maven (I checked that these files exist in "...\.m2\repository" directory. When I run the app(using Jetty server) with the command "mvn jetty:run", I get the following error:

[ERROR] C:\BookApp\src\main\scala\BookApp\controller\BookController.scala:4: error: value faces is not a member of package javax
[INFO] import javax.faces.bean._
[INFO] ^
[ERROR] one error found
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

It's a simple Scala class which just creates a new Book (I have declared it as a ManagedBean). Can someone please help?

12 years ago
JSF
Hi, am a newbie to JSF. Through pom.xml, I'm using the following jar files in my app:
jsf-impl-1.2-b19.jar
javax.faces-api-2.1.jar

I have written a simple JSF page called simplePage.jsp under 'src/webapp/' dir. This is the content of simplePage.jsp:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">

<f:view>
<h:form>
<h:graphicImage id="Cognizant" value="CognizantScala.JPG"></h:graphicImage>
<h:graphicImage id="bookworm" value="Bookworm.gif"></h:graphicImage>
<h2>Hi. Welcome to the Book Application</h2>
</h:form>
</f:view>
</html>


When I start the app using the command (jetty server) :
>mvn jetty:run

Jetty throws an error saying :

2011-09-05 16:30:10.187:WARN::EXCEPTION
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:392)
at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoade
r.java:363)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
...
...


Why is it saying that the 'FacesServlet' isn't found, despite me including the api & impl jar files? How do I handle this? Can someone please help?
12 years ago
JSF