Cannot find ActionMappings or ActionFormBeans collection

2003-10-15 Thread Juan José Velázquez Garcia
Hello,

I'm trying to run a sample from the book Struts in Action without success. I getting 
Cannot find ActionMappings or ActionFormBeans collection error. 

If anyone can help me ...

Thanks in advance.

The source code is:

ActionForm.java
===
package app;

import org.apache.struts.action.*;

public class RegisterForm extends ActionForm {
  protected String username;
  protected String password1;
  protected String password2;
 
  public String getPassword1() { return password1; }
  public String getPassword2() { return password2; }
  public String getUsername() { return username; }
  public void setPassword1(String string) { password1 = string; }
  public void setPassword2(String string) { password2 = string; }
  public void setUsername(String string) { username = string; }

}
 
Action.java
==

package app;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class RegisterAction extends Action {

  public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res)
throws IOException, ServletException {

// Cast the form to RegisterForm
RegisterForm rf = (RegisterForm) form;
String username = rf.getUsername();
String password1 = rf.getPassword1();
String password2 = rf.getPassword2();

if (password1.equals(password2)) {
  try {
UserDirectory.getInstance().setUser(username,password1);
return mapping.findForward(success);
  } catch (UserDirectoryException e) {
return mapping.findForward(failure);
  }
}
return mapping.findForward(failure);

  }

}

struts-config.xml
===

!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.0//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
form-beans
form-bean name=registerForm type=app.RegisterForm/
/form-beans   
action-mappings
  actionpath=/register
 type=app.RegisterAction
 name=registerForm
 input=/register.jsp
forward name=success path=/success.html/
forward name=failure path=/failure.html/
  /action
/action-mappings
/struts-config


register.jsp
=

%@ taglib uri=/WEB-INF/lib/struts-html.tld prefix=form %

form:form action=/register
 UserName:form:text property=username/br
 enter password:form:password property=password1/br
 re-enter password:form:password property=password2/br
 form:submit value=Register/
/form:form




++
  Juan Jose Velazquez Garcia 
Information System Developer 
www.htmlspider.com.br
++


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



Cannot find ActionMappings or ActionFormBeans collection

2003-08-27 Thread dummu
Hi ,

I am getting the following exception can you please help me out as you have faced the 
same exception.

Exception Report:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
collection
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
 at org.apache.jsp.test_jsp._jspService(test_jsp.java:300)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)

Root Cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans 
collection
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:858)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:543)
 at org.apache.jsp.test_jsp._jspService(test_jsp.java:95)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453

Rgds,
Dummu.


Re: Cannot find ActionMappings or ActionFormBeans collection

2003-08-27 Thread Emerson Cargnin
I think you are tring to access access struts tags before it was 
initialized. I think that html:form does this initialization for you, I 
had this error too.

dummu wrote:
Hi ,

I am getting the following exception can you please help me out as you have faced the same exception.

Exception Report:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
collection
 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
 at org.apache.jsp.test_jsp._jspService(test_jsp.java:300)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
Root Cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans 
collection
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:858)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:543)
 at org.apache.jsp.test_jsp._jspService(test_jsp.java:95)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453
Rgds,
Dummu.


--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Cannot find ActionMappings or ActionFormBeans collection

2003-08-14 Thread Samanth Athrey
Just what exactly does this error mean?? I've all the necessary jar files in
the classpath. Please help

Regards,
Samanth

 javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
 at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
 at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
 at jrun__logon2ejspa._jspService(jrun__logon2ejspa.java:90)
 at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:439
)
 at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:
409)
 at
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:178)
 at jrun.servlet.file.FileServlet.service(FileServlet.java:300)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
 at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

 jrun.jsp.runtime.UncaughtPageException: Unhandled exception thrown from
/logon.jsp:18
 at jrun.jsp.runtime.Utils.handleException(Utils.java:57)
 at
jrun.jsp.runtime.JRunPageContext.handlePageException(JRunPageContext.java:38
4)
 at jrun__logon2ejspa._jspService(jrun__logon2ejspa.java:223)
 at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
 at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:439
)
 at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:
409)
 at
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:178)
 at jrun.servlet.file.FileServlet.service(FileServlet.java:300)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
 at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
 at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)





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



Cannot find ActionMappings or ActionFormBeans collection

2002-12-12 Thread Oliver Meyn
Hi all,

Could someone please tell me what throws this exception, and why?  It seems
completely arbitrary - adding an action to action-mappings sometimes works
and sometimes causes this to be thrown.  If it's being thrown and I undo any
changes to struts-config since it worked, it still gets thrown.  You can
guess how frustrating that is...  The archives haven't been much help :(

javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

struts 1.1b2, tomcat 4.0.4, j2sdk1.4.1_01, win2k, iis

Thanks very much,
Oliver


Oliver Meyn
[EMAIL PROTECTED]
(416) 524-2240
Things should be made as simple as possible, but no simpler. - Albert
Einstein


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




getting JasperException: Cannot find ActionMappings or ActionFormBeans collection

2002-09-24 Thread Steve Vanspall

Hi there, I have just switch from Tomcat 4.0.3 to Tomcat 4.1

When I startup Tomcat, and try to go to the WebApp, I get the following message

