2008年3月8日土曜日

[Groovy>Grails] Error "failed to create task or type native2ascii" occures when running grails war file on Tomcat environment

Description
When running grails war file on Tomcat environment, following error message occures and fail to execute the program.

Error Message
 : Problem: failed to create task or type native2ascii
Cause: the class org.apache.tools.ant.taskdefs.optional.Native2Ascii was not found.
This looks like one of Ant's optional components.
Solution
System can not find the ant-nodeps.jar file in the classpath.
Get ant-nodeps.jar file and put this file into the $TOMCAT_HOME/webapps/[app name]/WEB-INF/lib/ and restart Tomcat process. ant-nodeps.jar file is including Apache ant file.

0 件のコメント: