Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 74242 invoked from network); 20 May 2006 15:25:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2006 15:25:38 -0000 Received: (qmail 91744 invoked by uid 500); 20 May 2006 15:25:33 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 91693 invoked by uid 500); 20 May 2006 15:25:33 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 91662 invoked by uid 99); 20 May 2006 15:25:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 May 2006 08:25:33 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.163.169.222] (HELO smtp103.mail.sc5.yahoo.com) (66.163.169.222) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 20 May 2006 08:25:32 -0700 Received: (qmail 65856 invoked from network); 20 May 2006 15:25:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=Dh6xbkEcPt0c+6Vh8MYiyKJs4x2B7k5JqKiTeytNOWljcUcYKJbViYy4l25CbQva+EGJ//pgCN94D4MWcq9pbAx03bbzjdLneMlwIllECC77mJxjvQ8CxPoKndeLiWEbb3LH8WflgGwowmn+RcJfNuUX7Z2oiN6fTHqQoc+rgP4= ; Received: from unknown (HELO ?10.11.55.38?) (david?jencks@63.105.20.225 with plain) by smtp103.mail.sc5.yahoo.com with SMTP; 20 May 2006 15:25:11 -0000 Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <446DB994.6050709@3kraft.com> References: <446DB994.6050709@3kraft.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: how to extend the classpath of Geronimo??? Date: Sat, 20 May 2006 08:25:22 -0700 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.746.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On May 19, 2006, at 5:27 AM, Joerg Friede wrote: > Hi all, > > being quite new to Geronimo i'm stunned that there seems to be no > common way to extend the classpath for geronimo. > > I do have a jar-file which contains some utility classes that my > ejb-app's need and tried to put this jar in the classpath doing the > following: > > *) extend the CLASSPATH environment variable --> class not found > exception > > *) start the server with -cp switch --> server does not start at all > > *) put my jar in /lib, /lib/endorsed, > /lib/extension --> class not found exception > > *) added the jar to repository and tried to reference it from the > deployment descriptor (openejb-jar.xml) as follows > / > > MyJar/MyJar/1.0/jar > > > > DataManager > DataManager > DataManagerLocal > > > / This is the way to add your jar, but you need to use the MyJar/MyJay/1.0/jar element (in geronimo 1.0). The element can only refer to another configuration, not a plain jar. In 1.1 we have changed the syntax for this quite a bit so both jars and configurations (now renamed modules) are referred to with the element. (This is not a complete description of the syntax differences). Hope this helps, david jencks > > Then i get the exception: > > /13:17:43,154 ERROR [Hot Deployer] Unable to deploy: Unable to load > first parent of configuration Data-Service > org.apache.geronimo.common.DeploymentException: Unable to load > first parent of configuration Data-Service > .... > Caused by: org.apache.geronimo.kernel.config.NoSuchConfigException: > No configuration with id: MyJar/MyJar/1.0/jar > .... > / > The Jar file is at the location /repository/MyJar/ > jars/MyJar-1.0.jar. > > What does one have to do to add classes to the JVM of Geronimo? > > Thanks in advance, Joerg Friede >