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 How to run jsp in the jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to run jsp in the jboss" Watch "How to run jsp in the jboss" New topic
Author

How to run jsp in the jboss

Shanthi Varanasi
Greenhorn

Joined: Jan 09, 2004
Posts: 6
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
"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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Shanthi Varanasi
Greenhorn

Joined: Jan 09, 2004
Posts: 6
Sorry about that . now i think this should be ok . Could you please help me now
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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

Joined: Oct 25, 2000
Posts: 7292

Moving this to the JBoss forum as requested.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run jsp in the jboss