Using NB6.8, the groovy-all-1.7.2.jar is in my classpath.
In an existing servlet, I'm trying to call a method from a simple Groovy class in the same package.
package bobo
class MyProvider {
def greeting = "Hello from Groovy"
}
in a servlet using:
MyProvider provider = new MyProvider();
provider.getGreeting();
I get:
WARNING: StandardWrapperValve[NewServlet]: PWC1406: Servlet.service() for servlet MyServlet threw exception
java.lang.ExceptionInInitializerError
In the glassfish log when I try to access it from a browser.
[Message sent by forum member 'namestka']
http://forums.java.net/jive/thread.jspa?messageID=399474