aspose file tools*
The moose likes Struts and the fly likes java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale" Watch "java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale" New topic
Author

java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale

Sivakumar Subburaman
Greenhorn

Joined: Jun 10, 2011
Posts: 13
Hi,

I am using struts 1.3 and have developed the application in RAD (WAS7). Everthing is looking good from local developement env. I generated EAR and deployed in WAS7 test server. When I try to access the application, i get the below error. Recently we upgraded the test server from WAS6 to WAS7.

Any help appreciated!!

servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /general/main.jsp in application TemplateDashboard. Exception created : com.ibm.websphere.servlet.error.ServletErrorReport: java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;)Ljava/util/Locale; at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:695)
at com.ibm._jsp._main._jspService(_main.java:246)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:259)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:557)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:607)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:984)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1069)
Sivakumar Subburaman
Greenhorn

Joined: Jun 10, 2011
Posts: 13
Actually I had old version of struts jar. I removed that and the problem is solved.

Just thought of letting know, so that it might be useful for others if they face similar issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale
 
Similar Threads
CEWOLF and RAD issue
Struts error - Action class is not taken up by classpath
CEWOLF and RAD issue
Another WAS7 issue regarding local session beans
Java Null Pointer Excep