cancel
Showing results for 
Search instead for 
Did you mean: 

Build EJB Archive unsuccessfull

Shabarish_Nair
Active Contributor
0 Kudos

I was just trying my hand at Module programming and thought i wud start off with "Step by step guide to develop a module for reading file name in a sender file

adapter" by Krishnakumar Ramamoorthy.

Seems alls done but the problem is when i try to create bean archive (Page 10 of the pdf) it doesnt give me the option. Build EJB Archive link seems to be disabled in my case.

Any pointers Experts ??

ShaBZ

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Try following:

Choose 'Package Explorer' view.

Close project, open project.

Choose 'J2EE Explorer' view.

Regards

Stefan

Shabarish_Nair
Active Contributor
0 Kudos

Thank you Stefan and Amol,

The problem is now solved !!!

I recreated the whole thing and it worked

Answers (1)

Answers (1)

Former Member
0 Kudos

ShaBZ,

have you added the ejb candidates to your ejb-jar.xml?

The error might be because you have everything in your workspace but the configuration file ejb-jar.xml does not know what is the class and rest of the details for your ejb. For checking this, go to J2EE explorer and you will see ejb candidates.Right click on it and select add to ejb-jar.xml. You should now see the Build EJB Archive option enabled.

Regards,

Amol

Shabarish_Nair
Active Contributor
0 Kudos

ThanX Amol for that instant reply ...

In the J2EE Explorer all i see is

1. ejb-j2ee-engine.xml

2. ejb-jar.xml

3. ejbmodule - > inside that my package link and the java file.

the ejb candidates seem to be hiding from me

Former Member
0 Kudos

If you see only these 3 then it means you have already added the ejb candidate to the ejb-jar.xml. In that case i would suggest you to :

1. expand ejb-jar.xml in the same view i.e. J2EE Explorer.

2. delete the ejb entry from there.

3. this will automatically refresh the view and will now show ejb candidates. now add the same as again to ejb-jar.xml

4. Now double click on ejb-jar.xml and go to source tab.Make sure the configuration values for following tags confirm to

---

<home>com.sap.aii.af.mp.module.ModuleHome</home>

<remote>com.sap.aii.af.mp.module.ModuleRemote</remote>

<local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>

<local>com.sap.aii.af.mp.module.ModuleLocal</local>

--

value for <ejb-class>

should be same as the fully qualified name of your module processor class.

Hope this helps.

~Amol