Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 78066 invoked from network); 6 Aug 2008 17:35:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Aug 2008 17:35:05 -0000 Received: (qmail 14441 invoked by uid 500); 6 Aug 2008 17:35:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 14380 invoked by uid 500); 6 Aug 2008 17:35:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 14369 invoked by uid 99); 6 Aug 2008 17:35:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 10:35:02 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [207.58.130.198] (HELO tulkas.ilembas.net) (207.58.130.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Aug 2008 17:34:06 +0000 Received: (qmail 14179 invoked by uid 514); 6 Aug 2008 13:33:28 -0400 Received: from c-24-99-243-5.hsd1.ga.comcast.net (HELO ?10.0.1.10?) (andre@thenot.org@24.99.243.5) by tulkas.ilembas.net with AES128-SHA encrypted SMTP; 6 Aug 2008 13:33:28 -0400 Message-Id: From: Andre Thenot To: users@cocoon.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: EJB jar dependencies Date: Wed, 6 Aug 2008 13:33:27 -0400 X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org Hi! My cocoon webapp connects to a JBoss application running in a different JVM and calls the remote interfaces of SessionBeans via a JNDI lookup. I kept getting ClassNotFoundExceptions on my business objects as well as standard JBoss objects. This made sense since the objects returned by the app were unknown to my cocoon block. So I tried to set up the dependencies[1] in my POM but I could not make it work. I noticed that when I started the app with `mvn jetty:run` that there was no mention of my jars nor those of JBoss being added to WEB-INF/lib. As a hack I copied all the jars from: ${JBOSS_HOME}/lib/*.jar ${JBOSS_HOME}/server/default/lib/*.jar ${JBOSS_HOME}/server/default/deploy/**.jar my-biz-ejb-app/build/biz-logic.jar to: my-block/target/rcl/webapp/WEB-INF/lib and it worked. But isn't there a cleaner way to do this with dependencies? How do I tell the cocoon-maven-plugin about other jar files I want to add to WEB-INF/lib? Thanks in advance. Andre. PS: I'm using: - cocoon-core 2.2.0-RC2 - maven-jetty-plugin 6.1.5 - cocoon-maven-plugin 1.0.0-M2 - maven-jar-plugin 2.1 - JBoss 4.2.2.GA [1] My attempt at getting the dependencies right: org.mortbay.jetty jetty-naming 6.1.5 jboss jbossall-client 3.2.3 my.biz.app biz-app 1.0-SNAPSHOT runtime --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org