cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding application-j2ee-engine.xml ?

Former Member
0 Kudos

Hi @,

Where can i find complete description for the application j2ee engine file used during module develpmnt as the entries there make the whole module work.

I couldn't find proper details for the same file and how to correlate the same with the developed code

REgards

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

You need at least following references:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
<application-j2ee-engine>
	<reference 
		reference-type="hard">
		<reference-target 
			provider-name="sap.com" 
			target-type="library">com.sap.aii.af.lib</reference-target>
	</reference>
	<reference 
		reference-type="hard">
		<reference-target 
			provider-name="sap.com" 
			target-type="service">com.sap.aii.adapter.xi.svc</reference-target>
	</reference>
	<reference 
		reference-type="hard">
		<reference-target 
			provider-name="sap.com" 
			target-type="service">com.sap.aii.af.svc</reference-target>
	</reference>
	<reference 
		reference-type="hard">
		<reference-target 
			provider-name="sap.com" 
			target-type="service">com.sap.aii.af.cpa.svc</reference-target>
	</reference>
	<fail-over-enable 
		mode="disable"/>
</application-j2ee-engine>

If you refer to other libraries in your code as well, add the references also.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

I have included the following references in my xml but additionla to that I am refering to connector.jar also as per the blog on JRA and I need to add the same.

I am getting classcast exception when in runtime

That is why i wanted to know the details fo the file

Regards

stefan_grube
Active Contributor
0 Kudos

Which is the exception you get?

Former Member
0 Kudos

Hi Stefan,

I am trying the blog mentioned below :

/people/amol.joshi2/blog/2006/11/28/alerts-from-adapter-modules--the-jra-way-part-ii

/people/amol.joshi2/blog/2006/11/27/alerts-from-adapter-modules--the-jra-way

But while executing the same I am getting the following Error:

Error: java.lang.ClassCastException: class com.sap.aii.af.mp.module.ModuleLocalHomeImpl0_0 can not be casted to ModuleLocalHome or SModuleLocalHome

Urgent help is required .

Regards

stefan_grube
Active Contributor
0 Kudos

This happens mostly when the EAR file contains the library files. So check. if all adapter module library fiels are deleted in the EAR before deployment.

Former Member
0 Kudos

HI Stefan,

I have checked it and there are no more jar files present in EAR after goin thru the previous reply to one similar question

But still I am getting the same response

REgards

Answers (0)