org.apache.jasper.JasperException: Cannot find ActionMappings or ActionFormBeans 
collection

I have changed nothing in my web.xml or struts-config.xml file, I have just ported the 
Directory to the new Tomcat.

this is the line I have for my webapp in the server.xml file

Context path=  workDir=C:\Program Files\Apache Group\Tomcat 
4.1\webapps\CRMSoftwareApp\work\org\apache\jsp docBase=C:\Program Files\Apache 
Group\Tomcat 4.1\webapps\CRMSoftwareApp debug=0/

This is My setup

- Tomcat 4.1 (The only thing about my setup that has changed)
- J2SE 1.4.1
- Struts 1.1-b2
- Eclipse 2.0 (Problem is independant of Eclipse)


Can anyone point me in the right direction. It must be a line somewhere that I haven't 
updated

Thanks in advance

Steve




RES: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Gilson Nascimento D Elrei

Hi,
Look for struts.jar. This file must to be localized on your WEB-INF\LIB from
webapp container directory. If struts.jar is on another directory that
doesn't is your webapp\WEB-INF\LIB and included in CLASSPATH you will
probably receive this error.
cheers,
Gilson


 - Mensagem original -
 De:   Harinath [SMTP:[EMAIL PROTECTED]]
 Enviada em:   terça-feira, 28 de maio de 2002 00:34
 Para: struts
 Assunto:  Cannot find ActionMappings or ActionFormBeans
 collection
 
 Can somebody, tell me the cause of this exception. I think there is
 something wrong with my configurations in
 my struts-config.xml. But i am unable to figure out.
 
 javax.servlet.jsp.JspException: Cannot find ActionMappings or
 ActionFormBeans collection
   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
   at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
   at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 
 Thx,
 Hari
 
 
 
 --
 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]




RE: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Harinath

When the Exception javax.servlet.jsp.JspException: Cannot find
ActionMappings or  ActionFormBeans collection
was thrown on my browser, the following exception was logged in the log
file.

javax.servlet.UnavailableException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:780)

struts-config.xml is present in /WEB-INF/ directory of my web application.

Thx,
Hari



-Original Message-
From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:17 PM
To: 'Struts Users Mailing List'
Subject: RES: Cannot find ActionMappings or ActionFormBeans collection


Hi,
Look for struts.jar. This file must to be localized on your WEB-INF\LIB from
webapp container directory. If struts.jar is on another directory that
doesn't is your webapp\WEB-INF\LIB and included in CLASSPATH you will
probably receive this error.
cheers,
Gilson


 - Mensagem original -
 De:   Harinath [SMTP:[EMAIL PROTECTED]]
 Enviada em:   terça-feira, 28 de maio de 2002 00:34
 Para: struts
 Assunto:  Cannot find ActionMappings or ActionFormBeans
 collection

 Can somebody, tell me the cause of this exception. I think there is
 something wrong with my configurations in
 my struts-config.xml. But i am unable to figure out.

 javax.servlet.jsp.JspException: Cannot find ActionMappings or
 ActionFormBeans collection
   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
   at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
   at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

 Thx,
 Hari



 --
 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]




Re: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Abhishek Goel

hi ,
check whether the action that you are using for the form tag in jsp matches with
the
path attribute of the action tag in strutsconfig.xml.
it may be one of the reasons for error.
regards
abhishek.


Harinath wrote:

 When the Exception javax.servlet.jsp.JspException: Cannot find
 ActionMappings or  ActionFormBeans collection
 was thrown on my browser, the following exception was logged in the log
 file.

 javax.servlet.UnavailableException: Parsing error processing resource path
 /WEB-INF/struts-config.xml
 at
 org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
 ava:780)

 struts-config.xml is present in /WEB-INF/ directory of my web application.

 Thx,
 Hari

 -Original Message-
 From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 28, 2002 4:17 PM
 To: 'Struts Users Mailing List'
 Subject: RES: Cannot find ActionMappings or ActionFormBeans collection

 Hi,
 Look for struts.jar. This file must to be localized on your WEB-INF\LIB from
 webapp container directory. If struts.jar is on another directory that
 doesn't is your webapp\WEB-INF\LIB and included in CLASSPATH you will
 probably receive this error.
 cheers,
 Gilson

  - Mensagem original -
  De:   Harinath [SMTP:[EMAIL PROTECTED]]
  Enviada em:   terça-feira, 28 de maio de 2002 00:34
  Para: struts
  Assunto:  Cannot find ActionMappings or ActionFormBeans
  collection
 
  Can somebody, tell me the cause of this exception. I think there is
  something wrong with my configurations in
  my struts-config.xml. But i am unable to figure out.
 
  javax.servlet.jsp.JspException: Cannot find ActionMappings or
  ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
at
  org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 
  Thx,
  Hari
 
 
 
  --
  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]



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


RE: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Harinath

Yes, the form tag and the path attribute in struts-config.xml match.

Thanks,
Hari

-Original Message-
From: Abhishek Goel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 6:19 PM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


hi ,
check whether the action that you are using for the form tag in jsp matches
with
the
path attribute of the action tag in strutsconfig.xml.
it may be one of the reasons for error.
regards
abhishek.


