Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 35288 invoked from network); 20 Oct 2009 21:56:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 21:56:40 -0000 Received: (qmail 4302 invoked by uid 500); 20 Oct 2009 21:56:40 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 4286 invoked by uid 500); 20 Oct 2009 21:56:40 -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 4275 invoked by uid 99); 20 Oct 2009 21:56:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 21:56:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of david.blevins@visi.com designates 208.42.176.212 as permitted sender) Received: from [208.42.176.212] (HELO g2host.com) (208.42.176.212) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 21:56:29 +0000 Received: from [71.106.81.39] (account dblevins@visi.com HELO [192.168.42.6]) by mailfront1.g2host.com (CommuniGate Pro SMTP 5.1.16) with ESMTPSA id 122606751 for users@openejb.apache.org; Tue, 20 Oct 2009 16:56:07 -0500 Message-Id: <1179128C-9DC4-495B-BEA8-ED5981F9D5D7@visi.com> From: David Blevins To: users@openejb.apache.org In-Reply-To: <1f3854d50910201254h6cc43fa9mdf8d99394636f8f5@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: org.apache.openejb.OpenEJBException: Unable to determine the module type of Date: Tue, 20 Oct 2009 14:56:06 -0700 References: <25978552.post@talk.nabble.com> <1f3854d50910201023y4155cbe0n667f72acfdd0a82e@mail.gmail.com> <1f3854d50910201254h6cc43fa9mdf8d99394636f8f5@mail.gmail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 20, 2009, at 12:54 PM, Quintin Beukes wrote: > For interest sake, what would be the module type of an EAR? AppModule. It's not overt in the Tomcat integration code as essentially Tomcat ignores .ear files and we come back and pick them up via our regular ear processing code. We unpack the ear and hand the wars back to Tomcat and deploy the rest. -David > > On Tue, Oct 20, 2009 at 9:49 PM, David Blevins > wrote: >> >> On Oct 20, 2009, at 10:23 AM, Quintin Beukes wrote: >> >>> As far as I know, OpenEJB for Tomcat doesn't support EARs. >> >> It support EARs. It's just not a popular format as you can put all >> the EJBs >> you like right in WAR file. >> >> Adam, try moving the ibatis-common-2.jar to EMApplicationServiceEAR/ >> lib/ >> where it will be considered a simple library per Java EE spec >> rules. Same >> would apply to any libraries which are not Java EE modules. >> >> If you are dealing with the majority use case of an ear with one >> webapp, you >> do have the option to put all your libraries (even if they are >> ejbs) into >> your webapp WEB-INF/lib/ directory and deploy just the webapp. We >> call this >> Collapsed EAR (basically the war becomes the ear and ejbs and >> servlets all >> share the same classloader) and is becoming a standard part of Java >> EE 6. >> >> >> -David >> >> >>> >>> On Tue, Oct 20, 2009 at 6:46 PM, adam.granger >> > >>> wrote: >>>> >>>> Hi, >>>> >>>> Tomcat : 5.5.20 >>>> OpenEJB : 3.1.2 >>>> Java : 1.5.0_18 >>>> O/S : Windows XP sp2 >>>> >>>> I am trying to deploy an EAR where all my ejb and utility jars >>>> are in the >>>> root of the EAR file. I get the following error when openejb >>>> tries to >>>> deploy >>>> the EAR: >>>> >>>> 2009-10-20 18:25:04,032 - WARN - Error deploying application >>>> >>>> C:\servers\apache-tomcat-5.5.20-openejb\webapps >>>> \EMApplicationServiceEAR.ear >>>> org.apache.openejb.OpenEJBException: Unable to determine the >>>> module type >>>> of >>>> ibatis-common-2.jar: Exception: Unknown module type: >>>> >>>> url=file:/C:/servers/apache-tomcat-5.5.20-openejb/webapps/ >>>> EMApplicationServiceEAR/ibatis-common-2.jar: >>>> Unknown module type: >>>> >>>> url=file:/C:/servers/apache-tomcat-5.5.20-openejb/webapps/ >>>> EMApplicationServiceEAR/ibatis-common-2.jar >>>> at >>>> >>>> org >>>> .apache >>>> .openejb >>>> .config.DeploymentLoader.createAppModule(DeploymentLoader.java:267) >>>> at >>>> >>>> org >>>> .apache >>>> .openejb.config.DeploymentLoader.load(DeploymentLoader.java:130) >>>> at >>>> >>>> org >>>> .apache >>>> .openejb >>>> .tomcat >>>> .catalina.TomcatWebAppBuilder.checkHost(TomcatWebAppBuilder.java: >>>> 467) >>>> at >>>> >>>> org >>>> .apache >>>> .openejb >>>> .tomcat >>>> .catalina >>>> .GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java: >>>> 74) >>>> at >>>> >>>> org >>>> .apache >>>> .catalina >>>> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java: >>>> 119) >>>> at >>>> >>>> org >>>> .apache >>>> .catalina.core.ContainerBase.backgroundProcess(ContainerBase.java: >>>> 1305) >>>> at >>>> >>>> org.apache.catalina.core.ContainerBase >>>> $ContainerBackgroundProcessor.processChildren(ContainerBase.java: >>>> 1569) >>>> at >>>> >>>> org.apache.catalina.core.ContainerBase >>>> $ContainerBackgroundProcessor.processChildren(ContainerBase.java: >>>> 1578) >>>> at >>>> >>>> org.apache.catalina.core.ContainerBase >>>> $ContainerBackgroundProcessor.run(ContainerBase.java:1558) >>>> at java.lang.Thread.run(Thread.java:595) >>>> Caused by: org.apache.openejb.config.UnknownModuleTypeException: >>>> Unknown >>>> module type: >>>> >>>> url=file:/C:/servers/apache-tomcat-5.5.20-openejb/webapps/ >>>> EMApplicationServiceEAR/ibatis-common-2.jar >>>> at >>>> >>>> org >>>> .apache >>>> .openejb >>>> .config.DeploymentLoader.discoverModuleType(DeploymentLoader.java: >>>> 1212) >>>> at >>>> >>>> org >>>> .apache >>>> .openejb >>>> .config.DeploymentLoader.createAppModule(DeploymentLoader.java:254) >>>> ... 9 more >>>> >>>> I have a vanilla installation of openejb and tomcat. Suspect it has >>>> something to do with classpath or class loader as the specific >>>> jar does >>>> not >>>> matter, it just complains about the next one. >>>> >>>> Can somebody please help? >>>> -- >>>> Adam >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/org.apache.openejb.OpenEJBException%3A-Unable-to-determine-the-module-type-of-tp25978552p25978552.html >>>> Sent from the OpenEJB User mailing list archive at Nabble.com. >>>> >>>> >>> >> >> >