Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Servlet FacesServlet Exception
Servlet FacesServlet Exception [message #474946] Wed, 25 July 2007 23:51 Go to next message
Eclipse User
Originally posted by: somecsian.yahoo.com

Hi all,
I am using Eclipse Europa to develop JSF app. by jsf1.2 implementation on
Tomcat server 6.0.
I tried to run the JSFTutorial app. which in Eclipse help. I followed all
instructions But Servlet FacesServlet is not availble Exception was thrwon.
If any one faced this problem before please, give me the solution.
Re: Servlet FacesServlet Exception [message #474947 is a reply to message #474946] Wed, 25 July 2007 23:56 Go to previous messageGo to next message
Eclipse User
Originally posted by: somecsian.yahoo.com

I was asked from Raghu in wtp-jsf-dev mailing list
" Are you getting this error when you select 'Run on Server.'on the
login.jsp page as described in the section, Testing the JSF JSP Page? "

Yes this error occurs in this case.
Re: Servlet FacesServlet Exception [message #474950 is a reply to message #474947] Tue, 31 July 2007 04:35 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Can you provide more information? What was the exception?

--Cam
Re: Servlet FacesServlet Exception [message #474956 is a reply to message #474950] Sat, 04 August 2007 18:36 Go to previous messageGo to next message
Eclipse User
Originally posted by: somecsian.yahoo.com

When i was starting the server before running the app. the server would
start But, Exceptions That i writed in the end of message is thrown.
When I was running the app. This error appeared

HTTP Status 404 - Servlet Faces Servlet is not available
type Status report

message Servlet Faces Servlet is not available

description The requested resource (Servlet Faces Servlet is not
available) is not available.



org.apache.catalina.loader.StandardClassLoader@110d81b
javax.faces.webapp.FacesServlet
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)


04/08/2007 09:12:45 م org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /JSFTutorial threw load() exception
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Re: Servlet FacesServlet Exception [message #475003 is a reply to message #474956] Mon, 06 August 2007 18:15 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
It appears that the jars for the JSF runtime are not being deployed to the
server. How have you included the runtime jars in the project? If you
have used a JSF library, try right-clicking on the project and go to
project properties. Go to J2EE Module Dependencies in the properties
dialog. Make sure the the check box for your JSF library (or for the
runtime jars if you added them to the project in a different way) are
selected (checked). This ensures they will be deployed with the
application.

Also, the Tomcat server adapter is sometimes fussy. From the Servers
view, right click on the Tomcat server instance and select "Clean"
followed by "Clean Tomcat Working Directory". Then redeploy.


--Cam
Re: Servlet FacesServlet Exception [message #475009 is a reply to message #475003] Tue, 07 August 2007 20:37 Go to previous message
Eclipse User
Originally posted by: somecsian.yahoo.com

Thanks very much, Now i can go on JSF.
Re: Servlet FacesServlet Exception [message #613248 is a reply to message #474946] Wed, 25 July 2007 23:56 Go to previous message
Eclipse User
Originally posted by: somecsian.yahoo.com

I was asked from Raghu in wtp-jsf-dev mailing list
" Are you getting this error when you select 'Run on Server.'on the
login.jsp page as described in the section, Testing the JSF JSP Page? "

Yes this error occurs in this case.
Re: Servlet FacesServlet Exception [message #613253 is a reply to message #474947] Tue, 31 July 2007 04:35 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
Can you provide more information? What was the exception?

--Cam
Re: Servlet FacesServlet Exception [message #613263 is a reply to message #474950] Sat, 04 August 2007 18:36 Go to previous message
Eclipse User
Originally posted by: somecsian.yahoo.com

When i was starting the server before running the app. the server would
start But, Exceptions That i writed in the end of message is thrown.
When I was running the app. This error appeared

HTTP Status 404 - Servlet Faces Servlet is not available
type Status report

message Servlet Faces Servlet is not available

description The requested resource (Servlet Faces Servlet is not
available) is not available.



org.apache.catalina.loader.StandardClassLoader@110d81b
javax.faces.webapp.FacesServlet
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet

at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)


04/08/2007 09:12:45 م org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /JSFTutorial threw load() exception
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1358)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1204)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1083)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start
(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start
(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start
(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start
(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start
(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 88)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 3)
Re: Servlet FacesServlet Exception [message #613861 is a reply to message #474956] Mon, 06 August 2007 18:15 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
It appears that the jars for the JSF runtime are not being deployed to the
server. How have you included the runtime jars in the project? If you
have used a JSF library, try right-clicking on the project and go to
project properties. Go to J2EE Module Dependencies in the properties
dialog. Make sure the the check box for your JSF library (or for the
runtime jars if you added them to the project in a different way) are
selected (checked). This ensures they will be deployed with the
application.

Also, the Tomcat server adapter is sometimes fussy. From the Servers
view, right click on the Tomcat server instance and select "Clean"
followed by "Clean Tomcat Working Directory". Then redeploy.


--Cam
Re: Servlet FacesServlet Exception [message #613867 is a reply to message #475003] Tue, 07 August 2007 20:37 Go to previous message
Eclipse User
Originally posted by: somecsian.yahoo.com

Thanks very much, Now i can go on JSF.
Previous Topic:open up faces-config.xml throws exception
Next Topic:open up faces-config.xml throws exception
Goto Forum:
  


Current Time: Mon Sep 22 04:17:23 GMT 2014

Powered by FUDForum. Page generated in 0.02690 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software