• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

new to groovy / error while starting

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have set up a test app with grails but I am unable to run anything with the grails command line tool.

I tried grails clean and got the following error message, is it related to an incorrect CLASSPATH entry
-------------------------------------------------------------------------------------------------
Welcome to Grails 1.1-RC2 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /root/p4/Dev/users/toddg/bin/grails/grails-1.1-RC2

Base Directory: /root/p4/Dev/users/toddg/projects/holmes/toddg/adserver
Error executing script RunApp: Could not instantiate custom Metaclass for class: org.codehaus.gant.GantBinding. Reason: java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/AsciiOutputStream.class
groovy.lang.GroovyRuntimeException: Could not instantiate custom Metaclass for class: org.codehaus.gant.GantBinding. Reason: java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/AsciiOutputStream.class
at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:131)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:142)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:160)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:200)
at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:695)
at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)
at groovy.lang.Binding.<init>(Binding.java:32)
at org.codehaus.gant.GantBinding.<init>(GantBinding.groovy)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:349)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:273)
at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:106)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:187)
at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:212)
Caused by: java.lang.SecurityException: no manifiest section for signature file entry javax/mail/internet/AsciiOutputStream.class
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:233)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:325)
at java.util.jar.JarFile.getInputStream(JarFile.java:390)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.codehaus.groovy.tools.RootLoader.oldFindClass(RootLoader.java:152)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:124)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)



 
Rajpreet Bajwa
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not related to groovy or grails. I am including a jar file containing some of the code I wrote and that jar includes the mail.jar which a signed jar. Since it's a signed jar, JVM could not find the manifest file for a few classes. Now I know the problem, next step ius figuring out how to fix it.


 
Your mother was a hamster and your father was a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!