Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finder

I'm trying to call an entity bean froma session bean i get the error :-
7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
[findByCustID].
7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
My session bean looks like this :-
public class HelloBean implements SessionBean
  public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
     String lzRevenue=null;
     int liCustomerID=Integer.parseInt(pzCustomerID);
     try
          Context initial = new InitialContext();
          Object objref =   initial.lookup("SalesBean");
          SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
          Sales sales=salesHome.findByCustID(liCustomerID);
          lzRevenue=(String) sales.findByCustID(liCustomerID);
My entity bean looks like this:-
public class SalesBean implements EntityBean
  public String factPK;
  public int timeID;
  public int custID;
  public int locID;
  public int itemID;
  public int entityID;
  public String currency;
  public float qty;
  public float unitPrice;
  public float amount;
  public EntityContext context;
  private Connection con;
    private void makeConnection() {
        try {
            InitialContext ic = new InitialContext();
            javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
            con = ds.getConnection();
        } catch (Exception ex) {
            throw new EJBException("Unable to connect to database. " +
                ex.getMessage());
  public SalesBean()
  public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
     makeConnection();
     PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
     pstmt.setInt(1, custID);
     ResultSet rset = pstmt.executeQuery();
     if (!rset.next())
          throw new RemoteException("no records present" );
     return rset.getString(1);
  }My entity bean's home interface looks like this:-
public interface SalesHome extends EJBHome
public Sales create() throws RemoteException, CreateException;
public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
My entity bean's remote interface looks like this:-
public interface Sales extends EJBObject
     public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
my ejb-jar.xml looks like this:-
<enterprise-beans>
<session>
<description>Hello Bean</description>
<ejb-name>HelloBean</ejb-name>
<home>myEjb.HelloHome</home>
<remote>myEjb.HelloRemote</remote>
<ejb-class>myEjb.HelloBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
     <entity>
          <ejb-name>SalesBean</ejb-name>
          <home>myEjb.SalesHome</home>
          <remote>myEjb.Sales</remote>
          <ejb-class>myEjb.SalesBean</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>java.lang.String</prim-key-class>
          <reentrant>False</reentrant>
          <cmp-field>
          <field-name>factPK</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>timeID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>custID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>locID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>itemID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>entityID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>currency</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>qty</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>unitPrice</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>amount</field-name>
     </cmp-field>
          <primkey-field>factPK</primkey-field>
          <resource-ref>
          <res-ref-name>jdbc/DSource</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
     </resource-ref>
     </entity>
</enterprise-beans>
please help me out of this trouble.

I'm trying to call an entity bean froma session bean i get the error :-
7/02/27 14:35:25 javax.ejb.ObjectNotFoundException: Exception [EJB - 10008]: Cannot find bean of type [SalesBean] using finde
[findByCustID].
7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.objectNotFound(EJBExceptionFactory.java:325)
7/02/27 14:35:25       at oracle.toplink.internal.ejb.cmp.finders.Finder.checkNullResult(Finder.java:224)
My session bean looks like this :-
public class HelloBean implements SessionBean
  public String helloWorld (String pzCustomerID) throws SQLException,RemoteException
     String lzRevenue=null;
     int liCustomerID=Integer.parseInt(pzCustomerID);
     try
          Context initial = new InitialContext();
          Object objref =   initial.lookup("SalesBean");
          SalesHome salesHome =(SalesHome) PortableRemoteObject.narrow(objref,SalesHome.class);
          Sales sales=salesHome.findByCustID(liCustomerID);
          lzRevenue=(String) sales.findByCustID(liCustomerID);
My entity bean looks like this:-
public class SalesBean implements EntityBean
  public String factPK;
  public int timeID;
  public int custID;
  public int locID;
  public int itemID;
  public int entityID;
  public String currency;
  public float qty;
  public float unitPrice;
  public float amount;
  public EntityContext context;
  private Connection con;
    private void makeConnection() {
        try {
            InitialContext ic = new InitialContext();
            javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup("jdbc/DSource");
            con = ds.getConnection();
        } catch (Exception ex) {
            throw new EJBException("Unable to connect to database. " +
                ex.getMessage());
  public SalesBean()
  public String ejbFindByCustID(int custID) throws SQLException,RemoteException,FinderException
     makeConnection();
     PreparedStatement pstmt = con.prepareStatement("select sum(amount) from sales where cust_id= ? ");
     pstmt.setInt(1, custID);
     ResultSet rset = pstmt.executeQuery();
     if (!rset.next())
          throw new RemoteException("no records present" );
     return rset.getString(1);
  }My entity bean's home interface looks like this:-
public interface SalesHome extends EJBHome
public Sales create() throws RemoteException, CreateException;
public Sales findByCustID(int custID) throws SQLException,RemoteException,FinderException;
My entity bean's remote interface looks like this:-
public interface Sales extends EJBObject
     public String findByCustID(int custID) throws SQLException,RemoteException,FinderException;
my ejb-jar.xml looks like this:-
<enterprise-beans>
<session>
<description>Hello Bean</description>
<ejb-name>HelloBean</ejb-name>
<home>myEjb.HelloHome</home>
<remote>myEjb.HelloRemote</remote>
<ejb-class>myEjb.HelloBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
     <entity>
          <ejb-name>SalesBean</ejb-name>
          <home>myEjb.SalesHome</home>
          <remote>myEjb.Sales</remote>
          <ejb-class>myEjb.SalesBean</ejb-class>
          <persistence-type>Container</persistence-type>
          <prim-key-class>java.lang.String</prim-key-class>
          <reentrant>False</reentrant>
          <cmp-field>
          <field-name>factPK</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>timeID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>custID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>locID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>itemID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>entityID</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>currency</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>qty</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>unitPrice</field-name>
     </cmp-field>
     <cmp-field>
          <field-name>amount</field-name>
     </cmp-field>
          <primkey-field>factPK</primkey-field>
          <resource-ref>
          <res-ref-name>jdbc/DSource</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
     </resource-ref>
     </entity>
</enterprise-beans>
please help me out of this trouble.

Similar Messages

  • Cannot copy files from my network using finder

    If I try to copy files from my NAS or my PC to my Macmini running Leopard, I cannot copy files that are larger than 64kb. Otherwise I get an error message. Interestingly, if I use the cp command in the console instead, he can copy the file, but the file is corrupt in the sense that it is smaller than the original and not working. Weirdest thing is that I can access the same files from itunes or iphoto or vlc or whatever. Any ideas?

    After the update I cannot connect to my router anymore
    (see other threat)

  • EJB 3.0 Entity Bean

    Hi Friends,
    I am Facing a problem in EJB 3.0 Entity Bean. I am Using Eclipse 3.3.2 and JBoss 4.2 Application Server. Im getting the error such as *"javax.naming.NameNotFoundException: EntityBean not bound"* when im trying to lookup the entity bean. Herewith i had attached the servlet code. Can anyone suggest me.
    package common;
    import java.io.IOException;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import example.BookRemote;
    public class CounterServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
    static final long serialVersionUID = 1L;
    private BookRemote hello;
         public CounterServlet() {
              super();
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
              try
         InitialContext ctx = new InitialContext();
         hello = (BookRemote) ctx.lookup("EntityBean/remote");
         hello.test();
         Integer count = 1;
         request.setAttribute("counter", count);
         request.getRequestDispatcher("result.jsp").forward(request, response);
         catch (NamingException e)
         e.printStackTrace();
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
              // TODO Auto-generated method stub
         }

    I think the Bean haven't been registered. I had look into the jmx-console and this is the result which i have got for my sample application (EntityBean).
    java:comp namespace of the EntityBean.ear/EntityBeanWeb.war application:
    +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
    +- env (class: org.jnp.interfaces.NamingContext)
    | +- security (class: org.jnp.interfaces.NamingContext)
    | | +- realmMapping[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    | | +- subject[link -> java:/jaas/other/subject] (class: javax.naming.LinkRef)
    | | +- securityMgr[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    | | +- security-domain[link -> java:/jaas/other] (class: javax.naming.LinkRef)
    Global JNDI Namespace
    +- persistence.units:ear=EntityBean.ear,unitName=CounterServlet (class: org.hibernate.impl.SessionFactoryImpl)
    +- persistence.units:ear=TaskEnitity.ear,unitName=FirstEjb3Tutorial (class: org.hibernate.impl.SessionFactoryImpl)
    +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- jmx (class: org.jnp.interfaces.NamingContext)
    | +- invoker (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
    | +- rmi (class: org.jnp.interfaces.NamingContext)
    | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
    +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
    +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
    +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
    +- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
    +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
    +- OnlineSurveyTool (class: org.jnp.interfaces.NamingContext)
    | +- RegisterBean (class: org.jnp.interfaces.NamingContext)
    | | +- remote (proxy: $Proxy79 implements interface online.IRegister,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
    | +- OnlineSurveyBean (class: org.jnp.interfaces.NamingContext)
    | | +- remote (proxy: $Proxy75 implements interface online.OnlineSurveyRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
    +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
    +- queue (class: org.jnp.interfaces.NamingContext)
    | +- A (class: org.jboss.mq.SpyQueue)
    | +- testQueue (class: org.jboss.mq.SpyQueue)
    | +- ex (class: org.jboss.mq.SpyQueue)
    | +- DLQ (class: org.jboss.mq.SpyQueue)
    | +- D (class: org.jboss.mq.SpyQueue)
    | +- C (class: org.jboss.mq.SpyQueue)
    | +- B (class: org.jboss.mq.SpyQueue)
    +- topic (class: org.jnp.interfaces.NamingContext)
    | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
    | +- testTopic (class: org.jboss.mq.SpyTopic)
    | +- securedTopic (class: org.jboss.mq.SpyTopic)
    +- console (class: org.jnp.interfaces.NamingContext)
    | +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
    +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
    +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
    +- persistence.units:unitName=TestServlet (class: org.hibernate.impl.SessionFactoryImpl)
    +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
    +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Cannot find any information on property  in a bean of type mypackage??

    Hi
    I got an error org.apache.jasper.JasperException: Cannot find any information on property in a bean of type mypackage. I tried to find the solution and found that I need to use the naming convention so I fixed it. But I still got that error. Please help me.
    Here's my Jsp file.
    <%@ taglib prefix="fm" uri="/WEB-INF/matcher.tld"%>
    <%@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">
    <jsp:useBean id="obj" scope="session" class="com.webIndex.match.Matcher"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <link href="wixIndex.css" rel="stylesheet" type="text/css">
            <title>Web Index</title>
        </head>
         <body>
              <%@ include file="header.html" %>
                 <jsp:setProperty name="obj" property="*" /> 
             <h4>WIX files for your search
                  "<jsp:getProperty name="obj" property="keyword"/>"
             </h4>     
             <h4>  and  
                  "<jsp:getProperty name="obj" property="kwinfo"/>":
             </h4>     
             <br>
              ${fm:Matcher(obj, obj.keyword, obj.kwinfo)}
         </body>
    </html>And here's my first java program.
    public class Matcher {
         public static String match(FindMatch object,
                String keyword, String kwinfo) {
            return object.exact_match(keyword, kwinfo);
             //return keyword;
    }And here's my second Java program.
    public class FindMatch {
         private String keyword;
         private String kwinfo;
         static String refile;
         public FindMatch() {
            keyword = "";
            kwinfo = "";
         public String getKeyword() {
            return keyword;
         public void setKeyword(String keyword) {
            this.keyword = keyword;
         public String getKwinfo(){
              return kwinfo;
         public void setKwinfo(String kwinfo){
              this.kwinfo = kwinfo;
        public String exact_match(String keyword, String kwinfo)  {
        //     do something here
         return refile.toString();
      }And here's my tld:
    <?xml version="1.0" encoding="UTF-8" ?>
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-jsptaglibrary_2_0.xsd"
        version="2.0">
        <tlib-version>1.0</tlib-version>
        <short-name>fm</short-name>
        <uri>http://com.webIndex.match.Matcher.tld</uri>
        <function>
            <name>Matcher</name>
            <function-class>
                com.webIndex.match.Matcher
            </function-class>
            <function-signature>
                java.lang.String match(
                    com.webIndex.match.FindMatch,
                    java.lang.String, java.lang.String)
            </function-signature>
        </function>
    </taglib>Thanks!!

    Ok, I 've changed the name of useBean id to 'matcher' and replace every 'obj' with 'matcher'
    But I still got the error.
    And so when I tried to do what you said. I got this error.
    org.apache.jasper.JasperException: An exception occurred processing JSP page /search_result.jsp at line 27
    24:           
    25:           <jsp:setProperty name="matcher" property="*" />
    26:
    27:           <h4>WIX files for your search ${matcher.keyword}</h4>
    28:           <h4>and ${matcher.kwinfo}</h4>
    And actually, my exact_match is not just like that. But I thought that the problem is not concerned with my problem and it's just concerned with jsp, so i skipped it. Here's the actual progam., i mean exact_match() and I skipped other parts coz it said that my post exceeds maximum allowed words.
    package com.webIndex.match;
    public class FindMatch {
         private String keyword;
         private String kwinfo;
         static String refile;
         public FindMatch() {
         public String getKeyword() {
            return keyword;
         public void setKeyword(String keyword) {
            this.keyword = keyword;
         public String getKwinfo(){
              return kwinfo;
         public void setKwinfo(String kwinfo){
              this.kwinfo = kwinfo;
           public String exact_match(String keyword, String kwinfo)  {
        //     String loctest="";
         //     loctest = getClass().getResourceAsStream("/resources/wixIndex.xml").toString();
             String fname ="";
             String allentries="";
             keyword = upperCase(keyword);                
                  try{
                       //String location = directory.getCanonicalPath();
                       //File indexfile = new File(xmlLocation + "wixIndex.xml");
                       //ServletContext application = getServletConfig().getServletContext();
                       //InputStream indexfile = getClass().getResourceAsStream("/resources/wixIndex.xml");
                       //InputStream namefile = getClass().getResourceAsStream("/resources/indexList.xml");
                       File indexfile = new File ("D:\\Documents and Settings\\May\\workspace\\WixFinder\\WebContent\\WEB-INF\\classes\\resources\\wixIndex.xml");
                      File namefile = new File ("D:\\Documents and Settings\\May\\workspace\\WixFinder\\WebContent\\WEB-INF\\classes\\resources\\indexList.xml");
                          DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
                       domFactory.setNamespaceAware(true);
                       DocumentBuilder builder = domFactory.newDocumentBuilder();
                       Document doc = builder.parse(indexfile);
                       XPathFactory factory = XPathFactory.newInstance();
                       XPath xpath = factory.newXPath();
                       XPathExpression expr = xpath.compile("//entry//index[keyword='"+keyword+"']" +
                                 "//file[not(preceding::file[parent::index[keyword='"+keyword+"']] = .)]");
                       xpath.compile("//file//entry[page='"+input+"']" +
                            "//color[not(preceding::color[parent::entry[page='"+input+"']] = .)]");
                       Object result = expr.evaluate(doc, XPathConstants.NODESET);
                       NodeList nodes = (NodeList) result;
                       refile="";
                       //InputStream namefile = getClass().getResourceAsStream("/resources/indexList.xml");
                       for (int i = 0; i < nodes.getLength(); i++) {
                            fname = nodes.item(i).getTextContent();
                            doc = builder.parse(namefile);
                            expr = xpath.compile("//wixfile//index[file='"+fname+"']//name//text()");
                            result = expr.evaluate(doc, XPathConstants.NODESET);
                            NodeList nodefile = (NodeList)result;                  
                            //showing the file name <desc - name> tag
                            for (int j=0; j< nodefile.getLength(); j++){
                                 refile = refile + "<br>" ;
                                 refile = refile + nodefile.item(j).getTextContent();
                            //call method to show link
                            String linktodoc = showLink(fname, keyword);
                            //String prvalue = getPageRank(linktodoc);
                            //int rankvalue = Integer.parseInt(prvalue);
                            //PageRankService pgrank = new PageRankService();
                            //int rankvalue = pgrank.getPR(linktodoc);
                            if (rankvalue != -1){
                                 refile = refile + "<br>" + "<a href='" + linktodoc + "'>" + linktodoc + "</a>" +
                                      "<br>[Pagerank -" + rankvalue + "]";
                            else{
                                 refile = refile + "<br>" + "<a href='" + linktodoc + "'>" + linktodoc + "</a>" +
                                 "<br>[Pagerank -" + prvalue + "]";
                            //refile = refile + "<br>" + "<a href='" + linktodoc + "'>" + linktodoc + "</a>";
                            refile = refile + "<br>" + linktodoc;
                            allentries = showentries(fname);
                            refile = refile  +  "Some other keywords from same wix file:" + "<br>" + allentries;
                            //refile = refile + "<input type='"submit"' value='"BOOKMARK!!"' class='"button"'/>"
                            String attach = "<table>" + "<tr bgcolor='#FFCCFF'>" + "<td>" +
                                 "<a STYLE='" + "text-decoration:none'" +
                                      "href='" + "attach.jsp" + "'>" +
                                 "<strong>" + "Attach This" + "</strong>" + "</a>" +
                                 "</td>" + "</tr>" + "</table>";
                            refile = refile + "<br>" + attach;
                  }catch(Exception e){return e.toString();}
             if (refile != ""){
                  refile = refile.substring(4, refile.length());
                 return refile.toString();
             else
                  return "<h4>No such exact match!</h4>";
    }And actually, my program totally worked fines when I pass only 'keyword' and the error occurs after I add 'kwinfo' to it.
    Thanks.

  • : Cannot find any information on property 'Product' in a bean of type '

    /********jsp file ********/
    <%@ page language="java" import="taxrate.*" %>
    <HTML>
    <BODY>
    <jsp:useBean id="TaxRate" scope="application" class="taxrate.TaxRate" />
    before modify
    <br>
    product :<jsp:getProperty name="TaxRate" property="Product"/>
    �@ <br>
    rate :<jsp:getProperty name="TaxRate" property="Rate" />
    <jsp:setProperty name="TaxRate" property="Product" value="Hello" />
    <jsp:setProperty name="TaxRate" property="Rate" value="2.9" />
    after modify�F
    <br>
    product : <jsp:getProperty name="TaxRate" property="Product" />
    �@ <br>
    rate : <jsp:getProperty name="TaxRate" property="Rate" />
    </BODY></HTML>="TaxRate" property="Rate" />
    </BODY></HTML>
    /*******bean file********/
    package taxrate;
    import java.sql.*;
    public class TaxRate{
    String Product;
    double Rate;
    public TaxRate(){
    this.Product = "A001";
    this.Rate = 5;}
    public void setProduct (String ProductName)
    {this.Product = ProductName;}
    public String getProduct(){return(this.Product);}
    public void setRate (double rateValue)
    this.Rate = rateValue;
    public double getRate()
    return (this.Rate);
    /******the error is********/
    Error: 500
    Location: /client/taxrate.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property 'Product' in a bean of type 'com.nokianeu.client.TaxRate'
         at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:619)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:730)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:200)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:169)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:183)
         at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
         at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
         at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
         at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
         at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
         at java.lang.Thread.run(Unknown Source)
    /******* use tomcat 3.11**********/
    please give me the right answer
    thank you!

    Hi xzwsun.
    Where did you put your class taxrate.TaxRate ?
    In which folder? is it in \WEB-INF\classes ?
    so that you have \WEB-INF\classes\taxrate\TaxRate.class
    --Paul.                                                                                                                                                                                                                                                                                                                                               

  • Cannot find any information on property 'isbn' in a bean of type '

    hi all,
    i am doing my course work and i have been stuck with this error for the past 2 days. wonering if anyone can help?
    i have use this in my jsp page.
    <jsp:useBean id="validateBean"
    scope="request"
    class="edu.rmit.isys2049.validation.BookValidationBean" />
    <jsp:setProperty name="validateBean" property="publisherId" />
    <jsp:setProperty name="validateBean" property="isbn" />
    <jsp:setProperty name="validateBean" property="title" />
    <jsp:setProperty name="validateBean" property="author" />
    under the BookValidateBean.java i had define the setter and getter for isbn
    public void setISBN(String isbn)
    this.isbn = isbn;
    public String getISBN() {
    return isbn;
    but still i got this error, where have i went wrong??
    error message
    Message: Cannot find any information on property 'isbn' in a bean of type '

    Cannot find any information on property 'firstname' in a bean of type
    since in the bean i use
    private String firstname
    and
    getFirstname
    setFirstname
    also i am using eclipse
    still i get this error
    can u suggest somthing
    basically i want firstname back to same textbox if the page is reload by some means.
    waiting for ur reply

  • Cannot find any information on property 'Name' in a bean of type 'UserBean'

    Hello,
    I was trying to solve this problem myself but never got through, its really routine. So please can you see this error message, html file, jsp file and say if there are mistakes or if I need to add something else somewhere?
    Error
    org.apache.jasper.JasperException: Cannot find any information on property 'Name' in a bean of type 'UserBean'
    HTML
    <html>
    <head>
    <title>jsp test</title>
    </head>
    <body bgcolor ="white">
    <form action ="course.jsp" method ="post">
    <table>
    <tr><td>userName:</td>
    <td><input type="text"      name ="Name">
    </td>
    </tr>
    <tr>
    <td>userID:</td>
    <td><input type ="text" name ="ID"></td>
    </tr>
    <tr>
    <td>userAddress</td>
    <td><textarea name ="Description"></textarea></td>
    </tr>
    <tr>
    <td><input type ="submit" name ="submit"></td>
    </table>
    </form>
    </body>
    </html>
    JSP
    <%@ page language="java" contentType="text/html" %>
    <html>
    <body bgcolor="white">
    <jsp:useBean id="courseBean" class="UserBean">
    <jsp:setProperty name="courseBean" property="*" />
    </jsp:useBean>
    The following was done:
    <jsp:getProperty name="courseBean" property="Name" />
    <jsp:getProperty name="courseBean" property="ID" />
    <jsp:getProperty name="courseBean" property="Description" />
    </body>
    </html>
    JAVABEAN:
    public class UserBean implements Serializable{
    private String Name;
    private String ID;
    private String Description;
    public UserBean(){
    public void setName(String Name){
    this.Name=Name;
    public String getName(){
    return ID;
    public void seID(int userID){
    this.ID=ID;
    public int getUserID(){
    return ID;
    public void setDescription(String Description){
    this.Description=Description;
    public String getDescription(){
    return Description;
    Thank you in advance
    Ajlear

    Use a lower case initial on a bean property name.
    Instead of:
    <jsp:getProperty name="courseBean" property="Name" />try:
    <jsp:getProperty name="courseBean" property="name" />The same will apply to other properties. Also, make sure you use the lower case initial on form field names. e.g. <input type="text" name ="name"> for use in <jsp:setProperty name="courseBean" property="*" />

  • Cannot find bean in any scope

    Hi,
    I am getting the following error
    Cannot find bean allJobsForm in any scope. I need some help in trying to identify the problem. I have attached the strust action mapping, the JSP, and the action and form classes. Please have a look and assist me in solving this problem as it I am becoming really frustrated.
    Warm Regards
    Denzil
    Action Mapping
    <action
    path="/secure/moshomo/search/GetAllJobsAction"
    type="za.co.mpilo.moshomo.web.action.GetAllJobsAction"
    name="allJobsForm"
    scope="session"
    input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
    unknown="false"
    validate="true"
    >
    <forward
    name="success"
    path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
    redirect="false"
    />
    JSP
    <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <%@ taglib uri="/tags/struts-nested" prefix="nested" %>
    <%@ taglib uri="/tags/war-extranet" prefix="extranet" %>
    <%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
    <nested:root name="allJobsForm">
         <div align="center">
         <table width="80%" class="mstable" >
              <thead>
                   <td>Posted Jobs</td>
              </thead>
              <tr>
                   <td>
                        <table width="100%" >
                             <tr class="mssubhead">                         
                                  <td width="60%" ><font color="#160866">
                                       Job Title
                                  </font></td>
                                  <td width="22%" align="center" ><font color="#160866">
                                       Posted Date
                                  </font></td>
                                  <td width="18%" align="center" ><font color="#160866">
                                       Expiration Date
                                  </font></td>
                             </tr>
                             <tr>
                             <td width="80%" ><font color="#160866">
                                       Job Description
                                  </font></td>                              
                             </tr>
                             <nested:iterate property="all" id="ref" type="za.co.mpilo.moshomo.vo.JobVO">
                                  <tr>
                                       <td width="60%"><font color="#160866">
                                            <nested:write name="ref" property="jobTitle"/>
                                       </font></td>
                                       <td width="22%"><font color="#160866">
                                            <nested:write name="ref" property="postedDate"/>
                                       </font></td>
                                       <td width="18%"><font color="#160866">
                                       <nested:write name="ref" property="expirationDate"/>
                                       </font></td>     
                                  </tr>
                                  <tr>
                                       <td width="80%" align="center"><font color="#160866">
                                            <nested:write name="ref" property="jobDescription"/>                                   
                                       </td>
                                  </tr>
                             </nested:iterate>
                             <nested:empty property="all">
                                  <tr>
                                       <td colspan="3"><font color="#160866"> No results found. </font></td>
                                  </tr>
                             </nested:empty>
                        </table>                    
                   </td>
              </tr>
         </table>
         </div>
    </nested:root>
    Action Class
    package za.co.mpilo.moshomo.web.action;
    import java.util.HashMap;
    import java.util.logging.Level;
    import javax.ejb.FinderException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionMessage;
    import org.apache.struts.action.ActionMessages;
    import za.co.mpilo.common.web.action.CommonAction;
    import za.co.mpilo.moshomo.interfaces.CVRepositoryManager;
    import za.co.mpilo.moshomo.util.CVRepositoryManagerUtil;
    import za.co.mpilo.moshomo.vo.CVVO;
    import za.co.mpilo.moshomo.vo.SearchVO;
    import za.co.mpilo.moshomo.vo.JobVO;
    import za.co.mpilo.moshomo.web.form.AllJobsForm;
    import za.co.mpilo.moshomo.web.form.AllTertiaryEducationForm;
    import za.co.mpilo.moshomo.web.form.JobSearchForm;
    * @struts.action
    *                     name="allJobsForm"
    *                     path="/secure/moshomo/search/GetAllJobsAction"
    *                     input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
    *                     scope="session"
    *                     validate="true"
    * redirect="false"
    * @struts.action-forward
    *                     name="success"
    *                     path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
    * @version $Revision: 1.4 $
    *      @author $Author: denzilf $
    *      @date $Date: 2006/11/02 11:03:10 $
    public class GetAllJobsAction extends CommonAction{
         public ActionForward execute(ActionMapping mapping, ActionForm f, HttpServletRequest request, HttpServletResponse response) throws Exception {
                   if ( getLogger().isLoggable(Level.INFO) )
                        getLogger().info( "execute" );
                   ActionForward result = mapping.getInputForward();
                   ActionMessages errors = new ActionMessages ();
                   AllJobsForm form = (AllJobsForm) f;
                   try {
                        //vo.setAllORany( form.getAllORany());
                        //vo.setMatch( form.getMatch());
                        //vo.setSearchText(form.getSearchText());
                        String uid = request.getUserPrincipal().getName(); //logged in user
                        CVRepositoryManager manager = CVRepositoryManagerUtil.getHome( getIntialProperies() ).create();
                        HashMap jobs = manager.findAllJobsPerUserId(uid);
                        form.setAll( jobs.values() );     
                        result = mapping.findForward( "success" );
                   catch (Exception xe) {
                        if ( getLogger().isLoggable(Level.WARNING) )
                             getLogger().log( Level.WARNING , xe.getMessage() , xe );
                        errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.general" ) );               
                   if ( !errors.isEmpty() )
                        saveErrors( request , errors );
                   return result;     
    Form
    package za.co.mpilo.moshomo.web.form;
    import java.util.Collection;
    import org.apache.struts.validator.ValidatorForm;
    import za.co.mpilo.moshomo.vo.JobVO;
    * @struts.form
    *           name="allJobsForm"
    public class AllJobsForm extends ValidatorForm {
         private int selection;
         private Collection all;
         public JobVO[] getAll() {
              JobVO[] array = new JobVO[all.size()];
              all.toArray( array );
              return array;
         public void setAll(Collection all) {
              this.all = all;
         public int getSelection() {
              return selection;
         public void setSelection(int selection) {
              this.selection = selection;
    }

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/Edituser.jsp at line 36
    33: <html:form action="/Updateuser" method="post">
    34:
    35:           <table border="0" align="center">
    36:           *<logic:iterate id="details" name="user">*
    37:           <tr>
    38:                <td><html:hidden property="userid" name="details"/></td>
    39:                <td><html:hidden property="contactid" name="details"/></td>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
         org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
         org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:844)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
         org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
         org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    root cause
    javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
         org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
         org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:232)
         org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:184)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
         org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
         org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
    --------------------------------------------------------------------------------

  • Javax.servlet.ServletException: Cannot find bean CustForm in any scope

    while i m running my struts application.. i m getting this error.. can any one pointout wat error is this...
    javax.servlet.ServletException: Cannot find bean CustForm in any scope
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
         at org.apache.jsp.Result_jsp._jspService(Result_jsp.java:100)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
         at java.lang.Thread.run(Thread.java:534)

    hi shanu
    getting in jsp call..
    ERROR [Engine] ApplicationDispatcher[customTag] Servlet.service() for servlet jsp threw exception.
    n this is the action
    <action-mappings >
         <action path="/select" type="customTld.CustAction" name="custform" scope="request">
              <forward name="ok" path="/Result.jsp"/>
         </action>
         </action-mappings >

  • Cannot deploy a EJB 3.0 Session bean to the OAS 10.1.3.4

    Hi All,
    I am unable to deploy a EJB 3.0 Session bean with no deployment descriptors to OAS 10.1.3.4 App server.This Session bean is also exposed as a web service using annotations. I am able to deploy this bean to a standalone oc4j 10.1.3.x containers and test it successfully.
    i have written a simple stateless session bean ( exposed as webservice) and every bean is having issues with deployment having the same exception stated below
    Can some one please help as i need to deploy this urgently.
    below is the session bean code:
    import javax.ejb.Stateless;
    @Stateless(name="SiebelQuoteEJB")
    public class SiebelQuoteEJBBean implements SiebelQuoteEJBLocal,
    SiebelQuoteEJBWebService {
    public SiebelQuoteEJBBean() {
    public String publishMessage(String message,String type) throws java.rmi.RemoteException {
    client.publishMessage(message,type);
    return "SUCCESS";
    Below is the error while deploying:
    11/01/06 15:03:49 WARNING: Application.setConfig Application: javasso is in failed state as initialization failed.
    java.lang.NullPointerException
    11/01/06 15:03:50 WARNING: Application.setConfig Application: SiebelQuoteEJB is in failed state as initialization failed.
    java.lang.InstantiationException: Error initializing ejb-modules: null Error parsing application-server config file: null
    11/01/06 15:03:50 java.lang.NullPointerException
    at com.evermind.server.ObjectReferenceCleaner.cleanupApplicationLogLevels(ObjectReferenceCleaner.java:166)
    at com.evermind.server.ObjectReferenceCleaner.loaderDestroyed(ObjectReferenceCleaner.java:88)
    at oracle.classloader.EventDispatcher.loaderDestroyed(EventDispatcher.java:248)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1113)
    at oracle.classloader.PolicyClassLoader.close(PolicyClassLoader.java:1041)
    at com.evermind.server.ApplicationStateRunning.destroyClassLoaders(ApplicationStateRunning.java:1171)
    at com.evermind.server.Application.stateCleanUp(Application.java:3635)
    at com.evermind.server.Application.setConfig(Application.java:506)
    at com.evermind.server.Application.setConfig(Application.java:355)
    at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
    at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:736)

    which jdk version? Had this with 1.6 and had to install an up-to-date jdbc.

  • Cannot find bean: "bean name" in any scope???? plsssssssssss  Urgent!

    Hi!
    I have a jsp with Combo boxes, when i select a value of one combo box
    OnChnage of it the 2nd combo box gets its value dynamically from the
    database..
    Here is my JSP..............................
    <script language="JavaScript">
    function ELMORG_MNEMONIC1Changed() {
    var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "1";
         frm.submit();
    function ELMORG_MNEMONIC2Changed(){
         var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "2";
         frm.submit();
    function ELMORG_MNEMONIC3Changed(){
         var frm = document.RetrieveReportDynaForm;
         frm.actionType.value = "3";
         frm.submit();
    </script>
    </head>
    <body>
    <table>
    <html:form action="/RetrieveReport.do" styleId="RetrieveReportDynaForm">
    <input type="hidden" name="actionType" value="">
    <table cellspacing=0 cellpadding=2 border=0 class="table_data" id="TABLE1" >
         <tr>
                        <td height="20px" colspan="5" class="table_top_td">Telecom DashBoard</td>
              </tr>
    <tr >     
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element1</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC1" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC1Changed()">
                        <html:option value="">Select</html:option>
                        <html:optionsCollection name="reportlist" label="ELMORG_MNEMONIC1" value="ELMORG_MNEMONIC1"/>
                        </html:select>
                   </td>
         </tr>
    <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element2</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC2" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC2Changed()">
                        <html:optionsCollection name="mnemonic1" label="ELMORG_MNEMONIC2" value="ELMORG_MNEMONIC2"/>
                        </html:select>
                   </td>
         </tr>     
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element3</b></td>
                        <td>
                        <html:select property="ELMORG_MNEMONIC3" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC3Changed()">
                        <html:optionsCollection name="mnemonic2" label="ELMORG_MNEMONIC3" value="ELMORG_MNEMONIC3"/>
                        </html:select>
                   </td>
         </tr>
         <tr class="table_data">
                   <td width="90px"></td>
                        <td class="smalltext" width="75px" align="right"><b>Organizational Element4</b></td>
                        <td>
                        <html:select property="RC_MNEMONIC" styleClass="mediumtext" style="width:120px; height:30px" onchange="RC_MNEMONICChanged()">
                        <html:optionsCollection name="mnemonic3" label="RC_MNEMONIC" value="RC_MNEMONIC"/>
                        </html:select>
                   </td>
         </tr>
         <tr>
                   <td></td>
                   <td><html:submit/></td>
         </tr>
    </table>
    </html:form>          
    </body>
    </html:html>
    I am getting a error....
    javax.servlet.jsp.JspException: Cannot find bean: "mnemonic2" in any scope
         at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
         at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:173)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_optionsCollection_2(reportParameter_jsp.java:469)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_select_2(reportParameter_jsp.java:438)
         at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_form_0(reportParameter_jsp.java:210)
         at org.apache.jsp.jsp.reportParameter_jsp._jspService(reportParameter_jsp.java:130)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
         at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    when i execute this page..
    I am using struts action where i am setting the "mnemonic2" variable in a session....................................
         if ("2".equals(actionType)){
              String MNEMONIC1 = request.getParameter("ELMORG_MNEMONIC1");
              String MNEMONIC2 = request.getParameter("ELMORG_MNEMONIC2");
              if(MNEMONIC2==""){
                   request.getSession().removeAttribute("mnemonic2");
                   }else{
                        ArrayList reportParam1 = (ArrayList)this.reportService.getELMORG_MNEMONIC3(MNEMONIC1,MNEMONIC2);
                        System.out.println("The arraysize in the Action class2 is"+reportParam1.size());
                        request.getSession().setAttribute("mnemonic2", reportParam1);
    Can any one pls tell me why m i getting this error???

    hi enoch!
    yeah definitely...
    <action path="/FourthAction" name="RetrieveReportDynaForm"
                   type="org.springframework.web.struts.DelegatingActionProxy" >
                   <forward name="success" path="/jsp/reportParameter.jsp"></forward>
                   <forward name="failure" path="/jsp/reportParameter.jsp"></forward>
              </action>
    <form-bean name="RetrieveReportDynaForm"
                   type="org.apache.struts.validator.DynaValidatorForm">
                   <form-property name="GRP_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="POL_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC1" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC1" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC2" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC2" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC3" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC3" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC4" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC4" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC5" type="java.lang.String"
                        initial="" />
                   <form-property name="ELMORG_MNEMONIC5" type="java.lang.String"
                        initial="" />
                   <form-property name="GRP_MNEMONIC6" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MNEMONIC" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_LABEL" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MANAGER" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_CODE" type="java.lang.String"
                        initial="" />
                   <form-property name="RC_MANAGER_EMAIL" type="java.lang.String"
                        initial="" />
                   <form-property name="actionType" type="java.lang.String"
                        initial="" />
              </form-bean>

  • Cannot find Bean under name..

    Hello everyone,
    I'm new to struts, please be patient with me!!
    I have a series of JSP pages with forms, when I submit a form, I store the contents to the database & take the user to the next page, if its an update action, I need to populate the forms on load.
    The storing part & populating parts are working fine (using ActionForm) BUT the page transitions are not working. I mean, after storing to the database I send a "success" message & my next page is not getting loaded. I'm geting this error "Cannot find bean under name projectOverviewForm" (2nd form name).
    Here's the code snippet...
    struts-config.xml:
    <form-beans>
    <form-bean name="projectIdentificationForm" type="roi.form.ProjectIdentificationForm"></form-bean>
    <form-bean name="projectOverviewForm" type="roi.form.ProjectOverviewForm"></form-bean>
    </form-beans>
    <global-forwards>
    <forward name="identification" path="toolBg.identification"></forward>
    <forward name="overview" path="toolBg.overview"></forward>
    </global-forwards>
    <action-mappings>
    <action path="/identification" type="roi.action.ProjectIdentificationAction" parameter="method" name="projectIdentificationForm" scope="request" validate="false">
      <forward name="success" path="toolBg.identification"></forward>
      <forward name="nextSuccess" path="toolBg.overview"></forward>
      <forward name="deleteSuccess" path="roi.welcome"></forward>
    </action>
    <action path="/overview" type="roi.action.ProjectOverviewAction" parameter="method" name="projectOverviewForm" scope="request" validate="false">
      <forward name="success" path="toolBg.overview"></forward>
      <forward name="nextSuccess" path="toolBg.scd"></forward>
    </action>
    </action-mappings>On searching on the web, I heard this error mostly occurs due to html:select but I'm not using it in my JSP.
    Please let me know if I need to upload any more code? Any help would be greatly appreciated!
    Thanks & Regards,
    Vidya Shankar

    Exception: Cannot find bean under name ...
    Probable Cause: This is usually seen in association with a problematic Struts HTML SELECT custom tag. The Struts html:select tag behaves differently depending whether one or both of the name and property attributes is specified for its encompassed <html:options> tags. If the name attribute is specified, whether or not if the property attribute is specified, then a bean matching the specified name will be expected in some scope (such as page, request, session, or application). If the matching bean is not found in any available scope, the error above will be seen.
    There are two ways to address this. The first approach is to put a bean in one of the scopes so that the html:options might be associated with it. The second approach is to not specify the name attribute and instead use only the property attribute.
    Change your Frombean scope from "Request" to "Session", then it works.
    Thanks,
    Thagelapally

  • Exception:Error getting property 'add' from bean of type sample1.edit

    Hi when i try to build and run the applicaiton it is displaying that build and run is successful. But when i try to access the jsp page through the url then it is showing error as below.
    Exception Details:org.apache.jasper.JasperException
    Error getting property 'add' from bean of type sample1.edit
    Can anyone please help me out from this problem.
    Thank you in Advance.

    I solved the problem. The issue was everytime I was compiling only the JSP and the componenets couldn't recognize the bean methods.
    Now I am running the project after any changes.
    Thanks

  • Cannot find bean          in            html:write gag

    hi everybody
    i am new to struts
    in my application i am getting the following error
    Cannot find bean error in any scope
    in my code
    in jsp i have given
    logic:messagesPresent>
    <UL>
    <html:messages id="error" message="false">
    <LI><bean:write name="error"/></LI>
    </html:messages>
    </UL>
    </logic:messagesPresent>
    and in my validate method in action form
    i have given
    ActionErrors errors = new ActionErrors();
    errors.add(text parameter,ActionError parameter)
    while creating ActionError Object i am passing one key that is refering the message in property file
    any body can help me to resolve this problem
    thanks in advance

    Good Morning here!
    Thank you all for the fabulous responses!
    First of all, let me mention an important Fact. I am using The Struts Layout Library to build dependent Combo Boxes. so My enclosing html tag is <html:layout>
    I am not sure If this has an influence on how Struts verifies the existence of Session Beans/Variables.
    As I mentioned before: Action Class1 puts some variables in session and forwards to the JSP page in Question, those values load well the first time, and get printed in the JSP.
    The JSP page has an Action Class2, triggered by a submit button, Action Class2 forwards to the same JSP page, But when this Action Class2 is called the values that were put in Session using Action Class1 get Lost.
    tolmank, your reply is Very Interesting, because my server is internally changing my IP address to somename:8080. Are you sure this is what definitely could be causing the problem?
    Thanks to all of you guys!
    God Bless.
    Post your comments... and let me know what you think.

  • Cannot find bean  in html:write

    hi everybody
    i am new to struts
    in my application i am getting the following error
    Cannot find bean error in any scope
    in my code
    in jsp i have given
    logic:messagesPresent>
    <UL>
    <html:messages id="error" message="false">
    <LI><bean:write name="error"/></LI>
    </html:messages>
    </UL>
    </logic:messagesPresent>
    and in my validate method in action form
    i have given
    ActionErrors errors = new ActionErrors();
    errors.add(text parameter,ActionError parameter)
    while creating ActionError Object i am passing one key that is refering the message in property file
    any body can help me to resolve this problem
    thanks in advance

    Good Morning here!
    Thank you all for the fabulous responses!
    First of all, let me mention an important Fact. I am using The Struts Layout Library to build dependent Combo Boxes. so My enclosing html tag is <html:layout>
    I am not sure If this has an influence on how Struts verifies the existence of Session Beans/Variables.
    As I mentioned before: Action Class1 puts some variables in session and forwards to the JSP page in Question, those values load well the first time, and get printed in the JSP.
    The JSP page has an Action Class2, triggered by a submit button, Action Class2 forwards to the same JSP page, But when this Action Class2 is called the values that were put in Session using Action Class1 get Lost.
    tolmank, your reply is Very Interesting, because my server is internally changing my IP address to somename:8080. Are you sure this is what definitely could be causing the problem?
    Thanks to all of you guys!
    God Bless.
    Post your comments... and let me know what you think.

Maybe you are looking for