Bug 537504 - Eclipse can't compile class in java ee project,
Summary: Eclipse can't compile class in java ee project,
Status: NEW
Alias: None
Product: Buildship
Classification: Tools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2018-07-30 10:23 EDT by zhang j CLA
Modified: 2021-08-05 22:36 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhang j CLA 2018-07-30 10:23:53 EDT
Eclipse can't compile any class, but the jar package introduced by gradle can be generated normally. 


I used the Gradle command to compile war, but it was very successful, no error, using eclipse ui to deploy tomcat does not always compile class   

```shell 

```

If you can, I hope to agree on a point in time, remotely my computer reproduces this bug.
Comment 1 zhang j CLA 2018-07-30 10:27:13 EDT
Very weird, there is no error in eclipse, but it does not generate a normal war file. Exporting the war file will find that none of the classes are compiled, and other resource files are added normally.
Comment 2 zhang j CLA 2018-07-30 10:30:04 EDT
I have cleared the project and refreshed the project (the project is based on gradle build)
Comment 3 zhang j CLA 2018-07-30 10:31:51 EDT
My development environment 

Eclipse Java EE IDE for Web Developers.
Version: Photon Release (4.8.0)
Build id: 20180619-1200
OS: Linux, v.4.9.0-7-amd64, x86_64 / gtk 3.22.11
Java version: 1.8.0_171
Comment 4 Jay Arthanareeswaran CLA 2018-07-30 10:38:44 EDT
I think this belongs in the webtools. In any case, we are going to need a testcase or complete steps to reproduce the issue.
Comment 5 Nitin Dahyabhai CLA 2018-07-30 12:35:14 EDT
How was the project first created?
Can you attach the .project and .classpath files?

I'll point out that the webtools doesn't actually compile your Java sources. It does help manage dependencies, validation of JSPs, and with deployment, but it's never invoking or responsible for the compilation of Java sources into class files. Looking at the settings folder for the likely duplicate bug 537503, the .settings folder is frankly a mess. Something has mismanaged at least the contents of the org.eclipse.wst.common.project.facet.core.xml file (again, though, this wouldn't affect whether sources get compiled). This looks more like a combination of Buildship and Spring Tools.