Skip to Content
0
Former Member
May 31, 2006 at 12:56 PM

Using ADS within EJB

132 Views

Hi,

I have developed an EAR Application with an EJB and Web Module. The EJB Module contains a Stateless Session Bean which uses the Adobe Document Services (IWDPDFObject, WDPDFObjectFactory) to collect xml data from a pdf form. The Web Module contains a Servlet which calls this Session Bean.

Build and deploy of the EAR Application is done without any error. But at runtime i get the following error:

java.lang.NoClassDefFoundError: com.sap.tc.webdynpro.pdfobject.api.WDPDFObjectFactory

In the DC Definition of the EJB Module have defined tc/wd/webdynpro as used dc (for Build Time and Run Time) and in application-j2ee-engine.xml of the EAR Application a refernce to this service is defined:

<application-j2ee-engine>
	<reference 
		reference-type="weak">
		<reference-target 
			provider-name="sap.com" 
			target-type="service">tc/wd/webdynpro</reference-target>
	</reference>
	<provider-name>sap.com</provider-name>
	<fail-over-enable 
		mode="disable"/>
</application-j2ee-engine>

Any help would be appreciated, thanks in advance.

Kind regards,

Sebastian