Harinath wrote:

 When the Exception javax.servlet.jsp.JspException: Cannot find
 ActionMappings or  ActionFormBeans collection
 was thrown on my browser, the following exception was logged in the log
 file.

 javax.servlet.UnavailableException: Parsing error processing resource path
 /WEB-INF/struts-config.xml
 at

org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
 ava:780)

 struts-config.xml is present in /WEB-INF/ directory of my web application.

 Thx,
 Hari

 -Original Message-
 From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 28, 2002 4:17 PM
 To: 'Struts Users Mailing List'
 Subject: RES: Cannot find ActionMappings or ActionFormBeans collection

 Hi,
 Look for struts.jar. This file must to be localized on your WEB-INF\LIB
from
 webapp container directory. If struts.jar is on another directory that
 doesn't is your webapp\WEB-INF\LIB and included in CLASSPATH you will
 probably receive this error.
 cheers,
 Gilson

  - Mensagem original -
  De:   Harinath [SMTP:[EMAIL PROTECTED]]
  Enviada em:   terça-feira, 28 de maio de 2002 00:34
  Para: struts
  Assunto:  Cannot find ActionMappings or ActionFormBeans
  collection
 
  Can somebody, tell me the cause of this exception. I think there is
  something wrong with my configurations in
  my struts-config.xml. But i am unable to figure out.
 
  javax.servlet.jsp.JspException: Cannot find ActionMappings or
  ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
at
  org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 
  Thx,
  Hari
 
 
 
  --
  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]




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




RES: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Gilson Nascimento D Elrei

If your form tag and path it's ok on struts-config.xml, try to check for
existence of the another struts.jar on directories present on your CLASSPATH
(if you didn't do it before). Attention for jsdk..\jre\lib\ext directory
that is classpath implicit for java vm). 
I had this same problem before and resolve to fixing it !
good luck!


 - Mensagem original -
 De:   Harinath [SMTP:[EMAIL PROTECTED]]
 Enviada em:   terça-feira, 28 de maio de 2002 09:58
 Para: Struts Users Mailing List; [EMAIL PROTECTED]
 Assunto:  RE: Cannot find ActionMappings or ActionFormBeans
 collection
 
 Yes, the form tag and the path attribute in struts-config.xml match.
 
 Thanks,
 Hari
 
 -Original Message-
 From: Abhishek Goel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 28, 2002 6:19 PM
 To: Struts Users Mailing List
 Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
 
 
 hi ,
 check whether the action that you are using for the form tag in jsp
 matches
 with
 the
 path attribute of the action tag in strutsconfig.xml.
 it may be one of the reasons for error.
 regards
 abhishek.
 
 
 Harinath wrote:
 
  When the Exception javax.servlet.jsp.JspException: Cannot find
  ActionMappings or  ActionFormBeans collection
  was thrown on my browser, the following exception was logged in the log
  file.
 
  javax.servlet.UnavailableException: Parsing error processing resource
 path
  /WEB-INF/struts-config.xml
  at
 
 org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet
 .j
  ava:780)
 
  struts-config.xml is present in /WEB-INF/ directory of my web
 application.
 
  Thx,
  Hari
 
  -Original Message-
  From: Gilson Nascimento D Elrei [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, May 28, 2002 4:17 PM
  To: 'Struts Users Mailing List'
  Subject: RES: Cannot find ActionMappings or ActionFormBeans collection
 
  Hi,
  Look for struts.jar. This file must to be localized on your WEB-INF\LIB
 from
  webapp container directory. If struts.jar is on another directory that
  doesn't is your webapp\WEB-INF\LIB and included in CLASSPATH you will
  probably receive this error.
  cheers,
  Gilson
 
   - Mensagem original -
   De:   Harinath [SMTP:[EMAIL PROTECTED]]
   Enviada em:   terça-feira, 28 de maio de 2002 00:34
   Para: struts
   Assunto:  Cannot find ActionMappings or ActionFormBeans
   collection
  
   Can somebody, tell me the cause of this exception. I think there is
   something wrong with my configurations in
   my struts-config.xml. But i am unable to figure out.
  
   javax.servlet.jsp.JspException: Cannot find ActionMappings or
   ActionFormBeans collection
 at
 org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
 at
   org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
 at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
 at
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  
   Thx,
   Hari
  
  
  
   --
   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]
 
 
 
 
 --
 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]




RE: Cannot find ActionMappings or ActionFormBeans collection

2002-05-28 Thread Adrian Brown

1. Check for ampersands () is your struts-config.xml
file or other problems in your struts-config.xml file.

2. Remove them.

Worked for me, good luck.

 --- Harinath [EMAIL PROTECTED] wrote: 
When the Exception javax.servlet.jsp.JspException:
 Cannot find
 ActionMappings or  ActionFormBeans collection
 was thrown on my browser, the following exception
 was logged in the log
 file.
 
 javax.servlet.UnavailableException: Parsing error
 processing resource path
 /WEB-INF/struts-config.xml
   at

