This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deploy a working WAR file into JBOSS

 
aida haslinda
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Vijitha Kumara
Bartender
Posts: 3908
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I imagine that it does work better if it is running.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic