0

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?

dbreaux
  • 4,982
  • 1
  • 25
  • 64
ravi
  • 6,140
  • 18
  • 77
  • 154

1 Answers1

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.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • 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