org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
 ava:780)
 
 struts-config.xml is present in /WEB-INF/ directory
 of my web application.
 
 Thx,
 Hari
 
 
 
 -Original Message-
 From: Gilson Nascimento D Elrei
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 28, 2002 4:17 PM
 To: 'Struts Users Mailing List'
 Subject: RES: Cannot find ActionMappings or
 ActionFormBeans collection
 
 
 Hi,
 Look for struts.jar. This file must to be localized
 on your WEB-INF\LIB from
 webapp container directory. If struts.jar is on
 another directory that
 doesn't is your webapp\WEB-INF\LIB and included in
 CLASSPATH you will
 probably receive this error.
 cheers,
 Gilson
 
 
  - Mensagem original -
  De: Harinath [SMTP:[EMAIL PROTECTED]]
  Enviada em: terça-feira, 28 de maio de 2002 00:34
  Para:   struts
  Assunto:Cannot find ActionMappings or
 ActionFormBeans
  collection
 
  Can somebody, tell me the cause of this exception.
 I think there is
  something wrong with my configurations in
  my struts-config.xml. But i am unable to figure
 out.
 
  javax.servlet.jsp.JspException: Cannot find
 ActionMappings or
  ActionFormBeans collection
  at

org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
  at
 

org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
  at

org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
  at
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 
  Thx,
  Hari
 
 
 
  --
  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]
  

http://travel.yahoo.com.au - Yahoo! Travel
- Plan and book your dream holiday online!

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




Cannot find ActionMappings or ActionFormBeans collection

2002-05-27 Thread Harinath

Can somebody, tell me the cause of this exception. I think there is
something wrong with my configurations in
my struts-config.xml. But i am unable to figure out.

javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:816)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:528)
at org.apache.jsp.logon$jsp._jspService(logon$jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

Thx,
Hari



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




javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection

2002-04-27 Thread Ketan Malekar

hi All,
I am new to Struts. Im getting this error. Im using JBuilder 6 and Tomcat:


javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
collection

 at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)

 at 
f_00025rm._0002fform_0002fregions_0002ejspregions_jsp_0._jspService(_0002fform_0002fregions_0002ejspregions_jsp_0.java:187)
--


what this error exactly is?
Please help
thanx in advance
cheers
Ketan



Re: Cannot find ActionMappings or ActionFormBeans collection

2002-03-17 Thread Frank Marx


Hi,

I have the same problem. But it worked before in JB5 now with Forte for
JAVA 4.0 EAP it doesn't work anymore even I use the same
struts-config.xml and don't even define a data source.

I think the Action-Servlet looks for the struts-config.xml in the wrong
place but I'm not 100% sure.

Here is my struts-config.xml:

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD
Struts Configuration 1.0//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;

!--

 This is a blank Struts configuration file based on the example
application,

 with commented examples of some items.



 NOTE: If you have a generator tool to create the corresponding Java
classes

 for you, you could include the details in the form-bean
declarations.

 Otherwise, you would only define the form-bean element itself,
with the

 corresponding name and type attributes, as shown here.

--

struts-config


 !-- == Data Source Configuration
=== --

!--

  data-sources

data-source

   autoCommit=false

  description=Example Data Source Configuration

  driverClass=org.postgresql.Driver

 maxCount=4

 minCount=2

 password=mypassword

  url=jdbc:postgresql://localhost/mydatabase

 user=myusername

/

  /data-sources

--


 



  !-- == Form Bean Definitions
=== --

  form-beans


form-bean name=logonformbean
type=de.quipus.LogonFormActionForm/


!-- Example logon form bean

form-bean  name=logonForm

type=org.apache.struts.example.LogonForm/

 --



  /form-beans





  !-- == Global Forward Definitions
== --

  global-forwards


forward name=success path=/success.html/
forward name=logon path=/index.jsp/

!-- Example logon forward

 forward   name=logonpath=/logon.jsp/

 --



  /global-forwards





  !-- == Action Mapping Definitions
== --

  action-mappings

  action path=/test type=de.quipus.LogonFormAction
name=logonformbean scope=request input=index.jsp validate=true
  /action

!-- Example logon action

actionpath=/logon

   type=org.apache.struts.example.LogonAction

   name=logonForm

  scope=request

  input=/logon.jsp

/action

--



!-- Example logoff action

actionpath=/logoff

   type=org.apache.struts.example.LogoffAction

  forward name=success  path=/index.jsp/

/action

--





!-- The standard administrative actions available with Struts --

!-- These would be either omitted or protected by security --

!-- in a real application deployment --
!--
actionpath=/admin/addFormBean

   type=org.apache.struts.actions.AddFormBeanAction/

actionpath=/admin/addForward

   type=org.apache.struts.actions.AddForwardAction/

actionpath=/admin/addMapping

   type=org.apache.struts.actions.AddMappingAction/

actionpath=/admin/reload

   type=org.apache.struts.actions.ReloadAction/

actionpath=/admin/removeFormBean

   type=org.apache.struts.actions.RemoveFormBeanAction/

actionpath=/admin/removeForward

   type=org.apache.struts.actions.RemoveForwardAction/

actionpath=/admin/removeMapping

   type=org.apache.struts.actions.RemoveMappingAction/


--


  /action-mappings



/struts-config


Can someone help please it makes no sense to me anymore.

Thanks in advance,

Frank Marx

PS: I can execute jsp - pages which are using struts-Tags but no one
with form-tags and actions.


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




Cannot find ActionMappings or ActionFormBeans collection

2002-03-15 Thread @Basebeans.com

Subject: Cannot find ActionMappings or ActionFormBeans collection
From: Frank Marx [EMAIL PROTECTED]
 ===
Hi,

regarding to my recent postings and I found the root cause for the exception
which is:

- Root Cause -
javax.xml.parsers.FactoryConfigurationError:
com.sun.xml.parser.SAXParserFactoryImpl
 at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
 at org.apache.struts.digester.Digester.getParser(Digester.java:275)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

As I wrote before I use Forte for JAVA 4.0 Enterprise Edition Early Access
Edition, now it looks like there is some error in the XML-Parser Factory
Implementation.
How can I fix this ?

Thanks in advance,

Frank Marx





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




Re: Cannot find ActionMappings or ActionFormBeans collection

2002-03-11 Thread @Basebeans.com

Subject: Re: Cannot find ActionMappings or ActionFormBeans collection
From: Jeff Moszuti [EMAIL PROTECTED]
 ===
Hi Laker,

The problem is probably caused by the ActionServlet not initialising
correctly due to an illegal exception being thrown. The most common cause is
a misconfigured datasource in struts-config.xml. Check your console log for
more information.

Hope this helps

Jeff

nsg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hi all,

 Now,I am developing a web application based struts1.20 + Tomcat3.24.
 while I run the application.one excexption occured. error message is
listed
 below:

 javax.servlet.ServletException: Cannot find ActionMappings or
 ActionFormBeans collection

 what reason causes the problem?


 Thanks in advance.


 regards,
 Laker





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




Cannot find ActionMappings or ActionFormBeans collection

2002-03-10 Thread nsg
Hi all,

Now,I am developing a web application based struts1.20 + Tomcat3.24.
while I run the application.one excexption occured. error message is listed
below:

javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

what reason causes the problem?


Thanks in advance.


regards,
Laker


cannot find actionmappings or actionformbeans collection

2002-02-13 Thread Steven Dahlin

I am totally stumped.  I cannot figure out the error that is occurring
below:

root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:73)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp

I have followed the details that various examples give, but the examples
work but mine does not.  I am calling a jsp which is setting a certain form
for submitting the results.  The login.jsp is :

%@ taglib uri = /html   prefix = html  %
%@ taglib uri = /logic  prefix = logic %

  html:form  action  = /loginUser.do
  focus   = UserLog
   html:hidden property  = role
value   = user/
   html:hidden property  = actn
value   = login/
   bUser:/b
   html:text property  = UserLog
 size  = 20/
 bPassword:/b
 html:text property  = Password
 size  = 20/
 html:submit value  = Login/
  /html:form


The web.xml sets up translation of the *.do with:

   !-- ||| Standard Action Servlet Configuration
||| --
   servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
 param-nameapplication/param-name
 param-valueLogworkResources/param-value
  /init-param
  load-on-startup2/load-on-startup
   /servlet

   !-- | Standard Action Servlet Mapping
|| --
   servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
   /servlet-mapping


The struts-config.xml is as follows:

struts-config
 form-beans
  form-bean  name= userForm
 type = logwork.entities.Users/
  form-bean  name= worklogForm
 type = logwork.entities.WorkLog/
 /form-beans

 global-forwards
  forward   name=loginpath=/login.jsp/
 /global-forwards

 action-mappings
  action   path  = /loginUser
type  = logwork.action.UserAction
name  = userForm
scope  = request
input  = /login.jsp
   forward name  = success
  path  = /confirm.jsp/
 /action
  /action-mappings
/struts-config

logwork.action.UserAction.java sits in the classes/logwork/action directory.

If anyone can help me I would appreciate it.

Thanks,
Steve

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




Re: cannot find actionmappings or actionformbeans collection

2002-02-13 Thread Steven Dahlin

I found the problem was with the data source portion of the
struts-config.xml file


- Original Message -
From: Steven Dahlin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, February 13, 2002 12:37 PM
Subject: cannot find actionmappings or actionformbeans collection



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




Cannot find ActionMappings or ActionFormBeans collection

2002-01-21 Thread Russell Giebelhaus

Cannot find ActionMappings or ActionFormBeans collection.

I just had this problem, and found a solution that was not mentioned in a
quick search of this archive.

In my case, the dynamically loaded JDBC driver class was not found - because
I had not included the necessary jar in the web-inf/lib directory.  I found
this out by systematically commenting out sections of my struts-config.xml
file and testing.  It was the datasource section that was causing the
problem.

Hope this helps,

Russell Giebelhaus




Cannot find ActionMappings or ActionFormBeans collection PROBLEM.

2002-01-03 Thread @Basebeans.com

Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM.
From: nutshell [EMAIL PROTECTED]
 ===
I have installed Struts Framework Tomcat 4.0 on RedHat 7.0 i386 and have
deployed my web appplication.
Does anyone know what might be the reason why this error appear?
After I try to get to the welcome page I get this error:
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
Source)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:1215)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:539)

Root Cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:1001)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source

RE: Cannot find ActionMappings or ActionFormBeans collection PROBLEM.

2002-01-03 Thread Low, Liang

It might be that tomcat is unable to find struts-config.xml.  Mine is in the
WEB-INF directory.

 -Original Message-
 From: Struts Newsgroup [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, January 03, 2002 2:40 PM
 To:   [EMAIL PROTECTED]
 Subject:  Cannot find ActionMappings or ActionFormBeans collection
 PROBLEM.
 
 Subject: Cannot find ActionMappings or ActionFormBeans collection PROBLEM.
 From: nutshell [EMAIL PROTECTED]
  ===
 I have installed Struts Framework Tomcat 4.0 on RedHat 7.0 i386 and have
 deployed my web appplication.
 Does anyone know what might be the reason why this error appear?
 After I try to get to the welcome page I get this error:
 A Servlet Exception Has Occurred
 Exception Report:
 javax.servlet.ServletException: Cannot find ActionMappings or
 ActionFormBeans collection
   at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
 Source)
   at org.apache.jsp.login$jsp._jspService(login$jsp.java:1215)
   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
 Source)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
 Source)
   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContextValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
   at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.connector.http.HttpProcessor.process(Unknown
 Source)
   at org.apache.catalina.connector.http.HttpProcessor.run(Unknown
 Source)
   at java.lang.Thread.run(Thread.java:539)
 
 Root Cause:
 javax.servlet.jsp.JspException: Cannot find ActionMappings or
 ActionFormBeans collection
   at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
   at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
   at org.apache.jsp.login$jsp._jspService(login$jsp.java:1001)
   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
 Source)
   at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
 Source)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
 Source)
   at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
   at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
   at org.apache.catalina.core.StandardContextValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
 Source)
   at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
 Source)
   at org.apache.catalina.core.StandardPipeline.invokeNext

RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-20 Thread Tom Watkins

I have an .ear file that I am deploying in an instance of JBoss on Windows
2k without any problems.
However, when I deploy the same .ear file on JBoss on my NT machine, one of
the struts jsp pages will no load.
The error I get is Cannot find ActionMappings or ActionFormBeans
collection.

I have looked through the archives which suggest a badly formed struts
config file but this is not the case.
I have cleared the work directory in tomcat and the tmp/deploy/default
subdirectories.
The 2 versions of JBoss are identical and I cannot work out why this error
is occuring.

Does anyone have any suggestions as to why this is happening?
Below is the full browser stack trace.

Thanks

Tom

Error: 500
Location: /trial/feedback.jsp
Internal Servlet Error:

javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002ffeedback_0002ejspfeedback_jsp_0._jspService(_0002ffeedback_0002ejspfee
dback_jsp_0.java:356)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)

Root cause:
javax.servlet.jsp.JspException: Cannot find ActionMappings or
ActionFormBeans collection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:773)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at
_0002ffeedback_0002ejspfeedback_jsp_0._jspService(_0002ffeedback_0002ejspfee
dback_jsp_0.java:80)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)


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




Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P

I have battled this for a week and searched the Internet high and low
for answers. After checking the syntax and correctness of web.xml and
struts-config.xml and receiving no errors when I compile and making
certain that my classes and JAR files are in the correct directories and
that I don't have struts.jar in my classpath, I am now completely stuck.

I am using struts 1.0.1, Tomcat 4.0.1, JDK 1.4.0 beta 3, RedHat Linux
7.2. I've also tried a very similar setup using Cygwin on Windows 2000
Professional.

The struts-example application works just fine. So I tried to create my
own simple test application. Most of my test pages work, a plain HTML
page, a simple JSP that uses the html:html tag works, but when I try
to use anything more then I get the famous newbie error:

Cannot find ActionMappings or ActionFormBeans collection

The problem with this newbie error is that there are lots of us asking
about it and precious few answers (according to the search results). I
am very determined to get the hang of struts, but how many people have
been scared off because of this error?

I would like to get some input on what I should check first. I'm willing
and able to dive in but need guidance as to where to look first.

All help gratefully appreciated.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Web Developer / Programming Specialist   www.landsend.com
Lands' End, Inc.   (608) 935-4526

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




RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Stephen Owens

Simon,

Do you see the action mappings messages when you start the server?
Things of the form:

Call
org.apache.struts.action.ActionMapping.addForward(ActionForward[send])

If not it really sounds like the action servlet isn't finding the
struts-config.xml file, or isn't parsing it. Perhaps if you posted the
relevant sections from your web.xml file, and the startup log output
from Tomcat it would help.

regards,

Stephen Owens
Corner Software

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 10:56 AM
To: Struts mailing list (E-mail)
Subject: Cannot find ActionMappings or ActionFormBeans collection


I have battled this for a week and searched the Internet high and low
for answers. After checking the syntax and correctness of web.xml and
struts-config.xml and receiving no errors when I compile and making
certain that my classes and JAR files are in the correct directories and
that I don't have struts.jar in my classpath, I am now completely stuck.

I am using struts 1.0.1, Tomcat 4.0.1, JDK 1.4.0 beta 3, RedHat Linux
7.2. I've also tried a very similar setup using Cygwin on Windows 2000
Professional.

