Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Project infrastructure
-
Labels:None
-
Environment:IBM JDK 1.6 - 64 bit
Windows 7 - 64 bit
STS 2.8.1
Grails 2.0
Description
When switch to the IBM JDK 1.6 (64bit) in STS 2.8.1, application can't be started because the generated web.xml is always empty.
It seemed that the "generateWebXml" in _GrailsPackage.groovy has problem in IBM JDK 1.6.
I debuged it and found the problem is in the following lines of the method "generateWebXml":
pluginManager.doWebDescriptor(webXml, sw)
webXmlFile.withWriter { it << sw.toString() }
But I can't find the "doWebDescriptor(webXml, sw)" method in webXml plugin (version 1.4.1).
Where is this method that I can continue to debug?
The steps to reproduce this problem:
1. Swith to IBM JDK 1.6 (64bit) in STS 2.8.1
2. Start the app by using "run-app"
Then we will see the error of this:
| Running Grails application | Error 2012-02-05 13:11:37,036 [main] ERROR digester.Digester - Parse Fatal Error at line -1 column -1: Premature end of file Message: Premature end of file Line | Method ->> 114 | doStart in org.grails.plugins.tomcat.InlineExplodedTomcatServer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 102 | start in org.grails.plugins.tomcat.TomcatServer | 175 | doCall . in _GrailsRun_groovy$_run_closure5_closure12 | 152 | doCall in _GrailsRun_groovy$_run_closure5 | 120 | runInline in _GrailsRun_groovy | 66 | doCall in _GrailsRun_groovy$_run_closure1 ^ 33 | doCall . in RunApp$_run_closure1 | Error 2012-02-05 13:11:37,136 [main] ERROR startup.ContextConfig - Parse error in application web.xml file at file:/C:/Users/<myAccountName>/.grails/2.0.0/projects/TM/resources/web.xml Message: Premature end of file Line | Method ->> 114 | doStart in org.grails.plugins.tomcat.InlineExplodedTomcatServer
3. Check the web.xml and found it's empty.