I'm trying to follow a book Struts 2 In Action in order to learn Struts 2. I've downloaded their code from the publisher's website. I have wasted an entire day searching the internet for documentation I can understand in order to get the WAR file they have provided up and running in Eclipse MARS.1 on WebLogic server 12.1.3, so I can read and follow the examples from out of the book.
I am having to learn Java Programming, JEE Development, WebLogic server, and Struts 2 all at the same time. I keep going around in circles trying to get to a place of stability where I can move forward and actually LEARN something. The documentation I find online, especially from Oracle, is next to useless. It all assumes a level of familiarity and experience that I do not have. I have uninstalled and reinstalled WebLogic server 3 times in one day just so I can get a fresh start and try to get example code running.
What are the simplest steps to get an existing WAR file to run in Eclipse on WebLogic server 12c?
If you have a WAR file, you can deploy it by copying it into $WL_HOME/user_projects/domains/your_domain/autodeploy Of course, each time you change a file, you will have to rebuild the WAR and copy it again.
The best explanation of building a WAR I've seen is in the Tomcat documentation. The big difference in that documentation and what one would do with Weblogic is in deployment (the rest is standard JEE). You can either copy the WAR manually, set up the build file to copy it for you or use the Weblogic wldeploy ant task.
Since you are just starting out, you should probably review the Struts Key Technology Primer to make sure you understand how it works and what technologies it relies on. The better you know the building blocks, the easier it will be to build applications with them.