this is embarrassing.
I know I have given the answer before but I can't remember. I have changed the ecommerce ofbiz-component.xml to / and I get a blank page on a recent trunk strangely I can put in /ecommerce and it works. someone please refresh my memory. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> |
Ok this is a controller change
// Setup the CONTROL_PATH for JSP dispatching. String contextPath = request.getContextPath(); if (contextPath == null || "/".equals(contextPath)) { contextPath = ""; } what was the reason for adding the / to this? can the || "/".equals(contextPath) I will submit a patch with a property in general.properties. ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> BJ Freeman sent the following on 4/25/2010 6:04 AM: > this is embarrassing. > I know I have given the answer before but I can't remember. > I have changed the ecommerce ofbiz-component.xml to / and I get a blank > page on a recent trunk > strangely I can put in /ecommerce and it works. > > someone please refresh my memory. > > ========================= > BJ Freeman > http://bjfreeman.elance.com > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> > Specialtymarket.com <http://www.specialtymarket.com/> > > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > > > |
In reply to this post by BJ Freeman
from the
https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-URLandPortSettings Mounting a Root WebApp It is often desirable to have one of the webapps mounted on the root. This is often either the ecommerce webapp or your own web site, which is created as a webapp in an OFBiz component would be setup the same way. 1. To set the mount point to root (or "/") for a webapp, find the corresponding "webapp" tag in the appropriate ofbiz-component.xml file and change the "mount-point" attribute on that tag to equal "/". 2. For the default OFBiz ecommerce webapp, this is found in the file: ${ofbiz install dir}/applications/ecommerce/ofbiz-component.xml ======================= this does not work. note: should change the path from application to specialpurpose ========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> BJ Freeman sent the following on 4/25/2010 3:23 PM: > Ok this is a controller change > // Setup the CONTROL_PATH for JSP dispatching. > String contextPath = request.getContextPath(); > if (contextPath == null || "/".equals(contextPath)) { > contextPath = ""; > } > what was the reason for adding the / to this? > can the || "/".equals(contextPath) > I will submit a patch with a property in general.properties. > > ========================= > BJ Freeman > http://bjfreeman.elance.com > Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> > Specialtymarket.com <http://www.specialtymarket.com/> > > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > > > BJ Freeman sent the following on 4/25/2010 6:04 AM: >> this is embarrassing. >> I know I have given the answer before but I can't remember. >> I have changed the ecommerce ofbiz-component.xml to / and I get a blank >> page on a recent trunk >> strangely I can put in /ecommerce and it works. >> >> someone please refresh my memory. >> >> ========================= >> BJ Freeman >> http://bjfreeman.elance.com >> Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> >> Specialtymarket.com <http://www.specialtymarket.com/> >> >> Systems Integrator-- Glad to Assist >> >> Chat Y! messenger: bjfr33man >> <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> >> >> >> > > > |
Free forum by Nabble | Edit this page |