WAR packaging error: encoded string too long

I am using grails 2.3.6 and getting the following error on execution

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?

+4
source share
1 answer

Unfortunately, the limit is 64k per block of static content (since DataOutputStream.writeUTF has this limit). You can break the limit by dividing your GSP by adding any GSP token to the static content (for example:) <%-- some comment --%>to break it into maximum blocks of 64 KB.

+5
source

Source: https://habr.com/ru/post/1529854/


All Articles