You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2013/10/21 19:01:04 UTC
svn commit: r1534276 -
/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Author: jleroux
Date: Mon Oct 21 17:01:03 2013
New Revision: 1534276
URL: http://svn.apache.org/r1534276
Log:
No functional change, fixes this message in Eclipse "The method getContextPath() is undefined for the type ServletContext" which does not prevent to compile though. Compiled with Oracle JVM 1.6.0.45
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java?rev=1534276&r1=1534275&r2=1534276&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java Mon Oct 21 17:01:03 2013
@@ -70,7 +70,7 @@ public class ControlServlet extends Http
@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
- if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" + config.getServletContext().getContextPath().substring(1) + "] " + config.getServletContext().getServletContextName() + ", located at " + config.getServletContext().getRealPath("/"), module);
+ if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" + ((HttpServletRequest) config.getServletContext()).getContextPath().substring(1) + "] " + config.getServletContext().getServletContextName() + ", located at " + config.getServletContext().getRealPath("/"), module);
// configure custom BSF engines
configureBsf();
Re: svn commit: r1534276 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
Posted by Adrian Crum <ad...@sandglass-software.com>.
This commit breaks the embedded Catalina startup.
Adrian Crum
Sandglass Software
www.sandglass-software.com
On 10/21/2013 10:01 AM, jleroux@apache.org wrote:
> Author: jleroux
> Date: Mon Oct 21 17:01:03 2013
> New Revision: 1534276
>
> URL: http://svn.apache.org/r1534276
> Log:
> No functional change, fixes this message in Eclipse "The method getContextPath() is undefined for the type ServletContext" which does not prevent to compile though. Compiled with Oracle JVM 1.6.0.45
>
> Modified:
> ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
>
> Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java?rev=1534276&r1=1534275&r2=1534276&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java (original)
> +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/ControlServlet.java Mon Oct 21 17:01:03 2013
> @@ -70,7 +70,7 @@ public class ControlServlet extends Http
> @Override
> public void init(ServletConfig config) throws ServletException {
> super.init(config);
> - if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" + config.getServletContext().getContextPath().substring(1) + "] " + config.getServletContext().getServletContextName() + ", located at " + config.getServletContext().getRealPath("/"), module);
> + if (Debug.infoOn()) Debug.logInfo("LOADING WEBAPP [" + ((HttpServletRequest) config.getServletContext()).getContextPath().substring(1) + "] " + config.getServletContext().getServletContextName() + ", located at " + config.getServletContext().getRealPath("/"), module);
>
> // configure custom BSF engines
> configureBsf();
>
>