wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes How to deploy a working WAR file into JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to deploy a working WAR file into JBOSS" Watch "How to deploy a working WAR file into JBOSS" New topic
Author

How to deploy a working WAR file into JBOSS

aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
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

Joined: Mar 24, 2008
Posts: 3825

... 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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
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

Joined: May 14, 2008
Posts: 5823
    
    7

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?


JBoss In Action
aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
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

Joined: May 14, 2008
Posts: 5823
    
    7

Yes, I imagine that it does work better if it is running.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to deploy a working WAR file into JBOSS