Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 388698 - Error exporting WAR file
Summary: Error exporting WAR file
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: wst.common (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: 3.4.2   Edit
Assignee: Roberto Sanchez Herrera CLA
QA Contact: Carl Anderson CLA
URL:
Whiteboard:
Keywords:
Depends on: 330894
Blocks:
  Show dependency tree
 
Reported: 2012-09-03 11:06 EDT by Mauricio Padilla CLA
Modified: 2012-09-08 13:11 EDT (History)
1 user (show)

See Also:


Attachments
screen shot (204.48 KB, image/jpeg)
2012-09-03 11:06 EDT, Mauricio Padilla CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mauricio Padilla CLA 2012-09-03 11:06:10 EDT
Created attachment 220660 [details]
screen shot

IDE throws this error when trying to export jsp project from right click > Export > WAR file:

java.lang.NoClassDefFoundError: org/eclipse/wst/web/internal/deployables/IFlatDeployable
Comment 1 Carl Anderson CLA 2012-09-04 11:28:51 EDT
Mauricio,

     First, what level of Eclipse is this on?  What is the version of org.eclipse.wst.web that you have installed?  What version of org.eclipse.jst.j2ee do you have installed?  How did you install WTP?
I am assigning this to Roberto for now, but until we get more information, there is not much that we can do.
Comment 2 Mauricio Padilla CLA 2012-09-04 15:36:18 EDT
Hi Carl, I hope these details cover what you're asking for:

- Eclipse IDE for Java EE Developers version 1.5.0.20120614-1633 (Juno)
- org.eclipse.wst.web version: 1.1.600.v201201190430
- org.eclipse.jst.j2ee version: 1.1.601.v201207101600

I installed WTP via Help>Install New Software... menu.

Greetings.
Comment 3 Roberto Sanchez Herrera CLA 2012-09-04 15:53:28 EDT
Hi Mauricio, 
Do you mean you downloaded Eclipse IDE for Java EE Developers version 1.5.0.20120614-1633 (Juno) and then you installed WTP on it? 

Because the Java EE eclipse package already has WTP.
Comment 4 Mauricio Padilla CLA 2012-09-04 18:51:41 EDT
(In reply to comment #3)
> Hi Mauricio, 
> Do you mean you downloaded Eclipse IDE for Java EE Developers version
> 1.5.0.20120614-1633 (Juno) and then you installed WTP on it? 
> 
> Because the Java EE eclipse package already has WTP.

Hi Roberto,

Not really, I tryed to install WTP that way (didn't know it was included with Juno installation) but I got a message telling me that it was already installed. I installed the WTP Patches update instead, the one fixing bug 380581.
Comment 5 Roberto Sanchez Herrera CLA 2012-09-05 16:21:12 EDT
Mauricio, 
I downloaded the Java EE package for Juno, and installed the patch for bug 380581 from here: http://download.eclipse.org/webtools/patches/drops/R3.4.0/P-3.4.0-20120710153526/, using both the update site and the zip file, and I did not see the problem you are reporting. 

What I noticed is that the version of your plugin org.eclipse.wst.web is older than the one that comes with the Java EE package for Juno.

Your version:    org.eclipse.wst.web version: 1.1.600.v201201190430
Version in Juno: org.eclipse.wst.web version: 1.1.600.v201204190200

Did you download the latest version of the Java EE package? I suggest downloading the latest version (http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junor), install the patch and try again.
Comment 6 Mauricio Padilla CLA 2012-09-06 14:35:25 EDT
Update:

I have reinstalled Eclipse Juno and export WAR file works just fine. Apparently it's the patch itself what was causing the problem (WTP Patches 3.4.0), which is downloaded from: The Eclipse Web Tools Platform (WTP) software repository - http://download.eclipse.org/webtools/repository/juno with the Help>Install New Software... menu.

Greetings.
Comment 7 Roberto Sanchez Herrera CLA 2012-09-08 13:11:40 EDT
Mauricio, Carl, 
I tried installing the Java EE package from the url I included in comment #5, and installed the patch using the Help>Install New Software... menu, and worked fine: I can export a web projects, and the bug addressed by the patch is fixed.

I'm resolving the bug as works for me. Mauricio, please reopen if you find this problem again.

Thanks