Return-Path: X-Original-To: apmail-openejb-users-archive@www.apache.org Delivered-To: apmail-openejb-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C89489361 for ; Tue, 17 Jan 2012 17:32:06 +0000 (UTC) Received: (qmail 15776 invoked by uid 500); 17 Jan 2012 17:32:06 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 15711 invoked by uid 500); 17 Jan 2012 17:32:05 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 15702 invoked by uid 99); 17 Jan 2012 17:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 17:32:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rmannibucau@gmail.com designates 209.85.216.41 as permitted sender) Received: from [209.85.216.41] (HELO mail-qw0-f41.google.com) (209.85.216.41) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2012 17:31:58 +0000 Received: by qadc11 with SMTP id c11so342893qad.14 for ; Tue, 17 Jan 2012 09:31:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aEjkHEqULkjJiwOZ3fVGvrHvYB2IEQL+HaVo/QxZMcw=; b=q1okTGoyDaCE2/Il8hbBx2GAs4NGaPpAsq6nwpHmmdj9yc46twx+cDcqv0RUWNqoeh DV8/Zesax8YB2hPo0BvwYuBB/QWoO1QRGVpfqPQO9YZ1KMZlWsPmBuQOaDRU7xhnsg7F eZliSgEfJd8xx8nsX/QnbTxozR7XL4FbdNxL0= Received: by 10.229.137.75 with SMTP id v11mr6541558qct.61.1326821497181; Tue, 17 Jan 2012 09:31:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.192.21 with HTTP; Tue, 17 Jan 2012 09:31:16 -0800 (PST) In-Reply-To: References: From: Romain Manni-Bucau Date: Tue, 17 Jan 2012 18:31:16 +0100 Message-ID: Subject: Re: Deploy unpacked jar To: users@openejb.apache.org Content-Type: multipart/alternative; boundary=00235452ecd005156904b6bcb4ff X-Virus-Checked: Checked by ClamAV on apache.org --00235452ecd005156904b6bcb4ff Content-Type: text/plain; charset=ISO-8859-1 yep. create a apps/ folder in tomee directory. then move your exploded jar in this folder. Finally start TomEE and the magic should appear. I tried this commands and it works: > cp ~/.m2/repository/org/apache/openejb/apache-tomee/1.0.0-beta-2-SNAPSHOT/apache-tomee-1.0.0-beta-2-SNAPSHOT-webprofile.zip . > unzip apache-tomee-1.0.0-beta-2-SNAPSHOT-webprofile.zip > cd apache-tomee-webprofile-1.0.0-beta-2-SNAPSHOT/ > cp ~/.m2/repository/org/superbiz/simple-stateless/1.1-SNAPSHOT/simple-stateless-1.1-SNAPSHOT.jar . > mkdir apps > mv simple-stateless-1.1-SNAPSHOT.jar apps/ > cd apps/ > mkdir simple-stateless > mv simple-stateless-1.1-SNAPSHOT.jar simple-stateless > cd simple-stateless/ > jar xvf simple-stateless-1.1-SNAPSHOT.jar > cd .. > rm simple-stateless/simple-stateless-1.1-SNAPSHOT.jar > cd .. > ./bin/catalina.sh run (i know i could have done it faster ;)) - Romain 2012/1/17 Mansour Al Akeel > Thank you Romain, > can you please let me know if this info is still correct? > > As of 1.0 beta1, OpenEJB supports unpacked ejb jars. Simply meaning > that you don't need to pack your ejb's into a jar file in order to use > them in OpenEJB. You still need to follow the ejb jar layout and > include an "META-INF/ejb-jar.xml" in the directory that contains your > ejbs. > > > > On Tue, Jan 17, 2012 at 11:46 AM, Romain Manni-Bucau > wrote: > > the current code doesn't handle directories, it can probably be enhanced > in > > next releases. > > > > My second sentence referred to some application servers which need to > > unpack all archives (even jar files) to scan them which is not our case. > > > > - Romain > > > > > > 2012/1/17 Mansour Al Akeel > > > >> Romain, sorry but I didn't get your answer. Can you please kindly > >> elaborate, and give some details ? > >> What do I need to do to deploy and redeploy an unpacked jar ? > >> > >> > >> > >> On Tue, Jan 17, 2012 at 11:33 AM, Romain Manni-Bucau > >> wrote: > >> > Hi, > >> > > >> > it only manages file, not directory. But some files have not to be > >> unpacked > >> > for scanning. > >> > > >> > - Romain > >> > > >> > > >> > 2012/1/17 Mansour Al Akeel > >> > > >> >> From this page: > >> >> > >> >> http://openejb.apache.org/deployments.html > >> >> > >> >> An unpacked jar > >> >> > >> >> As of 1.0 beta1, OpenEJB supports unpacked ejb jars. Simply meaning > >> >> that you don't need to pack your ejb's into a jar file in order to > use > >> >> them in OpenEJB. You still need to follow the ejb jar layout and > >> >> include an "META-INF/ejb-jar.xml" in the directory that contains your > >> >> ejbs. > >> >> > >> >> =============================================================== > >> >> > >> >> Can someone please give me a step by step example. I am trying this > >> >> with one of the examples. It's not working: > >> >> > >> >> 11:20:14 @ target $ pwd > >> >> > /home/mansour/workspace/openejb-examples-3.1.2/simple-stateless/target > >> >> 11:20:18 @ target $ openejb deploy myproject > >> >> Unable to copy application to > >> >> "/opt/Programs/openejb-3.1.4/apps/myproject". Check that the > >> >> directory is writable and that there is enough disk space. > >> >> 11:20:23 @ target $ tree myproject > >> >> myproject > >> >> |-- META-INF > >> >> | |-- MANIFEST.MF > >> >> | `-- ejb-jar.xml > >> >> `-- org > >> >> `-- superbiz > >> >> `-- calculator > >> >> |-- CalculatorImpl.class > >> >> |-- CalculatorLocal.class > >> >> `-- CalculatorRemote.class > >> >> > >> >> 4 directories, 5 files > >> >> > >> >> =================================== > >> >> > >> >> This will be very good for development. If I can deploy/undeploy > >> >> directories, it can be a time saver. > >> >> Thank you. > >> >> > >> > --00235452ecd005156904b6bcb4ff--