I had some problems deploying the app, but then I realized I had not properly set a couple of the Web Facet properties. In case anyone else makes the same mistakes I did, here's the settings I needed. To get to the Web Facet properties, go to Settings (
CTRL + ALT + S) and select Project Settings. Select the Web facet under the module in question.Modules and Libraries to Package

If the libraries you are using in your module are not already installed in your application server, you will have to change the packaging method of your library from Do Not Package to Copy Files To. This will include your libraries when deploying the app. Notice that I did not include
javaee.jar as the functionality in this jar file I require is already included in my application server.Source Roots

If you have multiple source directories that need to be deployed, make sure you put a check mark next to ALL the directories you want deploy. I like to place all my Struts 2 XML files in their own source directory (
src-config) and by default this directory was not checked.

0 comments:
Post a Comment