wood burning stoves 2.0*
The moose likes Struts and the fly likes Exception while creating form bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception while creating form bean" Watch "Exception while creating form bean" New topic
Author

Exception while creating form bean

Ashok Sharma
Greenhorn

Joined: Dec 08, 2008
Posts: 12
Hi All,
i have one strange problem.
I am trying to run one struts web application which is running on my friends machine on the same version of resin, but that application is giving exception on my machine.
We are using same version of java
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_03

What i had do to run the application is
1. Installed the freas copy of resin3.1.8
2. Copy the application in webapps dir
3. Start resin

when i try to access the application by it gives me below error, but when i use the same steps in my friends machine it works fine. I have tried this n2/3 windows machines it works fine but gives error in my machine. So i am not getting what could go wrong.
In this application html:form tag is used.


javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception
creating bean of class com.forus.common.form.LoginForm: {1}
at com.caucho.jsp.PageContextImpl.handlePageException(PageContextImpl.java:1211)
at _jsp._jsp._common._index__jsp._jspService(_index__jsp.java:111)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:578)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:730)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.servlet.jsp.JspException: Exception creating bean of class
com.forus.common.form.LoginForm: {1}
at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:487)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)
at _jsp._jsp._common._index__jsp._jspService(/jsp/common/index.jsp:41)
at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
at com.caucho.jsp.Page.pageservice(Page.java:578)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:195)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:730)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:649)
at java.lang.Thread.run(Thread.java:619)

Thanks in advance...


Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

http://faq.javaranch.com/java/CannotCreateBean


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ashok Sharma
Greenhorn

Joined: Dec 08, 2008
Posts: 12
Hi Sagar,
Thanks for your reply but the points mentioned there are programmatic error, if there would be these type of errors then the application should not work on other's machine also. As i had mentioned in my post that this application is working on my 2 friends machine with same version of resin and java so i guess this is not trivial error.
There must be some ting wrong in my machine's configuration.

Thanks again...
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Honestly speaking, I really do not have any solid thoughts to reply, many times, as you said, its machines configuration problem.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'd try cranking up the logging levels to debug.

Also look at the JSP's Java source to see if there's anything obvious.
 
jQuery in Action, 2nd edition
 
subject: Exception while creating form bean