• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Installing/deploying a WAR file in WebLogic 12c

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Thanks,

Ramdu
 
Ranch Hand
Posts: 371
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With Dynamic Web Project you can create automatically a war file, however this is too Eclipse coupled, therefore is much better ti use Ant or Maven to compile and create a war file.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic