Hi, I have an Enterprise application, .ear file, under which I have 2 web applications, i.e., 2 .war & 2 .jar files.. And I have an application.xml file, which tells the application, which webapp's web.xml to pic, depending on the context-root, but it is not identifying the second webapp can some one help? Note: Please find my application.xml & part of web.xml in both the applications
We have something similar and looking at our configuration files I can tell you that they look almost identical, with only one exception, which might be significant:
Here the is the second hint that I could give you (personally I strongly believe that your problem is here):
Sometimes I found that protecting all your resources in a web app using the *pattern could give a lot of trouble. This will imply that all your resources are protected, including img(s) or gif(s), etc. Hence if your login page displays an image, because that�s protected as well your page won�t display and the container might raise a resource not found exception. I hope this helps. Regards.
I think, therefore I exist -- Rene Descartes
Pramoda Bhat
Ranch Hand
Joined: Oct 17, 2003
Posts: 32
posted
0
Hi Valentin, Thanks for taking time & replying.. I found out the error.., i.e., in web.xml of exwar.. I had to mention,
<web-resource-collection> <web-resource-name>ExClaim</web-resource-name> <description>Declarative security - A try for ExpenceClaim</description> <url-pattern>/*</url-pattern>
earlier I had mentioned <url-pattern>/ExClaim/*</url-pattern>