struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Jerry" <tom.snow.je...@gmail.com>
Subject Re: exception
Date Thu, 07 Sep 2006 06:02:40 GMT
There are no database operations. It is the simplest one. I am learning by
example.

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

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

<struts-config>
    <form-beans>
            <form-bean name="loginForm" type="code.LoginForm"/>
     </form-beans>

    <global-forwards>
        <forward name="mainmenu" path="/mainmenu.jsp"/>
    </global-forwards>

    <action-mappings>
            <action path="/login"
                type="code.LoginAction"
                name="loginForm"
                scope="session"
                input="/index.jsp">
            </action>
     </action-mappings>

    <controller
           processorClass="org.apache.struts.tiles.TilesRequestProcessor"/>

    <message-resources parameter="ApplicationResources" null="false"/>

    <plug-in className="org.apache.struts.tiles.TilesPlugin" >

      <!-- Path to XML definition file -->
      <set-property property="definitions-config"
                       value="/WEB-INF/tiles-defs.xml" />
      <!-- Set Module-awareness to true -->
      <set-property property="moduleAware" value="true" />
    </plug-in>


  <!-- =================================================== Validator plugin
-->

  <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
    <set-property
        property="pathnames"
        value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
  </plug-in>

</struts-config>

Please let me know if I have to zip and send the entire folder.

On 9/7/06, Chandra.Ravinithala@gxs.com <Chandra.Ravinithala@gxs.com> wrote:
>
> Did you mention LoginForm in struts-config properly - I mean
> <form-beans>
>                 <!-- Login form bean -->
>                 <form-bean name="LoginForm" type="xyz.yxz...."/>
> </form-beans>
> And <action .......
>
>
> Pls share your struts-config.xml.
>
>
>
>
> -----Original Message-----
> From: Tom Jerry [mailto:tom.snow.jerry@gmail.com]
> Sent: Thursday, September 07, 2006 9:51 AM
> To: Struts Users Mailing List
> Subject: Re: exception
>
> Error 500--Internal Server Error
>
> javax.servlet.jsp.JspException: Exception creating bean of class
> code.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_servlet.__index._jspService(__index.java:216)
>         at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
>         at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
> rvletStubImpl.java:996)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:419)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:463)
>         at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
> java:315)
>         at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
> un(WebAppServletContext.java:6452)
>         at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
> bject.java:321)
>         at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
> )
>         at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
> etContext.java:3661)
>         at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
> java:2630)
>         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
>         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>
>
>
> On 9/6/06, David Friedman <humble@ix.netcom.com> wrote:
> >
> > What is the full stack trace in your application server logs?
> >
> > -----Original Message-----
> > From: Tom Jerry [mailto:tom.snow.jerry@gmail.com]
> > Sent: Wednesday, September 06, 2006 12:48 PM
> > To: user@struts.apache.org
> > Subject: exception
> >
> >
> > Why do I get an "exception in creating bean" ????
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message