Deploying WAR on JBOSS - III

15 June 2008

This is the last part of Deploying WAR on JBOSS. I assume that you have read the first two parts of this post.

Create a file called “Deploy.bat” in the work folder and add following script:

@echo off
set JAVA_HOME=\Program Files\Java\jdk1.6.0_06
set JBossHome=\Apps\JBoss\jboss-4.2.2.GA
"%JAVA_HOME%\bin\jar.exe" -cvf helloworld.war *.jsp WEB-INF
copy helloworld.war "%JBossHome%\server\default\deploy"
pause

We used Java’s JAR utility to zip up the appropriate contents into a WAR file and copied the WAR file on to the deploy folder of default configuration.

Its done now. Run JBoss using JBoss.bat and then deploy your application by running Deploy.bat.

Time to test the application. Open “http://localhost:8080/helloworld/hi.jsp” to see your web application run.

del.icio.us:Deploying WAR on JBOSS - III  digg:Deploying WAR on JBOSS - III  spurl:Deploying WAR on JBOSS - III  wists:Deploying WAR on JBOSS - III  simpy:Deploying WAR on JBOSS - III  newsvine:Deploying WAR on JBOSS - III  blinklist:Deploying WAR on JBOSS - III  furl:Deploying WAR on JBOSS - III  reddit:Deploying WAR on JBOSS - III  fark:Deploying WAR on JBOSS - III  blogmarks:Deploying WAR on JBOSS - III  Y!:Deploying WAR on JBOSS - III  smarking:Deploying WAR on JBOSS - III  magnolia:Deploying WAR on JBOSS - III  segnalo:Deploying WAR on JBOSS - III  gifttagging:Deploying WAR on JBOSS - III

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Deploying WAR on JBOSS - III

Leave a Reply