문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top