Topic
  • No replies
ganesh12345
ganesh12345
1 Post

Pinned topic Websphere 6.1 accessing the war file

‏2012-05-18T14:07:40Z |
Hi,

I am new to websphere application server, any help would to be grateful.

Scenario :
I have deployed a Ear (which contains a Test.war file) in the application server.

In the Ear application.xml I have mentioned the following.

<web>
<web-uri>Test.war</web-uri>
<context-root>/Test</context-root>
</web>

And in the Test.war web.xml
<login-config>
<auth-method>FORM</auth-method>
<realm-name>GSS NATIVE</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
</form-login-config>
</login-config>
<security-constraint>
<web-resource-collection>
<web-resource-name>resource name</web-resource-name>
<description>Web application</description>
<url-pattern>/index.jsp</url-pattern>

</web-resource-collection>
<auth-constraint>
<role-name>Roles</role-name>
</auth-constraint>
</security-constraint>

Problem:
When I access the application http://host:9081/Test it is giving the 404 error but when I try http://host:9081/Test/index.jsp I am able to access the access the application. I want to access app without index.jsp , how can I do that?