Discussion:
URL "OrderItemMove" not found Error
(too old to reply)
VijayaR
2006-12-14 02:38:10 UTC
Permalink
Our client is at WC 5.6.1. When they try to use "OrderItemMove" command, they get 404 on "/OrderItemMove".

Below is the code snippet they are using to invoke the URL. This code works fine on a development machine, but not in a staging environment(which is an AIX box, WC, WAS are at the same level as the working box). This command is registered in URLREG and CMDREG tables, my client does not have any custom logic for "OrderItemMove".

Note: In the below snippet, I added extra space between <c: and param for readability...
-----------------------------------------------------------
<c:url var="MoveURL" value="OrderItemMove">
<c: param name="deleteIfEmpty" value="*" />
<c: param name="fromOrderId" value="*" />
<c: param name="toOrderId" value="." />
<c: param name="inAllocate" value="*n" />
<c: param name="inBackorder" value="*n" />
<c: param name="inRemerge" value="*" />
<c: param name="inMerge" value="*n" />
<c: param name="inReverse" value="*" />
<c: param name="outAllocate" value="*n" />
<c: param name="outBackorder" value="*n" />
<c: param name="outRemerge" value="*" />
<c: param name="outMerge" value="*n" />
<c: param name="outReverse" value="*" />
<c: param name="storeId" value="${storeId}" />
<c: param name="catalogId" value="${catalogId}" />
<c: param name="URL" value="OrderItemDisplay?storeId=${storeId}&catalogId=${catalogId}&orderId=.&orderItemId*
=&quantity*=" />
</c:url>

<meta http-equiv="Refresh" content="0;URL= <c:out value="${MoveURL}" />"/>


-----------------------------------------------------------

When this symptom occurs, there are no errors in the JVM logs.

Any ideas??

-thanks
VijayaR
2006-12-14 17:08:06 UTC
Permalink
A correction to my prev note. The stagaing environment has some specific APARs installed.
m***@ca.ibm.com
2006-12-19 16:08:25 UTC
Permalink
I have sent a note to the developers
m***@ca.ibm.com
2006-12-19 19:28:07 UTC
Permalink
the developer says:

I think they use the following refresh method that doesn't work:

<meta http-equiv="Refresh" content="0;URL= <c:out value="${MoveURL}" />"/>

Because it will refresh to the url "/OrderItemMove". The supposed url should be "/webapp/wcs/stores/servlet/OrderItemMove".


You need the /webapp/wcs/stores. They should not hardcode it but actually find the value programmatically.

Example is in the AdvancedB2BDirect index.jsp file...

<%@ page import="com.ibm.commerce.tools.util.UIUtil" %>
<%
String sWebAppPath=UIUtil.getWebappPath(request);
%>

<meta http-equiv="Refresh" content="0;URL=<%=sWebAppPath%><c:out value="${MoveURL}" />"/>
v***@yahoo.com
2006-12-21 02:40:24 UTC
Permalink
Thanks so much! WebAppPath was the issue, even though they were getting it programmatically, they were not getting the right path.
Loading...