This usually happens due to improper setting of  Data Source Configuration
(<data-sources>  </data-sources>) in struts-config.xml file.
Check whether driverClass ,url,user,password entered are correctly .
Hope that may help you.

Sagar


----- Original Message -----
From: "Otavio C. Decio" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 6:56 PM
Subject: Re: Newbie Question - Please Helpme (Cannot find ActionMapping
or...)


> Just a suggestion, put all the jars that come with struts under your
> web-inf\lib directory, including the commons*.
>
> Abracos
>
> Otavio
>
> ----- Original Message -----
> From: "Gilson Nascimento D Elrei" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 8:16 AM
> Subject: Newbie Question - Please Helpme (Cannot find ActionMapping or...)
>
>
> > > I'm receiving this error when I try to execute my application
> > > (http://localhost:8100/helpdev/jsp/LoginView.jsp) on JRUN.
> > >           javax.servlet.jsp.JspException: Cannot find ActionMappings
or
> > > ActionFormBeans collection
> > > I have verified my WEB.XML  and STRUTS-CONFIG.XML files and I didn't
> find
> > > error.
> > > I think that STRUTS doesn't get to find the path for
STRUTS-CONFIG.XML.
> > > <<LoginAction.java>>  <<LoginView.jsp>>
> > > Below is my structure directory configuration.
> > > HelpDev is my WEBAPP container for my application.
> > > HELPDEV
> > >      |
> > >      +-----JSP
> > >      |              |
> > >      |              .-- LoginView.JSP               <--  Main Program
> > >      |              .-- MainMenu.JSP
> > >      |
> > >      +-----WEB-INF:.
> > >                     |
> > >                     +-----------LIB
> > >                     |                     |
> > >                     |                     .--structs.jar
> > >                     |                     .--xerces.jar
> > >                     |                     .--jaxp.jar
> > >                     |                     .--parse.jar
> > >                     |
> > >                     +-----------CLASSES
> > >                     |                     |
> > >                     |                     +-----------TEST
> > >                     |                                               |
> > >                     |
> > > +----------STRUTS
> > >                     |
> > > . LoginAction.class
> > >                     |
> > > . LoginBean.class
> > >                     |
> > > . LoginForm.class
> > >                     |
> > > . MessageResources.properties
> > >
> > >                     .-- All Structs TLD Files (*.TLD)
> > >                     .-- structs-config.xml
> > >                     .-- web.xml
> > >
> > > Below is content from WEB.XML and STRUTS-CONFIG.XML
> > > <!-- WEB.XML Start HERE --->
> > >
> > > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > <!DOCTYPE web-app
> > >   SYSTEM
> > >   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > > <web-app>
> > >   <!-- Action Servlet Configuration -->
> > >   <servlet>
> > >     <servlet-name>action</servlet-name>
> > >
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> > >     <init-param>
> > >       <param-name>application</param-name>
> > >       <param-value>test.struts.MessageResources</param-value>
> > >     </init-param>
> > >     <init-param>
> > >       <param-name>config</param-name>
> > >       <param-value>/WEB-INF/struts-config.xml</param-value>
> > >     </init-param>
> > >     <init-param>
> > >       <param-name>debug</param-name>
> > >       <param-value>2</param-value>
> > >     </init-param>
> > >     <init-param>
> > >       <param-name>mapping</param-name>
> > >
> > >
<param-value>org.apache.struts.action.RequestActionMapping</param-value>
> > >     </init-param>
> > >     <load-on-startup>2</load-on-startup>
> > >   </servlet>
> > >   <!-- Action Servlet Mapping -->
> > >   <servlet-mapping>
> > >     <servlet-name>action</servlet-name>
> > >     <url-pattern>*.do</url-pattern>
> > >   </servlet-mapping>
> > >
> > >   <!-- Struts Tag Library Descriptors -->
> > >   <taglib>
> > >     <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> > >     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> > >   </taglib>
> > >
> > >   <taglib>
> > >     <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> > >     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> > >   </taglib>
> > >
> > >   <taglib>
> > >     <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> > >     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> > >   </taglib>
> > >
> > >   <taglib>
> > >     <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri>
> > >     <taglib-location>/WEB-INF/struts-template.tld</taglib-location>
> > >   </taglib>
> > > </web-app>
> > > <!-- WEB.XML End HERE --->
> > > <!-- STRUTS-CONFIG.XML Start HERE --->
> > > <?xml version="1.0" encoding="ISO-8859-1" ?>
> > > <!DOCTYPE struts-config SYSTEM
> > >
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> > > <struts-config>
> > >    <!-- ============= Form Beans Definitions ================= -->
> > >    <form-beans>
> > >             <form-bean name="login" type="test.struts.LoginForm" />
> > >    </form-beans>
> > >     <!-- ============= Global Forward Definitions
================= -->
> > >    <global-forwards>
> > >    </global-forwards>
> > >    <!-- ============= Action Mappings  Definitions
================= -->
> > >    <action-mappings>
> > >           <action
> > >                    path="/login"
> > >                    type="test.struts.LoginAction"
> > >                    name="login"
> > >                    input="/jsp/LoginView.jsp"
> > >                    validate="true">
> > >                    <forward name="valid" path="/jsp/MainMenu.jsp" />
> > >                    <forward name="invalid" path="/jsp/LoginView.jsp"
/>
> > >           </action>
> > >    </action-mappings>
> > > </struts-config>
> > > <!-- STRUTS-CONFIG.XML End HERE --->
> > > I have tried encounter any solution on web but i didn't success.
> > > Any suggestion ?
> > > thanks in advance.
> > >
> > >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to