• 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

How to deploy a working WAR file into JBOSS

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
i'm a newbies to JBOSS 4.0.5 GA and i want to know how can i deploy the war file into the JBOSS.

For instance, i use hello.war file example.What i did was:
1) copy the hello.war into C:\jboss-4.0.5\jboss-4.0.5.GA\server\default\deploy
2) try to access the file via http://localhost:8080/hello/index.html



but "problem loading page" error was appear.
can anyone help me ?

thank you very much
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

... i want to know how can i deploy the war file into the JBOSS.


When you copy the properly constructed .war file in to the deploy dir Jboss does a hot deploy and you should be able to access the web application. Have you check the logs for any errors? Is your .war file works say in standalone Tomcat?
And Welcome to JavaRanch
 
aida haslinda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah..thanks

does a hot deploy and you should be able to access the web application


i couldn't access the application

Have you check the logs for any errors?


sorry..how can i check the error since i'm not familiar with JBOSS

is your .war file works say in standalone Tomcat?


how can i check about this?
can you me some guidance? i really appreciate for the answer
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, if you are new to JBoss AS, why are you using 4.0.5? That version is very old - the current version is 5.1.0.

orry..how can i check the error since i'm not familiar with JBOSS


The command prompt window in which you started JBoss AS will contain log entries, including any errors when you deploy a WAR file. If the deployment is correct, you will see an entry like this:

2010-06-10 11:46:25,410 INFO [TomcatDeployment] (main) deploy, ctxPath=/hello

Also, since your are new to JBoss AS, read chapter 1 from JBoss in Action (it's a free download). While JBoss in Action is about AS 5.1.0, many of the concepts still apply to 4.0.5. In particular, chapter 1 shows an example hello worlds WAR and how to deploy and access it.

Finally, is there an index.html file in your WAR?
 
aida haslinda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Peter

why are you using 4.0.5?


i was suggested to by my advisor because the latest version may not integrate with the existing system

the problem solve already..it just that i didn't run the services in the run.bat

thanks peter
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I imagine that it does work better if it is running.
 
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic