Grails - class "org.grails.tomcat.TomcatLoader" not found in CLASSPATH

grails run-app from Eclipse currently gives me an exception for my Google App Engine / Grails application:

 Enhancing JDO classes [enhance] DataNucleus Enhancer (version 1.1.4) : Enhancement of classes [enhance] Jan 24, 2010 5:11:42 AM org.datanucleus.metadata.MetaDataManager loadClasses [enhance] SEVERE: Class "org.grails.tomcat.TomcatLoader" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. [enhance] org.datanucleus.exceptions.ClassNotResolvedException: Class "org.grails.tomcat.TomcatLoader" was not found in the CLASSPATH. Please check your specification and your CLASSPATH. [enhance] at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:250) [enhance] at org.datanucleus.JDOClassLoaderResolver.classForName(JDOClassLoaderResolver.java:415) [enhance] at org.datanucleus.metadata.MetaDataManager.loadClasses(MetaDataManager.java:379) [enhance] at org.datanucleus.enhancer.DataNucleusEnhancer.getFileMetadataForInput(DataNucleusEnhancer.java:743) [enhance] at org.datanucleus.enhancer.DataNucleusEnhancer.enhance(DataNucleusEnhancer.java:545) [enhance] at org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1252) [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [enhance] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [enhance] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [enhance] at java.lang.reflect.Method.invoke(Method.java:597) [enhance] at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:57) [enhance] at com.google.appengine.tools.enhancer.Enhance.<init>(Enhance.java:60) [enhance] at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41) [enhance] DataNucleus Enhancer completed with success for 0 classes. Timings : input=487 ms, enhance=0 ms, total=487 ms. Consult the log for full details [enhance] DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details 

I get this error after creating a Grails project using Spring Tools Suite (STS), and then installing the Grail-Installer-Plugin-Application-Engine application plugin. I used to install the app-engine plugin, the Grails project started correctly.

Any ideas?

+2
source share
3 answers

Have you tried uninstalling the Tomcat plugin? It is installed by default in the new application, but it looks like it causes problems when using the GAE plugin.

+3
source

More than likely, the error message from the DataNucleus Enhancer is cheating. It probably cannot find the dependent classes org.grails.tomcat.TomcatLoader. Are all the dependent libs of the TomcatLoader grails class in your classpath? I had a similar situation - the error message was incorrect.

0
source

The reason you get this error is because the tomcat plugin has not been removed. Follow these steps:

  • cd app_directory
  • grails list-plugins

You will see a complete list of plugins, and at the bottom there will be a list of plugins installed for your application. Write down the file tomcat version_number

  • grails uninstall-plugin tomcat version_number

The tomcat plugin will now disappear and you will not see the Tomcat bootloader error. I was getting a similar error when trying to use the graphics application engine for graphs and it left after the above steps.

0
source

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


All Articles