Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 78087 invoked from network); 19 Sep 2009 11:37:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Sep 2009 11:37:25 -0000 Received: (qmail 79557 invoked by uid 500); 19 Sep 2009 11:37:24 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79467 invoked by uid 500); 19 Sep 2009 11:37:24 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 79458 invoked by uid 99); 19 Sep 2009 11:37:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Sep 2009 11:37:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Sep 2009 11:37:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 983CC234C044 for ; Sat, 19 Sep 2009 04:37:02 -0700 (PDT) Message-ID: <2107946505.1253360222583.JavaMail.jira@brutus> Date: Sat, 19 Sep 2009 04:37:02 -0700 (PDT) From: "Thomas Amsler (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRGROOVY-6) Getting an error while running the LDAP search operation example In-Reply-To: <74283065.1253312056111.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRGROOVY-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757659#action_12757659 ] Thomas Amsler commented on DIRGROOVY-6: --------------------------------------- You are right. I made a stupid mistake. After renaming the file, it still gave me the same error. I actually had to to create a class. class LdapSearch { public static void main(def args) { .... } } Usually I don't need to do that when if I just want to try a simple script. > Getting an error while running the LDAP search operation example > ---------------------------------------------------------------- > > Key: DIRGROOVY-6 > URL: https://issues.apache.org/jira/browse/DIRGROOVY-6 > Project: Directory Groovy LDAP > Issue Type: Bug > Environment: Groovy 1.6.4 > groovy-ldap.jar location: ~/.groovy/lib/groovy-ldap.jar > Reporter: Thomas Amsler > Assignee: Stefan Zoerner > > Sample Code: > http://cwiki.apache.org/DIRxSBOX/2-groovy-ldap-user-guide.html#2.GroovyLDAPUserGuide-LDAPsearchoperation > Error: > groovy ldap-search.groovy > Caught: java.lang.ClassFormatError: Illegal class name "ldap-search" in class file ldap-search -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.