Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config

843842May 30 2005 — edited Jan 29 2008
when i tried to execute a jsp file i'm getting these 2 exceptions , what is wrong with my program ,

javax.servlet.ServletException: Servlet execution threw an exception
java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config


web.xm
----------
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems,Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>

faces-config.xml
---------------------

<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems,Inc.//DTD JavaServer Faces Config 1.0//EN" "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">

<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>

<managed-bean>
<managed-bean-name>user</managed-bean-name> <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
</faces-config>

index.html
---------------
<html>
<%@taglib uri="http://java.sun.com/jsf/core"prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html"prefix="h"%>
<f:view>
<head>
<title>A Simple JavaServer Faces Application</title>
</head>
<body>
<h:form>
<h3>Please enter your name and password.</h3>
<table>
<tr>
<td>
Name:
</td>
<td>
<h:inputText value="#{user.name}"/>
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<h:inputSecret value="#{user.password}"/>
</td>
</tr>
</table>

<p>
<h:commandButton value="Login"action="login"/>
</p>
</h:form>
</body>
</f:view>
</html>

please help me
peeths
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2008
Added on May 30 2005
5 comments
426 views