Re: Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5
I tried the same code with tomcat 5.5.28 server and surprisingly... it worked absolutely fine.nbsp;But got no clue of what's wrong with weblogic 8.0.nbsp;PS:nbsp;Sandeep, Iam working with struts 1.2, please see the subject line.nbsp;NanuOn Fri, 02 Apr 2010 00:14:44 +0530 wrotegt;in struts 2 we don't have form bean.gt;gt;If you want to access some object similar to form you need to set in action class with get and set methods and fram work will take care of other thing remove the from tag from struts config.gt;gt;Apache struts site has the wonderful startup tutorial you can go through it and start coding in 10 minsgt;gt; On 1 April 2010 17:29, Nanu Khota lt;nanukh...@rediffmail.comgt; wrote:gt; gt;gt;gt;gt;gt;-- Forwarded message --gt;From:nbsp;Panchal, Ashish IN GGN SISL lt;ashish.panc...@siemens.comgt;gt;To:nbsp;nanukh...@rediffmail.com lt;nanukh...@rediffmail.comgt;gt;Date:nbsp;gt;Subject:nbsp;Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5gt; nbsp; Hi All, nbsp; I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. nbsp; - nbsp; SEVERE: Error creating form bean of class com.abc.struts.form.LoginForm java.lang.NullPointerException at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:191) at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:477) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457) at jsp_servlet.__login._jspService(__login.java:196) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) nbsp; - nbsp; I tried searching thru all forums from last 2 days but could not found any solution to the issue. This seems to be a very common problem but I don't know why its not going away. I am really stuck up. nbsp; Below are the listing of files required to analyize the cause of error. nbsp; web.xml http://java.sun.com/dtd/web-app_2_3.dtdgt; nbsp; nbsp;nbsp;nbsp; action nbsp;nbsp;nbsp; org.apache.struts.action.ActionServlet nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; config nbsp;nbsp;nbsp;nbsp;nbsp; /WEB-INF/struts-config.xml nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; debug nbsp;nbsp;nbsp;nbsp;nbsp; 3 nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; detail nbsp;nbsp;nbsp;nbsp;nbsp; 3 nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; 0 nbsp; nbsp; nbsp;nbsp;nbsp; action nbsp;nbsp;nbsp; *.do nbsp; nbsp; nbsp;nbsp;nbsp; index.jsp nbsp; nbsp; nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; /WEB-INF/struts-html.tld nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; /WEB-INF/struts-html.tld nbsp; nbsp; nbsp; index.jsp - .. nbsp;nbsp;nbsp; Login nbsp; . nbsp; nbsp; struts-config.xml - http://struts.apache.org/dtds/struts-config_1_2.dtdgt; nbsp; nbsp; nbsp; nbsp;nbsp;nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; attribute=loginForm nbsp;nbsp;nbsp;nbsp;nbsp; name=loginForm nbsp;nbsp;nbsp;nbsp;nbsp; path=/empLogin nbsp;nbsp;nbsp;nbsp;nbsp;scope=request nbsp;nbsp;nbsp;nbsp;nbsp; type=com.siemens.struts.action.EmpLoginAction nbsp;nbsp;nbsp;nbsp;nbsp;validate=false /gt; nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; nbsp; Login.jsp - nbsp; nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Login: nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Password: nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; Login nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; nbsp; nbsp; I can also provide the form bean and action class if required but I believe it won't add to solving the problem as the exception occurs when I click on the link on index.jsp and then it tries to render the Login.jsp. nbsp; Please help. nbsp; Nanugt; Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system.gt;Thank You.gt;gt;gt;-gt;To unsubscribe, e-mail: user-unsubscr...@struts.apache.orggt;For additional commands, e-mail: user-h
Error creating form bean struts 1.2 + weblogic 8.1 + myeclipse 5.5
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. - SEVERE: Error creating form bean of class com.abc.struts.form.LoginFormjava.lang.NullPointerExceptionat org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292)at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:191)at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:477)at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)at jsp_servlet.__login._jspService(__login.java:196)at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) - I tried searching thru all forums from last 2 days but could not found any solution to the issue. This seems to be a very common problem but I don't know why its not going away. I am really stuck up. Below are the listing of files required to analyize the cause of error. web.xmllt;?xml version=1.0 encoding=UTF-8?gt;lt;!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtdgt;lt;web-appgt;nbsp; lt;servletgt;nbsp;nbsp;nbsp; lt;servlet-namegt;actionlt;/servlet-namegt;nbsp;nbsp;nbsp; lt;servlet-classgt;org.apache.struts.action.ActionServletlt;/servlet-classgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;configlt;/param-namegt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-valuegt;/WEB-INF/struts-config.xmllt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;debuglt;/param-namegt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-valuegt;3lt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;detaillt;/param-namegt;nbsp;nbsp;nbsp; nbsp;nbsp; lt;param-valuegt;3lt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;load-on-startupgt;0lt;/load-on-startupgt;nbsp; lt;/servletgt;nbsp; lt;servlet-mappinggt;nbsp;nbsp;nbsp; lt;servlet-namegt;actionlt;/servlet-namegt;nbsp;nbsp;nbsp; lt;url-patterngt;*.dolt;/url-patterngt;nbsp; lt;/servlet-mappinggt;nbsp; lt;welcome-file-listgt;nbsp;nbsp;nbsp; lt;welcome-filegt;index.jsplt;/welcome-filegt;nbsp; lt;/welcome-file-listgt;nbsp; lt;taglibgt;nbsp; nbsp;lt;taglib-urigt;/WEB-INF/struts-html.tldlt;/taglib-urigt;nbsp; nbsp;lt;taglib-locationgt;/WEB-INF/struts-html.tldlt;/taglib-locationgt;nbsp; lt;/taglibgt;lt;/web-appgt; index.jsp-..lt;bodygt;nbsp;nbsp;nbsp; lt;html:link page=/home.dogt;Loginlt;/html:linkgt;nbsp; lt;/bodygt;. struts-config.xml-lt;?xml version=1.0 encoding=UTF-8?gt;lt;!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://struts.apache.org/dtds/struts-config_1_2.dtdgt; lt;struts-configgt;nbsp; lt;data-sources /gt;nbsp; lt;form-beans gt;nbsp;nbsp;nbsp; lt;form-bean name=loginForm type=com.siemens.struts.form.LoginForm /gt; nbsp; lt;/form-beansgt; nbsp; lt;global-exceptions /gt;nbsp; lt;global-forwards /gt;nbsp; lt;action-mappings gt;nbsp;nbsp;nbsp; lt;actionnbsp;nbsp;nbsp;nbsp;nbsp; attribute=loginFormnbsp;nbsp;nbsp;nbsp;nbsp; name=loginFormnbsp;nbsp;nbsp;nbsp;nbsp; path=/empLoginnbsp;nbsp;nbsp;nbsp;nbsp; scope=requestnbsp;nbsp;nbsp;nbsp;nbsp; type=com.siemens.struts.action.EmpLoginActionnbsp;nbsp;nbsp;nbsp;nbsp; validate=false /gt;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; lt;action forward=/Login.jsp path=/home /gt; nbsp; lt;/action-mappingsgt; nbsp; lt;message-resources parameter=com.siemens.struts.ApplicationResources /gt;lt;/struts-configgt; Login.jsp- lt;bodygt;nbsp;nbsp;nbsp; lt;html:form action=/empLogin method=post focus=logingt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;table border=0gt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;Login:lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;lt;html:text property=login /gt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;Password:lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;lt;html:password property=password /gt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;td colspan=2 align=centergt;lt;html:submitgt;Loginlt;/html:submitgt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbs p;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/tablegt;nbsp;nbsp;nbsp; lt;/html:formgt;nbsp; lt;/bodygt; I can also provide the form bean and action class if required but I believe
Error creating form bean - nullpointerexception - struts 1.2 + weblogic 8.1 + myeclipse 5.5
Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run itself. - SEVERE: Error creating form bean of class com.abc.struts.form.LoginFormjava.lang.NullPointerExceptionat org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212)at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292)at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:191)at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:477)at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457)at jsp_servlet.__login._jspService(__login.java:196)at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) - I tried searching thru all forums from last 2 days but could not found any solution to the issue. This seems to be a very common problem but I don't know why its not going away. I am really stuck up. Below are the listing of files required to analyize the cause of error. web.xmllt;?xml version=1.0 encoding=UTF-8?gt;lt;!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtdgt;lt;web-appgt;nbsp; lt;servletgt;nbsp;nbsp;nbsp; lt;servlet-namegt;actionlt;/servlet-namegt;nbsp;nbsp;nbsp; lt;servlet-classgt;org.apache.struts.action.ActionServletlt;/servlet-classgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;configlt;/param-namegt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-valuegt;/WEB-INF/struts-config.xmllt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;debuglt;/param-namegt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-valuegt;3lt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;init-paramgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;param-namegt;detaillt;/param-namegt;nbsp;nbsp;nbsp; nbsp;nbsp; lt;param-valuegt;3lt;/param-valuegt;nbsp;nbsp;nbsp; lt;/init-paramgt;nbsp;nbsp;nbsp; lt;load-on-startupgt;0lt;/load-on-startupgt;nbsp; lt;/servletgt;nbsp; lt;servlet-mappinggt;nbsp;nbsp;nbsp; lt;servlet-namegt;actionlt;/servlet-namegt;nbsp;nbsp;nbsp; lt;url-patterngt;*.dolt;/url-patterngt;nbsp; lt;/servlet-mappinggt;nbsp; lt;welcome-file-listgt;nbsp;nbsp;nbsp; lt;welcome-filegt;index.jsplt;/welcome-filegt;nbsp; lt;/welcome-file-listgt;nbsp; lt;taglibgt;nbsp; nbsp;lt;taglib-urigt;/WEB-INF/struts-html.tldlt;/taglib-urigt;nbsp; nbsp;lt;taglib-locationgt;/WEB-INF/struts-html.tldlt;/taglib-locationgt;nbsp; lt;/taglibgt;lt;/web-appgt; index.jsp-..lt;bodygt;nbsp;nbsp;nbsp; lt;html:link page=/home.dogt;Loginlt;/html:linkgt;nbsp; lt;/bodygt;. struts-config.xml-lt;?xml version=1.0 encoding=UTF-8?gt;lt;!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://struts.apache.org/dtds/struts-config_1_2.dtdgt; lt;struts-configgt;nbsp; lt;data-sources /gt;nbsp; lt;form-beans gt;nbsp;nbsp;nbsp; lt;form-bean name=loginForm type=com.siemens.struts.form.LoginForm /gt; nbsp; lt;/form-beansgt; nbsp; lt;global-exceptions /gt;nbsp; lt;global-forwards /gt;nbsp; lt;action-mappings gt;nbsp;nbsp;nbsp; lt;actionnbsp;nbsp;nbsp;nbsp;nbsp; attribute=loginFormnbsp;nbsp;nbsp;nbsp;nbsp; name=loginFormnbsp;nbsp;nbsp;nbsp;nbsp; path=/empLoginnbsp;nbsp;nbsp;nbsp;nbsp; scope=requestnbsp;nbsp;nbsp;nbsp;nbsp; type=com.siemens.struts.action.EmpLoginActionnbsp;nbsp;nbsp;nbsp;nbsp; validate=false /gt;nbsp;nbsp;nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; lt;action forward=/Login.jsp path=/home /gt; nbsp; lt;/action-mappingsgt; nbsp; lt;message-resources parameter=com.siemens.struts.ApplicationResources /gt;lt;/struts-configgt; Login.jsp- lt;bodygt;nbsp;nbsp;nbsp; lt;html:form action=/empLogin method=post focus=logingt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;table border=0gt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;Login:lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;lt;html:text property=login /gt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;Password:lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;tdgt;lt;html:password property=password /gt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;trgt;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; lt;td colspan=2 align=centergt;lt;html:submitgt;Loginlt;/html:submitgt;lt;/tdgt;nbsp;nbsp;nbsp;nbsp;nbs p;nbsp;nbsp; lt;/trgt;nbsp;nbsp;nbsp;nbsp;nbsp; lt;/tablegt;nbsp;nbsp;nbsp; lt;/html:formgt;nbsp; lt;/bodygt; I can also provide the form bean and action class if required but I
Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5
---BeginMessage--- Hi All, I am a newbee to struts and trying some hands on it. I was just trying to develop a simple login form but getting following exception on initial run only. - SEVERE: Error creating form bean of class com.abc.struts.form.LoginForm java.lang.NullPointerException at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:212) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:292) at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:191) at org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:477) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:457) at jsp_servlet.__login._jspService(__login.java:196) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) - I tried searching thru all forums from last 2 days but could not found any solution to the issue. This seems to be a very common problem but I don't know why its not going away. I am really stuck up. Below are the listing of files required to analyize the cause of error. web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value3/param-value /init-param init-param param-namedetail/param-name param-value3/param-value /init-param load-on-startup0/load-on-startup /servlet servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list taglib taglib-uri/WEB-INF/struts-html.tld/taglib-uri taglib-location/WEB-INF/struts-html.tld/taglib-location /taglib /web-app index.jsp - .. body html:link page=/home.doLogin/html:link /body . struts-config.xml - ?xml version=1.0 encoding=UTF-8? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.2//EN http://struts.apache.org/dtds/struts-config_1_2.dtd; struts-config data-sources / form-beans form-bean name=loginForm type=com.siemens.struts.form.LoginForm / /form-beans global-exceptions / global-forwards / action-mappings action attribute=loginForm name=loginForm path=/empLogin scope=request type=com.siemens.struts.action.EmpLoginAction validate=false / action forward=/Login.jsp path=/home / /action-mappings message-resources parameter=com.siemens.struts.ApplicationResources / /struts-config Login.jsp - body html:form action=/empLogin method=post focus=login table border=0 tr tdLogin:/td tdhtml:text property=login //td /tr tr tdPassword:/td tdhtml:password property=password //td /tr tr td colspan=2 align=centerhtml:submitLogin/html:submit/td /tr /table /html:form /body I can also provide the form bean and action class if required but I believe it won't add to solving the problem as the exception occurs when I click on the link on index.jsp and then it tries to render the Login.jsp. Please help. Nanu Important notice: This e-mail and any attachment there to contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You. ---End Message--- - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org