kirty nahar

Greenhorn
+ Follow
since May 02, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by kirty nahar

Here it is :


org.apache.jasper.JasperException: Exception creating bean of class selectica.DynamicLookupForm: {1}
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
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.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.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:2415)
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.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:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:479)


root cause

javax.servlet.ServletException: Exception creating bean of class selectica.DynamicLookupForm: {1}
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.dynamicindex_jsp._jspService(dynamicindex_jsp.java:91)
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.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.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:2415)
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.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:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:479)
19 years ago
I'm trying to work with DynaActionForm. When I try to access my page it gives me following exception

Exception creating bean of class selectica.DynamicLookupForm: {1}

Can you kindly let me know what could be the possible problem.

My struts-config.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" >

<struts-config>

<form-beans>
<form-bean name="LookupFormBean" type="selectica.LookupForm"/>

<form-bean name="dynamicLookupForm" type="selectica.DynamicLookupForm">
<form-property name="symbol" type="java.lang.String" initial="MSFT"/>
</form-bean>

</form-beans>


<action-mappings>
<action path="/Lookup" type="selectica.LookupAction" name="LookupFormBean">
<forward name="success" path="/quote.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>

<action-mappings>
<action path="/DynamicLookup" type="selectica.DynamicLookupAction" name="dynamicLookupForm">
<forward name="success" path="/quote.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>
</struts-config>



My dynamicindex.jsp

<%@ page language="java"%>
<%@ taglib uri = "/WEB-INF/struts-html.tld" prefix="html"%>
<html>
<head>
<title>Wrox struts Application</title>
</head>

<body>tertwr
<table width="500" border="0" cellspacing="0" cellpadding="0">
hello.....
<tr>
<td> </td>
</tr>

<tr>
<td height="68" width="48%">
<div align="left">
<img src="images/new.gif">
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>

<html:form action="/DynamicLookup">
Symbol: <html:text property="symbol"/>
<html:submit/>
</html:form>

</body>
</html>



My DynamicLookupAction

package selectica;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.DynaActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForward;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class DynamicLookupAction extends Action
{
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
String target=new String("failure");
Double price=null;

if(form !=null)
{
DynaActionForm lform=(DynaActionForm)form;
String symbol=(String)lform.get("symbol");
if(symbol.equals("Selectica"))
{
price = new Double(25.00);
request.setAttribute("PRICE",price);
target="success";

}
}

return mapping.findForward(target);

}
}


The error occurs when I try to access dynamicindex.jsp

Thanks in Advance
Kirty
19 years ago
Thanks for the response. Now it gives me this error.

org.apache.jasper.JasperException: /index.jsp(25,0) Unable to find setter method for attribute: name
19 years ago
I have created a simple Struts Application. When I run it I get following exception
org.apache.jasper.JasperException: Cannot find bean lookupForm in any scope

My index.jsp

<%@ page language="java"%>
<%@ taglib uri = "/WEB-INF/struts-html.tld" prefix="html"%>
<html>
<head>
<title>Wrox struts Application</title>
</head>

<body>tertwr
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>

<tr>
<td height="68" width="48%">
<div align="left">
<img src="images/new.gif">
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<html:form action="Lookup" name="LookupForm" type="selectica.LookupForm">

<table width="45%" border="0">
<tr>
<td>Symbol;</td>
<td><html:text property="symbol" /></td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit /></td>
</tr>
</table>
</html:form>
</body>
</html>


My struts-config.xml

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd" >

<struts-config>
<form-beans>
<form-bean name="LookupForm" type="selectica.LookupForm"/>
</form-beans>

<action-mappings>
<action path="/Lookup" type="selectica.LookupAction" name="LookupForm">
<forward name="success" path="/quote.jsp"/>
<forward name="failure" path="/index.jsp"/>
</action>
</action-mappings>
</struts-config>


My LookupForm.java
package selectica;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class LookupForm extends ActionForm
{
private String symbol=null;

public String getSymbol()
{
return(symbol);

}
public void setSymbol(String symbol)
{
this.symbol=symbol;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.symbol=null;
}


}


Kindly let me know what could be the possible problem.
19 years ago
JNP
JNP is a pure Java implementation of a JNDI provider. It's primarily intended as a replacement for the RMI Registry in RMI applications.

For more details on JNP visit -

http://www.opensource.apple.com/darwinsource/WWDC2004/JBoss-734/jboss-all/naming/src/docs/


Regards
Kirty
Thanks mr himanshu patel
1.well my os is windows. The idea about zipping is good and i'll try it out.
i have used sockets.
2.The client machines are on the LAN
Anything would do either a client or a server or both.
Any idea as to how i can do remote installation of any s/w using java prog.lets say, my exe is on server & sitting on server I want to install it on any of my clients mach. in LAN. The exe may or may not support silent installation.
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help
2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.The m/c are on the LAN on windows platform
20 years ago
Hello
1.I am trying to develop a program that would transfer a directory containing any no of sub-directories having any number and any type of files (exe,dll,txt etc) from the client to server of any size. Please Help
2.How can I install/update an exe file from the server to the client (preferablly 10 clients at a time) automatically with just one click.
Email - kirty_nahar@rediffmail.com
20 years ago
guys help...
I've been asked to write a prog which does foll -
1. sitting on the server mach. I should be able to install any software on the client's machine. (without using virtual desktop)
2. periodically (say after every 3 hrs) the backup of the files on the client mach should be automatically taken on the server, without any client intervenetion.
Kindly give me some guideline or some sample prog...
Dear Friends
Can any one tell me that using javax.comm api how can I obtain the information about printer. I know connecting to parallel port & all, what I want is my prog should give me information as to name of printer, no of pages printed in todays date etc.
Kindly let me know if there's some other api used for this..
20 years ago
From which site can I download XML Parsers like DOM and SAX?
class Wrap
{
public void add(Integer o)
{
String str = o.toString();
int i = o.intValue() + 5;
str = Integer.toString(i);
o = Integer.valueOf(str);
System.out.println(o.intValue());
}
public static void main(String args[])
{
Wrap ob = new Wrap();
Integer a = new Integer(5);
ob.add(a);
System.out.println(a.intValue());
}
}
The output of the prog is 10 and 5 whereas it should be 10 and 10 as original object 'a' gets modified int the add method. Kindly explain.
22 years ago