2
votes

I created an "Enterprise Application Project" in eclipse (including an ejb and web module). Now I want to bundle a GWT "Web Application Project" into my EAR-file. So I created the project and included it in my enterprise application project.

enter image description here

enter image description hereenter image description here

If I export the EAR file and look into the generated JAR file of the GWT project, it only contains the classes and not the HTML files in the "war" (This is the folder GWT projects contain der web elements like HTML, JS) folder. I also tried to rename the "war" folder to WebContent, but it is still not contained in the EAR.

Is there any way to get this folder bundled in?

Edit: @philfr49: I only have these facets:

enter image description here

1
Did you compile the GWT project? - El Hoss
@El Hoss: Yes I did, but the host page in the war folder was present before anyways. - jan

1 Answers

0
votes

You must change the GWT project facet: enter image description here

With these parameters: enter image description here

So your GWT project will be deployed as a war (instead of jar) with all html and generated javascript.