cancel
Showing results for 
Search instead for 
Did you mean: 

"Build EAR File" deletes my .jar file from the file system, then gives error.

Former Member
0 Kudos

I have two projects:

1. An EJB Assembly Project: "FlightAssembly"

2. An EAR Project: "FlightEAR"

3. FlightAssembly builds fine.

4. I right-click on FlightAssembly to get the contextual menu and choose "Build Jar". The .jar is built and shows up in the J2EE Explorer view. I can also see the FlightAssembly.jar is created on the file system and has all my classes inside.

5. In the Properties for "FlightEAR" under "Enterprise Archive Build Info" I can see "Flight Assembly" and under that "FlightAssembly.jar" is listed and checked.

6. I right-click on the FlightEAR project to get the contextual menu. I choose "Build Ear"

7. As soon as I do "Build Ear", "FlightAssembly.jar" dissapears from the FlightAssembly project and from it's location in the file system. An error dialog pops up that says "Ear generation failed." "reason: Missing requiered resource: FlightAssembly.jar" (the word required is misspelled in the dialog, I don't really care about that; I just want it to work)

That's it. I'm stopped cold until I can figure this out. Any help will be appreciated.

Thanks,

Jake

Accepted Solutions (0)

Answers (3)

Answers (3)

wanlin_hau
Explorer
0 Kudos

We solved the issue by reload and repair the project.

Choose "Web Dynpro Perspective", mark the project the sources arebelong to, choose from the context menu "reload" and in the following popup "reload and rebuild".

wanlin_hau
Explorer
0 Kudos

Hi Jake,

Just curious how you solve out your error?

Former Member
0 Kudos

Hi Vishal,

Found your post in this forum. Do you still need an answer? Does the problem still exists?

Best Regards,

Karin