This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run jsp in the jboss

 
Shanthi Varanasi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Sorry about that . now i think this should be ok . Could you please help me now
 
norman richards
Author
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the JBoss forum as requested.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic