This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ?
... 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
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.