not found service错误

05-08-12 clsoft2002
我的jdonframework.xml配置如下:

<model key="id" class ="epjob.model.SysCountry">

<actionForm name="countryForm"/>

<handler>

<service ref="syscountryManager">

<getMethod name="getSysCountry" />

<createMethod name="createSysCountry" />

<updateMethod name="updateSysCountry" />

<deleteMethod name="deleteSysCountry" />

</service>

</handler>

</model>

</models>

<services>

<ejbService name="syscountryManager">

<jndi name="SysCountryManager" />

<ejbLocalObject class="epjob.ejb.manager.SysCountryManagerLocal"/>

</ejbService>

</services>

在SysCountryListAction中调用如下:

SysCountryManagerLocal syscountrymanager = (SysCountryManagerLocal) WebAppUtil.getEJBService("syscountryManager",request);

结果运行时出现错误:

not found service definition in jdonframework.xml for syscountryManager

请问为何?

猜你喜欢