6

The Google Plugin for Eclipse auto-generates these lines in web.xml no matter what the project properties are set to:

 <servlet>
  <servlet-name>SystemServiceServlet</servlet-name>
  <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
  <init-param>
   <param-name>services</param-name>
   <param-value/>
  </init-param>
 </servlet>
 <servlet-mapping>
  <servlet-name>SystemServiceServlet</servlet-name>
  <url-pattern>/_ah/spi/*</url-pattern>
 </servlet-mapping>

Is there a way to prevent the plugin to do that?

Sormuras
  • 8,491
  • 1
  • 38
  • 64
  • I think it isn't possible, you have to remove it manually, but you really don't want the console admin in local?. – Ma Jerez Oct 09 '12 at 09:53
  • After removing it, it's regenerated by the plugin with an automatic reformatting of web.xml - that always leads to local changes in the version control view. And `/_ah/admin/*` is not affected by removing the servlet above. Is it? – Sormuras Oct 09 '12 at 10:01
  • O sorry!! confused `/_ah/spi/*` with `/_ah/admin/*` – Ma Jerez Oct 09 '12 at 15:21

2 Answers2

3

Remove the above xml from web.xml and add readonly attribute to web

Wilfred
  • 29
  • 2
  • When you say above, exactly what 'above' do you mean? – corsiKa Nov 29 '12 at 16:20
  • I mean remove the configuration(SystemServiceServlet) added by eclipse plugin. Then set readonly attribute to the web.xml – Wilfred Nov 29 '12 at 16:32
  • This seems to work ... around. Nice catch. It doesn't even log errors to the Error Log view. Maybe, in a future release, it will be fixed. – Sormuras Dec 05 '12 at 22:09
  • It actually does log some errors: `javax.xml.transform.TransformerException: java.io.FileNotFoundException at com.google.gdt.eclipse.appengine.swarm.util.XmlUtil.updateWebXml(XmlUtil.java:197) at com.google.gdt.eclipse.appengine.swarm.wizards.helpers.SwarmServiceCreator.create(SwarmServiceCreator.java:155)` – Sormuras Dec 05 '12 at 22:20
3

In your project Properties, under Builders, if you disable Google App Engine Project Change Notifier, your web.xml won't by modified anymore. However, not been keen enough to the GAE environment, I can't tell which are the side-effects of disabling this builder.

maxxyme
  • 2,164
  • 5
  • 31
  • 48