
*while executing below code i am getting problem as
**init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Created dir: /root/NetBeansProjects/JSFProject3/build/generated/src
Created dir: /root/NetBeansProjects/JSFProject3/build/generated/classes
Compiling 1 source file to /root/NetBeansProjects/JSFProject3/build/generated/classes
In-place deployment at /root/NetBeansProjects/JSFProject3/build/web
deploy?config=file%3A%2Ftmp%2Fcontext443.xml&path=/JSFProject3
FAIL - Deployed application at context path /JSFProject3 but context failed to start
/root/NetBeansProjects/JSFProject3/nbproject/build-impl.xml:594: The module has not been deployed.
BUILD FAILED (total time: 9 seconds)***
Please any one give me solution for this?
**strong text**resources of application are:
login.jsp:
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<body>
<f:view>
<h:form id="loginfrm">
<h:outputLabel value="username : "/>
<h:inputText id="uname" value="#{login_bean.uname}"></h:inputText>
<h:outputLabel value="password : "/>
<h:inputText id="pwd" value="#{login_bean.pwd}" required="true"></h:inputText>
<h:commandButton value="Login" action="#{login_bean.validate}" type="submit"/>
<h:message for="uname" />
<h:message for="pwd" />
</h:form>
</f:view>
</body>
</html>
// LoginBean.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package beans;
/**
*
* @author root
*/
import java.sql.*;
import java.io.*;
public class LoginBean {
private String uname;
private String pwd;
Connection con = null;
ResultSet rs = null;
Statement st = null;
public void setPwd(String pwd) {
this.pwd = pwd;
}
public void setUname(String uname) {
this.uname = uname;
}
public String getPwd() {
return pwd;
}
public String getUname() {
return uname;
}
public String validate() {
boolean b = false;
try {
System.out.println("uname::" + uname);
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/livepbx", "root", "worksmart");
st = con.createStatement();
String qry = "select agentid from agent where agentid = 'abcd@pbxtesting'";
rs = st.executeQuery(qry);
while (rs.next()) {
b = true;
}
} catch (Exception e) {
// System.out.println("ERRor in Logbeanpage@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@s");
} finally {
try {
rs.close();
st.close();
con.close();
} catch (Exception e) {
//e.printStackTrace();
}
}
if (b) {
return "valid";
} else {
return "invalid";
}
}
}
success.jsp
<%--
Document : success
Created on : Jun 25, 2011, 11:17:08 AM
Author : root
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
String val=request.getParameter("val");
out.println("value in success pageis ::"+val);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>valid successfully</h1>
</body>
</html>
// failure.jsp
<%--
Document : failure
Created on : Jun 25, 2011, 11:17:37 AM
Author : root
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
String val=request.getParameter("val");
out.println("value in failurepage is ::"+val);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>in valid credentials</h1>
</body>
</html>
// faces-config.xml
<?xml version="1.0"?>
<faces-config>
<managed-bean>
<description>TreeDemo</description>
<managed-bean-name>treeDemo</managed-bean-name>
<managed-bean-class>
beans.TreeDemo
</managed-bean-class>
<managed-bean-scope>
request
</managed-bean-scope>
</managed-bean>
<managed-bean>
<description>CCBean</description>
<managed-bean-name>newfile</managed-bean-name>
<managed-bean-class>
beans.CCBean
</managed-bean-class>
<managed-bean-scope>
request
</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>login_bean</managed-bean-name>
<managed-bean-class>beans.LoginBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<description>Loging Page</description>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-action>#{login_bean.validate}</from-action>
<from-outcome>valid</from-outcome>
<to-view-id>/success.jsp?val=yes</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{login_bean.validate}</from-action>
<from-outcome>invalid</from-outcome>
<to-view-id>/failure.jsp?val=no</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
// web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
<servlet>
<servlet-name>Rcfaces Framework Contents</servlet-name>
<servlet-class>org.rcfaces.renderkit.html.internal.resource.ResourcesServlet</servlet-class>
<init-param>
<param-name>org.rcfaces.renderkit.html.javascript.sets.CORE</param-name>
<param-value>
basicComponent,message,extraButton,tree,dataGrid
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>
Rcfaces Application Contents
</servlet-name>
<servlet-class>
org.rcfaces.core.internal.contentStorage.ContentStorageServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Serv</servlet-name>
<servlet-class>beans.Serv</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
Rcfaces Framework Contents
</servlet-name>
<url-pattern>/rcfaces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
Rcfaces Application Contents
</servlet-name>
<url-pattern>/rc-content/*</url-pattern>
</servlet-mapping>
<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>
<servlet-mapping>
<servlet-name>Serv</servlet-name>
<url-pattern>/Serv</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/SampleTree.jsp</welcome-file>
</welcome-file-list>
</web-app>
// context.xml
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/JSFProject3"/>

Check your xml files.Anyways, go through the following link:

The below is complete stack trace while running above JSF application: ---------- **strong text**JSFProject3(run) ______________ Incrementally deploying http://localhost:8083/JSFProject3 Completed incremental distribution of http://localhost:8083/JSFProject3 Incrementally redeploying http://localhost:8083/JSFProject3 Deploy is in progress... deploy?config=file%3A%2Ftmp%2Fcontext448.xml&path=/JSFProject3 FAIL - Deployed application at context path /JSFProject3 but context failed to start /root/NetBeansProjects/JSFProject3/nbproject/build-impl.xml:594: The module has not been deployed. BUILD FAILED (total time: 5 seconds) ---------- **Tomcat 6.0JSf** _____________ Listening for transport dt_socket at address: 11550 Jun 28, 2011 12:55:34 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0_08/jre/lib/i386/server:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386:/usr/java/jdk1.5.0_08/jre/lib/i386/client:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386 Jun 28, 2011 12:55:34 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8083 Jun 28, 2011 12:55:34 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1154 ms Jun 28, 2011 12:55:35 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jun 28, 2011 12:55:35 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Jun 28, 2011 12:55:37 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8083 Jun 28, 2011 12:55:38 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jun 28, 2011 12:55:38 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/261 config=null Jun 28, 2011 12:55:38 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 3683 ms Jun 28, 2011 12:55:42 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. Jun 28, 2011 12:55:43 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/JSFProject3' Jun 28, 2011 12:55:44 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jun 28, 2011 12:55:44 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/JSFProject3] startup failed due to previous errors Jun 28, 2011 3:26:47 PM org.apache.catalina.core.StandardContext stop INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/JSFProject3] has not been started Jun 28, 2011 3:26:47 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/JSFProject3] Jun 28, 2011 3:26:48 PM org.apache.catalina.core.StandardContext addApplicationListener INFO: The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored. Jun 28, 2011 3:26:49 PM com.sun.faces.config.ConfigureListener contextInitialized INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b20-p03) for context '/JSFProject3' Jun 28, 2011 3:26:51 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Jun 28, 2011 3:26:51 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/JSFProject3] startup failed due to previous errors
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.