I am getting a package not found error from my trc log when I try calling a ejb from my jsp:
com.sap.engine.services.servlets_jsp.client.RequestInfoServer#fsd/oms#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#2####6788c200ddb011dbca30000cf15747a0#SAPEngine_Application_Thread[impl:3]_6##0#0#Error##Plain###Processing HTTP request to servlet [jsp] finished with error. The error is: com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: [C:/usr/sap/FLA/JC00/j2ee/cluster/server0/apps/fsd/oms/servlet_jsp/LocalDevelopmentwebfsd/work/jsp_testmap1175143564124.java:41: package fsd.oms.appsrv does not exist
fsd.oms.appsrv.mappingservices maprequest = null;
^
I am calling the bean in the jsp as follows:
<jsp:useBean id="mappingServicesLocal" scope="page" class="fsd.oms.appsrv.mappingservices" />
<jsp:getProperty name="MapRequest" property="GET_COMPRESSION" />
I have a DC ear project LocalDevelopmentomsfsd
I have a DC ejb project LocalDevelopmentomsejbmodule
I have a DC web project called LocalDevelopmentomswebfsd
The ear project has project references that reference the ejb and web projects
and the application.xml has a module with:
<ejb>fsdomsejbmodule.jar</ejb>
and a module with
<web>
<web-uri>fsd~omsweb.war</web-uri>
<context-root>/LocalDevelopmentwebfsd</context-root>
</web>
The ejb project has this folder structure included:
ejbModule/fsd/oms/appsrv/mappingservices/MappingServicesBean.java (local and localhome also)
The ejb-jar.xml contains all of the <enterprise-beans> information
The web project has this in the web.xml
<ejb-local-ref>
<ejb-ref-name>ejb/mappingServicesBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>
fsd.oms.appsrv.mappingservices.mappingServicesLocalHome</local-home>
<local>fsd.oms.appsrv.mappingservices.mappingServicesLocal</local>
<ejb-link>fsdomsejbmodule.jar#mappingServicesBean</ejb-link>
</ejb-local-ref>
Am I not calling the bean correctly, or not set it up correctly? Or do I need a jndi lookup in another file?
Thanks - Allen