File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes jboss 6 final, deployment issue, simple html page is not coming up. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "jboss 6 final, deployment issue, simple html page is not coming up." Watch "jboss 6 final, deployment issue, simple html page is not coming up." New topic
Author

jboss 6 final, deployment issue, simple html page is not coming up.

vani venkat
Ranch Hand

Joined: Nov 21, 2006
Posts: 142
hi
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
vani venkat
Ranch Hand

Joined: Nov 21, 2006
Posts: 142
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.

is it the problem in creating war?


salesApplication.war has

viewPersonDetails.jsp
web.xml inside web-inf folder.
vani venkat
Ranch Hand

Joined: Nov 21, 2006
Posts: 142
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.

 
 
subject: jboss 6 final, deployment issue, simple html page is not coming up.
 
Similar Threads
Simple HelloServlet not working
Servlet Not working
Deploy war files in Apache
HTTP Status 404
Tomcat Welcome ROOT web app problems - only some content displaying