Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 3756 invoked from network); 15 Aug 2004 17:18:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Aug 2004 17:18:40 -0000 Received: (qmail 77795 invoked by uid 500); 15 Aug 2004 17:18:39 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 77750 invoked by uid 500); 15 Aug 2004 17:18:38 -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 Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 77733 invoked by uid 99); 15 Aug 2004 17:18:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [64.233.170.196] (HELO mproxy.gmail.com) (64.233.170.196) by apache.org (qpsmtpd/0.27.1) with ESMTP; Sun, 15 Aug 2004 10:18:34 -0700 Received: by mproxy.gmail.com with SMTP id 77so52268rnl for ; Sun, 15 Aug 2004 10:18:33 -0700 (PDT) Received: by 10.38.82.65 with SMTP id f65mr399189rnb; Sun, 15 Aug 2004 10:18:33 -0700 (PDT) Message-ID: <645d1db10408151018d6baaa6@mail.gmail.com> Date: Sun, 15 Aug 2004 22:48:33 +0530 From: Sai Arunachalam Reply-To: Sai Arunachalam To: user@geronimo.apache.org Subject: problem in deploying a hello world ejb jar file Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I have downloaded the source code for the examples that come along with Mastering EJB (http://www.theserverside.com/books/wiley/masteringEJB/index.tss). And am trying to run the HelloWorld example that is there in the WebLogic6.x samples. There are three problems that I had while deploying this jar file. 1) The ejb-1.0.jar and ejb-2.0.jar that come along with OpenEJB 0.9.2 don't have EJBLocalObject and EJBLocalHome interfaces. And so two classes which were implementing these interfaces didn't compile on my machine. Therefore I just removed these 2 files (I thought we could still do with RemoteObjects) and compiled and it compiled. So does OpenEJB/Geronimo not support localObjects? 2) I used the OpenEJB deploy tool to generate the openejb-jar.xml file in the jar file. It generated automatically a deployment-id called "Hello". The weblogic-ejb-jar.xml that came along with the sample has a tag called that declares the name as "HelloHome". Is deployment-id same as jndi-name in weblogic? 3) Also, the deploy tool threw an error when it parsed the old ejb-jar.xml file because fo the tag. So I had to remove it. Any info here? 4) Fourthly, when I finally tried to deploy the jar file on geronimo, I got the following error... java.lang.NullPointerException at java.net.URI$Parser.parse(URI.java:2946) at java.net.URI.(URI.java:574) at org.openejb.deployment.OpenEJBModuleBuilder.getConfigId(OpenEJBModuleBuilder.java:277) at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87) at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142) at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:744) at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89) at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34) at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:111) at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.getConfigId() at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getConfigId(EARConfigBuilder.java:560) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:320) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:312) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:228) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87) at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142) at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:744) at org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89) at org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34) at org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:111) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration() at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:198) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87) at org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38) at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:142) at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:765) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205) at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079) at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231) at org.apache.geronimo.system.main.CommandLine.main(CommandLine.java:93) Can anybody tell me why this happens and the way around it? Thanks a lot for your time, Sai PS: I have been making a few posts lately and wanted to thank all the people who are taking their time to help me out. Thanks so much. Your help is invaluable.