Question

I use grails 2.3.6 and get the following error while performing

grails dev war

Error:

|Compiling 84 GSP files for package [test]
.Error 
|
WAR packaging error: encoded string too long: 79912 bytes

How can I prevent this error?

Was it helpful?

Solution

Unfortunately the limit is 64k per block of static content (because DataOutputStream.writeUTF has that limit). You can workaround the limit by splitting up your GSP by adding any GSP "token" (for example: <%-- some comment --%>) in the static content to split it in max 64kB blocks.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top