Deploying WAR on JBOSS - III
15 June 2008This 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.
Related Posts:
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