my dog learned polymorphism*
The moose likes Struts and the fly likes running struts application on unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "running struts application on unix" Watch "running struts application on unix" New topic
Author

running struts application on unix

rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
Hi ,
i want to deploy a struts application on tomcat 4 in unix .
Can any body give me some information on the required jars to make that successfull.

Because i am getting JasperException- cannot find ActionMappings when I am trying to run the application.

I double checked whether the struts.jar is in the classpath and it is present.Even then i am getting this exception.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

The struts.jar file should not be in the classpath. It should be in the WAR file you deploy on Tomcat.
Have a look at the Tomcat Application Developer's Guide or the "blank" example application WAR file that is included in the Struts distribution for how to build and package a web application.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
hi Joe,
thanks for the reply.
The struts jar is present in the WAR file.

I also had all the required commons.xxx jars etc.

But i am getting the following error when i tried to run the apllication:

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:34)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java(Compiled Code))
at java.lang.Thread.run(Thread.java:513)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Is the config file being deployed? Are you *sure* you're deploying all the required jars? Are there any messages in the log file on startup (and have you increased the logging levels for Struts)? Which version of Struts?
Aanand Baabu
Greenhorn

Joined: Mar 02, 2009
Posts: 8
Hi,
we are also facing same problem.The struts application which runs fine in windows ,is giving Jasper Exception : Cannot find Actionmapping or action formbeans message.

We are using struts 1.1 , tomcat 4.1.24(on unix) and tomcat 4.1.36 (on windows) .

the trace in log is as below :

----- Root Cause -----
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:93)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

Aanand Baabu
Greenhorn

Joined: Mar 02, 2009
Posts: 8
hi ,
we have our application working now.
we recompiled the files after tranfering into unix box and deployed it again.
rachana ravali
Ranch Hand

Joined: Jun 20, 2006
Posts: 32
hi Daya Anand,
thanks for the solution.
I also tried the same and now my application is working.

thanks a lot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running struts application on unix
 
Similar Threads
can any one help
Too many opne files
struts plugin for eclipse
to run a unix script
UNIX