You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Sai Arunachalam <sa...@gmail.com> on 2004/08/15 19:18:33 UTC

problem in deploying a hello world ejb jar file

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 <jndi-name> 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 <local-home> 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.<init>(URI.java:574)
        at org.openejb.deployment.OpenEJBModuleBuilder.getConfigId(OpenEJBModuleBuilder.java:277)
        at org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
        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(<generated>)
        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(<generated>)
        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(<generated>)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:198)
        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
        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.