Recently I deployed a web app in WebSphere Community Edition v3. Eclipse smartly created geronimo-web.xml
and web.xml
. In JSF 2.0 we learned about the use of web.xml
but what is the use of geronimo-web.xml
? Can I ignore this file and simply remove from the app?
Asked
Active
Viewed 1,318 times
0
1 Answers
3
It's a server-specific deployment configuration file which allows you to configure server-specific properties from inside the deployed web application, such as class loading, character encoding, JNDI resources, etcetera.
Other servers have also this kind of server-specific configuration files. Glassfish has glassfish-web.xml
, Tomcat has context.xml
, etc. IBM Websphere CE uses Apache Geronimo as container.
You can just remove it if you want, but why would you?
See also:
Please note that the web.xml
is not specific to JSF API, but to the Servlet API. JSF has the faces-config.xml
.
-
Okkkk.... actually right now i am not using geronimo-web.xml. It was automatically build by Eclipse. but by removing this file, nothing is appearing in the browser. – ravi Mar 13 '12 at 12:13