File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Reg:Struts and ejb integration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Reg:Struts and ejb integration" Watch "Reg:Struts and ejb integration" New topic

Reg:Struts and ejb integration

Yogaraj Khanal
Ranch Hand

Joined: Jun 06, 2007
Posts: 42
Hi All,
I am trying to deploy struts application in Tomcat and deploy ejb appplication in weblogic but getting this error.Can any expert help me with this.Tomcat is sometime throwing same jsp code back instead of executing the code, can anyone suggest what the heck is going wrong?
500 Servlet Exception

java.lang.NoSuchMethodError: org.apache.struts.action.ActionErrors.add(Ljava/lang/String;Lorg/apache/struts/action/ActionError V
at ActionBean.execute(
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(
at org.apache.struts.chain.commands.ActionCommandBase.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.commons.chain.generic.LookupCommand.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.struts.chain.ComposableRequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at com.caucho.server.http.FilterChainServlet.doFilter(
at com.caucho.server.http.Invocation.service(
at com.caucho.server.http.CacheInvocation.service(
at com.caucho.server.http.HttpRequest.handleRequest(
at com.caucho.server.http.HttpRequest.handleConnection(

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The reason you're getting this message is that the ActionErrors.add method has now changed and no longer accepts a instance of ActionError as a parameter. You must use ActionMessage for this parameter instead of ActionError.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Reg:Struts and ejb integration
It's not a secret anymore!