struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nanu Khota" <nanukh...@rediffmail.com>
Subject Re: Error creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5
Date Thu, 08 Apr 2010 05:39:20 GMT
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
wrote&gt;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
mins&gt;&gt;
On 1 April 2010 17:29, Nanu Khota &lt;nanukhota@rediffmail.com&gt; wrote:&gt;
&gt;&gt;&gt;&gt;&gt;---------- Forwarded message ----------&gt;From:&nbsp;"Panchal,
Ashish IN GGN SISL" &lt;ashish.panchal@siemens.com&gt;&gt;To:&nbsp;"nanukhota@rediffmail.com"
&lt;nanukhota@rediffmail.com&gt;&gt;Date:&nbsp;&gt;Subject:&nbsp;Error
creating form bean - struts 1.2 + weblogic 8.1 + myeclipse 5.5&gt;


&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.dtd"&gt;

&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.dtd"&gt;
&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;
Nanu&gt;

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-unsubscribe@struts.apache.org&gt;For additional commands, e-mail:
user-help@struts.apache.org&gt;&gt;
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message