File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I am so tired just getting start in jsf please help me please

 
Yahya Arshad
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to leaern jsf from 2 month but i am fedup i even cant move one step ahead i am having problem in getting start
i am working on jsf 1.2 i dont want to work with jsf 2 write now
so here is my problem
i am using Tomcat 7
JSF 1.2
eclipse i am also attaching the files


i have copy pasted an example from jsf manning faces book but i cant do it when i try to run it by eclipse it says no resource found but
when i try to run it directly copying in tomcat directory it gives following error




here are my faces-config, web.xml and manged bean

and hello.jsp and goodbye.jsp




FACES-COFNIG




WEB.XML




GOODBYE.JSP





Hello.jsp







ManageBean






 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you calling your jsp using faces i.e., /faces/Hello.jsp
 
Yahya Arshad
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohh my Allah at last i suceed i was in trouble from three month i downloaded ready made projects but cant success because i was not putting faces now when i tried to access my page with localhost:8080/bControl/faces/hello.jsp

i sucess uff it was a bludner mistake i was doing
thakns alot bro thanks alot
 
Jay Raithatha
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello i am new at jsf and facing problem to run application on tomcat 6.0. i pasted jar file that are needed to run application on the tomcat but it gives me message like" Message:

FAIL - Application at context path /jsfreg could not be started
"


can you help me.......
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your Tomcat log file has to say? please check it.
 
Jay Raithatha
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Todd wrote:What does your Tomcat log file has to say? please check it.




my tomcat log is like that:

SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:305)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4011)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4615)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4512)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1251)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:612)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:558)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Unknown Source)
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For JSF on Tomcat, you have to include jsf-api.jar and jsf-impl.jar in the WEB-INF/lib directory of your WAR. Tomcat does not include the jsf-impl in its own code like full-stack JEE servers such as JBoss do. At least not in Tomcat6, and I'm pretty sure that's also true in Tomcat7.

 
Jay Raithatha
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i include both jar files in the tomcat lib....so i think this will not be the problem........ and i also try it with your suggestion but still not worked so....give me the solution if you have any.......
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic