KonaKart Community Forum

Installation / Configuration => Installation of KonaKart => Topic started by: eurov on August 29, 2008, 03:33:50 pm

Title: 'The URL has moved here' error with Resin
Post by: eurov on August 29, 2008, 03:33:50 pm
Hi,

I've recently installed Konakart running on resin 3.1.4 and jdk1.6.0_03.   

When I fire up the konakart page at http://www.mydomain.com/konakart/ the page loads but I get a number of messages down the end of the page saying "The URL has moved here".

From what I can google I can see that this may be due to redirects in the jsps?

Any suggestions on how to resolve this would be very much appreciated.

Many thanks,
Ger
Title: Re: 'The URL has moved here' error with Resin
Post by: julie on August 29, 2008, 03:56:26 pm
Do you get these messages instead of some of the tiles ?

Could you post a screen shot ? Thx.
Title: Re: 'The URL has moved here' error with Resin
Post by: eurov on August 29, 2008, 03:59:31 pm
Hi,

Please see attached screen shot.

Thanks,
Ger
Title: Re: 'The URL has moved here' error with Resin
Post by: julie on August 29, 2008, 04:11:29 pm
It looks like a problem with tiles. What I suggest you try is to edit the file KonaKart\webapps\konakart\WEB-INF\tiles-defs.xml . You should create an empty JSP and replace all of the lines:

<put name="bodyx" value=""/>
<put name="leftTilex" value=""/>
<put name="rightTilex" value=""/>

with

<put name="bodyx" value="/WEB-INF/jsp/Empty.jsp"/>
<put name="leftTilex" value="/WEB-INF/jsp/Empty.jsp"/>
<put name="rightTilex" value="/WEB-INF/jsp/Empty.jsp"/>

And then reboot Resin.

For example:

   <definition name="main.layout" path="/WEB-INF/jsp/MainLayout.jsp">
      <put name="header" value="/WEB-INF/jsp/Header.jsp"/>
      <put name="body" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="body1" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="body2" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="body3" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="body4" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="body5" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="leftTile1" value="/WEB-INF/jsp/CategoriesTile1.jsp"/>
      <put name="leftTile2" value="/WEB-INF/jsp/SearchByManufacturerTile.jsp"/>
      <put name="leftTile3" value="/WEB-INF/jsp/RandomNewProdTile.jsp"/>
      <put name="leftTile4" value="/WEB-INF/jsp/QuickSearchTile.jsp"/>
      <put name="leftTile5" value="/WEB-INF/jsp/InformationTile.jsp"/>
      <put name="leftTile6" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="leftTile7" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="rightTile1" value="/WEB-INF/jsp/CartTile.jsp"/>
      <put name="rightTile2" value="/WEB-INF/jsp/OrderHistoryTile.jsp"/>
      <put name="rightTile3" value="/WEB-INF/jsp/BestSellersTile.jsp"/>
      <put name="rightTile4" value="/WEB-INF/jsp/RandomSpecialTile.jsp"/>
      <put name="rightTile5" value="/WEB-INF/jsp/RandomReviewTile.jsp"/>
      <put name="rightTile6" value="/WEB-INF/jsp/LanguagesTile.jsp"/>
      <put name="rightTile7" value="/WEB-INF/jsp/Empty.jsp"/>
      <put name="footer" value="/WEB-INF/jsp/Footer.jsp"/>
   </definition>

The next version of KonaKart will have this fix in it because we noticed that some App Servers were having problems with the current empty string assignment.

Please let me know if it works.
Title: Re: 'The URL has moved here' error with Resin
Post by: eurov on September 01, 2008, 10:14:06 am
Hi Julie,

Your suggestion worked.

Many thanks for your help.

Regards,
Ger