Reputation: 45
so this is my first time i ask question ,
i got a lil bit problem in my jboss configuration .
im using jboss 6.2
already read this article
what i have done ?
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <context-root>/</context-root> </jboss-web>
<virtual-server name="default-host" enable-welcome-root="false">
<welcome-file-list> <welcome-file>login.xhtml</welcome-file> </welcome-file-list>
and here's the issue is
when request root itself 192.168.1.98 welcome-content
and when i request 192.168.1.86/login.xhtml
what i want is when i request just the ip address , it link to login.xhtml . right now , i have to request my ip + login.xhtml ( 192.168.1.86/login.xhtml )
then what should i do ?
need your help guys .
any ideas are welcome .
thanks .
Upvotes: 2
Views: 716
Reputation: 3500
Your setup is correct.. What you are missing is a index.html (placed in your wars root folder) that redirects to your login page..
When you request 192.168.1.86, your index.html is read.. So, you need to redirect from there to your login page.
For example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- forward to your login -->
<meta http-equiv="refresh" content="0;url=login.xhtml;charset=utf-8">
</head>
</html>
Upvotes: 2