You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sivaks75 <si...@verizonwireless.com> on 2011/07/05 20:29:44 UTC

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

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&#40;Ljavax/servlet/http/HttpServletRequest&#59;Ljava/lang/String&#59;&#41;Ljava/util/Locale&#59;*
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)

--
View this message in context: http://struts.1045723.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-struts-util-RequestUtils-getUserLocale-tp4554253p4554253.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by Paul Benedict <pb...@apache.org>.
I bet there's a Struts 1.1 library loaded with your application.
Perhaps WAS 7 contains it in its application class loader.

On Tue, Jul 5, 2011 at 1:29 PM, sivaks75
<si...@verizonwireless.com> wrote:
> 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&#40;Ljavax/servlet/http/HttpServletRequest&#59;Ljava/lang/String&#59;&#41;Ljava/util/Locale&#59;*
> 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)
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-struts-util-RequestUtils-getUserLocale-tp4554253p4554253.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


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

Posted by "Subburaman, Sivakumar" <Si...@VerizonWireless.com>.
Hey Paul,

You are correct.

I had struts.jar also. I removed that and that error gone!

Thanks for your help!!

Regards,
Siva

-----Original Message-----
From: paulus.benedictus@gmail.com [mailto:paulus.benedictus@gmail.com] On Behalf Of Paul Benedict
Sent: Tuesday, July 05, 2011 3:48 PM
To: Struts Users Mailing List
Subject: Re: java.lang.NoSuchMethodError: org.apache.struts.util.RequestUtils.getUserLocale

I bet there's a Struts 1.1 library loaded with your application.
Perhaps WAS 7 contains it in its application class loader.

On Tue, Jul 5, 2011 at 1:29 PM, sivaks75
<si...@verizonwireless.com> wrote:
> 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&#40;Ljavax/servlet/http/HttpServletRequest&#59;Ljava/lang/String&#59;&#41;Ljava/util/Locale&#59;*
> 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)
>
> --
> View this message in context: http://struts.1045723.n5.nabble.com/java-lang-NoSuchMethodError-org-apache-struts-util-RequestUtils-getUserLocale-tp4554253p4554253.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org