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 and the fly likes Default page for JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Default page for JBOSS" Watch "Default page for JBOSS" New topic
Author

Default page for JBOSS

Ivaturi Srinivas
Ranch Hand

Joined: Jun 03, 2003
Posts: 42
Hi
Can I set default webpage for JBOSS. I mean If I access with this URL (http://localhost:8080/) I should be able to get the page set by me.
Thanks for your time in advance
Srinivas Ivaturi
Goncha
Greenhorn

Joined: Aug 12, 2003
Posts: 4
Create a file "jboss-web.xml" under "WEB-INF" of you web application.
The content is:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
Ivaturi Srinivas
Ranch Hand

Joined: Jun 03, 2003
Posts: 42
Thanks for your answer,It is really helpful, I got my index page as default. But If I give /Home.jsp it is not working. Can I give my custom page name as default page or only this can be given.
Goncha
Greenhorn

Joined: Aug 12, 2003
Posts: 4
You should add the following:
<welcome-file-list>
<welcome-file>home.jsp</welcome-file>
</welcome-file-list>
under <web-app> in "web.xml"
thilak kannan
Greenhorn

Joined: Jun 15, 2004
Posts: 2
Originally posted by Goncha:
Create a file "jboss-web.xml" under "WEB-INF" of you web application.
The content is:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
thilak kannan
Greenhorn

Joined: Jun 15, 2004
Posts: 2
I saw your message for setting default context for web application in jboss.

if i place 'jboss-web.xml' in 'WEB-INF' folder for web application (.war file). it is working fine. but if i place the same .war file inside a .ear file and deploy it is not working as default context in jboss.
how to handle is problem.

thanks in advance,

from
thilak
 
IntelliJ Java IDE
 
subject: Default page for JBOSS
 
Threads others viewed
Removing JBoss default page
how to set classpath if i place properties file in default/data directory
JBoss AOP anyone?:)
JBoss Locale Setting
Two jboss instances with different JVM
MyEclipse, The Clear Choice