Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006201 [Resin] minor always 12-02-18 17:09 01-09-19 15:17
Reporter hackst8r View Status public  
Assigned To ferg
Priority normal Resolution no change required  
Status closed   Product Version 4.0.58
Summary 0006201: class-loader support for groovy is not working
Description (1)

* copy the groovy library into ${resin.home}/lib

$ cp SOFTWARE/groovy-3.0.0-alpha-3/lib/groovy-3.0.0-alpha-3.jar SOFTWARE/resin-4.0.58/lib/

(2)

* configure a class-loader that does compile of groovy source using WEB-INF/web.xml


 <class-loader>
    <compiling-loader path="WEB-INF/groovy"
                      compiler="groovyc"
                      source-extension=".groovy"/>
  </class-loader>

(3)

* make WEB-INF/groovy/example/Foo.groovy

package example ;

class Foo
{
}

(4)

* start Resin

$ SOFTWARE/resin-4.0.58/bin/resin.sh console

* witness the error

[18-12-02 20:08:02.367] {resin-14} Compiling example/FOO.groovy
[18-12-02 20:08:02.395] {resin-14} com.caucho.java.CompileClassNotFound: java.lang.NoSuchMethodException: org.codehaus.groovy.tools.FileSystemCompiler.setClasspath(java.lang.String)
                           at com.caucho.loader.CompilingLoader.compileBatch(CompilingLoader.java:700)
                           at com.caucho.loader.CompilingLoader.makeImpl(CompilingLoader.java:394)
                           at com.caucho.loader.CompilingLoader.make(CompilingLoader.java:367)
                           at com.caucho.make.MakeContainer.make(MakeContainer.java:70)
                           at com.caucho.loader.DynamicClassLoader.make(DynamicClassLoader.java:1436)
                           at com.caucho.loader.EnvironmentClassLoader.scan(EnvironmentClassLoader.java:890)
                           at com.caucho.loader.DynamicClassLoader.sendAddLoaderEvent(DynamicClassLoader.java:929)
                           at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:976)
                           at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3830)
                           at com.caucho.server.webapp.WebApp.access$700(WebApp.java:209)
                           at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5411)
                           at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
                           at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
                       Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.codehaus.groovy.tools.FileSystemCompiler.setClasspath(java.lang.String)
                           at com.caucho.java.GroovyCompiler.compileInt(GroovyCompiler.java:92)
                           at com.caucho.java.AbstractJavaCompiler.run(AbstractJavaCompiler.java:112)
                           ... 2 more
                       Caused by: java.lang.NoSuchMethodException: org.codehaus.groovy.tools.FileSystemCompiler.setClasspath(java.lang.String)
                           at java.base/java.lang.Class.getMethod(Class.java:2067)
                           at com.caucho.java.GroovyCompiler.compileInt(GroovyCompiler.java:80)
                           ... 3 more

(5)

* lack of documentation

https://caucho.com/resin-4.0/admin/advanced-classloaders.xtp#library-loader [^]
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-02-18 17:09 hackst8r New Issue
01-09-19 15:17 ferg Assigned To  => ferg
01-09-19 15:17 ferg Status new => closed
01-09-19 15:17 ferg Resolution open => no change required


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
27 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker