• 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

How to run jsp in the jboss

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Can any one tell me how to run the jsp in the jboss. I have made a .war file of the jsp files and kept it in the jboss\server\default\deploy and I started the Jboss server. It started fine. But when I try to run from the browser as http://localhost:8080/Home.jsp it is giving me unauthorised.
Please can any one help me how to solve this.
Thank you
Peace
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Little Peace",
Welcome to the JavaRanch. Before you start your Java-related posting frenzy, would you please take a moment to change your display name to comply with our naming policy? For example, obviously fake names are not allowed - you can read rest of the rules from the naming policy page.
Thanks.
 
Shanthi Varanasi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about that . now i think this should be ok . Could you please help me now
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You left out the web application context root. If you deployed your application as "MyApp.war" then your "Home.jsp" would be available as [BOLD]/MyApp/Home.jsp[/BOLD]. Since you didn't specify a root, JBoss picks the most logical thing - then name of your application.
If you want this particular war file to be deployed as the default web applications, add a jboss-web.xml file next to your web.xml file that specifies that:
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

now i think this should be ok .


Sorry, but not quite... You need both a first name and a last name. First name can be abbreviated into initials (Lasse Koskela would become L. Koskela, for example).
I see that Norman already helped you out
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the JBoss forum as requested.
reply
    Bookmark Topic Watch Topic
  • New Topic