Buggy code:
@ Alias ( "spring" ) @ RequiresFacet ( { WebResourceFacet . class , PersistenceFacet . class } ) public class SpringScaffold extends BaseFacet implements ScaffoldProvider { private static String XMLNS_PREFIX = "xmlns:" ; private static final String SPRING_CONTROLLER_TEMPLATE = "scaffold//spring//SpringControllerTemplate.jv" ; private static final String DAO_INTERFACE_TEMPLATE = "scaffold//spring//DaoInterfaceTemplate.jv" ; private static final String DAO_IMPLEMENTATION_TEMPLATE = "scaffold//spring//DaoImplementationTemplate.jv" ; private static final String VIEW_TEMPLATE = "scaffold//spring//view.jsp" ; private static final String CREATE_TEMPLATE = "scaffold//spring//create.jsp" ; private static final String SEARCH_TEMPLATE = "scaffold//spring//search.jsp" ; private static final String NAVIGATION_TEMPLATE = "scaffold//spring//page.jsp" ; private static final String ERROR_TEMPLATE = "scaffold//spring//error.jsp" ; private static final String INDEX_TEMPLATE = "scaffold//spring//index.jsp" ; protected CompiledTemplateResource backingBeanTemplate ; protected int backingBeanTemplateQbeMetawidgetIndent ; protected CompiledTemplateResource springControllerTemplate ; protected CompiledTemplateResource daoInterfaceTemplate ; protected CompiledTemplateResource daoImplementationTemplate ; protected CompiledTemplateResource viewTemplate ; protected Map < String , String > viewTemplateNamespaces ; protected int viewTemplateEntityMetawidgetIndent ; protected CompiledTemplateResource createTemplate ; protected Map < String , String > createTemplateNamespaces ; protected int createTemplateEntityMetawidgetIndent ; protected CompiledTemplateResource searchTemplate ; protected Map < String , String > searchTemplateNamespaces ; protected int searchTemplateSearchMetawidgetIndent ; protected int searchTemplateBeanMetawidgetIndent ; protected CompiledTemplateResource navigationTemplate ; protected int navigationTemplateIndent ; protected CompiledTemplateResource errorTemplate ; protected CompiledTemplateResource indexTemplate ; private TemplateResolver < ClassLoader > resolver ; private ShellPrompt prompt ; private TemplateCompiler compiler ; private Event < InstallFacets > install ; private StaticSpringMetawidget entityMetawidget ; private StaticSpringMetawidget searchMetawidget ; private StaticSpringMetawidget beanMetawidget ; private StaticJavaMetawidget qbeMetawidget ; @ Inject public SpringScaffold ( final ShellPrompt prompt , final TemplateCompiler compiler , final Event < InstallFacets > install ) { } @ Override public List < Resource < ? > > setup ( Resource < ? > template , boolean overwrite ) { } @ Override public void setProject ( Project project ) { } @ Override public List < Resource < ? > > generateFromEntity ( Resource < ? > template , JavaClass entity , boolean overwrite ) { } @ Override @ SuppressWarnings ( "unchecked" ) public boolean install ( ) { } @ Override public boolean isInstalled ( ) { } @ Override public List < Resource < ? > > generateIndex ( Resource < ? > template , boolean overwrite ) { } @ Override public List < Resource < ? > > generateTemplates ( final boolean overwrite ) { } @ Override public List < Resource < ? > > getGeneratedResources ( ) { } @ Override public AccessStrategy getAccessStrategy ( ) { } @ Override public TemplateStrategy getTemplateStrategy ( ) { } protected Resource < ? > updateApplicationContext ( ) { } protected Resource < ? > setupMVCContext ( ) { } protected Resource < ? > updateWebXML ( ) { WebResourceFacet web = this . project . getFacet ( WebResourceFacet . class ) ; MetadataFacet meta = this . project . getFacet ( MetadataFacet . class ) ; String projectName = meta . getProjectName ( ) ; String filename = ( "//WEB-INF//" + ( projectName . toLowerCase ( ) . replace ( '<seq2seq4repair_space>' , '-' ) ) ) + "-mvc-context.xml" ; FileResource < ? > webXML = web . getWebResource ( "WEB-INF//web.xml" ) ; Node webapp = XMLParser . parse ( webXML . getResourceInputStream ( ) ) ; if ( webapp . get ( "servlet" ) . isEmpty ( ) ) { Node servlet = new Node ( "servlet" , webapp ) ; String servName = projectName . replace ( '<seq2seq4repair_space>' , ( ( char ) ( 0 ) ) ) ; Node servletName = new Node ( "servlet-name" , servlet ) ; servletName . text ( servName ) ; Node servletClass = new Node ( "servlet-class" , servlet ) ; servletClass . text ( "org.springframework.web.servlet.DispatcherServlet" ) ; Node initParam = new Node ( "init-param" , servlet ) ; Node paramName = new Node ( "param-name" , initParam ) ; paramName . text ( "contextConfigLocation" ) ; Node paramValue = new Node ( "param-value" , initParam ) ; paramValue . text ( filename ) ; Node loadOnStartup = new Node ( "load-on-startup" , servlet ) ; loadOnStartup . text ( 1 ) ; } if ( webapp . get ( "servlet-mapping" ) . isEmpty ( ) ) { Node servletMapping = new Node ( "servlet-mapping" , webapp ) ; Node servletNameRepeat = new Node ( "servlet-name" , servletMapping ) ; servletNameRepeat . text ( projectName . replace ( '<seq2seq4repair_space>' , ( ( char ) ( 0 ) ) ) ) ; Node url = new Node ( "url-pattern" , servletMapping ) ; url . text ( '//' ) ; } if ( webapp . get ( "error-page" ) . isEmpty ( ) ) { Node errorPage = new Node ( "error-page" , webapp ) ; Node exceptionType = new Node ( "exception-type" , errorPage ) ; exceptionType . text ( "java.lang.Exception" ) ; Node location = new Node ( "location" , errorPage ) ; <START_BUG> location . text ( "WEB-INF//views//error.jsp" ) ; <END_BUG> } String file = XMLParser . toXMLString ( webapp ) ; web . createWebResource ( file . toCharArray ( ) , "WEB-INF//web.xml" ) ; return web . getWebResource ( "WEB-INF//web.xml" ) ; } protected void loadTemplates ( ) { } protected HashMap < Object , Object > getTemplateContext ( final Resource < ? > template ) { } protected Resource < ? > generateNavigation ( final boolean overwrite ) throws IOException { } protected Map < String , String > parseNamespaces ( final String template ) { } protected int parseIndent ( final String template , final String indentOf ) { } protected void writeEntityMetawidget ( final Map < Object , Object > context , final int entityMetawidgetIndent , final Map < String , String > existingNamespaces ) { } protected String namespacesToString ( Map < String , String > namespaces ) { } }

Fix:
location . text ( "//WEB-INF//views//error.jsp" ) ;