eclipsejakarta-eewar

WAR deployed does not contain class


Problem

I am having this issue in one of my project, the WAR generated in eclipse when i do a Run on server, does not contains any .class.

What i tried

Question

Why when i run the project integrated with JBoss server it deploy a WAR that does not include the .class files ? while when i create the WAR via maven or using the export option of eclipse it does include all the .class in the WAR file ?


Solution

  • I had a eclipse version 03-2019 and switch to 09-2019, it solved the issue. From different forum i have seen that the issue is commonly due to 2 plugins trying to deploy the class on the server at same time and failing, mostly coming from JBOSS TOOLS. Maybe newer version of eclipse have solved this type of issue. I tried many workaround and only installing newer version without changing anything in the configuration makes it work.

    As well update all the the plugin you have such as m2, jboss and others.