jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletException: bean not found within scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ServletException: bean not found within scope " Watch "ServletException: bean not found within scope " New topic

ServletException: bean not found within scope

Ahm Moh

Joined: Sep 22, 2004
Posts: 3
HI All,

My app running in Jboss, when I try to click on the menu option. I'm getting following error:

javax.servlet.ServletException: bean descriptionVO not found within scope
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
at org.apache.jsp.AddRigMapping_jsp._jspService(AddRigMapping_jsp.java:305)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

and my jsp is

<%@ taglib prefix="c" uri="Standard" %>
<%@ taglib prefix="x" uri="Custom" %>


<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1">
<title>Add RigMapping</title>
<link rel="stylesheet" type="text/css" href="styles/pageStyle.css">
<%@ page import="zaa.co.rmba.di.util.Constants" %>

<jsp:useBean id="addlistVO" type="zaa.co.rmba.di.beans.AddListVO" scope="session" />

<SCRIPT LANGUAGE="JavaScript" SRC="javascript/util.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/AnchorPosition.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/PopupWindow.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/CalendarPopup.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/date/Date.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="javascript/util.js"></SCRIPT>

<jsp:useBean id="descriptionVO" type="zaa.co.rmba.di.beans.DescriptionVO" scope="session" />

<jsp:useBean id="confirmationVO" type="zaa.co.rmba.di.beans.ConfirmationVO" scope="session" />

<jsp:useBean id="dateVO" type="zaa.co.rmba.di.beans.DateVO" scope="request" />
<%@ include file="menu.html" %>

<h3>Add RigMapping</h3>

<form name="AddRigMapForm" method="POST" action="FrontController?command=AddRigMapping">
<p> </p>
<div class="tdc">
<table border="0" width="697">

and my bean is

package zaa.co.rmba.di.beans;

public class DescriptionVO {

private String reportcodeDescription;
private String majorcodeDescription;
private String subcodeDescription;



Any body know, what causing the problem. Any help will be greatly appreciated.

thanks in advance
vishwa venkat
Ranch Hand

Joined: Nov 22, 2003
Posts: 185
I donno the actual cause but import the class file and try if it works ..
<%@ page import="zaa.co.rmba.di.beans.DescriptionVO" %>
I agree. Here's the link: http://aspose.com/file-tools
subject: ServletException: bean not found within scope
It's not a secret anymore!