cancel
Showing results for 
Search instead for 
Did you mean: 

Extending SaveRegisterAction failed on missing resource

Former Member
0 Kudos

I need to extend the SaveRegisterAction that is used on the Register.inc.jsp.

I am now stuck on a package com.anpc.isa.isacore.action.b2c does not exist that appears when I enter the register.inc.jsp page.

I have done the following:

I created a new class com.anpc.isa.isacore.action.b2c.Z_SaveRegisterAction to extend the com.sap.isa.isacore.action.b2c.SaveRegisterAction.

I placed a new import on the Register.inc.jsp:

<%@ page import="com.anpc.isa.isacore.action.b2c.*" %>

And replaced the SaveRegisterAction with the Z_SaveRegisterAction.

I also modified the config.xml from:

<action path="/b2c/saveRegister" type="com.sap.isa.isacore.action.b2c.SaveRegisterAction">

<forward name="titleChange" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countryChange" path="UILayout:loginLayout[workarea=register]"/>

<forward name="failure" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countyRequired" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countiesRefresh" path="UILayout:loginLayout[workarea=register]"/>

<forward name="success" path="/app/createOrUpdateUserCookie.do"/>

<forward name="cancel" path="UILayout:loginLayout[workarea=login]"/>

<forward name="loyaltyInfoAndPostSteps" path="/b2c/displayLoyaltyRegistrationInfo.do"/>

<forward name="loyaltyInfo" path="/b2c/displayLoyaltyRegistrationInfo.do"/>

<forward name="cancelLoyalty" path="/b2c/closeLoyaltyRegistrationInfo.do"/>

<forward name="failureLoyalty" path="/b2c/loyalty/displayLoyaltyProgramRegistration.do"/>

</action>

to:

<action path="/b2c/saveRegister" type="com.anpc.isa.isacore.action.b2c.Z_SaveRegisterAction">

<forward name="titleChange" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countryChange" path="UILayout:loginLayout[workarea=register]"/>

<forward name="failure" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countyRequired" path="UILayout:loginLayout[workarea=register]"/>

<forward name="countiesRefresh" path="UILayout:loginLayout[workarea=register]"/>

<forward name="success" path="/app/createOrUpdateUserCookie.do"/>

<forward name="cancel" path="UILayout:loginLayout[workarea=login]"/>

<forward name="loyaltyInfoAndPostSteps" path="/b2c/displayLoyaltyRegistrationInfo.do"/>

<forward name="loyaltyInfo" path="/b2c/displayLoyaltyRegistrationInfo.do"/>

<forward name="cancelLoyalty" path="/b2c/closeLoyaltyRegistrationInfo.do"/>

<forward name="failureLoyalty" path="/b2c/loyalty/displayLoyaltyProgramRegistration.do"/>

</action>

On the <TRACK2>crmisawebb2c~sap.com there is an used dc that points to crm/home/shr/ext project where the extended class is.

Now I get a the following error:

An error occured including /b2c/register.inc.jsp: <br/> Error while executing the compilation process: [G:/usr/sap/PED/JC00/j2ee/cluster/server0/apps/sap.com/home~b2c_anpc/servlet_jsp/b2c_anpc/work/jsp_register_2e_inc1289231024889.java:24: package com.anpc.isa.isacore.action.b2c does not exist

It looks like the extended class is not availlable in the src package. Is there a configuration that I missed??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Hugo,

Please check the following.

1. Have u added the import in the JSP correctly.

2. If the package com.anpc........... was created correctly in the DC crmhomeshr~ext.

Best Regards,

Sumit

Former Member
0 Kudos

Hi,

I have partly solved my issue. It seemed that there where prefix path names used for the package names. Basically the path of the classes where expected to start as com.sap.....

Now I put the class on the com.sap...... path and entering the jsp now will not generate any error any more.

So it looks like this part of my code is solved.

Thanks.

Answers (0)