• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
vani venkat
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic