Issue
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.
- It does create the folders for the packages under WEB-INF\classes\ but no class are inside.
What i tried
- I tried to create the WAR with maven and the resulting war does contains the class.
- I tried to create the WAR with eclipse manually via export > WAR and the resulting war does contains the class.
- I checked the WAR deployed on the JBoss server and it does not contains the classes in the WAR file.
- I tried to create the same project separately and it does work for the other project but not in the original one.
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.
Answered By - fra
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.