cancel
Showing results for 
Search instead for 
Did you mean: 

JAR creation failed , for Command bean DC

ashish_shah
Contributor
0 Kudos

Hi Experts,

I am trying to access an EJB module DC from WebDynpro through Java bean model DC.

In this when i tried to create a Jar file of the Java bean model, i got this error.

JAR creation failed. See details for additional information.

Problem writing /LocalDevelopmentdc_aptcbsap.com/bin/pg/com/atos/apt/bean/APTCommandBean.class to JAR: duplicate entry: pg/com/atos/apt/bean/APTCommandBean.class

I have created in all total 4 DC

1) EJB DC

2) EAR DC

3) Java bean DC

4) WebDynpro DC

I have reffered to the tutorial : Using EJBs in Web Dynpro application.

Can you tell me what am i missing?

Ashish Shah

Accepted Solutions (0)

Answers (1)

Answers (1)

sridhar_k2
Active Contributor
0 Kudos

Ashish,

I guess your EJB is throwing error with duplicate class. First build EJB and Deploy EAR DC and Bean DC. Then build your web dynpro , it hopefully solves your problem.

Regards,

Sridhar

ashish_shah
Contributor
0 Kudos

Hi Sridhar,

Thanks for your suggestion.

I have built and deployed the EAR DC.

But When I added the following referencesto Java bean DC

1) EAR DC , EJB DC

2) ejb20.jar

and i tried to build java bean DC project, it throws error for these referenced DC.

And these referenced DCs are removed from the project.

Do i have to add anything in the Public part of EJB or EAR DC?

Can you tell me how to add those references in Public part and how to utilise them in other projects?

Regards,

Ashish Shah