i have downloaded jboss 6 final and set up path and calsspath, jboss_home env variables.
run.bat is bringing the server up.
now i copied a sample html file in location C:\jboss-6\server\default\deploy\myApplication
localhost:8080 is bring the server welcome page.
when i hit localhost:8080/myApplication/viewDetails.html , i get 404 error.
this is just a simple html file with welcome message. no exception comes in server .
2. alternatively i have tried to bundle it in war and tried to deploy in same location server/default/deploy. war is not exploded though jboss is stopped and started again.
can some one point out it i am missing anything in deploying a simple page?
SCJP 1.4, SCWCD 1.5
Joined: Nov 21, 2006
i tried to zip this folder and added web-inf and web.xml(which is not really required.)
now i logged into jboss admin console.
under jboss as 6/ applications /web applications (WARS).
there is an option to upload war file. i selected it and deploy Exploded option, yes radio option is selected.
when i upload this war on my desktop and press continue, i get this error.
Failed to create Resource salesApplication.war - cause: java.lang.Exception:Failed to distribute 'file:/C:/jboss-6/server/default/tmp/embjopr/uploads/salesApplication.war' to 'salesApplication.war' - cause: java.lang.RuntimeException:java.io.FileNotFoundException: C:\jboss-6\server\default\deploy\salesApplication.war\salesApplication\viewPersonDetails.jsp (The system cannot find the path specified) -> java.io.FileNotFoundException:C:\jboss-6\server\default\deploy\salesApplication.war\salesApplication\viewPersonDetails.jsp (The system cannot find the path specified)
really need help as i am struck in beginning point itself.
got it working.
i had to use jar -cvf from command prompt and rename this jar file to war.
once this war is placed in server/default/deploy , page is displayed. i wonder why this winzipped version is not suitable for jboss.
anyway, that's my starting point. i will have to write ant cmd to deploy it.