Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 43537 invoked from network); 26 Dec 2007 18:15:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Dec 2007 18:15:29 -0000 Received: (qmail 61638 invoked by uid 500); 26 Dec 2007 18:15:12 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 61607 invoked by uid 500); 26 Dec 2007 18:15:12 -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 61596 invoked by uid 99); 26 Dec 2007 18:15:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2007 10:15:12 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Dec 2007 18:15:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1J7amK-0007Xl-DE for user@geronimo.apache.org; Wed, 26 Dec 2007 10:14:52 -0800 Message-ID: <14504720.post@talk.nabble.com> Date: Wed, 26 Dec 2007 10:14:52 -0800 (PST) From: SergZ To: user@geronimo.apache.org Subject: Re: creating and deploying ejb In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: serggzz@gmail.com References: <14502180.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org If include all libraries into ear or ejbapp.jar, size if this bean will be so much(~10Mb). And I think that it isn't a good idea. Otherwise why there is possibility to make jar-file without libraries. I think that one can "install" library into geronimo(Repository with appropriate Group, Artifact, Version and Type) and declares dependencies in openejb-jar.xml. if you or somebody give example if it implementation i'll be very much obliged to you) vhnguy2 wrote: > > You should package your deployable in the form of an EAR instead of a > JAR. Inside the EAR, you can have multiple JARs. You should place your > ejbapp.jar and the jaxrpc*.jar libraries inside this EAR. This way, > the ejbapp.jar will be able to see classes inside jaxrpc*.jar. > > --Viet > > On Dec 26, 2007 8:23 AM, SergZ wrote: >> >> Hello. I'm a newbie. >> My ejbapp use external library(for example JAX-RPC), and archive >> ejbapp.jar >> doesn't consist of any jaxrpc*.jar files. For devolipng I use Netbeans. >> >> At attempt a deploying this ejb, I receive messages such that: >> >> ... >> 14:25:33,666 INFO [config] Configuring app: >> default/hellobean/1198697132606/jar >> 14:25:33,827 ERROR [Deployer] Deployment failed due to >> java.lang.NoClassDefFoundError: Lcom/sun/activation/viewers/TextViewer; >> at java.lang.Class.getDeclaredFields0(Native Method) >> at java.lang.Class.privateGetDeclaredFields(Class.java:2291) >> at java.lang.Class.getDeclaredFields(Class.java:1743) >> ... >> >> ejb-business-part is: >> >> package hellopack; >> >> import javax.ejb.Stateless; >> import com.sun.activation.viewers.TextViewer; >> >> @Stateless >> public class NewSessionBean implements NewSessionRemote, NewSessionLocal >> { >> /** Creates a new instance of NewSessionBean */ >> >> TextViewer tv; >> >> public NewSessionBean() { >> } >> >> public String sayHello() { >> //TODO implement sayHello >> return "Hellqweqweqwo!"; >> } >> >> } >> >> I suppose that to achieve this is to use Common Libs in Services. >> How to solve this problem. >> -- >> View this message in context: >> http://www.nabble.com/creating-and-deploying-ejb-tp14502180s134p14502180.html >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/creating-and-deploying-ejb-tp14502180s134p14504720.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.