The struts-example application works just fine. So I tried to create my
own simple test application. Most of my test pages work, a plain HTML
page, a simple JSP that uses the html:html tag works, but when I try
to use anything more then I get the famous newbie error:

Cannot find ActionMappings or ActionFormBeans collection

The problem with this newbie error is that there are lots of us asking
about it and precious few answers (according to the search results). I
am very determined to get the hang of struts, but how many people have
been scared off because of this error?

I would like to get some input on what I should check first. I'm willing
and able to dive in but need guidance as to where to look first.

All help gratefully appreciated.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Web Developer / Programming Specialist   www.landsend.com
Lands' End, Inc.   (608) 935-4526

--
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]




RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P

Well bless my cotton socks. After your suggestions, I stopped Tomcat,
removed all the log files, removed everything except the shipped
examples and restarted Tomcat. I observed the log files and not a sign
of an error (that's good in shipping code I suspect :-)

I added my application WAR file and repeated the above procedure and
voila! An error raised it's head. I get a load() exception while struts
is parsing my struts-config.xml file. Looks like the structure wasn't as
clean as I thought it was.

Here's the struts-config.xml (if it's looks familiar, it's a copy and
edit from the struts-example):

?xml version=1.0 encoding=ISO-8859-1 ?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration
1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;

!--
 This is a blank Struts configuration file based on the example
application,
 with commented examples of some items.

 NOTE: If you have a generator tool to create the corresponding Java
classes
 for you, you could include the details in the form-bean
declarations.
 Otherwise, you would only define the form-bean element itself,
with the
 corresponding name and type attributes, as shown here.
--


struts-config

!--
data-sources
data-source autoCommit=false
description=Example Data Source Configuration
driverClass=org.postgresql.Driver
   maxCount=4
   minCount=2
   password=mypassword
url=jdbc:postgresql://localhost/mydatabase
   user=myusername /
/data-sources
--

form-beans
form-bean name=SimpleForm
   type=com.simonpeter.struts.enoch.forms.SimpleForm/
   /form-beans

!--
global-forwards
!-- forward name=logon path=/logon.jsp/ --
/global-forwards
--

action-mappings
action path=/SimpleAction
type=com.simonpeter.struts.enoch.actions.SimpleAction
name=SimpleForm
   scope=request
   input=/third.jsp 
forward name=failure path=/index.html /
forward name=success path=/third.jsp/
/action

!--
action path=/logoff
type=org.apache.struts.example.LogoffAction
forward name=success path=/index.jsp /
/action
--

!-- The standard administrative actions available with Struts
--
!-- These would be either omitted or protected by security --
!-- in a real application deployment --
action path=/admin/addFormBean
type=org.apache.struts.actions.AddFormBeanAction /
action path=/admin/addForward
type=org.apache.struts.actions.AddForwardAction /
action path=/admin/addMapping
type=org.apache.struts.actions.AddMappingAction /
action path=/admin/reload
type=org.apache.struts.actions.ReloadAction /
action path=/admin/removeFormBean
type=org.apache.struts.actions.RemoveFormBeanAction /
action path=/admin/removeForward
type=org.apache.struts.actions.RemoveForwardAction /
action path=/admin/removeMapping
type=org.apache.struts.actions.RemoveMappingAction /
/action-mappings

/struts-config

I hope that you can see the error in this file.

Simon


-Original Message-
From: Stephen Owens [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 10:03 AM
To: Struts Users Mailing List
Subject: RE: Cannot find ActionMappings or ActionFormBeans collection


Simon,

Do you see the action mappings messages when you start the server?
Things of the form:

Call
org.apache.struts.action.ActionMapping.addForward(ActionForward[send])

If not it really sounds like the action servlet isn't finding the
struts-config.xml file, or isn't parsing it. Perhaps if you posted the
relevant sections from your web.xml file, and the startup log output
from Tomcat it would help.

regards,

Stephen Owens
Corner Software

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 10:56 AM
To: Struts mailing list (E-mail)
Subject: Cannot find ActionMappings or ActionFormBeans collection


I have battled this for a week and searched the Internet high and low
for answers. After checking the syntax and correctness of web.xml and
struts-config.xml and receiving no errors when I compile and making
certain that my classes and JAR files are in the correct 
directories and
that I don't have struts.jar in my classpath, I am now 
completely stuck.

I am using struts 1.0.1, Tomcat 4.0.1, JDK 1.4.0 beta 3, RedHat Linux
7.2. I've also tried a very similar setup using Cygwin on Windows 2000
Professional.

The struts-example application works just fine. So I tried to create my
own simple test application

Re: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Keith Bacon

Simon,
A wild shot but best I can suggest
When I've recompiled classes, instead of the new class
loading automatically I start getting struts messages
(things not found). Restarting Tomcat fixes them - but
I'm sure you've tried that a million times.
Please - experts hear this persons plea - I went thru
similar grief with struts.
I like software that forgives user errors  doesnt lay
traps for less experienced users!
Keith.


 
--- Chappell, Simon P [EMAIL PROTECTED]
wrote:
 I have battled this for a week and searched the
 Internet high and low
 for answers. After checking the syntax and
 correctness of web.xml and
 struts-config.xml and receiving no errors when I
 compile and making
 certain that my classes and JAR files are in the
 correct directories and
 that I don't have struts.jar in my classpath, I am
 now completely stuck.
 
 I am using struts 1.0.1, Tomcat 4.0.1, JDK 1.4.0
 beta 3, RedHat Linux
 7.2. I've also tried a very similar setup using
 Cygwin on Windows 2000
 Professional.
 
 The struts-example application works just fine. So I
 tried to create my
 own simple test application. Most of my test pages
 work, a plain HTML
 page, a simple JSP that uses the html:html tag
 works, but when I try
 to use anything more then I get the famous newbie
 error:
 
 Cannot find ActionMappings or ActionFormBeans
 collection
 
 The problem with this newbie error is that there are
 lots of us asking
 about it and precious few answers (according to the
 search results). I
 am very determined to get the hang of struts, but
 how many people have
 been scared off because of this error?
 
 I would like to get some input on what I should
 check first. I'm willing
 and able to dive in but need guidance as to where to
 look first.
 
 All help gratefully appreciated.
 
 Simon
 

-
 Simon P. Chappell
 [EMAIL PROTECTED]
 Web Developer / Programming Specialist  
 www.landsend.com
 Lands' End, Inc.  
 (608) 935-4526
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

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




RE: Cannot find ActionMappings or ActionFormBeans collection

2001-12-05 Thread Chappell, Simon P

I not only stop and restart Tomcat, but I blow away the deployed version
of the app and redeploy.

Anyway, it now looks like my problem are with the struts-config.xml
and/or the web.xml files.

I agree that struts either needs to be friendlier with it's error
messages or much more tolerant of new users and their errors.

Simon

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 11:00 AM
To: Struts Users Mailing List
Subject: Re: Cannot find ActionMappings or ActionFormBeans collection


Simon,
A wild shot but best I can suggest
When I've recompiled classes, instead of the new class
loading automatically I start getting struts messages
(things not found). Restarting Tomcat fixes them - but
I'm sure you've tried that a million times.
Please - experts hear this persons plea - I went thru
similar grief with struts.
I like software that forgives user errors  doesnt lay
traps for less experienced users!
Keith.


 
--- Chappell, Simon P [EMAIL PROTECTED]
wrote:
 I have battled this for a week and searched the
 Internet high and low
 for answers. After checking the syntax and
 correctness of web.xml and
 struts-config.xml and receiving no errors when I
 compile and making
 certain that my classes and JAR files are in the
 correct directories and
 that I don't have struts.jar in my classpath, I am
 now completely stuck.
 
 I am using struts 1.0.1, Tomcat 4.0.1, JDK 1.4.0
 beta 3, RedHat Linux
 7.2. I've also tried a very similar setup using
 Cygwin on Windows 2000
 Professional.
 
 The struts-example application works just fine. So I
 tried to create my
 own simple test application. Most of my test pages
 work, a plain HTML
 page, a simple JSP that uses the html:html tag
 works, but when I try
 to use anything more then I get the famous newbie
 error:
 
 Cannot find ActionMappings or ActionFormBeans
 collection
 
 The problem with this newbie error is that there are
 lots of us asking
 about it and precious few answers (according to the
 search results). I
 am very determined to get the hang of struts, but
 how many people have
 been scared off because of this error?
 
 I would like to get some input on what I should
 check first. I'm willing
 and able to dive in but need guidance as to where to
 look first.
 
 All help gratefully appreciated.
 
 Simon
 

-
 Simon P. Chappell
 [EMAIL PROTECTED]
 Web Developer / Programming Specialist  
 www.landsend.com
 Lands' End, Inc.  
 (608) 935-4526
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
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]




Need help with Cannot find ActionMappings or ActionFormBeans collection

2001-10-22 Thread Frédéric Houbie - ABSIS-GROUP



Hi, 


I'm using Struts 
with Tomcat 4. I'm getting this error when running the app. I've checked 
classpath, I removed classes12.zip (oracle driver) from classpath and put it in 
lib/ext directory, but it still does not work. here is the classpath at start of 
tomcat 4

Using 
CLASSPATH: 
..\bin\bootstrap.jar;c:\java\jdk\lib\tools.jar;.;c:\java\tomcat4\webapps\Online\WEB-INF\classes\;c:\java\jdk\lib\tools.jar;c:\java\struts\lib\struts.jar;c:\java\struts\lib\jdbc2_0-stdext;c:\java\jdk\jre\lib\ext\activation.jar;c:\java\jdk\jre\lib\ext\mail.jar;C:\java\jdk\jre\lib\



Thank you for 
help


Frédéric 
Houbie
Internet Project 
Manager

ABSIS-GROUP SA
Centre 
Socran
Av Pré Aily, 
8
B-4031 
Angleur

Tel : +32 4 367 89 
64
Fax: +32 4 367 
89 63

 DISCLAIMER 
"This e-mail and any attachments thereto may contain 
information which is confidential and/or protected by intellectual property 
rights and are intended for the sole use of the recipient(s) named above. Any 
use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by persons 
other than the designated recipient(s) is prohibited. If you have received this 
e-mail in error, please notify the sender either by telephone or by e-mail and 
delete the material from any computer.
Thank you for your 
cooperation."