• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Guidelines on Assembling a WAR file with Servlet, jsp and deploying on WAS 4.0

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use Assembly tool in bin direcotry of WAS for assembling all files.
1. open AAT tool
2. click Files -> wizards -> create Web Module Wizard
3. write your war file name and click next
4. In Files Page
Click AddResources -> Click Browse -> go to the directory which you are having jsp's, Html's, Images. select these files and click add to add these files in to the module. once you finish click ok
Add all servlets into the class files. If your supporting files are individual files then add here or if your supporting files are as a jar file
you can add those by clicking on add jar files.
one more way to add jar files are in in
WAS directory click lib\ext directory will be there you can also add supporting class files to this directory.
remaining things click next if you are having any welcome page add it on welcome page other wise leave it and click next untill finish.
For Accessing servlet WAS is giving two ways..
1. Accessing Servlets by full path
2. Accesing Servlets by Servlet mapping.
1. once you finish with wizard click on file.war
-> click on ibmExtensions
you can check the "file Serving by Servlets" then
you can access servlet as
http://ip ort/ContextRoot/servlet/com.ibm.xx.ServletName
2. Right Click on Add Component -> new
select Servlet and click on browse .. select the servlet by expanding the tree on left side screen.
give component name and click o.k
Rightclick on servlet mapping select the servlet name by component name which you had given and
write the mapping name how you want to look on the browser
Save the file as .war .
close this file
open Create Application Wizard...
add this war file into application.
it will ask for context root ... give it as
/contxroot
then you have to access your application as
http://ip ort/conntxroot/
remaining things click next until finish and save this file as .ear in installable app's
deploy the ear file using AdminConsole.
If you got any problem or needed any security or
ejb references or sharing classes you can contact me.
uma mahesh
reply
    Bookmark Topic Watch Topic
  • New Topic