Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324741 - org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast to org.eclipse.jst.javaee.application.Application
Summary: org.eclipse.jst.j2ee.application.internal.impl.ApplicationImpl cannot be cast...
Status: RESOLVED WORKSFORME
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows Vista
: P3 major (vote)
Target Milestone: 3.1.2 P   Edit
Assignee: Kaloyan Raev CLA
QA Contact: Chuck Bridgham CLA
URL: CSN 3306393 2010
Whiteboard:
Keywords:
Depends on: 263918 296342
Blocks:
  Show dependency tree
 
Reported: 2010-09-08 09:38 EDT by Kaloyan Raev CLA
Modified: 2010-09-27 04:56 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kaloyan Raev CLA 2010-09-08 09:38:41 EDT
This bug causes big problems in a adopter's product based on Galileo. We need to port this fix for 3.1.2. 

+++ This bug was initially created as a clone of Bug #296342 +++

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
Build Identifier: M20090917-0800

Just after the start up, during the initialisation of the tools several exceptions are thrown and I'm not able to do anything. Everywhere I click I receive another bunch of exceptions. After that the pop-up menus don't work any more and it's virtually impossible to work.

Reproducible: Always

Steps to Reproduce:
I think it will be hard to reproduce the exceptions as I suppose is something related with my projects. I will try to attach a light version of my workspace.

1. You only need to open Eclipse and you will see all the exceptions popping out.

2. If you right click on any project file using the Package Explorer you get some exceptions as well.
Comment 1 David Williams CLA 2010-09-08 10:33:34 EDT
I can't say I understand the original bug much, but to be clear, you are asking for a patch build? 

Also, why is this just showing up now? I assume most workspaces are ok and don't have this problem? Is there some other tool or process that gives rise to this particular type of workspace that is having problems.
Comment 2 Kaloyan Raev CLA 2010-09-08 10:42:00 EDT
David, yes I mean we need a patch build. We need it delivered as a zipped feature patch. We don't need it on an update site. 

I am currently working on providing a patch for the 3.1.2_patches CVS branch. 

I am not sure why it happens now. This is bug was reported to SAP by customer using one of our products, which is based on WTP 3.1.2. We need to deliver a patch compatible with WTP 3.1.2. 

The customer says that it is hard to reproduce. It happens after working a while with the tools in the Java EE perspective. But once it happens the workspace needs to be recreated. Simple restart of the IDE does not help.
Comment 3 Carl Anderson CLA 2010-09-08 10:54:09 EDT
If you look at 296432#c5 , we discovered that it was Maven that was causing that issue.  The issue cannot be fixed by a workspace restart - once a project with an EAR 1.3 facet and an EAR 5.0 DD is created, the ClassCastException will occur.

WTP supports projects whose facet is greater than or equal to the deployment descriptor version.  Having a project whose facet is less than the deployment descriptor version (especially one that crosses the Java EE 1.4/5.0 boundary) will cause problems.  Backporting this fix will cause this exception to not appear... but there may still be other problems in this non-supported configuration.
Comment 4 Kaloyan Raev CLA 2010-09-08 11:00:16 EDT
Carl, thanks for this clarification.
I will hold on for now and will check more thoroughly what happens on the customer's system.
Comment 5 Kaloyan Raev CLA 2010-09-27 04:56:43 EDT
I am closing this ticket for now. We have hard time reproducing the problem. I will reopen if there are any news.