Solved

JSF example error

Posted on 2010-09-10
5
949 Views
Last Modified: 2013-11-24
hi,
I am trying to run chapter 2 related example from link

http://jsfcompref.com/code_download.html

I got this kind of error




Error 500--Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config
      at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:426)
      at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:115)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
      at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:248)
      at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:159)
      at jsp_servlet.__index._jspService(__index.java:86)
      at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
      at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
      at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
 


Please advise how can i fix it. Any links ideas sample code, resources etc highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
5 Comments
 
LVL 7

Author Comment

by:gudii9
ID: 33645493
This error I got after running index.jsp page which gave some link like

Chapter 2 Example Application
JSFReg - A first JSF example application, Pages 15-34

--------------------------------------------------------------------------------


at the url (http://localhost:7001/JSFCR_Ch2/)

please advise
0
 
LVL 14

Accepted Solution

by:
Dushyant Sharma earned 200 total points
ID: 33645559
JSTL tag library is missing from the classpath. Add the library and this should work fine.
0
 
LVL 22

Assisted Solution

by:mbonaci
mbonaci earned 150 total points
ID: 33645704
And jstl.jar?
0
 

Assisted Solution

by:varunshaji
varunshaji earned 150 total points
ID: 33655837
Add the jstl 1.2 jar . If you are using JEE 6 jdk then this is not required i think. But if not jstl jar is required expecially is using facelets
0
 
LVL 22

Expert Comment

by:mbonaci
ID: 33714538
You don't need to send admin request, you can close the question yourself (you need it only when you want to close the question without awarding points, like "close with/without refund" or "accept your own answer").

BTW, don't forget standard.jar (it usually comes with jstl.jar).
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now