[ https://issues.apache.org/jira/browse/OFBIZ-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985317#action_12985317 ] Jacques Le Roux commented on OFBIZ-3954: ---------------------------------------- Hi René, I had to dowload jansi-1.2.1.jar from http://www.sfr-fresh.com/unix/misc/groovy-binary-1.7.6.zip/. Actually it's easier for us to put jar as files directly. I get this error on Windows XP (using telnet localhost 9991), Beanshell works well (using telnet localhost 9990). Maybe it's a Windows specific error? 2011-01-23 14:24:42,578 (main) [ BeanShellContainer.java:101:INFO ] Started BeanShell telnet service on 9989, 9990 2011-01-23 14:24:42,578 (main) [ BeanShellContainer.java:102:INFO ] NOTICE: BeanShell service ports are not secure. Please protect the ports 2011-01-23 14:24:42,593 (main) [GroovyShellContainer.java:51 :INFO ] Started Groovy telnet service on port [9991]. 2011-01-23 14:24:42,593 (main) [GroovyShellContainer.java:52 :INFO ] NOTICE: The Groovy service port is not secure. Please protect it. 2011-01-23 14:24:42,593 (Thread-40) [ GroovyShellService.java:54 :INFO ] Opened server socket: ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=9991] 2011-01-23 14:27:38,359 (Thread-40) [ GroovyShellService.java:82 :INFO ] Opened client socket: Socket[addr=/127.0.0.1,port=3386,localport=9991] Exception in thread "Thread-51" java.lang.NoClassDefFoundError: jline/History at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) at java.lang.Class.getDeclaredMethods(Class.java:1791) at org.codehaus.groovy.reflection.CachedClass$3$1.run(CachedClass.java:83) at java.security.AccessController.doPrivileged(Native Method) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:80) at org.codehaus.groovy.reflection.CachedClass$3.initValue(CachedClass.java:78) at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46) at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33) at org.codehaus.groovy.reflection.CachedClass.getMethods(CachedClass.java:249) at groovy.lang.MetaClassImpl.populateMethods(MetaClassImpl.java:341) at groovy.lang.MetaClassImpl.fillMethodIndex(MetaClassImpl.java:291) at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2914) at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:166) at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:182) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:210) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.selectConstructorAndTransformArguments(ScriptBytecodeAdapter.java:235) at org.codehaus.groovy.tools.shell.Groovysh.<init>(Groovysh.groovy:90) at org.ofbiz.base.container.groovy.GroovyShellThread.run(GroovyShellThread.java:57) Caused by: java.lang.ClassNotFoundException: jline.History at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 19 more > Groovy shell > ------------ > > Key: OFBIZ-3954 > URL: https://issues.apache.org/jira/browse/OFBIZ-3954 > Project: OFBiz > Issue Type: New Feature > Components: framework > Affects Versions: SVN trunk > Reporter: Rene Scheibe > Priority: Minor > Attachments: OFBIZ-3954_groovysh.patch > > > A Groovysh container to connect to. Just do a 'telnet localhost 9991' and you have a fully fledged groovysh. > This is a Groovy equivalent to the already existing BeanShell container. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |